From 2110134b34454f1ccf7ded9e7124dd486ac3ee26 Mon Sep 17 00:00:00 2001 From: Patrick Huesmann Date: Sun, 11 Sep 2022 19:06:40 +0200 Subject: [PATCH] ha-addon: Add discovery for qcaloric & lse_07_17 --- ha-addon/mqtt_discovery/lse_07_17.json | 49 ++++++++++++++++++++++++++ ha-addon/mqtt_discovery/qcaloric.json | 49 ++++++++++++++++++++++++++ 2 files changed, 98 insertions(+) create mode 100644 ha-addon/mqtt_discovery/lse_07_17.json create mode 100644 ha-addon/mqtt_discovery/qcaloric.json diff --git a/ha-addon/mqtt_discovery/lse_07_17.json b/ha-addon/mqtt_discovery/lse_07_17.json new file mode 100644 index 0000000..10775f4 --- /dev/null +++ b/ha-addon/mqtt_discovery/lse_07_17.json @@ -0,0 +1,49 @@ +{ + "total_m3": { + "component": "sensor", + "discovery_payload": { + "device": { + "identifiers": [ + "wmbusmeters_{id}" + ], + "manufacturer": "Qundis", + "model": "{driver}", + "name": "{name}", + "sw_version": "{id}" + }, + "enabled_by_default": true, + "json_attributes_topic": "wmbusmeters/{name}", + "state_class": "total", + "name": "{name} total", + "state_topic": "wmbusmeters/{name}", + "unique_id": "wmbusmeters_{id}_{attribute}", + "unit_of_measurement": "m³", + "value_template": "{{ value_json.{attribute} }}", + "icon": "mdi:gauge" + } + }, + "rssi_dbm": { + "component": "sensor", + "discovery_payload": { + "device": { + "identifiers": [ + "wmbusmeters_{id}" + ], + "manufacturer": "Qundis", + "model": "{driver}", + "name": "{name}", + "sw_version": "{id}" + }, + "enabled_by_default": false, + "entity_category": "diagnostic", + "device_class": "signal_strength", + "state_class": "measurement", + "name": "{name} rssi", + "state_topic": "wmbusmeters/{name}", + "unique_id": "wmbusmeters_{id}_{attribute}", + "unit_of_measurement": "dbm", + "value_template": "{{ value_json.{attribute} }}", + "icon": "mdi:signal" + } + } +} \ No newline at end of file diff --git a/ha-addon/mqtt_discovery/qcaloric.json b/ha-addon/mqtt_discovery/qcaloric.json new file mode 100644 index 0000000..b299913 --- /dev/null +++ b/ha-addon/mqtt_discovery/qcaloric.json @@ -0,0 +1,49 @@ +{ + "current_consumption_hca": { + "component": "sensor", + "discovery_payload": { + "device": { + "identifiers": [ + "wmbusmeters_{id}" + ], + "manufacturer": "Qundis", + "model": "{driver}", + "name": "{name}", + "sw_version": "{id}" + }, + "enabled_by_default": true, + "json_attributes_topic": "wmbusmeters/{name}", + "state_class": "total", + "name": "{name} heat cost total", + "state_topic": "wmbusmeters/{name}", + "unique_id": "wmbusmeters_{id}_{attribute}", + "unit_of_measurement": "hca", + "value_template": "{{ value_json.{attribute} }}", + "icon": "mdi:gauge" + } + }, + "rssi_dbm": { + "component": "sensor", + "discovery_payload": { + "device": { + "identifiers": [ + "wmbusmeters_{id}" + ], + "manufacturer": "Qundis", + "model": "{driver}", + "name": "{name}", + "sw_version": "{id}" + }, + "enabled_by_default": false, + "entity_category": "diagnostic", + "device_class": "signal_strength", + "state_class": "measurement", + "name": "{name} rssi", + "state_topic": "wmbusmeters/{name}", + "unique_id": "wmbusmeters_{id}_{attribute}", + "unit_of_measurement": "dbm", + "value_template": "{{ value_json.{attribute} }}", + "icon": "mdi:signal" + } + } +} \ No newline at end of file