Integrating emoncms with Home Assistant

Sorry folks, another new user here who is struggling with HA integration.

I’m following the guide here: Emoncms - Home Assistant

I’ve edited my configuration YAML in HA, I thought this was all that was needed but I can’t see the sensors?
image

I do receive these warnings when checking configuration prior to restarting HA, so clearly I’ve missed something, but I’m not sure what exactly…

Any advice appreciated.

I should add that I’ve done nothing else…I can see this page on GitHub, do I need to “add” this somehow to my HA instance?

Mine looks like this. You need to start with the “sensor:” on a new line and then “- platform” indented below it and, obviously, your emon IP address and key.

sensor:
  - platform: emoncms
    api_key: 7dexxxx
    url: http://10.0.1.111/emoncms
    id: 1
1 Like

And then things show up as “entities”

Ha, what a simpleton - thanks so much, YAML is now correctly entered and the config check is no longer complaining.

No feeds showing yet but I think I see a possible reason why (no feeds showing when I log onto local emonhp pi), so I’ll try and address that next!

Do I need to set up feeds within emoncms first, so that the entities show? Or should all entities show anyway when on the same network?

I was considering replicating the same sort of graph view that I already get from eomncms.org, but in a HA dashboard instead…not sure if that’s possible.

I haven’t set these up on Home Assistant yet (but I have looked at the graphs). Because it’s entities I think the integration with HA is going to be involved.

This is how I have it configured:

sensor:
  - platform: emoncms
    api_key: putyourapikeyhere
    url: http://emonpi.local
    id: 1
    scan_interval: 60
    include_only_feed_id:
      - 63
      - 71
      - 95
      - 74
      - 96
    sensor_names:
      63: "Emonpi Heat Energy Total"
      71: "Emonpi Heat Energy CH"
      95: "Emonpi Heat Energy DHW"
      74: "Emonpi Electrical Energy CH"
      96: "Emonpi Electrical Energy DHW"

The sensors all appear with the defined names.

1 Like

Thanks Andre.

Where are you getting the feed # from? Are you assigning that yourself when you create each feed on the emonpi?

They are autoassigned on feed creation. If you just hover over the feed in the feed list, it will show you the ID:

image

Got it, I can see them as entities now! Huge thanks to @Andre_K and @jchidley for helping out a dumb newbie :smiling_face_with_three_hearts:

1 Like

Oh damn. Is the sensor_names a new feature?
Emoncms - Home Assistant (home-assistant.io)
If not, how did I miss that?