Giter VIP home page Giter VIP logo

hassio-addons's People

Contributors

accelle17 avatar gtrancillo avatar iceman73 avatar messismore avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hassio-addons's Issues

Can't get HA to discover mqtt

I've set this up and have it running using the MQTT broker that ships with HA. I am confident I'm getting the messages to the broker as I can browse it using MQTT explorer and get events. However, I have no idea how to get HA to discover the devices? Autodiscovery doesn't seem to show anything. I've tried a few mix mashes of adding this to the configuration.yaml file, but none have worked. I'm using the Honeywell 5800 (345MHz) switches.

Can anyone point me in the direction to get the information so it's viewable in HA?
Thanks!

Addon won't start

I have what is probably a simple problem, but no idea what do do about it. When I try to start the addon, I get the following message in the logs:

/bin/sh: /rtl2mqtt.sh: not found

I did copy rtl2mqtt.sh to the directory config/rtl4332mqtt as the directions specify, but no joy. Any idea how to figure out what I did wrong?

plugin stops- unable to connect

Hi,

I've had this wonderful plugin working for a few weeks. It has been working ok, but I have to restart it regularly. Here are the log messages that show up when this happens:

Unable to connect (Lookup error.).
Async read stalled, exiting!
rtlsdr_demod_write_reg failed with -7
r82xx_write: i2c wr failed=-9 reg=06 len=1
Reattached kernel driver

One thing you should know about my setup- I am remotely hosting the USB stick for the RTL on a remote device via usbip. I have a zwave stick on the same remote device and it seems to be fine, so I have no reason to believe that there is connectivity issues between the two devices (they are both on my local LAN).

Anyone seen this issue?

Seems like a memory leak or long run time crash?

This is a cool add-on. I use it for remote controls and for monitoring temperature sensors.

After a week or two of uptime, I find the add-on stops working. All I have to do to fix it is to hit restart in the add-on details page, but it's slightly annoying. Do others see this behavior?

The length of time it works with no issue makes me think it's a very infrequent driver hang or maybe a memory leak. I have not yet looked into the memory leak theory by paying attention to size of the process, etc., but that's the next step to debugging this I suppose. What exactly does the restart button do? Does it completely rmmod the driver? Or does it simply restart the userland process(es)?

It is possible to use multiple dongles?

Hi, thank you for this extremely useful addon!
I need to listen to two different frequencies using two usb dongles, this is possible with rtl_433 starting two instances using the -d parameter to select the appropriate dongle.
Is there a way to get the same result with your addon?

library librtlsdr.so.0 not dound in /usr/local/bin/rtl_433 RTL-Stick does not get Signals library

Hi there
I did create the sh script in config/... and configured it the way it works for me.
Allthough when setting up the MQTT node in Node Red an attach a debug node to it not Output is sent from the MQTT node.

I would like to monitor 433 temperatur sensor from renkforce and TFA - i get the following output
without the plugin it worked - but i would like to get it wokring using the plugin

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
Starting RTL_433 with parameters:
MQTT Host = localhost
MQTT User = ***
MQTT Password = ***
MQTT Topic = homeassistant/sensor/currentcost
RTL_433 Protocol = 100
RTL_433 Frequency = 319500000
RTL_433 Gain = 60
RTL_433 Frequency Offset = 350
Error loading shared library librtlsdr.so.0: No such file or directory (needed by /usr/local/bin/rtl_433)
Error relocating /usr/local/bin/rtl_433: rtlsdr_get_device_count: symbol not found
Error relocating /usr/local/bin/rtl_433: rtlsdr_reset_buffer: symbol not found
Error relocating /usr/local/bin/rtl_433: rtlsdr_get_tuner_gains: symbol not found
Error relocating /usr/local/bin/rtl_433: rtlsdr_get_device_usb_strings: symbol not found
Error relocating /usr/local/bin/rtl_433: rtlsdr_set_tuner_gain_mode: symbol not found
Error relocating /usr/local/bin/rtl_433: rtlsdr_close: symbol not found
Error relocating /usr/local/bin/rtl_433: rtlsdr_get_device_name: symbol not found
Error relocating /usr/local/bin/rtl_433: rtlsdr_set_tuner_gain: symbol not found
Error relocating /usr/local/bin/rtl_433: rtlsdr_get_sample_rate: symbol not found
Error relocating /usr/local/bin/rtl_433: rtlsdr_read_async: symbol not found
Error relocating /usr/local/bin/rtl_433: rtlsdr_set_center_freq: symbol not found
Error relocating /usr/local/bin/rtl_433: rtlsdr_open: symbol not found
Error relocating /usr/local/bin/rtl_433: rtlsdr_set_sample_rate: symbol not found
Error relocating /usr/local/bin/rtl_433: rtlsdr_get_center_freq: symbol not found
Error relocating /usr/local/bin/rtl_433: rtlsdr_get_index_by_serial: symbol not found
Error relocating /usr/local/bin/rtl_433: rtlsdr_cancel_async: symbol not found
Error relocating /usr/local/bin/rtl_433: rtlsdr_set_freq_correction: symbol not found
[cmd] /bin/ash exited 0
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.

