I currently have an automation set up to control a device, this is working fine.
For the time when this device is turned off and not triggered by this automation, I want the device to turn off after one hour.
How can I set up the condition to check if the device was turned on via automation and vice versa.
Maybe create a dummy device, configure it in the first automation and check for it’s state in the second automation. But I think there has to be a simpler solution.
IIUC garage_switch_on_context is effectively a tiny state machine maintained by a template sensor rather than a helper. That’s actually a pretty nice pattern.