Skip to content

Commit

Permalink
Add ESIC/SCMplus fields to rtl_433_mqtt_hass (#2114)
Browse files Browse the repository at this point in the history
Adding power meter energy/current/voltage values, as well as consumption from SCMplus meters (water/gas)
  • Loading branch information
stevieg2123 committed Jan 21, 2023
1 parent 7abfe03 commit e37fc5d
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions examples/rtl_433_mqtt_hass.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,42 @@
"state_class": "measurement"
}
},

"energy_kWh": {
"device_type": "sensor",
"object_suffix": "kwh",
"config": {
"device_class": "power",
"name": "Energy",
"unit_of_measurement": "kWh",
"value_template": "{{ value|float }}",
"state_class": "measurement"
}
},

"current_A": {
"device_type": "sensor",
"object_suffix": "A",
"config": {
"device_class": "power",
"name": "Current",
"unit_of_measurement": "A",
"value_template": "{{ value|float }}",
"state_class": "measurement"
}
},

"voltage_V": {
"device_type": "sensor",
"object_suffix": "V",
"config": {
"device_class": "power",
"name": "Voltage",
"unit_of_measurement": "V",
"value_template": "{{ value|float }}",
"state_class": "measurement"
}
},

"light_lux": {
"device_type": "sensor",
Expand Down Expand Up @@ -556,6 +592,16 @@
"state_class": "total_increasing",
}
},

"consumption": {
"device_type": "sensor",
"object_suffix": "consumption",
"config": {
"name": "SCMplus Consumption Value",
"value_template": "{{ value|int }}",
"state_class": "total_increasing",
}
},

"channel": {
"device_type": "device_automation",
Expand Down

0 comments on commit e37fc5d

Please sign in to comment.