Config in Options

Hi James,

Thanks a lot for creating this add-on, it is working flawless.

Would it be possible to use the Options bit in Hassio for the config instead of config.json?

Thanks and keep up the great work!

Laurens

dasher body value automatically converted to string from dictionary

even with base configuration, after a restart of the addon, the body entry of every button is changed from dictionary to str

with this url:
"url": "https://domain:8123/api/services/input_boolean/toggle",

from
"body": {"entity_id": "input_boolean.dash"}
to
"body": "{'entity_id': 'input_boolean.dash'}"

causing the error:

Invalid service data for input_boolean.toggle: expected a dictionary. Got "{'entity_id': 'input_boolean.dash'}"

the schema for body has body considered as str and this I think causes the error

"schema":
  {
    "buttons": [
      {
        ...
        "body": "str",
       ...
      }
    ]
}

I tried to search for a solution from the manual but i couldn't find one right away

Malformed json sent to the mqtt broker ?

Hi and thank you for the great work !

Using hass.io 0.103.3 installed on Beaglebone black
I installed your add-on and used the official mosquitto broket add-on v5.1

When I run the add-on, nothing special shows in the log but the broker received one set of data only, no updates. The broker gives a message about "socket error on client xxxx disconnecting" and nothing else.

I am using a current cost transmitter and when using rtl_433 alone and the json format looks like this :
{"time" : "2019-12-24 10:46:53", "model" : "CurrentCost-TX", "id" : 2972, "power0" : 0, "power1" : 0, "power2" : 0}
However when I increased the log level in your script I got this ouput :
echo '{"time"' : '"2019-12-24' '11:27:49",' '"model"' : '"CurrentCost-TX",' '"id"' : 2972, '"power0"' : 0, '"power1"' : 0, '"power2"' : '0}'
Notice there are single quotes missing around double quotes at the beginning and the end. I guess this messed up with the broker.
I used the workaround mentionned in another issue and it works now althought I lost the autodiscovery part.

Hope that helps !

RTL_433 to MQTT Bridge does not start

Hi, I've had the great addon working in the past. But since a fresh installation I cannot get the addon started. The log section in the addon stays empty.

This the only message in the log of hassio:

18-07-20 11:09:56 INFO (SyncWorker_7) [hassio.docker.addon] Start docker addon f3248fb7/aarch64-addon-rtl4332mqtt with version 0.2
18-07-20 11:13:34 INFO (SyncWorker_7) [hassio.docker.interface] Clean f3248fb7/aarch64-addon-rtl4332mqtt docker application
18-07-20 11:13:36 INFO (SyncWorker_7) [hassio.docker.addon] Start docker addon f3248fb7/aarch64-addon-rtl4332mqtt with version 0.2

After Upgrading HA, addon stopped working

I have noticed that after upgrading Home assistant, this addon stopped working.
RTL_433 Protocol = 16
Registering protocol [1] "AlectoV1 Weather Sensor (Alecto WS3500 WS4500 Ventus W155/W044 Oregon)"
Registered 1 out of 101 device decoding protocols
Found 1 device(s)
trying device 0: F�, ����, SN: �?��
usb_open error -1
Failed to open rtlsdr device #0.
Unable to open a device
[cmd] /bin/ash exited 0
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.

