pbkhrv / rtl_433-hass-addons

Collection of Home Assistant add-ons that use rtl_433
219 stars 103 forks source link

0.4.1 Stopped receiving #167

Closed sciurius closed 5 months ago

sciurius commented 9 months ago

The problem

After the upgrade to 0.4.1 the addon stopped receiving/transmitting information.

I've been using the rtl_433 addon for more than a 18 months with a USB2.0 DAB FM Radio DVB-T RTL2832U R820T2 RTL SDR TV Stick Dongle Digital USB TV HDTV Tuner Receiver IR Remote with Antenna (sic). The dongle is in the T620 that runs HomeAssistant, with an external antenna.

After the latest upgrade (a couple of days ago) the addon doesn't receive/transmit information. RTL_433 starts up, configures itself to the desired protocols and frequency, connects to the MQTT broker, and then nothing.

When I plug the dongle in another (linux) system and run rtl_433 with the same config it works fine.

What addon are you reporting the bug for?

rtl_443

What is the addon version?

0.4.1

What type of MQTT Broker are you using?

Other (details in the bug description)

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
[08:09:20] 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/rtl_433/rtl_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.

New defaults active, use "-Y classic -s 250k" for the old defaults!

Publishing MQTT data to mqtt.squirrel.nl port 1883
Publishing device info to MQTT topic "rtl_433/bresser51".
Registered 2 out of 223 device decoding protocols [ 172 119 ]
Found Rafael Micro R820T/2 tuner
Exact sample rate is: 250000.000414 Hz
Sample rate set to 250000 S/s.
Tuner gain set to Auto.
Tuned to 868.300MHz.
Allocating 15 zero-copy buffers
baseband_demod_FM: low pass filter for 250000 Hz at cutoff 50000 Hz, 20.0 us
MQTT Connected...

Additional information

Mosquitto add-on runs as an independent broker.

rtl_433 config:

gain          0
frequency     868.30M
hop_interval  600
ppm_error     0
sample_rate   250k
report_meta   time:tz
protocol 172 # Bresser Weather Center 6-in-1 (newer 5-in-1)
protocol 119 # Bresser Weather Center 5-in-1 (old)
output kv
output mqtt=http://mqtt.squirrel.nl,user=****,pass=****,retain=1,devices=rtl_433/bresser51
ap20132022 commented 8 months ago

Qualcuno ha idea di come posso installare la vecchia versione (downgrade) alla 0.4.0? Grazie mille.

I had restored the backup and it hadn't worked. Restored again, unplugged the dongle and ran it without the dongle. After connecting the dongle and restarting the add-on it started working again. Malfunction of the dongle must be excluded

similar to me. After restoring to 0.4.0 it didn't work. After reconnecting USB device, it works. I'm happy now. After 4 day sleepness, it works again.

pbabilas commented 8 months ago

