briancmpbll / home_assistant_custom_envoy

177 stars 77 forks source link

QUESTION on split phase mode and multiphase production data #171

Closed catsmanac closed 8 months ago

catsmanac commented 10 months ago

While working on adding multi-phase support to the new HA Core I hit some issues with CT Meter setup in split phaseMode with 2 phases.

"phaseMode": "split", "phaseCount": 2,

The production data does not include data for the 2 phases. Based on the phasecount of 2 one would expect data for the 2 phases like with phaseMode Three. I'm not familiar with split phase use as that is used in US and not here in EU. I could be the test file came from some other Envoy.

Anyone experience with Split phase mode and Envoy metered with installed meters? If so would you be willing to share the result of

  1. https://envoy/ivp/meters
  2. https://envoy/production

Thanks

wittelw commented 10 months ago

for https://envoy.lan/ivp/meters I get:

[
    {
        "eid": *****3328,
        "state": "enabled",
        "measurementType": "production",
        "phaseMode": "split",
        "phaseCount": 2,
        "meteringStatus": "normal",
        "statusFlags": []
    },
    {
        "eid": *****3584,
        "state": "disabled",
        "measurementType": "net-consumption",
        "phaseMode": "split",
        "phaseCount": 2,
        "meteringStatus": "normal",
        "statusFlags": []
    }
]

but when I go to https://envoy.lan/production I get an enphase Enlighten HTML page. However Home Assistant energy dashboard seems to be displaying what is expected for solar production (during daylight hours).

The Envoy is: Part Number 800-00647-r09 Software Version D7.3.130 (91f206) Software Build Date 22 Jun, 2023 2:43 AM

I'm using a browser and don't know how to connect with wget (authentication errors). Also, I did this after sunset (US Pacific Standard Time 6pm), so there is no production at this time. Also, this Envoy only measures solar output. It does not have any current transformers on the L1 L2 power lines coming in through the power company meter. If I should be able to get production with this setup, let me know and I'll try again.

catsmanac commented 10 months ago

Thanks for your help @wittelw, could you try /production.json and /ivp/meters/readings instead?

Other option is to download the diagnostic file for the Envoy (on the settings /entities.../devices envoy device page in HA), rename it to a txt, clean it as needed and post here. The envoy_info section in the file has all the replies returned by the Envoy in the last scan.

I'm trying to understand if the readings will actually report data for 2 phases when in split phaseMode or just the combined measurement without details about the 2 phases. Are the solar panels splits over the 2 phases and measured by 2 ct, or by just one? I'm asking as I'm forwarding the multiphase support from here to the new HA Core integration. When working with some data files they have, these reported split phasemode, but the details for the phases where missing and I'm wondering if that is always the case.

wittelw commented 10 months ago

Thanks for the additional details @catsmanac. I'm not sure if there are one or two transformers as I have never opened the box, but the microinverters are IQ8PLUS SKU:IQPLUS-72-2-US (from the Android Enlighten app). And the IQ Gateway is SKU:X-IQ-AM1-240-4 and connected to both L1 and L2 (220V breaker across both phases in the building's breaker panel). So there are likely two transformers. Here are the new reports:

https://envoy.lan/production.json

{
    "production": [
        {
            "type": "inverters",
            "activeCount": 12,
            "readingTime": 0,
            "wNow": 0,
            "whLifetime": 475876
        },
        {
            "type": "eim",
            "activeCount": 1,
            "measurementType": "production",
            "readingTime": 1699792497,
            "wNow": 0,
            "whLifetime": 8780532.004,
            "varhLeadLifetime": 97106.801,
            "varhLagLifetime": 1607759.342,
            "vahLifetime": 11239674.389,
            "rmsCurrent": 2.073,
            "rmsVoltage": 240.2,
            "reactPwr": 240.508,
            "apprntPwr": 248.911,
            "pwrFactor": 0,
            "whToday": 1.004,
            "whLastSevenDays": 95208.004,
            "vahToday": 1140.389,
            "varhLeadToday": 0.801,
            "varhLagToday": 1104.342
        }
    ],
    "consumption": [
        {
            "type": "eim",
            "activeCount": 0,
            "measurementType": "total-consumption",
            "readingTime": 1699792497,
            "wNow": 0,
            "whLifetime": 8780477.827,
            "varhLeadLifetime": 97106.801,
            "varhLagLifetime": 1607759.343,
            "vahLifetime": 0.113,
            "rmsCurrent": 2.402,
            "rmsVoltage": 240.226,
            "reactPwr": -240.508,
            "apprntPwr": 577.025,
            "pwrFactor": 0,
            "whToday": 8780477.827,
            "whLastSevenDays": 8780477.827,
            "vahToday": 0.113,
            "varhLeadToday": 97106.801,
            "varhLagToday": 1607759.343
        },
        {
            "type": "eim",
            "activeCount": 0,
            "measurementType": "net-consumption",
            "readingTime": 1699792497,
            "wNow": 0,
            "whLifetime": 0,
            "varhLeadLifetime": 0,
            "varhLagLifetime": 0.001,
            "vahLifetime": 0.113,
            "rmsCurrent": 0.329,
            "rmsVoltage": 240.253,
            "reactPwr": 0,
            "apprntPwr": 39.462,
            "pwrFactor": 0,
            "whToday": 0,
            "whLastSevenDays": 0,
            "vahToday": 0,
            "varhLeadToday": 0,
            "varhLagToday": 0
        }
    ],
    "storage": [
        {
            "type": "acb",
            "activeCount": 0,
            "readingTime": 0,
            "wNow": 0,
            "whNow": 0,
            "state": "idle"
        }
    ]
}