I have look at hardware info and found that my USB dongle is not at port 0

  • name: 1-4
    sysfs: '/sys/devices/pci0000:00/0000:00:15.0/usb1/1-4'
    dev_path: /dev/bus/usb/001/002
    subsystem: usb
    by_id: null
    attributes:
    BUSNUM: '001'
    DEVNAME: /dev/bus/usb/001/002
    DEVNUM: '002'
    DEVPATH: '/devices/pci0000:00/0000:00:15.0/usb1/1-4'
    DEVTYPE: usb_device
    DRIVER: usb
    ID_BUS: usb
    ID_FOR_SEAT: usb-pci-0000_00_15_0-usb-0_4
    ID_MODEL: RTL2838UHIDIR
    ID_MODEL_ENC: RTL2838UHIDIR
    ID_MODEL_ID: '2838'
    ID_PATH: 'pci-0000:00:15.0-usb-0:4'
    ID_PATH_TAG: pci-0000_00_15_0-usb-0_4
    ID_REVISION: '0100'
    ID_SERIAL: Realtek_RTL2838UHIDIR_00000001
    ID_SERIAL_SHORT: '00000001'
    ID_USB_INTERFACES: ':ffffff:'
    ID_VENDOR: Realtek
    ID_VENDOR_ENC: Realtek
    ID_VENDOR_ID: 0bda
    MAJOR: '189'
    MINOR: '1'
    PRODUCT: bda/2838/100
    SUBSYSTEM: usb
    TAGS: ':seat:'
    TYPE: 0/0/0
    USEC_INITIALIZED: '1994716'

Is there any chance that in the addon configuration, can be implemented option to chose device which to use.
or how to manually change device number.

thanks in advance

btw, great addon, worked for a months without errors, before upgraded HA to newer versions..

thanks in advance

Error when trying to install on an Ubuntu Server

I followed this method to install Hass.io on a fresh installed Ubuntu Server.

When I try to install the Dasher add-on I get the errors below.

18-05-09 20:15:29 INFO (SyncWorker_1) [hassio.docker.addon] Start build 73b92e0f/amd64-addon-dasher:0.2
18-05-09 20:15:29 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/aiohttp/web_protocol.py", line 381, in start
    resp = await self._request_handler(request)
  File "/usr/lib/python3.6/site-packages/aiohttp/web_app.py", line 322, in _handle
    resp = await handler(request)
  File "/usr/lib/python3.6/site-packages/aiohttp/web_middlewares.py", line 88, in impl
    return await handler(request)
  File "/usr/lib/python3.6/site-packages/hassio/api/security.py", line 48, in token_validation
    return await handler(request)
  File "/usr/lib/python3.6/site-packages/hassio/api/utils.py", line 33, in wrap_api
    answer = await method(api, *args, **kwargs)
  File "/usr/lib/python3.6/site-packages/hassio/addons/addon.py", line 607, in install
    if not await self.instance.install(self.last_version):
  File "/usr/lib/python3.6/site-packages/hassio/utils/__init__.py", line 25, in wrap_api
    return await method(api, *args, **kwargs)
  File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/lib/python3.6/site-packages/hassio/docker/addon.py", line 273, in _install
    return self._build(tag)
  File "/usr/lib/python3.6/site-packages/hassio/docker/addon.py", line 287, in _build
    **build_env.get_docker_args(tag))
  File "/usr/lib/python3.6/site-packages/docker/models/images.py", line 258, in build
    resp = self.client.api.build(**kwargs)
  File "/usr/lib/python3.6/site-packages/docker/api/build.py", line 162, in build
    path, exclude=exclude, dockerfile=dockerfile, gzip=gzip
  File "/usr/lib/python3.6/site-packages/docker/utils/build.py", line 31, in tar
    root=root, fileobj=fileobj, gzip=gzip, extra_files=extra_files
  File "/usr/lib/python3.6/site-packages/docker/utils/build.py", line 151, in create_archive
    fileobj = tempfile.NamedTemporaryFile()
  File "/usr/lib/python3.6/tempfile.py", line 540, in NamedTemporaryFile
    prefix, suffix, dir, output_type = _sanitize_params(prefix, suffix, dir)
  File "/usr/lib/python3.6/tempfile.py", line 130, in _sanitize_params
    dir = gettempdir()
  File "/usr/lib/python3.6/tempfile.py", line 296, in gettempdir
    tempdir = _get_default_tempdir()
  File "/usr/lib/python3.6/tempfile.py", line 231, in _get_default_tempdir
    dirlist)
