diff --git a/wmbusmeters-ha-addon-edge/mqtt_discovery/hydrodigit.json b/wmbusmeters-ha-addon-edge/mqtt_discovery/hydrodigit.json new file mode 100644 index 0000000..2bced6a --- /dev/null +++ b/wmbusmeters-ha-addon-edge/mqtt_discovery/hydrodigit.json @@ -0,0 +1,73 @@ +{ + "total_m3": { + "component": "sensor", + "discovery_payload": { + "device": { + "identifiers": [ + "wmbusmeters_{id}" + ], + "manufacturer": "BMETERS", + "model": "{driver}", + "name": "{name}", + "hw_version": "{id}" + }, + "enabled_by_default": true, + "json_attributes_topic": "wmbusmeters/{name}", + "device_class": "water", + "state_class": "total_increasing", + "name": "Total", + "state_topic": "wmbusmeters/{name}", + "unique_id": "wmbusmeters_{id}_{attribute}", + "unit_of_measurement": "m³", + "value_template": "{{ value_json.{attribute} }}", + "icon": "mdi:gauge" + } + }, + + "timestamp": { + "component": "sensor", + "discovery_payload": { + "device": { + "identifiers": [ + "wmbusmeters_{id}" + ], + "manufacturer": "BMETERS", + "model": "{driver}", + "name": "{name}", + "hw_version": "{id}" + }, + "entity_category": "diagnostic", + "name": "Timestamp", + "unique_id": "wmbusmeters_{id}_{attribute}", + "state_topic": "wmbusmeters/{name}", + "value_template": "{{ value_json.{attribute} }}", + "icon": "mdi:calendar-clock", + "enabled_by_default": false + } + }, + + "rssi_dbm": { + "component": "sensor", + "discovery_payload": { + "device": { + "identifiers": [ + "wmbusmeters_{id}" + ], + "manufacturer": "BMETERS", + "model": "{driver}", + "name": "{name}", + "hw_version": "{id}" + }, + "entity_category": "diagnostic", + "name": "rssi", + "unique_id": "wmbusmeters_{id}_{attribute}", + "state_topic": "wmbusmeters/{name}", + "value_template": "{{ value_json.{attribute} }}", + "icon": "mdi:signal", + "unit_of_measurement": "dBm", + "device_class": "signal_strength", + "state_class": "measurement", + "enabled_by_default": true + } + } +}