-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect current consumption #169
Comments
Can you add some detail. Is the top picture your HA Energy dashboard or is the Enphase App? Power is varying a lot and can change quickly. Are all sources from same timestamp? The integration is providing the Envoy data as is. Only the Battery Energy charged and discharged is calculated from the changes in battery capacity. In the diagnostics file you can find the raw data as received. Here is described how to get it. Feel free to share here if you would like for me to look at it. |
I can confirm that the Power Consumption includes the power going into the batteries. |
Seems logic as it is power generated but not leaving to the grid, so Envoy thinks it's in the (total) consumption which is assigned to the home. |
For me its not logic. Current Consumption is - as you see in the app - the power I need in the house at the moment. |
Did you validate the numbers with the diagnostic file to confirm these match the data from the Envoy? |
I checked and the integration shows exactly what the json says. Example from today: And the consumption value is shown in the dashboard. Is the JSON directly from the Gateway/Enphase or is it processed by the integration first? |
@superpower10 You compare the current readings |
As written here https://github.com/jrutski/home_assistant_envoy_d7_fw that values can‘t be correct. Enphase needs to open up and give information to the API. |
I assume you are referring to his notes, your link didn't work for me for some reason. And he is right and @Hoffmann77 confirmed that as well. When installing the consumption CT at grid entry point and the Production CT on the solar production, then house consumption will include what went into the battery. In Home assistant you can use the energy dashboard to handle this. Specify the The new Home Assistant Core Envoy integration has now battery support as well, so you may want to look at that one. It doesn't have multi phase yet, that is coming, not sure when. |
@catsmanac Do the changes that go to Core come from this plugin? |
@testuser7, not directly. The core one now uses a new python package pyenphase build by the new owners of the Home Assistant Envoy integration. So it's a 2 step process, pyenphase may need an update top collect the required data and then HA Integration needs an update to add the new entities. I created PR 105 for pyenphase to add the meters page to obtain phase count in use and that is added to pyenphase. Then there's a next PR 108 to add the phase values information to pyenphase based on the concept from this plugin, but using the pyenphase code. Then a subsequent PR will be created to also add the meters/readings page to get grid import/export. Technically HA Envoy integration can grab phase data with pyenphase version 1.14.0 that has the phase_count, but the PR 108 will make it available without the need to parse the raw JSON in HA Core. And haven't bothered yet about PR in HA Core Envoy integration to add phase and grid data, one step at a time. So long answer short, I'm forwarding the concepts, but code is implemented different as the pyenphase has a new codebase. |
Thank you for the detailed information :) |
@superpower10 to represent the consumption as detailed as in the Enphase app, an endpoint providing solar production, grid import/export and battery power is required. Currently the only known endpoint providing this data is "/ivp/livedata/status". I think it's the actual endpoint that gets used if you start the live view in your Enphase app. But it seems like there are some integrations that are specialized on capitalizing this endpoint https://github.com/vk2him/Enphase-Envoy-mqtt-json. Otherwise maybe you could use an integration providing battery power and subtract that value from the consumption value. But I'm not a home-assistant export so I'm not sure if that's possible. |
I have Envoy-S and connected with Enlighten Log-In. I tried both methods (JSON and no JSON)
The current consumption value are not even close to be correct:
It seems to sum the current power consumption with the power that goes into the battery.
The text was updated successfully, but these errors were encountered: