gickowtf / enpal-homeassistant

Home Assistant integration for Solar Installation from Enpal
MIT License
18 stars 6 forks source link

Energy Dashboard #4

Open sebastianhi97 opened 9 months ago

sebastianhi97 commented 9 months ago

Hi,

i got a problem with the entities in the energy dashboard. Screenshot 2023-11-30 102256 Maybe you know what the problem is. This spike is everyday at the morning.

It seems that the counter didnt reset right, but in the history is the rest at 23:59:35...

gickowtf commented 5 months ago

hey i tried to fix it by setting all values to 0 in the time from 23:55 to 00:05 ...in version 0.2.1 it is a prerelease

kuroimori commented 5 months ago

Hi gickowtf, Thank you for a great HA plugin! About the midnight reset issue: Have you tried changing the state class for the energy sensors (in kWh/Wh) to 'total_increasing' from 'total' (see e.g. here: https://developers.home-assistant.io/blog/2021/09/20/state_class_total/)? I tried it locally (lines 182 & 185 in sensor.py) and it's looking fine for me.

Edit: I'm referring to your previous commit at https://github.com/gickowtf/enpal-homeassistant/blob/75cd90f89deaa62c06fbd34dee3713baa7046116/custom_components/enpal/sensor.py

gickowtf commented 5 months ago

thanks for the info i will change it right away and push it

b-huessner commented 5 months ago

That has fixed it for me, thank you

gickowtf commented 5 months ago

Yes, the Update have fixed the issue.