I have a couple of automations that trigger after long timers (example below). If HA is restarted for any reason, the timer will never fire. I’m looking for any approach that WILL still fire.
My best idea is to use template binary_sensors that check the time when another sensor was last
changed to a given state, however, I can’t find a way to access state history timestamps from inside a template.
Is that possible?
If not, can someone suggest a new approach?
- id: enter_low_power trigger: platform: state entity_id: binary_sensor.house_occupied to: 'off' for: days: 1 action: - service: homeassistant.turn_off entity_id: group.low_power