diff --git a/examples/rtl_433_mqtt_hass.py b/examples/rtl_433_mqtt_hass.py index 6b06c73ac..ae141ac48 100755 --- a/examples/rtl_433_mqtt_hass.py +++ b/examples/rtl_433_mqtt_hass.py @@ -177,6 +177,19 @@ } }, + "battery": { + "device_type": "sensor", + "object_suffix": "B", + "config": { + "device_class": "battery", + "name": "Battery", + "unit_of_measurement": "%", + "value_template": "{{ value|int }}", + "state_class": "measurement", + "entity_category": "diagnostic" + } + }, + "battery_ok": { "device_type": "sensor", "object_suffix": "B",