FileNotFoundError: [Errno 2] No usable temporary directory found in ['/tmp', '/var/tmp', '/usr/tmp', '/']

How to solve this problem?

Thanks.

Not working on hassio.

I cannot seem to get any data coming through on my hassio install. Here is my config/log when i start the addon:

Starting RTL_433 with parameters:
MQTT Host = hassio.local
MQTT User =
MQTT Password =
MQTT Topic = Hassio/433/Honeywell
RTL_433 Protocol = 70
RTL_433 Frequency = 345000000
RTL_433 Gain = 0
RTL_433 Frequency Offset = 0
Registering protocol [1] "Honeywell Door/Window Sensor"
Registered 1 out of 102 device decoding protocols
Found 1 device(s)
trying device 0: Realtek, RTL2838UHIDIR, SN: 00000001
Detached kernel driver
Found Rafael Micro R820T tuner
Using device 0: Generic RTL2832U OEM
Exact sample rate is: 250000.000414 Hz
[R82XX] PLL not locked!
Sample rate set to 250000.
Bit detection level set to 0 (Auto).
Tuner gain set to Auto.
Reading samples in async mode...
Tuned to 345000000 Hz.
Allocating 15 zero-copy buffers
Failed to allocate zero-copy buffer for transfer 0
Falling back to buffers in userspace

I was able to use a separat pi running rasbian and I managed to get use the rtl software to receive data from my sensors so I know the hardware does function. I just dont know enough about it to figure out why the dongle will not work with Hassio. Also is there any way to see if the addon is receiving a wireless signal before it sends out mqtt data?

USB Claim interface error -6

In console I get this error, someone has this error, how can it be solved?

bash-5.0 # rtl_test
Found 1 device (s):
0: Realtek, RTL2838UHIDIR, SN: 00000001

Using device 0: Generic RTL2832U OEM
usb_claim_interface error -6
Failed to open rtlsdr device # 0.
bash-5.0 #

unable to get RTL_433 to MQTT Bridge to work with HAssio

Hi there, I have spent many hours trying to get this to work with no success. I have installed the RTL_433 to MQTT Bridge as per the instructions, when I attempt to get it to start I am getting the following log message
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
Starting RTL_433 with parameters:
MQTT Host = 10.110.10.5
MQTT User = mqtty
MQTT Password = *******
MQTT Topic = homeassistant/sensor/currentcost
RTL_433 Protocol = 100
RTL_433 Frequency = 433
RTL_433 Gain = 30
RTL_433 Frequency Offset = 350
rtl_433 version 20.02-145-gb091ab6 branch master at 202009071341 inputs file rtl_tcp RTL-SDR
Use -h for usage help and see https://triq.org/ for documentation.
Trying conf file at "rtl_433.conf"...
Trying conf file at "/root/.config/rtl_433/rtl_433.conf"...
Trying conf file at "/usr/local/etc/rtl_433/rtl_433.conf"...
Trying conf file at "/etc/rtl_433/rtl_433.conf"...
Registered 1 out of 166 device decoding protocols [ 100 ]
No supported devices found.
[cmd] /bin/ash exited 0
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.

Based on the above I can see that RTL_433 is unable to find the device as indicated by the highlighted text. When I run lsmod in a terminal session initially I can see both dvb_usb_rtl28xxu and dvb_usb_v2. This tells me that the device is at lease connected and recognized by the underlying operating system.
I issue the command sudo rmmod dvb_usb_rtl28xxu rtl2832 dvb_usb_v2 to un-block the SDR and run lsmod again and I can see these entries are now removed however I still get the same log output as above.

The log below is after running lsmod post rmmod. One issue which is a side issue for the moment is I am not able to persist changes or blacklist the dvb_usb_rtl28xxu etc, I can update the blacklist-rtl.conf but it doesn’t appear to have an effect, most likely because the file I am editing is not within the docker structure (my Linux and Docker skills are pretty average)

