Open soul4soul opened 5 months ago
Tried to do a little investigating into this myself. So I found how kwh to gird and kwh to home are set. https://github.com/krbaker/hass-sunpower/blob/main/custom_components/sunpower/const.py#L353-L367
Looking at the output I shared above my neg_ltea_3phsum_kwh
is always 0 but comparing my output to those posted by others and the sample output it almost looks like neg_ltea_3phsum_kwh equals the production meter net_ltea_3phsum_kwh and that pos_ltea_3phsum_kwh equals consumption meter net_ltea_3phsum_kwh. Those fields map to the meters lifetime power so I updated HA to use those fields.
At least I see consumption and production now but the energy distribution for the day, self consumed solar, and self-sufficiency charts now don't work. HA things all solar energy is sent to grid and then all energy comes from the grid. Overall seems like a step in the right direction but still not working as expected.
Do you not have a value under your Consumption sensor that details out KWH to the home and KWH to the grid?
those are the values i use to set grid and return to grid values.
as for production i pull the lifetime power production from the production device.
KWH to grid always shows 0 for me.
Also the sunpower app works fine and shows energy going back to the grid.
Set up this integration, solar panel data is coming in fine. total solar production is fine but back to grid and home energy usage aren't being calculated correctly in HA.
HA Energy Config. I do noticed both devices end with a c but they are the only options I have.
In FAQs I see you wrote
Is this one of those issues?
Relevant output of deviclist command