https://envoy.lan/ivp/meters/readings

[
    {
        "eid": 704643328,
        "timestamp": 1699793682,
        "actEnergyDlvd": 8780532.004,
        "actEnergyRcvd": 568.922,
        "apparentEnergy": 11239756.247,
        "reactEnergyLagg": 1607838.296,
        "reactEnergyLead": 97106.801,
        "instantaneousDemand": -0.000,
        "activePower": -0.000,
        "apparentPower": 248.737,
        "reactivePower": 239.448,
        "pwrFactor": 0.000,
        "voltage": 240.291,
        "current": 2.070,
        "freq": 60.000,
        "channels": [
            {
                "eid": 1778385169,
                "timestamp": 1699793682,
                "actEnergyDlvd": 4423868.879,
                "actEnergyRcvd": 142.133,
                "apparentEnergy": 5650102.742,
                "reactEnergyLagg": 817206.499,
                "reactEnergyLead": 37670.423,
                "instantaneousDemand": 0.000,
                "activePower": 0.000,
                "apparentPower": 124.017,
                "reactivePower": 120.002,
                "pwrFactor": 0.000,
                "voltage": 120.175,
                "current": 1.031,
                "freq": 60.000
            },
            {
                "eid": 1778385170,
                "timestamp": 1699793682,
                "actEnergyDlvd": 4356663.125,
                "actEnergyRcvd": 426.790,
                "apparentEnergy": 5589653.505,
                "reactEnergyLagg": 790631.798,
                "reactEnergyLead": 59436.378,
                "instantaneousDemand": -0.000,
                "activePower": -0.000,
                "apparentPower": 124.720,
                "reactivePower": 119.446,
                "pwrFactor": 0.000,
                "voltage": 120.116,
                "current": 1.039,
                "freq": 60.000
            },
            {
                "eid": 1778385171,
                "timestamp": 1699793682,
                "actEnergyDlvd": 0.000,
                "actEnergyRcvd": 0.000,
                "apparentEnergy": 0.000,
                "reactEnergyLagg": 0.000,
                "reactEnergyLead": 0.000,
                "instantaneousDemand": 0.000,
                "activePower": 0.000,
                "apparentPower": 0.000,
                "reactivePower": 0.000,
                "pwrFactor": 0.000,
                "voltage": 0.000,
                "current": 0.000,
                "freq": 60.000
            }
        ]
    },
    {
        "eid": 704643584,
        "timestamp": 1699793682,
        "actEnergyDlvd": 0.000,
        "actEnergyRcvd": 0.000,
        "apparentEnergy": 0.113,
        "reactEnergyLagg": 0.001,
        "reactEnergyLead": 0.000,
        "instantaneousDemand": 0.000,
        "activePower": 0.000,
        "apparentPower": 39.633,
        "reactivePower": 0.000,
        "pwrFactor": 0.000,
        "voltage": 240.136,
        "current": 0.331,
        "freq": 60.000,
        "channels": [
            {
                "eid": 1778385425,
                "timestamp": 1699793682,
                "actEnergyDlvd": 0.000,
                "actEnergyRcvd": 0.000,
                "apparentEnergy": 0.057,
                "reactEnergyLagg": 0.000,
                "reactEnergyLead": 0.000,
                "instantaneousDemand": 0.000,
                "activePower": 0.000,
                "apparentPower": 19.732,
                "reactivePower": 0.000,
                "pwrFactor": 0.000,
                "voltage": 120.115,
                "current": 0.164,
                "freq": 60.000
            },
            {
                "eid": 1778385426,
                "timestamp": 1699793682,
                "actEnergyDlvd": 0.000,
                "actEnergyRcvd": 0.000,
                "apparentEnergy": 0.057,
                "reactEnergyLagg": 0.001,
                "reactEnergyLead": 0.000,
                "instantaneousDemand": 0.000,
                "activePower": 0.000,
                "apparentPower": 19.901,
                "reactivePower": 0.000,
                "pwrFactor": 0.000,
                "voltage": 120.021,
                "current": 0.167,
                "freq": 60.000
            },
            {
                "eid": 1778385427,
                "timestamp": 1699793682,
                "actEnergyDlvd": 0.000,
                "actEnergyRcvd": 0.000,
                "apparentEnergy": 0.000,
                "reactEnergyLagg": 0.000,
                "reactEnergyLead": 0.000,
                "instantaneousDemand": 0.000,
                "activePower": 0.000,
                "apparentPower": 0.000,
                "reactivePower": 0.000,
                "pwrFactor": 0.000,
                "voltage": 0.000,
                "current": 0.000,
                "freq": 60.000
            }
        ]
    }
]

