pbkhrv / rtl_433-hass-addons

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

Can't use protocols above 223 #158

Closed invisible999 closed 8 months ago

invisible999 commented 9 months ago

The problem

Hello everyone.

Given HAOS running on PI4. Everything working fine:

Home Assistant 2023.9.0
Supervisor 2023.09.2
Operating System 10.5
Frontend 20230906.1 - latest 

Installed RTL_433 repository from https://github.com/pbkhrv/rtl_433-hass-addons Installed RTL_433 add-on, rebooted the system. Everything comes back online, no errors in the supervisor log.

RTL_433 starts and this is the log output

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
Starting rtl_433 with rtl_433.conf...
[rtl_433] rtl_433 version 22.11 branch  at 202211191645 inputs file rtl_tcp RTL-SDR
[rtl_433] Use -h for usage help and see https://triq.org/ for documentation.
[rtl_433] Publishing MQTT data to core-mosquitto port 1883
[rtl_433] Publishing device info to MQTT topic "rtl_433/9b13b3f4-rtl433/devices[/type][/model][/subtype][/channel][/id]".
[rtl_433] Publishing events info to MQTT topic "rtl_433/9b13b3f4-rtl433/events".
[rtl_433] Publishing states info to MQTT topic "rtl_433/9b13b3f4-rtl433/states".
[rtl_433] Registered 176 out of 223 device decoding protocols [ 1-4 8 11-12 15-17 19-23 25-26 29-36 38-58 63 67-71 73-81 83-87 91-94 96-100 102-105 108-109 111-116 119 121 124-128 130-139 141-149 151-155 157-161 163-167 170-175 177-179 181-185 187-197 199 202 204-215 217-223 ]
[rtl_433] Detached kernel driver
[rtl_433] Found Rafael Micro R820T tuner
[rtl_433] Exact sample rate is: 250000.000414 Hz
[rtl_433] [R82XX] PLL not locked!
[rtl_433] Sample rate set to 250000 S/s.
[rtl_433] Tuner gain set to Auto.
[rtl_433] Tuned to 433.920MHz.
[rtl_433] Allocating 15 zero-copy buffers
[rtl_433] baseband_demod_FM: low pass filter for 250000 Hz at cutoff 25000 Hz, 40.0 us
[rtl_433] MQTT Connected...
[rtl_433] MQTT Connection established.

There is one file rtl_433.conf.template created at /config/rtl_433/ directory with following content:

# This is an empty template for configuring rtl_433. mqtt information will be
# automatically added. Create multiple files ending in '.conf.template' to
# manage multiple rtl_433 radios, being sure to set the 'device' setting. The
# device must be set before mqtt output lines.
# https://github.com/merbanan/rtl_433/blob/master/conf/rtl_433.example.conf

output mqtt://${host}:${port},user=${username},pass=${password},retain=${retain}
report_meta time:iso:usec:tz

# To keep the same topics when switching between the normal and edge versions,
# use this output line instead.
# output mqtt://${host}:${port},user=${username},pass=${password},retain=${retain},devices=rtl_433/9b13b3f4-rtl433/devices[/type][/model][/subtype][/channel][/id],events=rtl_433/9b13b3f4-rtl433/events,states=rtl_433/9b13b3f4-rtl433/states

# Uncomment the following line to also enable the default "table" output to the
# addon logs.
# output kv

# Disable TPMS sensors by default. These can cause an overwhelming number of
# devices and entities to show up in Home Assistant.
# This list is generated by running:
# rtl_433 -R help 2>&1 | grep -i tpms | sd '.*\[(\d+)\].*' 'protocol -/run.sh'
#    [59]  Steelmate TPMS
#    [60]  Schrader TPMS
#    [82]  Citroen TPMS
#    [88]  Toyota TPMS
#    [89]  Ford TPMS
#    [90]  Renault TPMS
#    [95]  Schrader TPMS EG53MA4, PA66GF35
#    [110]  PMV-107J (Toyota) TPMS
#    [123]* Jansite TPMS Model TY02S
#    [140]  Elantra2012 TPMS
#    [156]  Abarth 124 Spider TPMS
#    [168]  Schrader TPMS SMD3MA4 (Subaru)
#    [180]  Jansite TPMS Model Solar
#    [186]  Hyundai TPMS (VDO)
#    [201]  Unbranded SolarTPMS for trucks
#    [203]  Porsche Boxster/Cayman TPMS
protocol -59
protocol -60
protocol -82
protocol -88
protocol -89
protocol -90
protocol -95
protocol -110
protocol -123
protocol -140
protocol -156
protocol -168
protocol -180
protocol -186
protocol -201
protocol -203

Now, when I add a single line

protocol 245

Add-on stops loading and throws an error. It does not load if I enable any protocol above 223.

The fact that it does not allow any protocol above 223 is hintend by the log entry from the default config:

[rtl_433] Registered 176 out of 223 device decoding protocols

How do I make protocols above 223 work? I have ThermoPro TX-2C sensors that need according to the documentation's sample config file - the protocol 245

