Energy Management in Home Assistant

Great stuff! Only at the moment I can’t add any of my entities for grid consumption or return to grid since I’ve custom sensors made using an API. In the dropdown list the sensors are not listed.

This new ‘Energy’ stuff looks cool!
Did take some effort - everything in my home is based around power (kW) rather than energy (kWh) so had some help to get the necessary sensors connected through an ‘integration’ sensor.

Would be cool to see power handled directly in future, avoiding that extra complication when getting set up - looking at some comments here, it seems to be a common barrier to easy use!

This seems to be the key - set up a new ‘integration’ sensor with your kW sensor as the source, and this new sensor should slot right into the Energy stuff!

This has nothing to do with your sensors, it is a bug. Refresh the page when you are on energy config panel and it should work.

1 Like

This is something I’m very interested in but there’s something I don’t quite understand. On my Energy page, the red-orange-green gauge that says “Returned to grid” does not show the same value as the Energy distribution card. I can confirm that the data in the Energy distribution card is correct because it shows the same data as my (template) sensors. Can anyone explain this or how the gauge is calculated? Also I don’t get any calculated costs even though I set prices but that’s not a big deal.

Some suggestions to make these awesome new features even better if you’ll take them:

  • Update energy view more than once per hour
  • Let us use template sensors
  • Include gas usage

Thank you for this awesome addition. This is what I’ve been trying to achieve for a long time!

[EDIT]
I noticed the gauge combines what I used from the grid and what I’ve returned. That’s fine but in that case I think the title is a bit misleading/unclear.

Not exactly the most critical thing, but is there a way to switch currency from Euros to USD?

@bra1n Yes:

Open your Home Assistant instance and show your general Home Assistant settings.

3 Likes

Is it possible that the standard HA SAJ integration (SAJ Solar Inverter - Home Assistant) is not yet compatible as solar production source in the energy dashboard?
I suppose that’s because the following is not yet added.

state_class: measurement
device_class: energy

Any idea how this can be added manually?

I’m not sure if I’ve got the correct options. The only options I have are for sensor.envoy_lifetime_energy_consumption and sensor.envoy_lifetime_energy_production. Not sure how that works with the Grid consumption and Return to grid options.

Has anyone got this working with their Enphase Envoy?

How did you get this to work? I have several integration sensors tracking kWh that I’ve been using for a few months, but they don’t show up in my Energy page. Maybe I have to make new ones for them to be picked up?

I have a really hard time believing someone like Bill Gates really cares about his carbon footprint… I mean the guy has a mansion in Washington that is over 66,000 square feet. I just hate when famous, rich people get put on a pedestal because they care “so much” for the environment, where you really know all they care about is #1 (themselves). They are just saving face to the media.

That said, cool additions. Because I am actually for reducing my carbon footprint :slight_smile:

3 Likes

I wish I could help more, but all I did was create these sensors with the source as a kW power sensor and they have shown up in the Energy integration!

4 Likes

I’m totaly lost, I can setup all the sensors: DSMR, Fronius, Shelly’s.
There are energy values kWh in each sensor, only the Energy screen stays empty.
Even if I wait for more than 3 hours…
The entity attributes are complete.
Please advice.

This appears to be targeted at people with grid-tied systems and I guess it is a great step forward for them. I hope development will soon make it useful for those who are off-grid and those who are using battery backup.

Kudos for the good works.

1 Like

hi i have a SolarEdge
it gives the data to Home assistant with SolarEdge modbus but I don’t get any data to the Energy management tool
does anyone have this working already?

SolarEdge Modbus is a custom integration, please request that with the custom integration author, as the integration needs to be adjusted to work with this.

Works fine with my Utility Meter integration. However I though, why keep that when this basically does the same.

So I found this thread Energy: Not showing the expected entities for consumption with instructions to add my “total energy” sensors:

homeassistant:
  customize_glob:
    sensor.<total consumption, returning & solar generated sensors>:
      last_reset: '1970-01-01T00:00:00+00:00'
      device_class: energy
      state_class: measurement

And yes, they showed up, so I could select them in the energy configuration. However nothing is showing up in the Energy panel now (i.e. empty graphs). How long to wait before stuff should show up? Until the next day?

Never mind, karma strikes again. As soon as I posted this. The first bar appeared :slight_smile:

2 Likes

I would not recommend that, especially not using globs, as it is not universal. Additionally, please make sure the entities do NOT reset with those values.

So how should I do it?

Add work into adding actual support to those integrations. Report those, or contributing to actually adding support for them.

1 Like