for me not working. after unplug usb drive and plug it again it is not recognized until I reboot vm... ;(

found more logs:

lacrosse_breezepro_decode: Sync word not found
lacrosse_wr1_decode: Packet too long: 280 bits
lacrosse_th_decode: packet length: 280
lacrosse_th_decode: Sync word not found
lacrosse_breezepro_decode: Wrong packet length: 155
lacrosse_wr1_decode: packet length: 155
lacrosse_wr1_decode: Sync word not found
lacrosse_th_decode: Packet too short: 155 bits
Tuned to 433.920MHz.
Allocating 15 zero-copy buffers
pulse_slicer_pwm(): LaCrosse TX141-Bv2, TX141TH-Bv2, TX141-Bv3, TX141W, TX145wsdth, (TFA, ORIA) sensor
bitbuffer:: Number of rows: 4 
[00] {33} bd 12 64 8a 80 : 10111101 00010010 01100100 10001010 1
[01] {33} bd 12 64 8a 80 : 10111101 00010010 01100100 10001010 1
[02] {33} bd 12 64 8a 80 : 10111101 00010010 01100100 10001010 1
[03] {33} bd 12 64 8a 80 : 10111101 00010010 01100100 10001010 1
pulse_slicer_pwm(): LaCrosse TX141-Bv2, TX141TH-Bv2, TX141-Bv3, TX141W, TX145wsdth, (TFA, ORIA) sensor
bitbuffer:: Number of rows: 4 
[00] {33} bd 12 64 8a 80 : 10111101 00010010 01100100 10001010 1
[01] {33} bd 12 64 8a 80 : 10111101 00010010 01100100 10001010 1
[02] {33} bd 12 64 8a 80 : 10111101 00010010 01100100 10001010 1
[03] {33} bd 12 64 8a 80 : 10111101 00010010 01100100 10001010 1
Tuned to 868.300MHz.
Allocating 15 zero-copy buffers
lacrosse_breezepro_decode: Wrong packet length: 156
lacrosse_wr1_decode: packet length: 156
lacrosse_wr1_decode: Sync word not found
lacrosse_th_decode: packet length: 156
lacrosse_th_decode: Sync word not found
pulse_slicer_pcm(): Bresser Weather Center 5-in-1
bitbuffer:: Number of rows: 1 
[00] {279} 55 55 55 55 55 16 ea 74 43 bf de a7 e7 f7 ed ff 4b bd f5 ff 8b bc 40 21 58 18 08 12 00 b4 42 0a 00 00 00 
lacrosse_breezepro_decode: Sync word not found
lacrosse_wr1_decode: Packet too long: 279 bits
lacrosse_th_decode: packet length: 279
lacrosse_th_decode: Sync word not found
pulse_slicer_pcm(): Bresser Weather Center 5-in-1
bitbuffer:: Number of rows: 1 
[00] {281} 15 55 55 55 55 45 ba 9c d0 ef f9 b3 f9 9d fb 7f d2 ef 7d 7f e3 2f 10 06 4c 06 62 04 80 2d 10 82 80 00 00 00 
lacrosse_breezepro_decode: Sync word not found
lacrosse_wr1_decode: Packet too long: 281 bits
lacrosse_th_decode: packet length: 281
lacrosse_th_decode: Sync word not found
Tuned to 433.920MHz.
Allocating 15 zero-copy buffers
pulse_slicer_pwm(): LaCrosse TX141-Bv2, TX141TH-Bv2, TX141-Bv3, TX141W, TX145wsdth, (TFA, ORIA) sensor
bitbuffer:: Number of rows: 4 
[00] {33} bd 12 64 8a 80 : 10111101 00010010 01100100 10001010 1
[01] {33} bd 12 64 8a 80 : 10111101 00010010 01100100 10001010 1
[02] {33} bd 12 64 8a 80 : 10111101 00010010 01100100 10001010 1
[03] {33} bd 12 64 8a 80 : 10111101 00010010 01100100 10001010 1
pulse_slicer_pwm(): LaCrosse TX141-Bv2, TX141TH-Bv2, TX141-Bv3, TX141W, TX145wsdth, (TFA, ORIA) sensor
bitbuffer:: Number of rows: 4 
[00] {33} bd 12 64 8a 80 : 10111101 00010010 01100100 10001010 1
[01] {33} bd 12 64 8a 80 : 10111101 00010010 01100100 10001010 1
[02] {33} bd 12 64 8a 80 : 10111101 00010010 01100100 10001010 1
[03] {33} bd 12 64 8a 80 : 10111101 00010010 01100100 10001010 1
Tuned to 868.300MHz.
Allocating 15 zero-copy buffers
pulse_slicer_pcm(): Bresser Weather Center 5-in-1
bitbuffer:: Number of rows: 1 
[00] {280} 2a aa aa aa aa 8b 75 3a 21 df fd db f7 bb f7 3f a5 9e fa ff c5 de 20 02 24 08 44 08 c0 5a 61 05 00 00 00 
lacrosse_breezepro_decode: Sync word not found
lacrosse_wr1_decode: Packet too long: 280 bits
lacrosse_th_decode: packet length: 280
lacrosse_th_decode: Sync word not found
lacrosse_breezepro_decode: Wrong packet length: 156
lacrosse_wr1_decode: packet length: 156
lacrosse_wr1_decode: Sync word not found
lacrosse_th_decode: packet length: 156
lacrosse_th_decode: Sync word not found
pulse_slicer_pcm(): Bresser Weather Center 5-in-1
bitbuffer:: Number of rows: 1 
[00] {282} 0a aa aa aa aa a2 dd 4e 88 77 ff 76 fd ee fd cf e9 67 be bf f1 77 88 00 89 02 11 02 30 16 98 41 40 00 00 00 
lacrosse_breezepro_decode: Sync word not found
lacrosse_wr1_decode: Packet too long: 282 bits
lacrosse_th_decode: packet length: 282
lacrosse_th_decode: Sync word not found
Tuned to 433.920MHz.
Allocating 15 zero-copy buffers

It means that get signal but can't decode?

pbabilas commented 8 months ago

FUCK!! UPDATE - after this operation it really started to work again :D wow dunno what happen - I've already reattached usb to any usb slots but now it works. It's really impossible xD

deviantintegral commented 8 months ago

Is there anyone where some combination of rebooting or re-plugging the radio hasn't fixed this?

I also just came across https://github.com/merbanan/rtl_433/issues/2426 (which is blocking the next stable tag of rtl_433) and wonder if this is at all related.

deviantintegral commented 5 months ago

I think this issue is fixed with the release I just cut for those not using the next addon. Feel free to open a new issue if you are still having hangs.

Chartreusito commented 5 months ago

Just switched to stable release instead of next to find things working again, thanks !

pbabilas commented 5 months ago

Damn, after upgrade , failed to work again :( need to try replug again :(

Chartreusito commented 5 months ago

Damn, after upgrade , failed to work again :( need to try replug again :(

Are you using a mains powered usb hub ? If not, i definitely advice you to try with that, it draws a lot of power and a powered hub seems to help.

pbabilas commented 5 months ago

Damn, after upgrade , failed to work again :( need to try replug again :(

Are you using a mains powered usb hub ? If not, i definitely advice you to try with that, it draws a lot of power and a powered hub seems to help.

Wow, it's really fixed the issue. I've replug it to slot with more power and now it works. Thanks for advice!

pbabilas commented 5 months ago

Was happy to early ;( Replug it worked only on v 0.4, after upgrade failed again. Need to check eboot and replug radio way again on new and old version.

Chartreusito commented 5 months ago

Was happy to early ;( Replug it worked only on v 0.4, after upgrade failed again. Need to check eboot and replug radio way again on new and old version.

I'd recommend you to switch to one of these, i got one of second hand for 7€ : https://www.amazon.com/Sabrent-Individual-Switches-Included-HB-UMP3/dp/B00TPMEOYM/

It survived every reboot since.

pbabilas commented 5 months ago

my usb hub: https://www.tp-link.com/pl/home-networking/computer-accessory/uh700/ 1.5A is not enought?

Chartreusito commented 5 months ago

It should be. How many devices do you monitor ? If it's only one, i'd advice you to try and acquire a new USB dongle just to check if the problem is not the dongle itself.

pbabilas commented 5 months ago

It should be. How many devices do you monitor ? If it's only one, i'd advice you to try and acquire a new USB dongle just to check if the problem is not the dongle itself.

got 3 device, conbee 2 and zwave stick. Will try connect only radio dongle.

raffaelevall commented 5 months ago

I think I won't update since the old version works perfectly😁

pbabilas commented 5 months ago

I think I won't update since the old version works perfectly😁

perfect idea :)