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

[Question] Enphase IQ Batteries not showing up #116

Closed
keesvanbemmel opened this issue Apr 9, 2024 · 29 comments · Fixed by #118 or #121
Closed

[Question] Enphase IQ Batteries not showing up #116

keesvanbemmel opened this issue Apr 9, 2024 · 29 comments · Fixed by #118 or #121

Comments

@keesvanbemmel
Copy link

Hi!

Has anyone been able to have this integration pick up Enphase home batteries? And then also added them to the Energy dashboard?

Currently the integration doesn't show the newly installed batteries, even after removing, readding and reauthenticating the integration.

Thanks for any pointers!

@vincentwolsink
Copy link
Owner

Hi @keesvanbemmel, I don’t have batteries myself. Can you share your diagnostics file? I will take a look.

@keesvanbemmel
Copy link
Author

I would love to! Where can I find those? :)

@vincentwolsink
Copy link
Owner

Open your Home Assistant instance and show an integration.

Click the three dots next to your Envoy on the right and click Download Diagnostics.

@keesvanbemmel
Copy link
Author

Is there a way I can DM it to you?

@vincentwolsink
Copy link
Owner

You can send it to this temporary e-mail: [email protected]

@keesvanbemmel
Copy link
Author

done!

@vincentwolsink
Copy link
Owner

Can you maybe send me the output of https://YOUR_ENVOY_IP/ivp/ensemble/inventory (after logging in to the Envoy).
If you don't know the IP of your Envoy you can go to the Envoy device in Home Assistant and press the 'Visit' button.

@keesvanbemmel
Copy link
Author

keesvanbemmel commented Apr 12, 2024

[
    {
        "type": "ENCHARGE",
        "devices": [
            {
                "part_num": "830-01760-r46",
                "installed": 1712942814,
                "serial_num": "122323085065",
                "device_status": [
                    "envoy.global.ok",
                    "prop.done"
                ],
                "last_rpt_date": 1712944638,
                "admin_state": 6,
                "admin_state_str": "ENCHG_STATE_READY",
                "created_date": 1712942814,
                "img_load_date": 1712942814,
                "img_pnum_running": "2.6.5973_rel/22.11",
                "zigbee_dongle_fw_version": "100F",
                "bmu_fw_version": "2.1.34",
                "operating": true,
                "communicating": true,
                "sleep_enabled": false,
                "percentFull": 20,
                "temperature": 20,
                "maxCellTemp": 20,
                "comm_level_sub_ghz": 4,
                "comm_level_2_4_ghz": 4,
                "led_status": 17,
                "dc_switch_off": false,
                "encharge_rev": 2,
                "encharge_capacity": 3500
            },
            {
                "part_num": "830-01760-r46",
                "installed": 1712942814,
                "serial_num": "122323085067",
                "device_status": [
                    "envoy.global.ok",
                    "prop.done"
                ],
                "last_rpt_date": 1712944677,
                "admin_state": 6,
                "admin_state_str": "ENCHG_STATE_READY",
                "created_date": 1712942814,
                "img_load_date": 1712942814,
                "img_pnum_running": "2.6.5973_rel/22.11",
                "zigbee_dongle_fw_version": "100F",
                "bmu_fw_version": "2.1.34",
                "operating": true,
                "communicating": true,
                "sleep_enabled": false,
                "percentFull": 20,
                "temperature": 20,
                "maxCellTemp": 20,
                "comm_level_sub_ghz": 4,
                "comm_level_2_4_ghz": 4,
                "led_status": 17,
                "dc_switch_off": false,
                "encharge_rev": 2,
                "encharge_capacity": 3500
            },
            {
                "part_num": "830-01760-r46",
                "installed": 1712942449,
                "serial_num": "122323085069",
                "device_status": [
                    "envoy.global.ok",
                    "prop.done"
                ],
                "last_rpt_date": 1712944722,
                "admin_state": 6,
                "admin_state_str": "ENCHG_STATE_READY",
                "created_date": 1712942449,
                "img_load_date": 1712942449,
                "img_pnum_running": "2.6.5973_rel/22.11",
                "zigbee_dongle_fw_version": "100F",
                "bmu_fw_version": "2.1.34",
                "operating": true,
                "communicating": true,
                "sleep_enabled": false,
                "percentFull": 20,
                "temperature": 20,
                "maxCellTemp": 20,
                "comm_level_sub_ghz": 4,
                "comm_level_2_4_ghz": 4,
                "led_status": 17,
                "dc_switch_off": false,
                "encharge_rev": 2,
                "encharge_capacity": 3500
            }
        ]
    }
]

