Closed osmeest closed 2 months ago
Can you post the rtl_433.conf.template
file?
Sure! Here it is (gzipped to please the attach file function): rtl_433.conf.template.gz
I've tried uninstalling & reinstalling the add-on but that did not help. The log still shows the same message about mqtt not being available (although it is since it works for my AI-on-the-edge electricity counter reader and for Z2M).
It looks good. And, I realized that since your error is about mqtt, that check happens before even trying to start rtl_433.
Do you have https://github.com/hassio-addons/addon-ssh installed? If not, can you add it, connect to the terminal, and run this, which will create and run test.sh
:
cat > test.sh <<EOD
#!/usr/bin/with-contenv bashio
set -x
bashio::services.available "mqtt" && echo "MQTT is available"
bashio::services "mqtt" "host"
EOD
chmod +x test.sh
./test.sh
You should get a bunch of output. If you don't see "MQTT is available" and all of the connection info, then something is wrong with your MQTT addon not showing up in other addons.
If you do see info, please share it (but also redact any passwords!).
Thanks for the test script.
In the output, I found an error instead of usable information:
++++ curl --silent --show-error --write-out '\n%{http_code}' --request GET -H 'Authorization: Bearer <some_hex_hash>' -H 'Content-Type: application/json' -d '{}' http://supervisor/services/mqtt +++ response='{"result":"error","message":"Service not enabled"} 400'
Googling this error, I saw some messages that seems to imply that there could a problem when mosquito is started on boot. I restarted Mosquitto add-on and then the script reported "MQTT available".
I did a full system reboot and after that, the script still says "MQTT is available". I guess something must have gone wild during one of the component upgrades. Anyway, it is all working fine now. Thanks for the support !
The problem
I'm using a HomeAssistant Blue running under HA OS 11.1, with Supervisor 2024.04.0 and Core 2024.1.5. rtl_433 0.5.1 add-on is installed, together with the Autodiscovery add-on and Mosquitto 6.4.0. Mosquitto broker is also used with Zigbee2Mqtt and both work nicely together.
I just discovered that rtl_433 add-on does not remain running anymore. It starts but soon after, it stops. The log gives:
Just noticed the "/tmp/rtl_433_heredoc: line 1: host: unbound variable" error... Unexpected, since I'm using the most basic configuration.
In the add-on config directory, there is a config template (which I don't remember having put by myself). When I set the config file option with the name of the config template, I get:
And in that case, the add-on remains active. However, when a message is received on the SDR, the update doesn't reach the Mosquitto broker.
Since the path given is not correct, I also tried with rtl_433/rtl_433.conf.template as the rtl433_conf_file in the configuration but that works as badly as without any filename.
The conf.template has:
When the .conf.template is removed, the add-on logs: cat: can't open '/config/rtl_433/*.conf.template': No such file or directory
What addon are you reporting the bug for?
rtl_443
What is the addon version?
0.5.1
What type of MQTT Broker are you using?
Home Assistant Mosquitto MQTT Broker
Addon log messages
Additional information
No response