Hi
I have a couple of things i want to impliment.
I have movement sensors in rooms that are occupied when the kids come. I would like to turn of the heating to these rooms after 12 hours since movement detector last activated. Also turn on when the movement sensor is activated.
I ‘could’ use a 12 hour timer but as this wont survive reboots id prefer to check say every 10 mins what the timestamp of the last detection was.
Any suggestions please?
When you say it will restart on HA restart does that mean the last_change value is lost on restart?
also if using the other method it appears when it triggers it sets a new trigger in the future to turn the heating off, if there is another trigger of the moevement sensor will that remove the previous turn off trigger?