I'm up early today to travel, but could get readings tomorrow during daylight hours if that would help.

catsmanac commented 10 months ago

Thanks so much @wittelw. It would be great if you can share the same ones during solar production time, but no hurry. Those reports gave me the first lead to get going.

The answer is a bit different from what I expected. I was thinking to see either no phase information or information for 2 phases in both reports. The meters/readings is showing the 2 phases details for solar production but the production report is lacking the phase details where I would have expected these as well.

Never a dull moment with Enphase I guess. Safe travels.

wittelw commented 10 months ago

The trip ended up (thankfully) shorter than expected, so here are the results during daylight.

https://envoy.lan/production.json

{
    "production": [
        {
            "type": "inverters",
            "activeCount": 12,
            "readingTime": 1699827379,
            "wNow": 1576,
            "whLifetime": 487867
        },
        {
            "type": "eim",
            "activeCount": 1,
            "measurementType": "production",
            "readingTime": 1699827403,
            "wNow": 1445.18,
            "whLifetime": 8792531.716,
            "varhLeadLifetime": 97221.954,
            "varhLagLifetime": 1608190.113,
            "vahLifetime": 11252949.774,
            "rmsCurrent": 12.607,
            "rmsVoltage": 240.672,
            "reactPwr": -16.515,
            "apprntPwr": 1517.474,
            "pwrFactor": 0.95,
            "whToday": 12000.716,
            "whLastSevenDays": 95250.716,
            "vahToday": 14415.774,
            "varhLeadToday": 115.954,
            "varhLagToday": 1535.113
        }
    ],
    "consumption": [
        {
            "type": "eim",
            "activeCount": 0,
            "measurementType": "total-consumption",
            "readingTime": 1699827403,
            "wNow": 1445.18,
            "whLifetime": 8792477.539,
            "varhLeadLifetime": 97221.954,
            "varhLagLifetime": 1608190.114,
            "vahLifetime": 0.113,
            "rmsCurrent": 12.933,
            "rmsVoltage": 240.623,
            "reactPwr": 17.307,
            "apprntPwr": 3112.009,
            "pwrFactor": 0.46,
            "whToday": 8792477.539,
            "whLastSevenDays": 8792477.539,
            "vahToday": 0.113,
            "varhLeadToday": 97221.954,
            "varhLagToday": 1608190.114
        },
        {
            "type": "eim",
            "activeCount": 0,
            "measurementType": "net-consumption",
            "readingTime": 1699827403,
            "wNow": 0,
            "whLifetime": 0,
            "varhLeadLifetime": 0,
            "varhLagLifetime": 0.001,
            "vahLifetime": 0.113,
            "rmsCurrent": 0.326,
            "rmsVoltage": 240.574,
            "reactPwr": 0.792,
            "apprntPwr": 39.062,
            "pwrFactor": 0,
            "whToday": 0,
            "whLastSevenDays": 0,
            "vahToday": 0,
            "varhLeadToday": 0,
            "varhLagToday": 0
        }
    ],
    "storage": [
        {
            "type": "acb",
            "activeCount": 0,
            "readingTime": 0,
            "wNow": 0,
            "whNow": 0,
            "state": "idle"
        }
    ]
}

https://envoy.lan/ivp/meters/readings

