Home Assistant Add-on: rtl_433 with MQTT auto discovery

I got the USB dongle recognised but its not recognising the config file. Its not outputting to mqtt

[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.
[19:40:02] WARNING: rtl_433 now supports automatic configuration and multiple radios. The rtl_433_conf_file option is deprecated. See the documentation for migration instructions.
Starting rtl_433 -c /config/-F "mqtt://192.168.1.115:1883,user=username,pass=password,retain=0,devices=rtl_433[/id]"
rtl_433 version 21.12-101-g9eec4611 branch  at 202204282249 inputs file rtl_tcp RTL-SDR
Use -h for usage help and see https://triq.org/ for documentation.
Failed to stat "/config/-F "mqtt://192.168.1.115:1883,user=user,pass=password,retain=0,devices=rtl_433[/id]""
Registered 186 out of 218 device decoding protocols [ 1-4 8 11-12 15-17 19-23 25-26 29-36 38-60 63 67-71 73-100 102-105 108-116 119 121 124-128 130-149 151-161 163-168 170-175 177-197 199 201-215 217-218 ]
Found Rafael Micro R820T tuner
Exact sample rate is: 250000.000414 Hz
[R82XX] PLL not locked!
Sample rate set to 250000 S/s.
Tuner gain set to Auto.
Tuned to 433.920MHz.
Allocating 15 zero-copy buffers
baseband_demod_FM: low pass filter for 250000 Hz at cutoff 25000 Hz, 40.0 us
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
time      : 2022-09-15 19:40:16
model     : Secplus-v1
id        : 0
ID_0      : 0
ID_1      : 0
Switch-ID : 0
Pin       : 0002
Fixed_Code: 118098
Rolling_Code: 626638848
bitbuffer_add_bit: Warning: row count limit (50 rows) reached

here its getting sensor data but its not reading my configuration

ID        : 117
Channel   : 3
Battery   : 0
Temperature: 79.50 F
Humidity  : 40 %
Integrity : CRC
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
time      : 2022-09-15 19:52:28
model     : inFactory-TH
ID        : 117
Channel   : 3
Battery   : 0
Temperature: 79.50 F
Humidity  : 40 %
Integrity : CRC
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

ok so i now realise i had to make a configuraiton file, which I have done. However:


output -F "mqtt://192.168.1.115:1883,user=USERNAME,pass=PASSWORD,retain=0,devices=rtl_433[/id]"

results in:

Invalid output format -F “mqtt://192.168.1.115:1883,user=USERNAME,pass=PASSWORD,retain=0,devices=rtl_433[/id]”

(i have redacted my username and password)

ok config shoul;d be:

output mqtt://192.168.1.115:1883,user=USERNAME,pass=PASSWORD,retain=0,devices=rtl_433[/id]

solved, hope this helps others.

1 Like