Energy Management in Home Assistant

If you aren’t using default_config: then you need to add energy: to your configuration.yaml file.

1 Like

I’m monitoring two micro grid inverters with a sonoff dual that is capable op measuring the energy.
If I compare what the sonoff reports to what home assistant is calculating homeassistant is reporting dubble the amount.

Today
sonoff = 1806 wh
homeassistant = 3720 wh

Yesterday
sonoff = 3119 wh
homeassistant = 6280 wh

I have something similar with an esp clamp setup I created myself but is not that accurate
SMA reports 7,94 kwh
Homeassistant = 18.3 kwh

Any way to redo the setup if you skip a step?

go to Configuration > Energy

Awesome thanks. For some reason I can’t seem to wrap my head around creating a returned to grid sensor.
Here is was I already have setup. Any ideas?

hey all,
loving the feature!

Not sure if just me or a bug?

when i had just 1 energy source (electricity) with a cost associated, it was showing up the daily £
however, since adding a 2nd source (gas) the £ no longer seems to show?

If i restart Home Assistant, all energy data goes out, lost. Why?

how can i do it?

The self consumed data, is there a sensor with this data so I can put it in a graph for like a month? Now I have to click through the days on the energy dashboard for it while it’s useful data.

Production (solar power) - Consumption (consumed power) = grid export
Consumption (consumed power) - Production (solar power) = grid import

see this link for how i solved it.
Might apply to you.

1 Like

You really should try to provide more info, given several posts by you that I’ve seen across the forum. What kind of sensors are those? Is that from a particular integration? Are those template sensors?

Anyone else having the feeling the energy dashboard is calculating the dubble

Today
sonoff = 1,22 kwh
homeassistant = 2.43 kwh

See also my conclusion from yesterday

Yesterday
sonoff = 3119 wh
homeassistant = 6280 wh

I have something similar with an esp clamp setup I created myself but is not that accurate
SMA reports 7,94 kwh
Homeassistant = 18.3 kwh

If i restart Home Assistant, all energy data goes out, lost. Why?

We heard you the first time.

Ok, sorry. I is a big problem to me. Lost all history energy data if i restart Home assistant linux machine…

Awesome new feature!

I do have issues pulling in data from the ‘DSMR Slimme Meter’ integration though. I got sensor.energy_consumption_tarif_1 and sensor.energy_consumption_tarif_2 getting updates in the entities from the integration and I have added them to the Energy Dashboard as consumption data.

Now, more then 24 hours later, there is still no data showing up in the Energy Dashboard. Dashboard shows message: “There is no data to show. It can take up to 2 hours for new data to arrive after you configure your energy dashboard.

You’re the only one to be seeing this afaik. Do some debugging.

1 Like

Are they included in your recorder configuration?

Nope they were not…Should have thought about that! Thanks for your reply!

Regarding the recorder settings. What purge settings are best for long term energy monitoring, so that you are able to compare yearly energy usages?