Sample config file, line 474 https://github.com/merbanan/rtl_433/blob/master/conf/rtl_433.example.conf

Thanks

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

Successful start of RTL_433 add-on
--
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
Starting rtl_433 with rtl_433.conf...
[rtl_433] rtl_433 version 22.11 branch  at 202211191645 inputs file rtl_tcp RTL-SDR
[rtl_433] Use -h for usage help and see https://triq.org/ for documentation.
[rtl_433] Publishing MQTT data to core-mosquitto port 1883
[rtl_433] Publishing device info to MQTT topic "rtl_433/9b13b3f4-rtl433/devices[/type][/model][/subtype][/channel][/id]".
[rtl_433] Publishing events info to MQTT topic "rtl_433/9b13b3f4-rtl433/events".
[rtl_433] Publishing states info to MQTT topic "rtl_433/9b13b3f4-rtl433/states".
[rtl_433] Registered 176 out of 223 device decoding protocols [ 1-4 8 11-12 15-17 19-23 25-26 29-36 38-58 63 67-71 73-81 83-87 91-94 96-100 102-105 108-109 111-116 119 121 124-128 130-139 141-149 151-155 157-161 163-167 170-175 177-179 181-185 187-197 199 202 204-215 217-223 ]
[rtl_433] Detached kernel driver
[rtl_433] Found Rafael Micro R820T tuner
[rtl_433] Exact sample rate is: 250000.000414 Hz
[rtl_433] [R82XX] PLL not locked!
[rtl_433] Sample rate set to 250000 S/s.
[rtl_433] Tuner gain set to Auto.
[rtl_433] Tuned to 433.920MHz.
[rtl_433] Allocating 15 zero-copy buffers
[rtl_433] baseband_demod_FM: low pass filter for 250000 Hz at cutoff 25000 Hz, 40.0 us
[rtl_433] MQTT Connected...
[rtl_433] MQTT Connection established.
--

