Home Assistant recorder not recording emoncms metrics

Hi Guys, I managed to get my metrics into Home Assistant and I’m trying to make some graphs. But none of the Emon values show up under the graph data. I’m assuming it’s something to do with the metadata of the sensors. I found some old posts about autodiscovery and editing YAML files. So is there a simple way to fix this?

How did you do that?

with the plugin:

But they are not “proper” sensors, lacking sensor class, unit etc.

Is your HA up to date? Have you migrated the integration from YAML to UI setup?

If you go into Developer ToolsStates and filter on your entities, you should see this

Have you set the Units of the Feeds in emoncms?

What card are you trying to use?

Works for me

Although I don’t think this card is the best card to use for this sort of thing.

What information are you trying to convey?

with recent version of the plugin, sensor class and units are available but you need to fix the unit in emoncms. If you dont, HA will not do that for you. Devices are not implemented. Dont know if it you make sense anyway….

1 Like

Hi guys, thank you for the replies. Mine doesn’t have the class (either state_class or device_class) at all:

And yes, it seems like most of my feeds are lacking units:

I’ve fixed that and I’ll have a go. Thank you!

Just for reference, re: “Long-term Statistics”
Sensor entity | Home Assistant Developer Docs

Might it be worth having a warning in the HA log for this on startup? Could it also warn the user when the configuration is done?

Did it solve it?

In this case, I believe the easiest process should be to update the online doc : Emoncms - Home Assistant , probably in the troubleshooting section.

Little things like that can be done “online” on the current branch

see Documentation | Home Assistant Developer Docs

Some integrations have a nice troubleshooting section which good be a source of inspiration for something that will retain attention for merging - cf Miele - Home Assistant

1 Like