rtl_433 icon indicating copy to clipboard operation
rtl_433 copied to clipboard

Support for sensors with `state` keys

Open digitaltopo opened this issue 8 months ago • 13 comments

I have several sensors that show up fine on autodiscovery, but unfortunately the primary key used for the sensor is not in the list: https://github.com/pbkhrv/rtl_433-hass-addons/tree/main/rtl_433_mqtt_autodiscovery#what-sensorsdevices-does-this-script-support

My sensors look like this:

time = 2024-06-09 22:15:58
id = 309952
channel = 8
event = 128
state = open
contact_open = 1
reed_open = 0
alarm = 0
tamper = 0
battery_ok = 1
heartbeat = 0
mic = CRC

I'd like to request that the state key is added to the supported list. Other keys that would be helpful are contact_open, and reed_open, but those are generally redundant of state.

I'm not sure how to get these added, or what the best way to do this would be. I'm open to adding these manually as well, but I'm lacking a bit of understanding on how 'discovery' should work here. If I manually add mqtt sensors, do I not need to use autodiscovery (https://github.com/pbkhrv/rtl_433-hass-addons/tree/main/rtl_433_mqtt_autodiscovery#what-do-i-do-if-my-sensor-is-not-supported)?

Thanks for any help on this!

digitaltopo avatar Jun 10 '24 18:06 digitaltopo