Energy Management in Home Assistant

So there are two energy sensors there. Have you tried to add them as energy sources in ha and waited at least 2 hours for results?

If you are having problems adding them, what are the attributes of the sensors, the ones measuring in kWh?

1 Like

the energy sensors are 2 because one is from official shelly integration and one from mqtt integration (the Shelly EM is the same), added both in energy sources and now I erased also all Shelly Em data from it’s web page, I will wait and then see if in this way it works, I will give feedback if usefull for others.

Hi guys, love the new energy feature.
After hacking together the DSMR sensors on my ESPHome near the utiltiy meter it’s looking good.
That said, I swapped the tarif 1 and 2 sensors, and of course after fixing this HA got a huge spike in the readouts:

Is there any easy way to nuke this spike or reset the energy data?
Since I just started I’m fine with dropping all energy data so far.

UPDATE: after erasing shelly em data the energy bashboard begun to work, I now must find the right way to reset counters of mqtt tasmota plugs and esphome plugs if I want to start from everything with zero values, I will decide if this panel is usefull for me or not.

Why can’t I figure out where to turn on on enable the dashboard?

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…