home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.43k stars 30.67k forks source link

Enphase Envoy not reporting correct energy production anymore #111228

Closed benvddriessche closed 8 months ago

benvddriessche commented 8 months ago

The problem

My solar set up (enphase_envoy) was working fine at first. Both the energy dashboard and my custom dashboards would correctly report the daily total production.

From Feb 8 onwards, the reporting is way off because it stopped resetting to 0.

Screenshot 2024-02-23 131952

I have tried removing the entire Enphase integration and re-adding without luck. Reporting in my Enphase app is correct.

What version of Home Assistant Core has the issue?

core-2024.2.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Enphase Envoy

Link to integration documentation on our website

https://www.home-assistant.io/integrations/enphase_envoy

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 8 months ago

Hey there @bdraco, @cgarwood, @dgomes, @joostlek, @catsmanac, mind taking a look at this issue as it has been labeled with an integration (enphase_envoy) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `enphase_envoy` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign enphase_envoy` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


enphase_envoy documentation enphase_envoy source (message by IssueLinks)

catsmanac commented 8 months ago

Hi @benvddriessche, first obvious question is if anything happened on the 8th, like firmware or HA upgrades?

What type Envoy are you using: what firmware version, metered/non-metered, if metered do you have current transformers (CT) installed and configured and if so how many?

As for the issue, I've seen it reported before but don't have a reference to it readily available, need to look around if I can re-find it. Have you tried restarting the Envoy to see if that solves it?

For the Energy dashboard best use Envoy xxxx Lifetime energy production, the dashboard will compute daily values from it.

spock99 commented 8 months ago

I try that I been seeing the newer array with IQ7 stop showing daily and last 7 days older one with older envoy and older inverts. All use to work but month ago I notice this. Code on envoys are envoy-r D3.18.10 and IQ D7.3.621

catsmanac commented 8 months ago

Hi @spock99, envoy not reporting daily and last-7 days is a known issue when using Envoy-s metered without current transformers (CT) installed AND configured. Might that be the case for your IQ D7.3.621?

The older D3.18.10 should report as usual.

daanl63 commented 8 months ago

HI!,

I've the same issues since 16th Feb. Nothing changed HW or config wise at my home.

Maybe at Enphase (API) end?

I have Envoy-S-Metered-EU, 3 phase with correct CT measurements and a IQ Battery 3T.

Enphase app and Enlighten web site are all reporting correctly.

The integration sensors last reported stopped on Feb 16th. The energy dashboard still reports grid returns but the solar production widget is empty.

catsmanac commented 8 months ago

@daanl63, Feb16 was 2024.2.2 HA release date. Was it after this upgrade that all stopped working? Was your Envoy firmware upgraded?

@benvddriessche, @spock99 and @daanl63 can you share the envoy diagnostic report here (click download diagnostics on the envoy device, remove anything you don't want to share and then upload the file here in the box below the comment afbeelding

spock99 commented 8 months ago

config_entry-enphase_envoy-a9454489f44c2d1db706535f518d5ba2.json

daanl63 commented 8 months ago

I'm on 2024.1.4. But I'm ging to upgrade and check if the issue is still there. No firmware upgrade.

catsmanac commented 8 months ago

@spock99, the diagnostics file shows that you have an Envoy-metered with disabled current transformers (CT) and Todays and Last 7 days production don't report values.

In the file look for /production and underneath that for blocks of "type": "eim" which each have a "measurementType":. There's 3, one for (solar) production, 1 for (house) total-consumption and 1 for (grid) net-consumption. Note the "activeCount" rows right above it. These are 0 in all 3 cases. The Envoy is not aware of any CT. The data comes from the "type":"Inverters" part which only has current wNow and lifetime whlifetime values.

This is a known issue with metered without configured CT. If you want daily or last 7 day energy you can use the HA utility meter to get these values. For the Energy dashboard these are not needed, the lifetime value can be configured in the dashboard and that's even best practice with Envoy.

    "envoy_firmware": "7.3.621",
    "data": {
      "/production": {
        "production": [
          {
            "type": "inverters",
            "activeCount": 13,
            "readingTime": 1708965442,
            "wNow": 1085,
            "whLifetime": 489794
          },
          {
            "type": "eim",
            "activeCount": 0,
            "measurementType": "production",

            "type": "eim",
            "activeCount": 0,
            "measurementType": "total-consumption",

            "type": "eim",
            "activeCount": 0,
            "measurementType": "net-consumption",
spock99 commented 8 months ago

Interesting I do not remember these being 0 prior. I have made change few days to life production. I have never use CT as it much cheaper to read from the smart meter the in and out to the grid. I have an eagle that reports it.image

But now that set to lifetime your calculations of daily seem to be working.

Thanks

catsmanac commented 8 months ago

Interesting I do not remember these being 0 prior.

They may have had non-zero values as well, but we don't know what the values actually are.

benvddriessche commented 8 months ago

Sorry for my slow response. Here is my log file.

The issue persists for me. Similar to @daanl63, the system itself works fine and the Envoy app reports production correctly. I do not have a sensor for consumption tracking, other than what I can pull from my energy provider's API.

config_entry-enphase_envoy-8f33a35196168eff77ff7f5a6f17b94f.json

catsmanac commented 8 months ago

@benvddriessche, the daily production number comes straight from the Envoy. In the diagnostics file look for /production and underneath that for blocks of "type": "eim" which each have a "measurementType": There's 3, one for (solar) production, 1 for (house) total-consumption and 1 for (grid) net-consumption. Note the "activeCount" rows right above it. The production one is active and the consumptions ones not, as expected if no consumption CT is installed.

Looking at the production section, there's 57kWh whToday reported by the Envoy.

{
  "type": "eim",
  "activeCount": 1,
  "measurementType": "production",
  "readingTime": 1709320556,
  "wNow": 1537.489,
  "whLifetime": 675975.394,

  "whToday": 57127.394,
  "whLastSevenDays": 137789.394,

This issue has been mentioned elsewhere as well and fixes are unclear, it's Envoy behavior. We know that with Envoy metered, if no CT meter is installed today and last 7 days values are very often not correct or show unexpected values. It seems that this may be the case with only 1 CT installed as well. Maybe a restart of the Envoy may clear the offset, don't know.

Best use the lifetime value for the energy dashboard as that will yield better results. If you want a daily value, you can use a HA utility meter sourced from the lifetime production.

https://community.home-assistant.io/t/enphase-envoy-non-zero-todays-power-consumption/499997 https://support.enphase.com/s/question/0D5Ps00000Axen2KAB/metered-api-wrong-value

benvddriessche commented 8 months ago

Thank you @catsmanac! The energy dashboard was fixed by switching to the lifetime energy production sensor. I didn't need to use the offset fix you linked to. I can fix my custom dashboards from that base.