Failed start of RTL_433
--
[rtl_433]     [129]* Eurochron temperature and humidity sensor
[rtl_433]     [130]  IKEA Sparsnas Energy Meter Monitor
[rtl_433]     [131]  Microchip HCS200/HCS300 KeeLoq Hopping Encoder based remotes
[rtl_433]     [132]  TFA Dostmann 30.3196 T/H outdoor sensor
[rtl_433]     [133]  Rubicson 48659 Thermometer
[rtl_433]     [134]  Holman Industries iWeather WS5029 weather station (newer PCM)
[rtl_433]     [135]  Philips outdoor temperature sensor (type AJ7010)
[rtl_433]     [136]  ESIC EMT7110 power meter
[rtl_433]     [137]  Globaltronics QUIGG GT-TMBBQ-05
[rtl_433]     [138]  Globaltronics GT-WT-03 Sensor
[rtl_433]     [139]  Norgo NGE101
[rtl_433]     [140]  Elantra2012 TPMS
[rtl_433]     [141]  Auriol HG02832, HG05124A-DCF, Rubicson 48957 temperature/humidity sensor
[rtl_433]     [142]  Fine Offset Electronics/ECOWITT WH51, SwitchDoc Labs SM23 Soil Moisture Sensor
[rtl_433]     [143]  Holman Industries iWeather WS5029 weather station (older PWM)
[rtl_433]     [144]  TBH weather sensor
[rtl_433]     [145]  WS2032 weather station
[rtl_433]     [146]  Auriol AFW2A1 temperature/humidity sensor
[rtl_433]     [147]  TFA Drop Rain Gauge 30.3233.01
[rtl_433]     [148]  DSC Security Contact (WS4945)
[rtl_433]     [149]  ERT Standard Consumption Message (SCM)
[rtl_433]     [150]* Klimalogg
[rtl_433]     [151]  Visonic powercode
[rtl_433]     [152]  Eurochron EFTH-800 temperature and humidity sensor
[rtl_433]     [153]  Cotech 36-7959, SwitchDocLabs FT020T wireless weather station with USB
[rtl_433]     [154]  Standard Consumption Message Plus (SCMplus)
[rtl_433]     [155]  Fine Offset Electronics WH1080/WH3080 Weather Station (FSK)
[rtl_433]     [156]  Abarth 124 Spider TPMS
[rtl_433]     [157]  Missil ML0757 weather station
[rtl_433]     [158]  Sharp SPC775 weather station
[rtl_433]     [159]  Insteon
[rtl_433]     [160]  ERT Interval Data Message (IDM)
[rtl_433]     [161]  ERT Interval Data Message (IDM) for Net Meters
[rtl_433]     [162]* ThermoPro-TX2 temperature sensor
[rtl_433]     [163]  Acurite 590TX Temperature with optional Humidity
[rtl_433]     [164]  Security+ 2.0 (Keyfob)
[rtl_433]     [165]  TFA Dostmann 30.3221.02 T/H Outdoor Sensor
[rtl_433]     [166]  LaCrosse Technology View LTV-WSDTH01 Breeze Pro Wind Sensor
[rtl_433]     [167]  Somfy RTS
[rtl_433]     [168]  Schrader TPMS SMD3MA4 (Subaru)
[rtl_433]     [169]* Nice Flor-s remote control for gates
[rtl_433]     [170]  LaCrosse Technology View LTV-WR1 Multi Sensor
[rtl_433]     [171]  LaCrosse Technology View LTV-TH Thermo/Hygro Sensor
[rtl_433]     [172]  Bresser Weather Center 6-in-1, 7-in-1 indoor, soil, new 5-in-1, 3-in-1 wind gauge, Froggit WH6000, Ventus C8488A
[rtl_433]     [173]  Bresser Weather Center 7-in-1
[rtl_433]     [174]  EcoDHOME Smart Socket and MCEE Solar monitor
[rtl_433]     [175]  LaCrosse Technology View LTV-R1, LTV-R3 Rainfall Gauge, LTV-W1/W2 Wind Sensor
[rtl_433]     [176]  BlueLine Innovations Power Cost Monitor
[rtl_433]     [177]  Burnhard BBQ thermometer
[rtl_433]     [178]  Security+ (Keyfob)
[rtl_433]     [179]  Cavius smoke, heat and water detector
[rtl_433]     [180]  Jansite TPMS Model Solar
[rtl_433]     [181]  Amazon Basics Meat Thermometer
[rtl_433]     [182]  TFA Marbella Pool Thermometer
[rtl_433]     [183]  Auriol AHFL temperature/humidity sensor
[rtl_433]     [184]  Auriol AFT 77 B2 temperature sensor
[rtl_433]     [185]  Honeywell CM921 Wireless Programmable Room Thermostat
[rtl_433]     [186]  Hyundai TPMS (VDO)
[rtl_433]     [187]  RojaFlex shutter and remote devices
[rtl_433]     [188]  Marlec Solar iBoost+ sensors
[rtl_433]     [189]  Somfy io-homecontrol
[rtl_433]     [190]  Ambient Weather WH31L (FineOffset WH57) Lightning-Strike sensor
[rtl_433]     [191]  Markisol, E-Motion, BOFU, Rollerhouse, BF-30x, BF-415 curtain remote
[rtl_433]     [192]  Govee Water Leak Detector H5054, Door Contact Sensor B5023
[rtl_433]     [193]  Clipsal CMR113 Cent-a-meter power meter
[rtl_433]     [194]  Inkbird ITH-20R temperature humidity sensor
[rtl_433]     [195]  RainPoint soil temperature and moisture sensor
[rtl_433]     [196]  Atech-WS308 temperature sensor
[rtl_433]     [197]  Acurite Grill/Meat Thermometer 01185M
[rtl_433]     [198]* EnOcean ERP1
[rtl_433]     [199]  Linear Megacode Garage/Gate Remotes
[rtl_433]     [200]* Auriol 4-LD5661 temperature/rain sensor
[rtl_433]     [201]  Unbranded SolarTPMS for trucks
[rtl_433]     [202]  Funkbus / Instafunk (Berker, Gira, Jung)
[rtl_433]     [203]  Porsche Boxster/Cayman TPMS
[rtl_433]     [204]  Jasco/GE Choice Alert Security Devices
[rtl_433]     [205]  Telldus weather station FT0385R sensors
[rtl_433]     [206]  LaCrosse TX34-IT rain gauge
[rtl_433]     [207]  SmartFire Proflame 2 remote control
[rtl_433]     [208]  AVE TPMS
[rtl_433]     [209]  SimpliSafe Gen 3 Home Security System
[rtl_433]     [210]  Yale HSA (Home Security Alarm), YES-Alarmkit
[rtl_433]     [211]  Regency Ceiling Fan Remote (-f 303.75M to 303.96M)
[rtl_433]     [212]  Renault 0435R TPMS
[rtl_433]     [213]  Fine Offset Electronics WS80 weather station
[rtl_433]     [214]  EMOS E6016 weatherstation with DCF77
[rtl_433]     [215]  Altronics X7064 temperature and humidity sensor
[rtl_433]     [216]* ANT and ANT+ devices
[rtl_433]     [217]  EMOS E6016 rain gauge
[rtl_433]     [218]  Microchip HCS200/HCS300 KeeLoq Hopping Encoder based remotes (FSK)
[rtl_433]     [219]  Fine Offset Electronics WH45 air quality sensor
[rtl_433]     [220]  Maverick XR-30 BBQ Sensor
[rtl_433]     [221]  Fine Offset Electronics WN34 temperature sensor
[rtl_433]     [222]  Rubicson Pool Thermometer 48942
[rtl_433]     [223]  Badger ORION water meter, 100kbps (-f 916450000 -s 1200000)
[rtl_433] 
[rtl_433] * Disabled by default, use -R n or a conf file to enable
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
---

Additional information

No response

unverbraucht commented 8 months ago

@invisible999 you should try the addon ending in "-next" from this repository. It is updated daily with the current rtl-433 version, which includes latest ids. Just uninstall the one without "next" and install the "next" one.