krbaker / hass-sunpower

Home Assistant SunPower Integration using the local installer ethernet interface.
Apache License 2.0
49 stars 22 forks source link

What is the process to make home assistant show daily/hourly enegry stats from this plugin? #44

Closed dan1916 closed 11 months ago

dan1916 commented 1 year ago

Hello,

I installed this plugin and it seems to be working good with my Sunpower PVS6. However, I could not find any documentation on how to configure the Home Assistant Energy dashboard so that it displays me daily/hourly consumption/production data generated by this plugin. Under the Energy dashboard config in Home Assistant, I need to select entities for Grid consumption, Return to grid and Solar production. I only see entities like KWH To Home and KWH To Grid which seems to be showing life-time values. And even then I do not know what to add for Solar production.

I would like to use the "Power" values reported by the two power meters - one ending with p and the other ending with c. Those values are the ones I see on my Sun Power app when I check the live data. Any guidance on how to do this?

heyhewmike commented 1 year ago

This is a screenshot of my setup. My home consumption is a total of actual use plus any power taken to recharge the battery. Any power provided from the battery to the house is not currently being tracked.

All of my values are accurate, relatively speaking. They are off by a few Kilowatts here or there based on when I am viewing the information. The Energy Dashboard is refreshed hourly.

From what I have deduced the Energy Dashboard uses the lifetime values and does math to calculate daily use and hourly use and the value increases, hourly & daily.

image

dan1916 commented 1 year ago

I see. So then the live Energy Distribution animation it shows on the right side is for the whole day right? It kind of shows it as live animation with values flowing in and out even though at night the solar is not producing anything. I would have liked the animation like Sun Power's app where it gives an option to see values flowing "right now" instead of per hour or per day basis.

kpfleming commented 1 year ago

If you want a 'live' power flow display, you can use this: https://github.com/ulic75/power-flow-card.

krbaker commented 1 year ago

@heyhewmike do you mind if I put that screenshot in the docs?

heyhewmike commented 1 year ago

@heyhewmike do you mind if I put that screenshot in the docs?

@krbaker Please feel free to.

msholly commented 11 months ago

@heyhewmike I added each of my solar panel's inverters. sunpower

And I get per-panel reports on my energy dashboard. sunpower-panels

My HA numbers tend to be off for the current day, but always appear to match up for historical data.

krbaker commented 11 months ago

added to documentation, closing