Skip to content

Commit

Permalink
Add mqtt discovery files for BMETERS hydrodigit
Browse files Browse the repository at this point in the history
Now in correct subdirectory /mqtt_discovery
- pls delete the one directly in /wmbusmeters-ha-addon-edge from 29.10.2023
  • Loading branch information
lindsand authored Oct 31, 2023
1 parent ae916cb commit 8a8a2b8
Showing 1 changed file with 73 additions and 0 deletions.
73 changes: 73 additions & 0 deletions wmbusmeters-ha-addon-edge/mqtt_discovery/hydrodigit.json
Original file line number Diff line number Diff line change
@@ -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": "",
"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
}
}
}

0 comments on commit 8a8a2b8

Please sign in to comment.