briancmpbll / home_assistant_custom_envoy

171 stars 76 forks source link

No values when charging and discharging the batteries. #179

Open Goldi5 opened 5 months ago

Goldi5 commented 5 months ago

Hello and thank you very much for the great work on this integration.

I have had an Enphase system for about 2 months and this integration is going well so far. I have a storage unit on my system and the individual storage units are also displayed correctly. I have the sensors sensor.envoy_xxxxxx_battery_energy_charged and sensor.envoy_xxxxxx_battery_energy_discharged, but unfortunately no value is returned to me here, so I can't use them in the energy dashboard.

This means that I cannot see the current values for charging and discharging. Is there perhaps a solution here?

Envoy-S-Metered IQ-Battery 3T

HA is set to 2024.02 Enphase to 0.0.19

Thank you

catsmanac commented 4 months ago

The values for charging and discharging are calculated from changes in current_battery_capacity. If the battery state remains stable for longer time no charge or discharge values will be visible. You can validate if it is working at all by inspecting current battery capacity entities.

The new HA Core integration has a power measurement for the batteries, but no energy one either. You would need to use a riemann integrator on the battery power sensor for that.