[
    {
        "eid": 704643328,
        "timestamp": 1699827677,
        "actEnergyDlvd": 8792641.994,
        "actEnergyRcvd": 568.922,
        "apparentEnergy": 11253065.442,
        "reactEnergyLagg": 1608190.113,
        "reactEnergyLead": 97223.220,
        "instantaneousDemand": 1474.504,
        "activePower": 1474.504,
        "apparentPower": 1544.231,
        "reactivePower": -17.236,
        "pwrFactor": 0.954,
        "voltage": 240.394,
        "current": 12.852,
        "freq": 60.000,
        "channels": [
            {
                "eid": 1778385169,
                "timestamp": 1699827677,
                "actEnergyDlvd": 4429949.263,
                "actEnergyRcvd": 142.133,
                "apparentEnergy": 5656777.256,
                "reactEnergyLagg": 817382.654,
                "reactEnergyLead": 37719.995,
                "instantaneousDemand": 741.444,
                "activePower": 741.444,
                "apparentPower": 775.187,
                "reactivePower": -6.091,
                "pwrFactor": 0.951,
                "voltage": 120.701,
                "current": 6.425,
                "freq": 60.000
            },
            {
                "eid": 1778385170,
                "timestamp": 1699827677,
                "actEnergyDlvd": 4362692.732,
                "actEnergyRcvd": 426.790,
                "apparentEnergy": 5596288.186,
                "reactEnergyLagg": 790807.459,
                "reactEnergyLead": 59503.225,
                "instantaneousDemand": 733.060,
                "activePower": 733.060,
                "apparentPower": 769.044,
                "reactivePower": -11.145,
                "pwrFactor": 0.957,
                "voltage": 119.693,
                "current": 6.427,
                "freq": 60.000
            },
            {
                "eid": 1778385171,
                "timestamp": 1699827677,
                "actEnergyDlvd": 0.000,
                "actEnergyRcvd": 0.000,
                "apparentEnergy": 0.000,
                "reactEnergyLagg": 0.000,
                "reactEnergyLead": 0.000,
                "instantaneousDemand": 0.000,
                "activePower": 0.000,
                "apparentPower": 0.000,
                "reactivePower": 0.000,
                "pwrFactor": 0.000,
                "voltage": 0.000,
                "current": 0.000,
                "freq": 60.000
            }
        ]
    },
    {
        "eid": 704643584,
        "timestamp": 1699827677,
        "actEnergyDlvd": 0.000,
        "actEnergyRcvd": 0.000,
        "apparentEnergy": 0.113,
        "reactEnergyLagg": 0.001,
        "reactEnergyLead": 0.000,
        "instantaneousDemand": 0.000,
        "activePower": 0.000,
        "apparentPower": 39.099,
        "reactivePower": 0.000,
        "pwrFactor": 0.000,
        "voltage": 240.462,
        "current": 0.324,
        "freq": 60.000,
        "channels": [
            {
                "eid": 1778385425,
                "timestamp": 1699827677,
                "actEnergyDlvd": 0.000,
                "actEnergyRcvd": 0.000,
                "apparentEnergy": 0.057,
                "reactEnergyLagg": 0.000,
                "reactEnergyLead": 0.000,
                "instantaneousDemand": 0.000,
                "activePower": 0.000,
                "apparentPower": 19.455,
                "reactivePower": 0.000,
                "pwrFactor": 0.000,
                "voltage": 120.733,
                "current": 0.160,
                "freq": 60.000
            },
            {
                "eid": 1778385426,
                "timestamp": 1699827677,
                "actEnergyDlvd": 0.000,
                "actEnergyRcvd": 0.000,
                "apparentEnergy": 0.057,
                "reactEnergyLagg": 0.001,
                "reactEnergyLead": 0.000,
                "instantaneousDemand": 0.000,
                "activePower": 0.000,
                "apparentPower": 19.644,
                "reactivePower": 0.000,
                "pwrFactor": 0.000,
                "voltage": 119.729,
                "current": 0.164,
                "freq": 60.000
            },
            {
                "eid": 1778385427,
                "timestamp": 1699827677,
                "actEnergyDlvd": 0.000,
                "actEnergyRcvd": 0.000,
                "apparentEnergy": 0.000,
                "reactEnergyLagg": 0.000,
                "reactEnergyLead": 0.000,
                "instantaneousDemand": 0.000,
                "activePower": 0.000,
                "apparentPower": 0.000,
                "reactivePower": 0.000,
                "pwrFactor": 0.000,
                "voltage": 0.000,
                "current": 0.000,
                "freq": 60.000
            }
        ]
    }
]
catsmanac commented 10 months ago

Thanks for your quick response @wittelw, these match the layout when no solar production is happening. It helps a lot, Thanks!