Example code will not work out-of-the-box with energy dashboard in HA
Opened this issue · 0 comments
lellky commented
In the example code we have the following
- state_topic: "EspSparsnasGateway/valuesV2"
name: "House energy usage"
unit_of_measurement: "kWh"
value_template: "{{ float(value_json.total) | round(0) }}"
icon: mdi:flash-circle
state_class: measurement
device_class: energy
But when this sensor is added as the "Grid consumption" sensor, home assistant complains about "The following entities have state class 'measurement' but 'last_reset' is missing".
Changing state_class
to total seems to (maybe) fix the problem.