I found that looking into auto discovery that some of the flags are not mapped out for interlogix door/window contacts. I had to add below into main configuration.yaml file:
Be sure to use MQTT Explorer to view message traffic and topics.
I was then able to set up dashboards, floor plans, and automation/notifications from there. The benefit of manual addition in config is that we can control what is added into system. This way I am not adding sensors for every car that drives by.
Let me know what you think and how it works out. Would be nice to get auto discovery set up for interlogix door and window contacts.
I have been able to run rtl_433 with multiple config files to use two radios on different frequencies, however when I include the output to mqtt within each of these files, I get a connection error/failure as it sees the same client seeing a new connection. When I leave the output to mqtt option active in one of the two config files it works no issue.
I have tried creating a different user and password for each conf file but still does not work.
So I was able to find the issue to MQTT client connection issues above under another thread. If using multiple radios, the device line of the config file must be before the output line:
I had mine originally listed this way but in troubleshooting other issues these two lines ended up getting swapped in order (copied and pasted in wrong place) with the output before device. All is well and now receiving updates as desired.
I have Zigbee leak detectors, so I wouldn’t be working on this myself. But if someone does the work upstream in the rtl_433 project, it can be pulled into the addon. Glad you were able to get them added manually - can you post the message you crafted for discovery for the benefit of others?
That makes sense! I imagine it’s using the device number in the client ID. I’ll make a note to call that out specifically in the initial example file that’s created.
Greetings. I am using the rtl_433 add on without autodiscovery with my outside weather station and it works well with one problem.
The weather station is identified as a Cotech-367959 ID: 211. All the sensors are decoded except for “light_lux” and “uv”. This is a documented problem. One user has managed to decode the sensors by updating rtl_433 to a more recent release.
Looks like it is a problem with rtl_433 not understanding the weather station. Helpfully, the developers are looking at what can be done to improve the implementation.
I am having issues starting the rtl_433 add-on… here is the log:
[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.
/tmp/rtl_433_heredoc: line 1: GPRMC: unbound variable
[cmd] /run.sh exited 1
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
this was working last week, never really did anything with it and today I went to setup grafana and noticed I no longer have new data…and now I cannot even start the add-on. I had some issues with the config file getting deleted unless it was named “rtl_433.conf.template” … I deleted some other text files I had with different iterations of config from the /config/rtl_433/ folder and now just have the one in there that is 99% the example file. I tried removing the add-on and reinstalling it but still can’t get it working… any thoughts?
Another thing to test would be to rename your existing file to something like rtl_433.conf.disabled. Restart the addon, and it will create a stock config that should work out of the box. It’d be good to confirm it does for you.
I was hoping the GPRMC meant something to you… it was in the commented out section of the example config file. I am using the file editor add on. I think I got an EOL character error yesterday but added one which solved that issue.
I renamed the config file and then the log stated that it couldn’t find a config file and then exited… the log is identical except instead of the GPRMC line the error is:
cat: can't open '/config/rtl_433/*.conf.template': No such file or directory
I am on 0.2.3
then I started deleting a bunch of stuff from the example config, which is what I started with yesterday
Ah! That’s it. I didn’t realize there were any $ in the example config. On startup, the addon will see $GPRMC and try to replace it just like $user and the other mqtt host variables. This is probably something best handled with documentation improvements. I’ll see what I can do for the next release.
I don’t see a definitive answer in the thread, so apologies for a possible duplicate information. This might need to be put in the ‘official’ README on Github. I was able to setup the plugin to use two frequencies (aka multiple / double frequencies) to scan both the Acurite weather sensor and WH51 soil moisture meter. Here is a section I have added to my rtl_433.conf.template:
hop_interval 90
frequency 915.00M
frequency 433.92M
report_meta time:tz
The hop interval is a time in seconds between the switch. For some reason, you would see hopping in the rtl_433 log on HA right away only if you set it to 5 seconds.
[rtl_433] Tuned to 915.000MHz.
[rtl_433] Allocating 15 zero-copy buffers
[rtl_433] Tuned to 433.920MHz.
[rtl_433] Allocating 15 zero-copy buffers
[rtl_433] Tuned to 915.000MHz.
Other values result in the messages appearing eventually, so it might appear as if the hopping is not working (even though it does). WH51 reports every 70 seconds, so 90 second hop interval makes sure we scan it at least once every hop.
Note that I’ve also added ‘report_meta time:tz’ - I was seeing a lot of these errors in home-assistant.log:
2022-06-29 00:21:21 ERROR (MainThread) [homeassistant.util.logging] Exception in message_received when handling msg on 'rtl_433/9b13b3f4-rtl433/devices/Fineoffset-WH51/0ce86c/time': '2022-06-29 00:21:21'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/mqtt/debug_info.py", line 47, in wrapper
msg_callback(msg)
File "/usr/src/homeassistant/homeassistant/components/mqtt/sensor.py", line 304, in message_received
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 533, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 571, in _async_write_ha_state
state = self._stringify_state(available)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 539, in _stringify_state
if (state := self.state) is None:
File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 398, in state
raise ValueError(
ValueError: Invalid datetime: sensor.fineoffset_wh51_0ce86c_utc provides state '2022-06-29 00:21:21', which is missing timezone information