From 8fc36ce3655ba00ec811a8d3e9e9b9488646a2e9 Mon Sep 17 00:00:00 2001 From: Mark Atwood Date: Sat, 25 Nov 2023 15:49:06 -0800 Subject: [PATCH] Update rtl_433_mqtt_hass.py to add supercap_V The fineoffset_ws90.c has a supercap in addition to the battery. This will likely start appearing in other devices as well. --- examples/rtl_433_mqtt_hass.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/examples/rtl_433_mqtt_hass.py b/examples/rtl_433_mqtt_hass.py index 7704d825a..65ef7ecbf 100755 --- a/examples/rtl_433_mqtt_hass.py +++ b/examples/rtl_433_mqtt_hass.py @@ -190,6 +190,19 @@ } }, + "supercap_V": { + "device_type": "sensor", + "object_suffix": "V", + "config": { + "device_class": "voltage", + "name": "Supercap V", + "unit_of_measurement": "V", + "value_template": "{{ float(value) }}", + "state_class": "measurement", + "entity_category": "diagnostic" + } + }, + "humidity": { "device_type": "sensor", "object_suffix": "H",