Energy Management in Home Assistant

If you have the template sensors to provide only positive values of Power (in W / kW), one for import and one for export, then you just need to create integration sensors to convert those to Energy (Wh / kWh).

Been waiting for this for a while as the Energy Easy (custom) integration (Melbourne/Australia) is no longer maintained and not working well with current code.

Looking at the two hardware options I would use the Home Assistant Glow. There’s a local (standalone) solution that counts LED pulses but there’s no data on solar contribution. Not sure this is a shortcoming of the app or the smart meter doesn’t have that info to begin with.

How does Home Assistant know details on the solar side of a house? Do I need to hook into the inverter (using an SMA inverter in my home)?

Thanks! That made it easy to get my Envoy working with home assistant and the energy tab

1 Like

I’ve just learned how to setup 3 different tariffs and measure cost if you are interested.

I’ve also fixed the constant 4W overnight production issue that all enphase suffer from using another sensor.

1 Like

I would love to see how you went about yours, I was thinking I should probably take the time to set up a template/entity to better track my tariffs and maybe could also include the daily service charge in it too.

As the first 340kWh/month gets billed at a lower rate then the balance at a higher rate.

2 Likes

Hey,

I added yesterday the new Energy Management.

image

This morning I got -10.2kWh!

Is this an issue? I only get energy generation from pvoutput.

Any ideas?

Thanx
JayTee

Don’t attach daily production as source of data, attach total device production as source of production :slight_smile:

1 Like

I can confirm - after change the source of production from daily to total everything looks working ok :slight_smile:

1 Like

you know, where to get this value from pvoutput?

I don’t know what is your source of data, but You must set the source of production data as total device production, not daily production. Looks like HA compare value from previous day and current reading and when the value reset (daily production) show “-” as production.

Ive created a new topic as almost 400 posts is a bit excessive.

2 Likes

Anyone did also test it with plugwise-beta? + growatt (total) as the solar panels ?

I did add the total devices(in kWh)13 hours ago, still no graphs.

In the homeassistant db the value’s are in there…
I did delete the full line config (recorder: with maria db) and start using the default for now… still no luck.

In my case the growatt sensor is working fine:
sensor.growatt_home_total_lifetime_energy_output

unit_of_measurement: kWh
friendly_name: Growatt Solar Production
icon: mdi:solar-power
device_class: energy
state_class: measurement
last_reset: 1970-01-01T00:00:00+00:00

The solaredge modbus component got an update yesterday for energy module support.

2 Likes

I have only one energy consumption entity and no return, but the chart shows some produced energy. Can some one help me?

Has anyone got this to work with Tibber? Tibber doesn’t have a grid consumption entity, nor solar to house entity.

anyone having this issue?
I just see that my database gets corrupted all the time…


* Error while processing event StatisticsTask(start=datetime.datetime(2021, 8, 10, 8, 0, tzinfo=datetime.timezone.utc)): 'bar'
* Error while processing event StatisticsTask(start=datetime.datetime(2021, 8, 10, 9, 0, tzinfo=datetime.timezone.utc)): 'bar'

I did see before that some value’s where saved in the database with wrong time, like 2 hours before… the time is setup correct in the UI… i’m confused now

Unrecoverable sqlite3 database corruption detected: (sqlite3.DatabaseError) database disk image is malformed [SQL: INSERT INTO events (event_type, event_data, origin, time_fired, created, context_id, context_user_id, context_parent_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?)] [parameters: ('state_changed', '{}', 'LOCAL', '2021-08-10 10:23:39.057876', '2021-08-10 10:23:39.057876', 'e9a4d55971618119de025e4fba934071', None, None)] (Background on this error at: http://sqlalche.me/e/14/4xp6)

Thanks for help - I try to get this data now via mqtt :slight_smile:

thanks, so that device u used as solar right ?
But that device is a lifetime total device ?

I was using this device, maybe thats why it did not graph
sensor.my_plant_total_energy_today

Indeed, you need to use sensors that do NOT reset daily. Otherwise it won’t display proper stats.