Merge pull request #7 from jpoles1/master

How-to for adding in to home assistant energy
This commit is contained in:
Bogdan Vlaicu
2021-08-11 11:01:13 +03:00
committed by GitHub
+26
View File
@@ -71,3 +71,29 @@ The addon will publish the latest meter read value and unit of measure to the fo
`electric_meter/value` `electric_meter/value`
`electric_meter/uom` `electric_meter/uom`
## Home Assistant Energy
To enable tracking of your power usage with the new (as of 08/2021) Home Assistant Energy panel, you must add the following to your `configuration.yaml`:
```yaml
homeassistant:
...
customize_glob:
sensor.*_energy:
last_reset: '1970-01-01T00:00:00+00:00'
device_class: energy
state_class: measurement
sensor:
...
- platform: mqtt
name: "ConEd Energy Usage"
unique_id: "coned_energy"
state_topic: "electric_meter/value"
unit_of_measurement: 'kWh'
device_class: energy
state_class: measurement
```