@vincentwolsink
Copy link
Owner

I am working on a new implementation for the batteries. Will release a new beta soon.

@keesvanbemmel
Copy link
Author

Would be great if we could also set the import export tariff from the integration
Screenshot_20240414-133053

@vincentwolsink vincentwolsink linked a pull request Apr 14, 2024 that will close this issue
@vincentwolsink
Copy link
Owner

First step to better battery support: 0.3.7-beta1

@keesvanbemmel
Copy link
Author

keesvanbemmel commented Apr 14, 2024

Batteries show up and also brings back all sensors (see #117 )

I'll test the upcoming days!

@keesvanbemmel
Copy link
Author

@vincentwolsink if you look at the raw data, is there a metric that shows how much energy is flowing to/from the batteries? Seems like I can only get the current capacity, but the energy dashboards requires energy flows

@vincentwolsink
Copy link
Owner

I did not find it yet. I will take a closer look at the data later. Good to hear things are working for you now at least.

@keesvanbemmel
Copy link
Author

Thanks for such a quick turnaround!

@vincentwolsink
Copy link
Owner

@keesvanbemmel Could you provide me your output for https://YOUR_ENVOY_IP/production.json?details=1

@keesvanbemmel
Copy link
Author

keesvanbemmel commented Apr 15, 2024

Sure thing, here you go. It doesn't really show anything battery related though. Only the two production phases (I have only 2, not 3) and the 3 consumption phases. The storage seems idle even though the live status says it is discharging (with 0.1kW).

{
  "production": [
    {
      "type": "inverters",
      "activeCount": 28,
      "readingTime": 1713200109,
      "wNow": 2731,
      "whLifetime": 950214
    },
    {
      "type": "eim",
      "activeCount": 1,
      "measurementType": "production",
      "readingTime": 1713200138,
      "wNow": 502.888,
      "whLifetime": 191377.398,
      "varhLeadLifetime": 156.765,
      "varhLagLifetime": 109145.762,
      "vahLifetime": 255687.981,
      "rmsCurrent": 2.909,
      "rmsVoltage": 467.682,
      "reactPwr": 436.628,
      "apprntPwr": 678.833,
      "pwrFactor": 0.74,
      "whToday": 17354,
      "whLastSevenDays": 122780,
      "vahToday": 21023,
      "varhLeadToday": 0.765,
      "varhLagToday": 7542,
      "lines": [
        {
          "wNow": 254.284,
          "whLifetime": 95440.931,
          "varhLeadLifetime": 156.485,
          "varhLagLifetime": 55733.957,
          "vahLifetime": 128439.569,
          "rmsCurrent": 1.481,
          "rmsVoltage": 234.098,
          "reactPwr": 217.758,
          "apprntPwr": 345.267,
          "pwrFactor": 0.73,
          "whToday": 8820.931,
          "whLastSevenDays": 61281.931,
          "vahToday": 10627.569,
          "varhLeadToday": 0.485,
          "varhLagToday": 3805.957
        },
        {
          "wNow": 248.604,
          "whLifetime": 95936.467,
          "varhLeadLifetime": 0.28,
          "varhLagLifetime": 53411.805,
          "vahLifetime": 127248.412,
          "rmsCurrent": 1.428,
          "rmsVoltage": 233.584,
          "reactPwr": 218.871,
          "apprntPwr": 333.566,
          "pwrFactor": 0.75,
          "whToday": 8942.467,
          "whLastSevenDays": 61907.467,
          "vahToday": 10816.412,
          "varhLeadToday": 0.28,
          "varhLagToday": 3814.805
        }
      ]
    }
  ],
  "consumption": [
    {
      "type": "eim",
      "activeCount": 1,
      "measurementType": "total-consumption",
      "readingTime": 1713200138,
      "wNow": 480.639,
      "whLifetime": 251478.293,
      "varhLeadLifetime": 263806.659,
      "varhLagLifetime": -106386.694,
      "vahLifetime": 528517.373,
      "rmsCurrent": 3.059,
      "rmsVoltage": 702.103,
      "reactPwr": -556.11,
      "apprntPwr": 716.448,
      "pwrFactor": 0.69,
      "whToday": 14570.293,
      "whLastSevenDays": 9455.293,
      "vahToday": 29856.373,
      "varhLeadToday": 19258.659,
      "varhLagToday": 267,
      "lines": [
        {
          "wNow": 289.424,
          "whLifetime": 122113.523,
          "varhLeadLifetime": 129175.695,
          "varhLagLifetime": -51900.288,
          "vahLifetime": 262992.471,
          "rmsCurrent": 3.74,
          "rmsVoltage": 234.103,
          "reactPwr": -263.289,
          "apprntPwr": 875.602,
          "pwrFactor": 0.33,
          "whToday": 3951.523,
          "whLastSevenDays": 55.523,
          "vahToday": 13101.471,
          "varhLeadToday": 8691.695,
          "varhLagToday": 0
        },
        {
          "wNow": 175.725,
          "whLifetime": 104105.19,
          "varhLeadLifetime": 130870.853,
          "varhLagLifetime": -52611.861,
          "vahLifetime": 233251.227,
          "rmsCurrent": -0.978,
          "rmsVoltage": 233.731,
          "reactPwr": -306.173,
          "apprntPwr": -228.503,
          "pwrFactor": 1,
          "whToday": 9064.19,
          "whLastSevenDays": 23.19,
          "vahToday": 14799.227,
          "varhLeadToday": 10526.853,
          "varhLagToday": 0
        },
        {
          "wNow": 15.49,
          "whLifetime": 25259.58,
          "varhLeadLifetime": 3760.111,
          "varhLagLifetime": -1874.545,
          "vahLifetime": 32273.675,
          "rmsCurrent": 0.296,
          "rmsVoltage": 234.269,
          "reactPwr": 13.352,
          "apprntPwr": 69.348,
          "pwrFactor": 0.22,
          "whToday": 1554.58,
          "whLastSevenDays": 9376.58,
          "vahToday": 1955.675,
          "varhLeadToday": 40.111,
          "varhLagToday": 267
        }
      ]
    },
    {
      "type": "eim",
      "activeCount": 1,
      "measurementType": "net-consumption",
      "readingTime": 1713200138,
      "wNow": -24.056,
      "whLifetime": 60693.869,
      "varhLeadLifetime": 263964.089,
      "varhLagLifetime": 5678.254,
      "vahLifetime": 528517.373,
      "rmsCurrent": 0.01,
      "rmsVoltage": 702.103,
      "reactPwr": -992.738,
      "apprntPwr": 3.306,
      "pwrFactor": -1,
      "whToday": 0,
      "whLastSevenDays": 0,
      "vahToday": 0,
      "varhLeadToday": 0,
      "varhLagToday": 0,
      "lines": [
        {
          "wNow": 35.14,
          "whLifetime": 27272.029,
          "varhLeadLifetime": 129332.179,
          "varhLagLifetime": 3833.669,
          "vahLifetime": 262992.471,
          "rmsCurrent": 2.26,
          "rmsVoltage": 234.103,
          "reactPwr": -481.046,
          "apprntPwr": 528.968,
          "pwrFactor": 0.07,
          "whToday": 0,
          "whLastSevenDays": 0,
          "vahToday": 0,
          "varhLeadToday": 0,
          "varhLagToday": 0
        },
        {
          "wNow": -72.879,
          "whLifetime": 8716.425,
          "varhLeadLifetime": 130871.134,
          "varhLagLifetime": 799.944,
          "vahLifetime": 233251.227,
          "rmsCurrent": -2.406,
          "rmsVoltage": 233.731,
          "reactPwr": -525.044,
          "apprntPwr": -562.279,
          "pwrFactor": -1,
          "whToday": 0,
          "whLastSevenDays": 0,
          "vahToday": 0,
          "varhLeadToday": 0,
          "varhLagToday": 0
        },
        {
          "wNow": 13.683,
          "whLifetime": 24705.415,
          "varhLeadLifetime": 3760.776,
          "varhLagLifetime": 1044.641,
          "vahLifetime": 32273.675,
          "rmsCurrent": 0.156,
          "rmsVoltage": 234.269,
          "reactPwr": 13.352,
          "apprntPwr": 36.618,
          "pwrFactor": 0.37,
          "whToday": 0,
          "whLastSevenDays": 0,
          "vahToday": 0,
          "varhLeadToday": 0,
          "varhLagToday": 0
        }
      ]
    }
  ],
  "storage": [
    {
      "type": "acb",
      "activeCount": 0,
      "readingTime": 0,
      "wNow": 0,
      "whNow": 0,
      "state": "idle"
    }
  ]
}

@vincentwolsink
Copy link
Owner

Could you please also provide the output for the following urls (sorry for asking but I don't have batteries myself).

https://YOUR_ENVOY_IP/ivp/ensemble/power
https://YOUR_ENVOY_IP/ivp/ensemble/secctrl
https://YOUR_ENVOY_IP/ivp/ensemble/status
https://YOUR_ENVOY_IP/ivp/ensemble/relay

@keesvanbemmel
Copy link
Author

More than happy to help!

power:

{
    "devices:": [
        {
            "serial_num": "122323085065",
            "real_power_mw": 179000,
            "apparent_power_mva": 179000,
            "soc": 89
        },
        {
            "serial_num": "122323085067",
            "real_power_mw": 190000,
            "apparent_power_mva": 190000,
            "soc": 89
        },
        {
            "serial_num": "122323085069",
            "real_power_mw": 183000,
            "apparent_power_mva": 183000,
            "soc": 89
        }
    ]
}

secctrl:

{
    "shutdown": false,
    "freq_bias_hz": 0.19460000097751618,
    "voltage_bias_v": 2.365999937057495,
    "freq_bias_hz_q8": 313,
    "voltage_bias_v_q5": 75,
    "freq_bias_hz_phaseb": 0.0,
    "voltage_bias_v_phaseb": 0.0,
    "freq_bias_hz_q8_phaseb": 0,
    "voltage_bias_v_q5_phaseb": 0,
    "freq_bias_hz_phasec": 0.0,
    "voltage_bias_v_phasec": 0.0,
    "freq_bias_hz_q8_phasec": 0,
    "voltage_bias_v_q5_phasec": 0,
    "configured_backup_soc": 0,
    "adjusted_backup_soc": 0,
    "agg_soc": 89,
    "Max_energy": 10500,
    "ENC_agg_soc": 89,
    "ENC_agg_soh": 100,
    "ENC_agg_backup_energy": 0,
    "ENC_agg_avail_energy": 9345,
    "Enc_commissioned_capacity": 10500,
    "Enc_max_available_capacity": 10500,
    "ACB_agg_soc": 0,
    "ACB_agg_energy": 0
}

relay:

{
    "mains_admin_state": "closed",
    "mains_oper_state": "closed",
    "der1_state": 0,
    "der2_state": 0,
    "Enchg_grid_mode": "grid-tied",
    "Solar_grid_mode": "unknown"
}

status:

{
    "inventory": {
        "serial_nums": {
            "122323085065": {
                "device_type": 13,
                "admin_state": 6,
                "admin_state_str": "ENCHG_STATE_READY",
                "reported_grid_mode": "grid-tied",
                "phase": 1,
                "encharge_revision": 2,
                "encharge_capacity": 3500,
                "encharge_rated_power": 1280,
                "msg_retry_count": 0,
                "part_number": "830-01760-r46",
                "assembly_number": "890-00023-r48",
                "app_fw_version": "2.6.5973_rel/22.11",
                "zb_fw_version": "100F",
                "zb_bootloader_vers": "1.B.5",
                "ibl_fw_version": "1.3.413",
                "swift_asic_fw_version": "001.002.1.7.2",
                "bmu_fw_version": "2.1.34",
                "submodule_count": 6,
                "submodules": {
                    "122321067557": {
                        "device_type": 16,
                        "admin_state": 1,
                        "part_number": "620-00291-r02",
                        "assembly_number": "800-00291-r02",
                        "dmir": {
                            "part_number": "",
                            "assembly_number": ""
                        },
                        "procload": {
                            "part_number": "490-00154",
                            "assembly_number": "2.1.34"
                        }
                    },
                    "122322019637": {
                        "device_type": 15,
                        "admin_state": 1,
                        "part_number": "800-01854-r06",
                        "assembly_number": "800-01854-r06",
                        "dmir": {
                            "part_number": "546-00002-01",
                            "assembly_number": "01"
                        },
                        "procload": {
                            "part_number": "522-00002-01",
                            "assembly_number": "2.6.5973_rel/22.11"
                        }
                    },
                    "122322116871": {
                        "device_type": 14,
                        "admin_state": 1,
                        "part_number": "800-01335-r01",
                        "assembly_number": "880-01335-r14",
                        "dmir": {
                            "part_number": "549-00030-r00",
                            "assembly_number": "3.9.5-D15"
                        },
                        "procload": {
                            "part_number": "521-00003-r13",
                            "assembly_number": "3.9.1-D15"
                        }
                    },
                    "122322116905": {
                        "device_type": 14,
                        "admin_state": 1,
                        "part_number": "800-01335-r01",
                        "assembly_number": "880-01335-r14",
                        "dmir": {
                            "part_number": "549-00030-r00",
                            "assembly_number": "3.9.5-D15"
                        },
                        "procload": {
                            "part_number": "521-00003-r13",
                            "assembly_number": "3.9.1-D15"
                        }
                    },
                    "122322124448": {
                        "device_type": 14,
                        "admin_state": 1,
                        "part_number": "800-01335-r01",
                        "assembly_number": "880-01335-r14",
                        "dmir": {
                            "part_number": "549-00030-r00",
                            "assembly_number": "3.9.5-D15"
                        },
                        "procload": {
                            "part_number": "521-00003-r13",
                            "assembly_number": "3.9.1-D15"
                        }
                    },
                    "122322125098": {
                        "device_type": 14,
                        "admin_state": 1,
                        "part_number": "800-01335-r01",
                        "assembly_number": "880-01335-r14",
                        "dmir": {
                            "part_number": "549-00030-r00",
                            "assembly_number": "3.9.5-D15"
                        },
                        "procload": {
                            "part_number": "521-00003-r13",
                            "assembly_number": "3.9.1-D15"
                        }
                    }
                }
            },
            "122323085067": {
                "device_type": 13,
                "admin_state": 6,
                "admin_state_str": "ENCHG_STATE_READY",
                "reported_grid_mode": "grid-tied",
                "phase": 1,
                "encharge_revision": 2,
                "encharge_capacity": 3500,
                "encharge_rated_power": 1280,
                "msg_retry_count": 0,
                "part_number": "830-01760-r46",
                "assembly_number": "890-00023-r48",
                "app_fw_version": "2.6.5973_rel/22.11",
                "zb_fw_version": "100F",
                "zb_bootloader_vers": "1.B.5",
                "ibl_fw_version": "1.3.413",
                "swift_asic_fw_version": "001.002.1.7.2",
                "bmu_fw_version": "2.1.34",
                "submodule_count": 6,
                "submodules": {
                    "122322020028": {
                        "device_type": 15,
                        "admin_state": 1,
                        "part_number": "800-01854-r06",
                        "assembly_number": "800-01854-r06",
                        "dmir": {
                            "part_number": "546-00002-01",
                            "assembly_number": "01"
                        },
                        "procload": {
                            "part_number": "522-00002-01",
                            "assembly_number": "2.6.5973_rel/22.11"
                        }
                    },
                    "122322085064": {
                        "device_type": 16,
                        "admin_state": 1,
                        "part_number": "620-00291-r02",
                        "assembly_number": "800-00291-r02",
                        "dmir": {
                            "part_number": "",
                            "assembly_number": ""
                        },
                        "procload": {
                            "part_number": "490-00154",
                            "assembly_number": "2.1.34"
                        }
                    },
                    "122322116058": {
                        "device_type": 14,
                        "admin_state": 1,
                        "part_number": "800-01335-r01",
                        "assembly_number": "880-01335-r14",
                        "dmir": {
                            "part_number": "549-00030-r00",
                            "assembly_number": "3.9.5-D15"
                        },
                        "procload": {
                            "part_number": "521-00003-r13",
                            "assembly_number": "3.9.1-D15"
                        }
                    },
                    "122322124430": {
                        "device_type": 14,
                        "admin_state": 1,
                        "part_number": "800-01335-r01",
                        "assembly_number": "880-01335-r14",
                        "dmir": {
                            "part_number": "549-00030-r00",
                            "assembly_number": "3.9.5-D15"
                        },
                        "procload": {
                            "part_number": "521-00003-r13",
                            "assembly_number": "3.9.1-D15"
                        }
                    },
                    "122322124472": {
                        "device_type": 14,
                        "admin_state": 1,
                        "part_number": "800-01335-r01",
                        "assembly_number": "880-01335-r14",
                        "dmir": {
                            "part_number": "549-00030-r00",
                            "assembly_number": "3.9.5-D15"
                        },
                        "procload": {
                            "part_number": "521-00003-r13",
                            "assembly_number": "3.9.1-D15"
                        }
                    },
                    "122322125026": {
                        "device_type": 14,
                        "admin_state": 1,
                        "part_number": "800-01335-r01",
                        "assembly_number": "880-01335-r14",
                        "dmir": {
                            "part_number": "549-00030-r00",
                            "assembly_number": "3.9.5-D15"
                        },
                        "procload": {
                            "part_number": "521-00003-r13",
                            "assembly_number": "3.9.1-D15"
                        }
                    }
                }
            },
            "122323085069": {
                "device_type": 13,
                "admin_state": 6,
                "admin_state_str": "ENCHG_STATE_READY",
                "reported_grid_mode": "grid-tied",
                "phase": 1,
                "encharge_revision": 2,
                "encharge_capacity": 3500,
                "encharge_rated_power": 1280,
                "msg_retry_count": 1,
                "part_number": "830-01760-r46",
                "assembly_number": "890-00023-r48",
                "app_fw_version": "2.6.5973_rel/22.11",
                "zb_fw_version": "100F",
                "zb_bootloader_vers": "1.B.5",
                "ibl_fw_version": "1.3.413",
                "swift_asic_fw_version": "001.002.1.7.2",
                "bmu_fw_version": "2.1.34",
                "submodule_count": 6,
                "submodules": {
                    "122322020280": {
                        "device_type": 15,
                        "admin_state": 1,
                        "part_number": "800-01854-r06",
                        "assembly_number": "800-01854-r06",
                        "dmir": {
                            "part_number": "546-00002-01",
                            "assembly_number": "01"
                        },
                        "procload": {
                            "part_number": "522-00002-01",
                            "assembly_number": "2.6.5973_rel/22.11"
                        }
                    },
                    "122322085063": {
                        "device_type": 16,
                        "admin_state": 1,
                        "part_number": "620-00291-r02",
                        "assembly_number": "800-00291-r02",
                        "dmir": {
                            "part_number": "",
                            "assembly_number": ""
                        },
                        "procload": {
                            "part_number": "490-00154",
                            "assembly_number": "2.1.34"
                        }
                    },
                    "122322113637": {
                        "device_type": 14,
                        "admin_state": 1,
                        "part_number": "800-01335-r01",
                        "assembly_number": "880-01335-r14",
                        "dmir": {
                            "part_number": "549-00030-r00",
                            "assembly_number": "3.9.5-D15"
                        },
                        "procload": {
                            "part_number": "521-00003-r13",
                            "assembly_number": "3.9.1-D15"
                        }
                    },
                    "122322116843": {
                        "device_type": 14,
                        "admin_state": 1,
                        "part_number": "800-01335-r01",
                        "assembly_number": "880-01335-r14",
                        "dmir": {
                            "part_number": "549-00030-r00",
                            "assembly_number": "3.9.5-D15"
                        },
                        "procload": {
                            "part_number": "521-00003-r13",
                            "assembly_number": "3.9.1-D15"
                        }
                    },
                    "122322124210": {
                        "device_type": 14,
                        "admin_state": 1,
                        "part_number": "800-01335-r01",
                        "assembly_number": "880-01335-r14",
                        "dmir": {
                            "part_number": "549-00030-r00",
                            "assembly_number": "3.9.5-D15"
                        },
                        "procload": {
                            "part_number": "521-00003-r13",
                            "assembly_number": "3.9.1-D15"
                        }
                    },
                    "122322124455": {
                        "device_type": 14,
                        "admin_state": 1,
                        "part_number": "800-01335-r01",
                        "assembly_number": "880-01335-r14",
                        "dmir": {
                            "part_number": "549-00030-r00",
                            "assembly_number": "3.9.5-D15"
                        },
                        "procload": {
                            "part_number": "521-00003-r13",
                            "assembly_number": "3.9.1-D15"
                        }
                    }
                }
            }
        }
    },
    "counters": {
        "api_ecagtInit": 1,
        "api_ecagtTick": 623563,
        "api_ecagtDeviceInsert": 3,
        "api_ecagtDeviceNetworkStatus": 25697,
        "api_ecagtDeviceCommissionStatus": 18,
        "api_ecagtGetDeviceCount": 628795,
        "api_ecagtGetDeviceInfo": 628156,
        "api_ecagtGetOneDeviceInfo": 6,
        "api_ecagtDevIdToSerial": 36689,
        "api_ecagtHandleMsg": 36050,
        "api_ecagtGetSubmoduleInv": 4029,
        "api_ecagtGetDataModelRaw": 9792,
        "api_ecagtSetSecCtrlBias": 57851,
        "api_ecagtGetSecCtrlBias": 547,
        "api_ecagtGetSecCtrlBiasQ": 5,
        "api_ecagtGetRelayState": 748490,
        "api_ecagtSetDataModelCache": 1,
        "api_AggNameplate": 2,
        "api_ecagtGetGridFreq": 124712,
        "api_ecagtGetGridVolt": 124712,
        "api_ecagtGetGridFreq_err_notfound": 124712,
        "rest_StatusGet": 3,
        "rest_SleepGet": 1,
        "rest_InventoryGet": 2693,
        "rest_SubmodGet": 1127,
        "rest_SecCtrlGet": 3,
        "rest_CommCheckGet": 12,
        "rest_Power": 7,
        "ext_zb_send_msg": 62436,
        "ext_cfg_save_device": 3,
        "ext_cfg_save_device_err": 3,
        "ext_send_perf_data": 34561,
        "ext_event_set_stateful": 3237,
        "ext_event_set_modgone": 12,
        "rxmsg_OBJ_MDL_META_RSP": 3,
        "rxmsg_OBJ_MDL_INV_UPD_RSP": 218,
        "rxmsg_OBJ_MDL_POLL_RSP": 34561,
        "rxmsg_OBJ_MDL_GRID_STATUS_RSP": 3,
        "rxmsg_OBJ_MDL_EVENTS_MSG": 1241,
        "rxmsg_OBJ_MDL_SOC_CONFIG_RSP": 3,
        "txmsg_OBJ_MDL_META_REQ": 3,
        "txmsg_OBJ_MDL_ENC_RT_POLL_REQ": 1,
        "txmsg_OBJ_MDL_BMU_POLL_REQ": 1555,
        "txmsg_OBJ_MDL_PCU_POLL_REQ": 1557,
        "txmsg_OBJ_MDL_SECONDARY_CTRL_REQ": 57851,
        "txmsg_OBJ_MDL_GRID_STATUS_REQ": 3,
        "txmsg_OBJ_MDL_EVENTS_ACK": 1241,
        "txmsg_OBJ_MDL_SOC_CONFIG_REQ": 3,
        "txmsg_OBJ_MDL_TNS_START": 9,
        "rxmsg_OBJ_MDL_TNS_START_RSP": 11,
        "txmsg_OBJ_MDL_TNS_END": 10,
        "rxmsg_OBJ_MDL_TNS_END_RSP": 10,
        "txmsg_lvs_poll": 203,
        "zmq_ecaHello": 1,
        "zmq_ecaDevInfo": 37,
        "zmq_ecaNetworkStatus": 25697,
        "zmq_ecaAppMsg": 36050,
        "zmq_streamdata": 124712,
        "zmq_live_debug": 542,
        "zmq_eca_live_debug_req": 42,
        "zmq_nameplate": 397,
        "zmq_ecaSecCtrlMsg": 57851,
        "zmq_meterlog_ok": 1,
        "dmdl_FILES_INDEXED": 3,
        "devPollMissing": 3603,
        "gridProfileTransaction": 19,
        "fsm_retry_timeout": 1,
        "profile_txn_ack": 10,
        "backupSocLimitSet": 58058,
        "backupSocLimitChanged": 2,
        "api_ecagtGetGenRelayState": 124712
    },
    "secctrl": {
        "shutdown": false,
        "freq_bias_hz": 0.19460000097751618,
        "voltage_bias_v": 2.365999937057495,
        "freq_bias_hz_q8": 313,
        "voltage_bias_v_q5": 75,
        "freq_bias_hz_phaseb": 0.0,
        "voltage_bias_v_phaseb": 0.0,
        "freq_bias_hz_q8_phaseb": 0,
        "voltage_bias_v_q5_phaseb": 0,
        "freq_bias_hz_phasec": 0.0,
        "voltage_bias_v_phasec": 0.0,
        "freq_bias_hz_q8_phasec": 0,
        "voltage_bias_v_q5_phasec": 0,
        "configured_backup_soc": 0,
        "adjusted_backup_soc": 0,
        "agg_soc": 89,
        "Max_energy": 10500,
        "ENC_agg_soc": 89,
        "ENC_agg_soh": 100,
        "ENC_agg_backup_energy": 0,
        "ENC_agg_avail_energy": 9345,
        "Enc_commissioned_capacity": 10500,
        "Enc_max_available_capacity": 10500,
        "ACB_agg_soc": 0,
        "ACB_agg_energy": 0
    },
    "relay": {
        "mains_admin_state": "closed",
        "mains_oper_state": "closed",
        "der1_state": 0,
        "der2_state": 0,
        "Enchg_grid_mode": "grid-tied",
        "Solar_grid_mode": "unknown"
    },
    "profile": {
        "message": "Obsolete API, please use ivp/arf/profile"
    },
    "fakeit": {
        "fake_inventory_mode": false
    }
}

@vincentwolsink vincentwolsink linked a pull request Apr 16, 2024 that will close this issue
@vincentwolsink
Copy link
Owner

In 0.3.7-beta2 I extended the battery support with more data. There is an endpoint for current power in W. Unfortunately still no endpoint for Wh.

@keesvanbemmel
Copy link
Author

Looks good! Do you know if the envoy reports the total battery charge state? The batteries themselves have the SOC, but the envoy doesn't show this in your integration atm for all batteries.

I'm looking for the 94% that is at the top of the screenshot. The other percentages are reported by the integration.
Screenshot_20240417-205908

@vincentwolsink
Copy link
Owner

It should actually. Did you install beta2? Can you make a screenshot of the available sensors on the Envoy?

@keesvanbemmel
Copy link
Author

Sorry, didn't check there. It is available indeed!

@vincentwolsink
Copy link
Owner

@keesvanbemmel Do you have dedicated CTs installed for your battery? In that case it is actually possible to get the kwh readings.

@keesvanbemmel
Copy link
Author

I have now. Added a Shelly pro em 50 to this setup that reads the kwh

@vincentwolsink
Copy link
Owner

I was aiming at Envoy CTs. But this also works ofc. 🙂

@keesvanbemmel
Copy link
Author

Is there a way to hook up more than 6 cts to the envoy?

@vincentwolsink
Copy link
Owner

No, it seems not. Envoy does support CTs specifically for the battery. But in a 3 phase system there is no room for extra CTs. 🤷‍♂️

@keesvanbemmel
Copy link
Author

Well this setup with your additions work like a charm. You could close this issue if you want!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants