I made a History Stats entity to count time the heater was “On” during the heating season starting August of the previous year. What I see - is the negative changes of time the entity was in state “1”. How it is possible?! What went wrong?
Personally, I have the impression that the value of my variable decreases/reduction around 4 am. For you too ?
So, I was thinking of creating a variable that will register before the value changes and adding with the old value.
Dimster I think I know where the problem comes from, but I haven’t looked at the code in detail to validate my point.
Currently I am testing a workaround that seems to be working well. We must make a sensor with the values that we want in our history which take two values for example ‘on’ and ‘off’ example:
- platform: template
sensors:
ravelli_template:
friendly_name: 'friendly_name'
value_template: >-
{% if (states('sensor.ravelli_etat') | int == 4) or (states('sensor.ravelli_etat') | int == 5) %}
on
{% else %}
off
{% endif %}
Hi every one
I still have this issue, ullrik you said you thought you knew what was going one. Do you maybe have a solution. I tried to use you r latest idea, but I still see reduction in som of my history stats. Seems it drops down on the same time at night but not every night.
My Home assistant is updated and running Maria DB for history stats.
Any idea is appriciated
/Lasse
Hi tom_I, thanks for the reply. Always nice to simplify things.
My problem is though, that I have a sensor for how long time my tv channels is on, one for each tv channel.
When I look at history stats, I have a drop in the value without any reason. Only at some channels not on all channels, it looks like it’s the last three nights at precise 04:12 at night
Hi ullrik i see the same in my history stats around 4 am as well, it happens after HA has been running for 10-11 days, and then every night at 4 am…
Did you find a solution…
/Lasse