I have an A/C where I need to change the filter every 6 month. For this I have build an input button when the filter is changed.
The sensor “Zeit seit letztem Filterwechsel” calculates the hours from the input button until now. I would have expected that this one is always increasing until the button is pushed. However, looking at the history, the values drop every now and then since 8th December. Is there a way that the sensor remains the value even through a restart? I thought this would be the case for history sensors?
I do not consider myself an expert in home assistant.
Still I read something about numbers not being kept through restarts, whereas sensors are. It could be that input_button is similar. So in this case, if you configure a helper template of type sensor, you may be able to ensure it keeps track of the button time when there is a restart?
Hope that helps!
I am looking to use a button so folks can request the car to be charged overnight. Thanks to your message, I will use a sensor to fool proof it for restarts…
I managed a few days ago to work around this issue. I have rewritten the sensor to a trigger based sensor, which saves data over a restart.
Also the alert integration is triggering on every restart, so I replaced this with a normal automation. Now the sensor survives restarts and the notification is not triggering anymore when restarting.