Skip to content

Commit

Permalink
Merge pull request #48 from frennkie/add-pollucom-f
Browse files Browse the repository at this point in the history
Add mqtt auto discovery template for Pollucom F
  • Loading branch information
weetmuts authored Nov 23, 2024
2 parents 742e464 + fd038ac commit 8bfd72c
Showing 1 changed file with 191 additions and 0 deletions.
191 changes: 191 additions & 0 deletions wmbusmeters-ha-addon-edge/mqtt_discovery/pollucomf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,191 @@
{
"total_kwh": {
"component": "sensor",
"discovery_payload": {
"device": {
"identifiers": [
"wmbusmeters_{id}"
],
"manufacturer": "Sensus",
"model": "{driver}",
"name": "{name}",
"serial_number": "{id}"
},
"enabled_by_default": true,
"json_attributes_topic": "wmbusmeters/{name}",
"state_class": "total",
"device_class": "energy",
"name": "Total Energy",
"state_topic": "wmbusmeters/{name}",
"unique_id": "wmbusmeters_{id}_{attribute}",
"unit_of_measurement": "kWh",
"value_template": "{{ value_json.{attribute} }}",
"icon": "mdi:gauge"
}
},
"flow_m3h": {
"component": "sensor",
"discovery_payload": {
"device": {
"identifiers": [
"wmbusmeters_{id}"
],
"manufacturer": "Sensus",
"model": "{driver}",
"name": "{name}",
"serial_number": "{id}"
},
"enabled_by_default": true,
"json_attributes_topic": "wmbusmeters/{name}",
"state_class": "measurement",
"device_class": "water",
"name": "Flow",
"state_topic": "wmbusmeters/{name}",
"unique_id": "wmbusmeters_{id}_{attribute}",
"unit_of_measurement": "",
"value_template": "{{ value_json.{attribute} }}",
"icon": "mdi:gauge"
}
},
"total_m3": {
"component": "sensor",
"discovery_payload": {
"device": {
"identifiers": [
"wmbusmeters_{id}"
],
"manufacturer": "Sensus",
"model": "{driver}",
"name": "{name}",
"serial_number": "{id}"
},
"enabled_by_default": true,
"json_attributes_topic": "wmbusmeters/{name}",
"state_class": "total",
"device_class": "water",
"name": "Total Flow",
"state_topic": "wmbusmeters/{name}",
"unique_id": "wmbusmeters_{id}_{attribute}",
"unit_of_measurement": "",
"value_template": "{{ value_json.{attribute} }}",
"icon": "mdi:gauge"
}
},
"power_kw": {
"component": "sensor",
"discovery_payload": {
"device": {
"identifiers": [
"wmbusmeters_{id}"
],
"manufacturer": "Sensus",
"model": "{driver}",
"name": "{name}",
"serial_number": "{id}"
},
"enabled_by_default": true,
"json_attributes_topic": "wmbusmeters/{name}",
"state_class": "measurement",
"device_class": "power",
"name": "Power Consumption",
"state_topic": "wmbusmeters/{name}",
"unique_id": "wmbusmeters_{id}_{attribute}",
"unit_of_measurement": "kW",
"value_template": "{{ value_json.{attribute} }}",
"icon": "mdi:gauge"
}
},
"forward_c": {
"component": "sensor",
"discovery_payload": {
"device": {
"identifiers": [
"wmbusmeters_{id}"
],
"manufacturer": "Sensus",
"model": "{driver}",
"name": "{name}",
"serial_number": "{id}"
},
"enabled_by_default": true,
"json_attributes_topic": "wmbusmeters/{name}",
"state_class": "measurement",
"device_class": "temperature",
"name": "Temperature Forward",
"state_topic": "wmbusmeters/{name}",
"unique_id": "wmbusmeters_{id}_{attribute}",
"unit_of_measurement": "°C",
"value_template": "{{ value_json.{attribute} }}",
"icon": "mdi:temperature-celsius"
}
},
"return_c": {
"component": "sensor",
"discovery_payload": {
"device": {
"identifiers": [
"wmbusmeters_{id}"
],
"manufacturer": "Sensus",
"model": "{driver}",
"name": "{name}",
"serial_number": "{id}"
},
"enabled_by_default": true,
"json_attributes_topic": "wmbusmeters/{name}",
"state_class": "measurement",
"device_class": "temperature",
"name": "Temperature Return",
"state_topic": "wmbusmeters/{name}",
"unique_id": "wmbusmeters_{id}_{attribute}",
"unit_of_measurement": "°C",
"value_template": "{{ value_json.{attribute} }}",
"icon": "mdi:temperature-celsius"
}
},
"rssi_dbm": {
"component": "sensor",
"discovery_payload": {
"device": {
"identifiers": [
"wmbusmeters_{id}"
],
"manufacturer": "Sensus",
"model": "{driver}",
"name": "{name}",
"serial_number": "{id}"
},
"enabled_by_default": true,
"entity_category": "diagnostic",
"device_class": "signal_strength",
"state_class": "measurement",
"name": "Signal Strength",
"state_topic": "wmbusmeters/{name}",
"unique_id": "wmbusmeters_{id}_{attribute}",
"unit_of_measurement": "dBm",
"value_template": "{{ value_json.{attribute} }}",
"icon": "mdi:signal"
}
},
"timestamp": {
"component": "sensor",
"discovery_payload": {
"device": {
"identifiers": [
"wmbusmeters_{id}"
],
"manufacturer": "Sensus",
"model": "{driver}",
"name": "{name}",
"serial_number": "{id}"
},
"enabled_by_default": true,
"entity_category": "diagnostic",
"name": "Timestamp",
"state_topic": "wmbusmeters/{name}",
"unique_id": "wmbusmeters_{id}_{attribute}",
"value_template": "{{ value_json.{attribute} }}",
"icon": "mdi:calendar-clock"
}
}
}

0 comments on commit 8bfd72c

Please sign in to comment.