pbkhrv / rtl_433-hass-addons

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

Nothing is being sent to MQTT broker #154

Closed bpbradley closed 10 months ago

bpbradley commented 10 months ago

The problem

I can't figure this out and have been pulling my hair out for hours.

I am trying to get a Govee H5054 leak detector working.

I have been able to verify that I am capturing data, but none of it is showing up in the auto discovery tool or MQTT Explorer.

I have tried a dozen different configurations, nothing has worked. I am using Mosquito. Here is my configuration file.

output      mqtt://192.168.1.78:1883,user=mqtt-user,pass=${pass},retain=1,devices=rtl_433[/model][/id],events=rtl_433[/model][/id]
output kv
frequency   433.92M
protocol    192

convert     si

I am not seeing the rtl_433 topic at all in MQTT Explorer. I see data coming through just fine on other topics (zigbee2mqtt for instance).

What am I missing?

What addon are you reporting the bug for?

rtl_443

What is the addon version?

0.4.0

What type of MQTT Broker are you using?

Home Assistant Mosquitto MQTT Broker

Addon log messages

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
[16:05:31] 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/govee_433.conf
rtl_433 version 22.11 branch  at 202211191645 inputs file rtl_tcp RTL-SDR
Use -h for usage help and see https://triq.org/ for documentation.
Registered 192 out of 223 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-223 ]
Detached kernel driver
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      : 2023-08-30 16:05:32
model     : Acurite-606TX id        : 62
Battery   : 1            Temperature: 23.5 C       Integrity : CHECKSUM
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
time      : 2023-08-30 16:05:40
model     : Govee_H5054  count     : 13            num_rows  : 27            len       : 48            data      : e0e9cfabd081  id        : 57577
subtype   : 53163        event     : 53163
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
time      : 2023-08-30 16:05:52
model     : LaCrosse-TX  id        : 47
Temperature: 26.3 C      Integrity : PARITY
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
time      : 2023-08-30 16:05:52
model     : LaCrosse-TX  id        : 47
Temperature: 26.3 C      Integrity : PARITY

Additional information

Regarding the warning on the logs, I was unable to actually see any data coming in without using a decoder conf, even though this sensor should be supported on protocol 192. Not sure why that is. I have tried both the default add on and the (next) version.

#govee_rm433.conf

decoder {
    name=Govee_H5054,
    modulation=OOK_PWM,
    short=440,
    long=940,
    reset=9000,
    gap=900,
    bits=48,
    get=id:@0:{16},
    get=subtype:@16:{16}:[1285:sensor 1028:sensor        1022:battery 999:battery    997:battery    950:battery    956:battery    964:battery    923:battery 514:heartbeat],
    get=event:@16:{16}:[  1285:button 1028:leak_detected 1022:empty   999:25_percent 997:50_percent 950:75_percent 956:75_percent 964:75_percent 923:full    514:heartbeat],
    unique
}
bpbradley commented 10 months ago

I ended up restoring a backup of home assistant entirely from before I installed the addon. Then I reinstalled it and it started working.

Before that I tried uninstalling and reinstalling but that didn't have an effect. I'm not sure what the issue was, but it's working now.