hultenvp / solis-sensor

HomeAssistant integration for the SolisCloud PV Monitoring portal via SolisCloud API
Apache License 2.0
190 stars 41 forks source link

sensor.solis_daily_grid_energy_used and sensor.solis_daily_grid_energy_purchased History Incorrect #363

Open CraigCallender opened 2 months ago

CraigCallender commented 2 months ago

Describe the bug Looking at the history of sensor.solis_daily_grid_energy_purchased and sensor.solis_daily_grid_energy_used it looks like it sometimes doesn't maintain it's cumulative nature. You can see in the screenshot (the circled areas) that there are times where the value decreases. This affects the energy dashboard as it considers this value to report how much grid energy has been purchased and used by the home.

I'm guessing this was a timeout or something from SolisCloud (maybe even a response that's zero'd out?). Not sure how to handle this well.

Config Your anonymized config entry

Versions HA Version and deployment: 2024.3.3 via HAOS on Home Assistant Green HACS version: 1.34.0 Integration version: 3.5.2

Debug logs Add to configuration.yaml:

logger:
  default: warning
  logs:
    custom_components.solis: debug

And attach the resulting log to the issue. If yo do not know where to find logs you missed an important step in the install of HACS. ;-)

Screenshots image image