Module Size Used by Tainted: G
rfcomm 53248 4
nf_conntrack_netlink 40960 0
nfnetlink 16384 2 nf_conntrack_netlink
xfrm_user 36864 1
xfrm_algo 16384 1 xfrm_user
aes_arm_bs 20480 0
crypto_simd 16384 1 aes_arm_bs
cryptd 24576 1 crypto_simd
algif_skcipher 16384 0
af_alg 28672 1 algif_skcipher
bnep 20480 2
hci_uart 40960 1
btbcm 16384 1 hci_uart
serdev 20480 1 hci_uart
bluetooth 397312 31 rfcomm,bnep,hci_uart,btbcm
ecdh_generic 28672 1 bluetooth
sch_fq_codel 20480 7
evdev 24576 0
brcmfmac 319488 0
brcmutil 20480 1 brcmfmac
cfg80211 655360 1 brcmfmac
bcm2835_codec 36864 0
v4l2_mem2mem 24576 1 bcm2835_codec
rfkill 28672 4 bluetooth,cfg80211
bcm2835_v4l2 49152 0
bcm2835_mmal_vchiq 32768 2 bcm2835_codec,bcm2835_v4l2
videobuf2_vmalloc 16384 1 bcm2835_v4l2
videobuf2_dma_contig 20480 1 bcm2835_codec
videobuf2_memops 16384 2 videobuf2_vmalloc,videobuf2_dma_contig
videobuf2_v4l2 24576 3 bcm2835_codec,v4l2_mem2mem,bcm2835_v4l2
vc_sm_cma 36864 1 bcm2835_mmal_vchiq
videobuf2_common 45056 4 bcm2835_codec,v4l2_mem2mem,bcm2835_v4l2,videobuf2_v4l2
rpivid_mem 16384 0
snd_bcm2835 28672 4
snd_pcm 102400 2 snd_bcm2835
snd_timer 32768 2 snd_pcm
snd 77824 9 snd_bcm2835,snd_pcm,snd_timer
r820t 28672 0
raspberrypi_hwmon 16384 0
hwmon 16384 1 raspberrypi_hwmon
i2c_mux 16384 0
uio_pdrv_genirq 16384 0
uio 20480 1 uio_pdrv_genirq

So in an effort to prove that there is nothing wrong with the hardware, I have also run things up on a second Raspberry pi running Raspbian. I am able to successfully get rtl_433 working and publishing my MQTT server, however this is not ideal as I have other uses for the raspberry Pi I am using and would prefer to have it self contained in the Home Assistant environment.

I have also used the SD card that I created for my second Raspberry Pi after successfully getting rtl_433 working in the same hardware as I am using for Home Assistant. And can confirm that there are no issues with it working with the Home assistant hardware, so the issue defiantly appears to be within the home assistant software configuration its self.

As stated, I am not strong with Linux, so if its something obvious to you, its not obvious to me.
Thanks in advance.

dasher doesn't run

I tried to install the dasher plug-in for hass.io 0.64.6 but when I start it, I get this log:

starting version 3.2.4

[email protected] start /root/dasher
node app.js
warning: SIOCGIFADDR: en0: No such device - this may not actually work
Error: SIOCGIFHWADDR: No such device
at new PcapSession (/root/dasher/node_modules/pcap/pcap.js:49:39)
at Object.exports.createSession (/root/dasher/node_modules/pcap/pcap.js:123:12)
at create_session (/root/dasher/node_modules/node-dash-button/index.js:24:28)
at register (/root/dasher/node_modules/node-dash-button/index.js:47:24)
at new DasherButton (/root/dasher/lib/dasher.js:14:21)
at Object. (/root/dasher/app.js:8:16)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
Failed to create pcap session: couldn't find devices to listen on.
Try running with elevated privileges via 'sudo'
/root/dasher/node_modules/node-dash-button/index.js:28
throw new Error('Error: No devices to listen');
^
Error: Error: No devices to listen
at create_session (/root/dasher/node_modules/node-dash-button/index.js:28:15)
at register (/root/dasher/node_modules/node-dash-button/index.js:47:24)
at new DasherButton (/root/dasher/lib/dasher.js:14:21)
at Object. (/root/dasher/app.js:8:16)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Function.Module.runMain (module.js:676:10)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: node app.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2018-03-24T20_22_29_339Z-debug.log

