I have some contact sensors. There exists the attribute “last_changed” which is an interesting value. But I want more. I want to display the time how long the window is open in the last 24 hours.
I am thinking about sql sensor and trying to do a query. Is this a good idea?
Something is wonky with my system since recent updates. The pool pump state is currently ‘Stopped’ but my template sensor to count the time is still counting up. Argh…