I’m trying to create an automation to turn off my coffee machine after it has been on for 3 hours.
However, I realized that if the device becomes unavailable before the 3-hour mark, the for: timer resets — so the automation never triggers unless the state stays on continuously.
I asked ChatGPT for suggestions, and while it offered workarounds (like using multiple automations or complex templates), they feel a bit overkill for something that seems like it should be simple.
Does anyone know of a cleaner or simpler way to handle this, maybe a way to tolerate brief unavailable states without resetting the timer?