Git Product home page Git Product logo

Comments (9)

catsmanac avatar catsmanac commented on August 10, 2024

Hi @greggitter, any idea if anything happened around the time of the red circle? HA update, HA restart, power outage.......

The first day on the left in the screenshot is drawn from state data, while on the right of the red circle the data seems to be drawn from statistical data, the 1 hour intervals you refer too. Typically it's the other way around as state data is only stored for a limited number of days. So this could be something related to your HA internals as well (https://community.home-assistant.io/t/psa-2024-7-recorder-problems/746428).

To start with a simple check to validate if this is an envoy issue or not, first enable debug on the Envoy integration. Let it run for some 30 min and disable it again. The log file will download to your device. In the log file you can find the raw data that came from the envoy. Look for log entries like below. as you mentioned, individual entries should update every 5 minutes. And each inverter will probably change at a different moment in time

2024-06-06 08:08:03.049 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] Fetched (1 of 2) in 0.2 sec from https://10.1.6.126/api/v1/production/inverters: <Response [200 OK]>: [
  {
    "serialNumber": "987654321012",
    "lastReportDate": 1717657462,
    "devType": 1,
    "lastReportWatts": 99,
    "maxReportWatts": 294
  },
  {
    "serialNumber": "987654321013",
    "lastReportDate": 1717657013,
    "devType": 1,
    "lastReportWatts": 101,
    "maxReportWatts": 292
  },
  {

If no changes are visible resume the debug log to span at least 2 hours and check again.

from home_assistant_custom_envoy.

greggitter avatar greggitter commented on August 10, 2024

No, no power anomalies or anything...I verified the api inverter page and it is definitely the source of the aged data. Nothing wrong with HA. Just wondered if anyone else is now seeing this. Haven't heard back from Enphase yet. I think I'll try rebooting the Envoy tonight after the sun sets (or just before). Thx.

from home_assistant_custom_envoy.

catsmanac avatar catsmanac commented on August 10, 2024

I think I'll try rebooting the Envoy tonight after the sun sets (or just before).

Rebooting the envoy would be my next suggestion indeed.

So the inverter data is stale, but HA communication with the Envoy is just working fine?

from home_assistant_custom_envoy.

greggitter avatar greggitter commented on August 10, 2024

I think I'll try rebooting the Envoy tonight after the sun sets (or just before).

Rebooting the envoy would be my next suggestion indeed.

So the inverter data is stale, but HA communication with the Envoy is just working fine?

Yes, that's what I'm seeing...HA is updating my dashboard every 15 seconds with correct data regarding production and load, which is obviously more important for history tracking. Verifying the enphase api web page for inverters...that data appears stale and basically the same data HA retrieved.

An example of some inverters from the API now shows as below (local time is 10:13 AM); I'm not sure what format the timestamp is in, but the reported watts are closer to the 295 max number at the moment (direct sun) whereas HA is reporting one hour ago (stale) but matching the API data:

  {
    "serialNumber": "202245078365",
    "lastReportDate": 1722172923,
    "devType": 1,
    "lastReportWatts": 188,
    "maxReportWatts": 298
  },
  {
    "serialNumber": "202245088446",
    "lastReportDate": 1722172895,
    "devType": 1,
    "lastReportWatts": 192,
    "maxReportWatts": 298
  },
  {
    "serialNumber": "202245080469",
    "lastReportDate": 1722173044,
    "devType": 1,
    "lastReportWatts": 194,
    "maxReportWatts": 297
  },
  {
    "serialNumber": "202245086566",
    "lastReportDate": 1722172896,
    "devType": 1,
    "lastReportWatts": 193,
    "maxReportWatts": 299
  },
  {
    "serialNumber": "202245086568",
    "lastReportDate": 1722172924,
    "devType": 1,
    "lastReportWatts": 194,
    "maxReportWatts": 298
  },
  {
    "serialNumber": "202245088408",
    "lastReportDate": 1722172925,
    "devType": 1,
    "lastReportWatts": 194,
    "maxReportWatts": 299
  },```

EDIT: It just updated and 250w is the real time number.

from home_assistant_custom_envoy.

catsmanac avatar catsmanac commented on August 10, 2024

The timestamp is seconds since 1 January 1970
The first timestamp 1722172923 is 2024-07-28 13:22:03 in UTC. The second timestamp is 28 seconds earlier (2024-07-28 13:21:35), the third one 121 seconds later (2024-07-28 13:24:04) and so on.

If your local time is 10:13 and you are in utc-4 (based on the github email time) then the timestamp would be 09:22:03 am, so almost 50 min stale. Really curious indeed.

from home_assistant_custom_envoy.

greggitter avatar greggitter commented on August 10, 2024

@catsmanac thanks for deciphering and explaining.

EDIT: Rebooting Envoy had no effect.

from home_assistant_custom_envoy.

greggitter avatar greggitter commented on August 10, 2024

Spoke to enphase support, here's the summary of a 45+ minute call.

Site is fully operational and no issues found however we did discover that the API settings were changed to 1 hour reporting from five min and I have submitted a email to fix the issue.

It's been escalated to a different support team which can take up to 3 days but probably sooner I'm told. I'll update this post once resolved and close this thread.

from home_assistant_custom_envoy.

catsmanac avatar catsmanac commented on August 10, 2024

Thanks for the feedback @greggitter.

from home_assistant_custom_envoy.

greggitter avatar greggitter commented on August 10, 2024

I had to call Enphase again and after an hour the tech said he'd call back. I didn't expect this to get this resolved because this isn't something they deal with ever (at least this individual). He did call back and reported it resolved. There is a setting in the Enlighten Manager (on their end) called Polling Configuration and somehow, mine was changed on the 26th to 3600. The tech changed it back to 300 and it is operating per spec.

Documentation....

Get inverter production data

GET http://{IQ_Gateway_ip}/api/v1/production/inverters
Description: Returns the available microinverters' maximum and last reported active power
production information. This data will get updated once every five minutes.

https://enphase.com/download/accessing-iq-gateway-local-apis-or-local-ui-token-based-authentication (page 19)

from home_assistant_custom_envoy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.