I have an automation that at 5am triggers, and turns on the air conditioner for one hour, turning off after that.
The automation works fine, but sometimes, like today, I woke up before 5am and I would like to not run the automation, something like postpone for the next run, tomorrow, but I couldn’t find the option.
What I did today was triggering the automation earlier and then turn off the air conditioner manually, which maybe is suboptimal since I still have to turn on the air.
Anyone knows anyway to cancel the execution just a single time?
Perhaps we could think about a new feature to cancel or postpone time-based execution, which could also have integration with the assistant, like “cancel ac automation”, or “postpone ac automation”.
Make a new script to turn off the other automation for 1hr then wait for 1hr and turn the other automation back on. Itll work fine unless HA gets restarted during that hour.
If you are worried about HA being restarted during that time you can use an automation to turn on the aircon automation on restart. Pretty soon it’ll be automations all the way down.
I would add a boolean as condition.
Or you could be smart about it and have the boolean as a choose.
If the automation triggers and the boolean it true then don’t run the AC but turn off the boolean.
Maybe it works if I keep two automations as suggested, one to turn on, and put the boolean in it, and other to turn off that checks if the ac is on, which I already did.
The problem is: if I turn off the boolean and forget to turn on again for the next day?
I will need a new automation that changes the boolean value after a couple hours.
I’m thinking that a way to single-time cancel a time based automation can be useful, but I don’t know for sure how complex could be developing that.
I think Google Home allows you to cancel an automation without disabling, but I chose put the automation in HA because it can work without Internet (in theory).
The automation I posted is self contained and will reset the boolean by itself every day.
That can of course be changed.
How are you thinking this should work?
Your post lead me to believe it was a one time thing.
If you need longer periods of off time then a schedule helper might be good. Or calendar for even longer periods.
You got it. It’s one-time thing.
Imagine that, like today, I woke up before 5am, and I don’t need the ac turning on, since I turn on to heat the bedroom and make easier to get up, but tomorrow maybe I will wake up after 5am and I need the ac on.
I could, if I had a better temperature sensor than the one present in the AC, but my goal is wake up around this time. Maybe when I start waking up at 5am I will change the start to 4:30am.
The first part worked.
It starts the AC, unless Postpone is enabled. In this case it won’t start.
Now I’m thinking about the turn off option.
It should turn off after one hour just when the air was turned on by the automation, like if I start by myself, I don’t want to turn off.
If we had a cancel option, all the automation would be temporarily turned off so the turn off part wouldn’t happen.
Maybe a second boolean that defines if the AC was turned on manually or using automation?