CharlesGillanders / homeassistant-alphaESS

Monitor your energy generation, storage, and usage data using the official API from Alpha ESS.
MIT License
101 stars 22 forks source link

Sensor intermittent zero anomalies #74

Closed beastien closed 11 months ago

beastien commented 1 year ago

I'm using the following sensors for custom templates and input into the energy dashboard.

sensor.serial_solar_to_grid sensor.serial_grid_to_load sensor.serial_grid_to_battery sensor.serial_solar_production

The timing doesn't look consistent but every few days to a week there is an intermittent drop to zero on these sensors. Due to them being state_class total_increasing this causes the sum to add the entire days reading to the total messing up the graphs etc. Sometimes I can see in the error log that HA was unable to connect to AlphaEss briefly and that coincides with these readings but not every time.

Is it possible to ignore these drops or have the sensor become unavailable or unknown?

image

DavidqStokes commented 1 year ago

Although not as frequent as it was a few months ago, I also see a similar 'drop to zero' in my AlphaESS home battery state of charge (which doesn't impact on the energy dashboard, but which can mess up my templated calculations on whether the battery needs to charge overnight). This is only ever very short lived, and does appear to be because of loss of connectivity to the AlphaESS API. For battery SOC it would be better to retain the last value during loss of communication.

kinektek commented 1 year ago

Similar for me - have been ignoring it quite happily (solution working well for me, thank you!) but in case more datapoints are helpful in any way, here's a shot of my graph:

image
CharlesGillanders commented 11 months ago

closing as duplicate of #85

cabe1214 commented 2 months ago

Sorry to reopen this topic, but it seems that it is not yet fully solved. Using version 0.5.4 of the integration and HA 2024.8.3 I've got, since yesterday, regularly the same problem as described above. grafik It affects all sensors where energy is measured (kWh). First occurrence yesterday 10:15 CEST, happening regularly but with no clear pattern. The only thing I can see is that sometimes the values are missing (that is OK, as it does not mess up with the energy consumption dashboard) but other times the values are set to 0. grafik I'll activate the debug logs and wait for the next occurrence. I'll update with more info as I get it.

Poshy163 commented 2 months ago

This is a dupe of this: https://github.com/CharlesGillanders/homeassistant-alphaESS/issues/127