`frequency` , `gain`, `frequency_offset` not detailed in readme - how to calculate?

This looks a great add-on and is my first foray into SDR, so I may be missing something basic. I bought an SDR specifically to use with currentcost.
When I follow the setup instructions it asks for protocol": 44 - I have set this to 44 as indicated for current cost.

The following are not mentioned in the readme: frequency , gain, frequency_offset and I am not sure what is required here.

I suspect I need to use the SDR device on another computer in order to scan and then find some details? I tried SSH into the docker container running on hassos, and ran rtl_433 -G but it looks like it can't get access to the SDR because it is already in use.

Any instruction appreciated.

Hassio failed to bouild add-on

Tried to start the addon on Hassio v0.58.1 - RPi 3
Got following error (Log from resin_supervisor)

17-12-03 17:14:52 INFO (SyncWorker_2) [hassio.dock.addon] Start build f3248fb7/armhf-addon-dasher:0.2
17-12-03 17:15:35 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/aiohttp/web_protocol.py", line 416, in start
resp = yield from self._request_handler(request)
File "/usr/lib/python3.6/site-packages/aiohttp/web.py", line 323, in _handle
resp = yield from handler(request)
File "/usr/lib/python3.6/site-packages/hassio/api/util.py", line 31, in wrap_api
answer = await method(api, *args, **kwargs)
File "/usr/lib/python3.6/site-packages/hassio/addons/addon.py", line 474, in install
if not await self.docker.install(self.last_version):
File "/usr/lib/python3.6/site-packages/hassio/dock/util.py", line 18, in wrap_api
return await method(api, *args, **kwargs)
File "/usr/lib/python3.6/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/lib/python3.6/site-packages/hassio/dock/addon.py", line 219, in _install
return self._build(tag)
File "/usr/lib/python3.6/site-packages/hassio/dock/addon.py", line 232, in _build
image = self.docker.images.build(**build_env.get_docker_args(tag))
File "/usr/lib/python3.6/site-packages/docker/models/images.py", line 179, in build
raise BuildError(chunk['error'])
docker.errors.BuildError: The command '/bin/sh -c cd /root/dasher && npm install' returned a non-zero code: 1

Async read stalled, exiting!

The addon is running on docker, hassio also on docker on ubuntu 19.04
I have this error since 2 weeks, it was working since about 6 months without any issues, the only thing i can see is the Hassio / home assistant updates. Anyone have a clue ?

Thanks !

Can not install

Hi,
while I try to install it I get the following error message:

18-01-23 20:32:52 INFO (SyncWorker_7) [hassio.docker.addon] Start build f3248fb7/amd64-addon-dasher:0.2 18-01-23 20:32:52 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/aiohttp/web_protocol.py", line 410, in start resp = yield from self._request_handler(request) File "/usr/lib/python3.6/site-packages/aiohttp/web.py", line 325, in _handle resp = yield from handler(request) File "/usr/lib/python3.6/site-packages/aiohttp/web_middlewares.py", line 93, in impl return (yield from handler(request)) File "/usr/lib/python3.6/site-packages/hassio/api/utils.py", line 33, in wrap_api answer = await method(api, *args, **kwargs) File "/usr/lib/python3.6/site-packages/hassio/addons/addon.py", line 524, in install if not await self.instance.install(self.last_version): File "/usr/lib/python3.6/site-packages/hassio/docker/utils.py", line 18, in wrap_api return await method(api, *args, **kwargs) File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run result = self.fn(*self.args, **self.kwargs) File "/usr/lib/python3.6/site-packages/hassio/docker/addon.py", line 263, in _install return self._build(tag) File "/usr/lib/python3.6/site-packages/hassio/docker/addon.py", line 276, in _build image = self._docker.images.build(**build_env.get_docker_args(tag)) File "/usr/lib/python3.6/site-packages/docker/models/images.py", line 179, in build raise BuildError(chunk['error']) docker.errors.BuildError: Please provide a source image with from prior to commit

