Make emoncns feeds compatable with Energy Management


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.

Any help / tips?


Use customize to add the attributes.

Thanks, that’s the approach I’ve taken.

You should also open an issue so it gets fixed.

Please could you share your working config? In the same boat… Thanks!!

An easy way to add feed in Energy Dashboard:

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.

Return to Configuration> Energy and now you should find your feed in the list.

It’s same as append that in customize.yaml:
Example :

  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'

Sorry to drag this one back up. I’d like to do the same, but can I ask how people got around the emoncms integration not having a unique ID? if I try to use the ‘customize’ UI I’m unable to because of the reasons listed in This entity does not have a unique ID? - Home Assistant (

Is there a manual workaround I’m missing? Thanks.

Same question here 2 years later. Any workaround or fix?