Skip to content
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

[enphase] Reports 0 for all power/energy production values #16448

Open
jswim788 opened this issue Feb 23, 2024 · 5 comments
Open

[enphase] Reports 0 for all power/energy production values #16448

jswim788 opened this issue Feb 23, 2024 · 5 comments
Labels
bug An unexpected problem or unintended behavior of an add-on external bug A problem or unintended behavior of an external library

Comments

@jswim788
Copy link

jswim788 commented Feb 23, 2024

Expected Behavior

Should get power/energy production values as reported in the Enphase app, not 0's

Current Behavior

Getting 0's for all values: wattsNow, wattHoursToday, etc. from the bridge/envoy.

Note that I do get valid values from the inverters from the bridge/envoy, so the connection seems to be fine.

Possible Solution

According to this: https://support.enphase.com/s/question/0D53m00009INBskCAH/local-api-return-0-for-wh-counters-for-production-after-new-firmware-update the binding may need to use http://IP/ivp/pdm/generation to get the power values.

Steps to Reproduce (for Bugs)

Connect to an Enphase with the current firmware and get all power production values to be 0.

Log shows:

2024-02-22 16:02:17.016 [TRACE] [.internal.handler.EnvoyBridgeHandler] - Check connection
2024-02-22 16:02:17.468 [DEBUG] [nternal.handler.EnvoyEntrezConnector] - Home Response: ...

2024-02-22 16:02:17.469 [TRACE] [nternal.handler.EnvoyEntrezConnector] - Retrieving data from 'https://192.168.86.210/api/v1/production' with sessionID 'xxx'
2024-02-22 16:02:17.485 [TRACE] [hase.internal.handler.EnvoyConnector] - Envoy returned data for '/api/v1/production' with status 200: {
  "wattHoursToday": 0,
  "wattHoursSevenDays": 0,
  "wattHoursLifetime": 0,
  "wattsNow": 0
}

For the inverters we can see the data:

2024-02-22 16:02:17.569 [TRACE] [hase.internal.handler.EnvoyConnector] - Envoy returned data for '/api/v1/production/inverters' with status 200: [
  {
    "serialNumber": "121715021260",
    "lastReportDate": 1708646503,
    "devType": 1,
    "lastReportWatts": 72,
    "maxReportWatts": 244
  },

Context

Would like to collect, chart, and archive the Enphase power/energy production values.

Your Environment

OH 4.1.1
Enphase software version: D7.3.130 (91f206)

@jswim788 jswim788 added the bug An unexpected problem or unintended behavior of an add-on label Feb 23, 2024
@openhab-bot
Copy link
Collaborator

This issue has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/new-binding-enphase-envoy-solar-system-gateway/44449/140

@Hilbrand Hilbrand changed the title [Enphase Binding] Reports 0 for all power/energy production values [enphase] Reports 0 for all power/energy production values Mar 6, 2024
@lsiepel
Copy link
Contributor

lsiepel commented Jun 22, 2024

Same issue here, will fiddle with this to see if I can get it back to work.
would be nice if we can somehow detect which version to use.
We could use the old one as fallback, but rather detect it

@lsiepel
Copy link
Contributor

lsiepel commented Jun 28, 2024

Same issue here, will fiddle with this to see if I can get it back to work. would be nice if we can somehow detect which version to use. We could use the old one as fallback, but rather detect it

Finally had some time to look into my issue. Somehow the auto detection did not work and i had to manually set the hostname. So my issue seems different. FTR i have version R5.0.55

@lsiepel
Copy link
Contributor

lsiepel commented Aug 29, 2024

My envoy upgrade to version 8.2.4264 today and after reconfiguration of the thing, all works as expected.
File based config:

Bridge enphase:envoy:010489 "Envoy" [ serialNumber="xxxxx",hostname="xxxxx", autoJwt="true", username="xxxxx",password="xxxxx", siteName="xxxxx" ] {

using openHAB 4.2.1. The channels you mention are all updated as expected. Please confirm this issue can be closed.

@jswim788
Copy link
Author

Does not work for me. Enphase firmware is D7.3.621 (150e3e). I have no control over the firmware version, but I can say that with this firmware, the ivp/pdm/energy endpoint works as expected and documented. But that does not make it into the binding.

@lsiepel lsiepel added the external bug A problem or unintended behavior of an external library label Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of an add-on external bug A problem or unintended behavior of an external library
Projects
None yet
Development

No branches or pull requests

3 participants