Its a genereic Ubuntu Server:
Its the first thing I tried to install after a clean setup.
Current version | 0.61.1

`

Hostname ubuntuhassio
Type generic
OS GNU/Linux
Host Control version 0.3
Latest available version 0.3
`

Any idea what this could be ?
Installing on RPI3 works fine. (with the image of course)

Regards

Can't install this addon

I'm seeing these error messages in the log when trying to install this addon. My hass.io is running on Ubuntu Server 17.10.

17-11-21 19:46:57 INFO (MainThread) [hassio.addons.addon] Create Home-Assistant addon data folder /data/addons/data/f3248fb7_dasher
17-11-21 19:46:57 INFO (SyncWorker_8) [hassio.dock.addon] Start build f3248fb7/amd64-addon-dasher:0.2
17-11-21 19:46:57 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/aiohttp/web_protocol.py", line 416, in start
resp = yield from self._request_handler(request)
File "/usr/lib/python3.6/site-packages/aiohttp/web.py", line 323, in _handle
resp = yield from handler(request)
File "/usr/lib/python3.6/site-packages/hassio/api/util.py", line 31, in wrap_api
answer = await method(api, *args, **kwargs)
File "/usr/lib/python3.6/site-packages/hassio/addons/addon.py", line 474, in install
if not await self.docker.install(self.last_version):
File "/usr/lib/python3.6/site-packages/hassio/dock/util.py", line 18, in wrap_api
return await method(api, *args, **kwargs)
File "/usr/lib/python3.6/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/lib/python3.6/site-packages/hassio/dock/addon.py", line 219, in _install
return self._build(tag)
File "/usr/lib/python3.6/site-packages/hassio/dock/addon.py", line 232, in _build
image = self.docker.images.build(**build_env.get_docker_args(tag))
File "/usr/lib/python3.6/site-packages/docker/models/images.py", line 175, in build
raise BuildError(chunk['error'])
docker.errors.BuildError: Please provide a source image with from prior to commit

How can I fix this problem?

Thanks.

Starting up fails

The addon fails to start on Home Assistant 0.106.5

Error loading shared library librtlsdr.so.0: No such file or directory (needed by /usr/local/bin/rtl_433)
Error relocating /usr/local/bin/rtl_433: rtlsdr_get_device_count: symbol not found
Error relocating /usr/local/bin/rtl_433: rtlsdr_reset_buffer: symbol not found
Error relocating /usr/local/bin/rtl_433: rtlsdr_get_tuner_gains: symbol not found
Error relocating /usr/local/bin/rtl_433: rtlsdr_get_device_usb_strings: symbol not found
Error relocating /usr/local/bin/rtl_433: rtlsdr_set_tuner_gain_mode: symbol not found
Error relocating /usr/local/bin/rtl_433: rtlsdr_close: symbol not found
Error relocating /usr/local/bin/rtl_433: rtlsdr_get_device_name: symbol not found
Error relocating /usr/local/bin/rtl_433: rtlsdr_set_tuner_gain: symbol not found
Error relocating /usr/local/bin/rtl_433: rtlsdr_get_sample_rate: symbol not found
Error relocating /usr/local/bin/rtl_433: rtlsdr_read_async: symbol not found
Error relocating /usr/local/bin/rtl_433: rtlsdr_set_center_freq: symbol not found
Error relocating /usr/local/bin/rtl_433: rtlsdr_open: symbol not found
Error relocating /usr/local/bin/rtl_433: rtlsdr_set_sample_rate: symbol not found
Error relocating /usr/local/bin/rtl_433: rtlsdr_get_center_freq: symbol not found
Error relocating /usr/local/bin/rtl_433: rtlsdr_get_index_by_serial: symbol not found
Error relocating /usr/local/bin/rtl_433: rtlsdr_cancel_async: symbol not found
Error relocating /usr/local/bin/rtl_433: rtlsdr_set_freq_correction: symbol not found
[cmd] /bin/ash exited 127

Any ideas what could've happened?

rtl4332mqtt support for multiple devices?

First, thank you for the awesome rtl4332mqtt addon! I'm using it with an Ambient Weather F007TH Thermo-Hygrometer outdoors and it works great on our farm. I'm thinking of adding more sensors, but wanted to check if you know how easy it will be to adapt the rtl4332mqtt.sh script to handle multiple sensors before I go and makes the purchase. I suppose the mqtt sensor would need to somehow parse the single event steam into multiple sensors... or, rtl4332mqtt.sh could be modified to push events to multiple mqtt topics. I'm curious about your thoughts on this.

Latest Supervisor Update - 2021.02.5 - keeps this add-on from starting

The errors are:
21-02-08 22:23:48 WARNING (MainThread) [supervisor.addons.validate] Add-on config 'startup' with 'before' is deprecated. Please report this to the maintainer of RTL_433 to MQTT Bridge
21-02-08 22:23:48 WARNING (MainThread) [supervisor.addons.validate] Add-on config 'devices' use a deprecated format, the new format uses a list of paths only. Please report this to the maintainer of RTL_433 to MQTT Bridge
Can this be fixed?
thanks

rtl4332mqtt : Named pipe instead of reconnects?

The addon currently uses this combination to send each line to mqtt:

/usr/local/bin/rtl_433 -F json -R $PROTOCOL -f $FREQUENCY -g $GAIN -p $OFFSET | while read line
[...]
echo $line | /usr/bin/mosquitto_pub [...]

This works but causes a fork/exec on every single line that comes in.

My local script is heavily hacked modified, but basically I changed the script a bit to use this methodology:

  1. Create a named pipe:
mkfifo /tmp/messages.pool
  1. Fork off a process that tails the pipe and a mosquitto one that reads from it
    For the 'cat 0<> ' see https://unix.stackexchange.com/questions/392697/reading-a-named-pipe-tail-or-cat
function start_tailing() {
  cat 0<> /tmp/messages | /usr/bin/mosquitto_pub -h $MQTT_HOST -u $MQTT_USER -P $MQTT_PASS -i RTL_433 -r -l -t $MQTT_TOPIC                     
}
start_tailing &
  1. The blocking thing that iterates over each line and ultimately writes to the pipe:
echo $line > /tmp/messages.pool

That way we only fork/exec the mosquitto_pub process once rather than on every single line that comes in.

What do you think about that approach?

Can't install?

Call me a noob but this refuses to install in HA. Getting "Repostitory structure for master is not compliant"

Unable to install on hassio docker image.

Hi,

I have tried to install this on a new docker install of hassio runing on amd64 hardware.

The install starts then gives an error. I'm new to both docker and hassio and am not sure how/where to start debugging why the addon has failed to compile.

19-01-24 23:31:13 INFO (SyncWorker_19) [hassio.docker.addon] Start build f3248fb7/amd64-addon-rtl4332mqtt:0.2 19-01-24 23:31:23 ERROR (SyncWorker_19) [hassio.docker.addon] Can't build f3248fb7/amd64-addon-rtl4332mqtt:0.2: The command '/bin/sh -c apk add --no-cache --virtual build-deps alpine-sdk cmake git libusb-dev && mkdir /tmp/src && cd /tmp/src && git clone git://git.osmocom.org/rtl-sdr.git && mkdir /tmp/src/rtl-sdr/build && cd /tmp/src/rtl-sdr/build && cmake ../ -DINSTALL_UDEV_RULES=ON -DDETACH_KERNEL_DRIVER=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr/local && make && make install && chmod +s /usr/local/bin/rtl_* && cd /tmp/src/ && git clone https://github.com/merbanan/rtl_433 && cd rtl_433/ && mkdir build && cd build && cmake ../ && make && make install && apk del build-deps && rm -r /tmp/src && apk add --no-cache libusb mosquitto-clients jq' returned a non-zero code: 5

Above is the error given in the system log.

usb_open error -1

I am a bit confused i have everything setup but i get this error when i loads and advise would be great

usb_open error -1

Can not add repo to Supervisor

Hi, I get the following waring in the logs:
Can't read /data/addons/git/c2eea46b/sync/config.json: required key not provided @ data['arch']. Got None
The contents of the repo do not showup in the Hassio dashboard.
Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.