Hello,
I feel a little bit confused about energy sensor.
I’m trying to use some energy data coming from a sensor put directly on my utility meter.
It delivers data via mqtt. It is already an energy measurement so I don’t need to integrate it.
So first I configured the sensor:
sensor:
- platform: mqtt
name: "total_energy"
state_topic: "1694498882.KWh"
unit_of_measurement: "KWh"
force_update: true
icon: mdi:transmission-tower
then, if I understood well, it need a last_reset
and some other attributes which I assigned using customize_glob
customize_glob:
"sensor.*_energy":
last_reset: '1970-01-01T00:00:00+00:00'
device_class: energy
state_class: measurement
Then I have asked HA to record the entity:
recorder:
auto_purge: true
purge_keep_days: 366
include:
entities:
- sensor.total_energy
Despite this I cannot see the entity in the drop-down menu of the energy dashboard to be picked up.
What am I missing?
Thanks a lot for your help