pbkhrv / rtl_433-hass-addons

Collection of Home Assistant add-ons that use rtl_433
217 stars 102 forks source link

No MQTT topic visible #185

Closed digitaltopo closed 4 months ago

digitaltopo commented 4 months ago

The problem

Following the setup guide to get things working with my usb rtl dongle... I'm pretty new to mqtt, RTL, and HA.

I have installed:

I've previously been able to successfully setup mqtt with another integration (frigate), and can successfully connect to MQTT explorer.

The issue is I'm not seeing any RTL related topics (rtl_433) in MQTT explorer, only two topics show up:

Everything is pretty much setup with defaults. I've also tried the next version of the addon and it's the same. What am I missing?

The only thing I noticed that wasn't reporting nominal was in the Mosquitto broker addon logs, where several lines indicated that clients attempting to connect were not authorized:

New connection from 172.30.34.5:56145 on port 1883.
Client 7bovq6UQZ3y3StyERq4gwb disconnected, not authorised.

I've attached the logs below.

Do I need to configure the user/pass for the rtl_433* addons (output in config)? The docs seemed to suggest I wouldn't need to if things were left stock.

Appreciate any help, thanks!

What addon are you reporting the bug for?

rtl_443

What is the addon version?

next & 0.5.1

What type of MQTT Broker are you using?

Home Assistant Mosquitto MQTT Broker

Addon log messages

The rtl_433 addon log:

Starting rtl_433 with rtl_433.conf...
[rtl_433] rtl_433 version 23.11-63-ga697a1a9 branch master at 202402290110 inputs file rtl_tcp RTL-SDR
[rtl_433] MQTT: Publishing MQTT data to core-mosquitto port 1883
[rtl_433] MQTT: Publishing device info to MQTT topic "rtl_433/9b13b3f4-rtl433-next/devices[/type][/model][/subtype][/channel][/id]".
[rtl_433] MQTT: Publishing events info to MQTT topic "rtl_433/9b13b3f4-rtl433-next/events".
[rtl_433] MQTT: Publishing states info to MQTT topic "rtl_433/9b13b3f4-rtl433-next/states".
[rtl_433] Use "-F log" if you want any messages, warnings, and errors in the console.
[rtl_433] Found Rafael Micro R820T tuner
[rtl_433] Exact sample rate is: 250000.000414 Hz
[rtl_433] [R82XX] PLL not locked!

The rtl_433_mqtt_autodiscovery addon log:

mqtt found in this Home Assistance instance.
Starting rtl_433_mqtt_hass.py...
[2024-02-29T00:39:36-0800] INFO:root:Discovering all devices
[2024-02-29T00:39:36-0800] INFO:root:MQTT connected: Connection Accepted.
[2024-02-29T00:39:36-0800] INFO:root:Subscribing to: rtl_433/+/events


### Additional information

_No response_
deviantintegral commented 4 months ago

Everything looks correct, and you shouldn't have to do anything manually to set up the username or password.

Can you try something simple - can you restart both the MQTT broker addon and the rtl_433 addon? Once or twice I've noticed that Home Assistant passes stale or invalid passwords in. But, I've never been able to reliably replicate.

digitaltopo commented 4 months ago

@deviantintegral Thanks for the suggestion!

I've tried that several times and no luck unfortunately.

Not sure what changed, but I reinstalled and this worked! Now seeing messages from rtl_433! Thank you!