I am looking to use the emoncms integration with the new energy management feature, but the sensors created by the integration do not have the necessary attributes, which I think are,
state_class set to measurement along with the last_reset attribute.
Go to Configuration > Entity: Select wich entity you want to add in Energy Dashboard
Customize the entity with: state_class : measurement device_class : energy Other : Attribute name = last_reset Attribute Value = 1970-01-01T00:00:00+00:00
Check that the entity “Unit of measurement” is kWh.
Save
Return to Configuration> Energy and now you should find your feed in the list.
It’s same as append that in customize.yaml:
Example :
sensor.emoncms_energie_injectee:
friendly_name: Energie Injectée
state_class: measurement
device_class: energy
icon: mdi:home-export-outline
unit_of_measurement: kWh
last_reset: '1970-01-01T00:00:00+00:00'