I am new to Home Assistant but I’ve been pleasantly surprised at how easy at has been to get all of my devices set up and automated.
I have a Home Assistant Green with OS version 15.2, Core 2025.4.3.
I have created many automations, scripts and scenes for various devices but I am stuck trying to automate my air conditioning system.
I have created automations for both heating and cooling that have start and end times and with conditions for the current temperature outside and inside to be met. I can make that part work.
The problem I have is where the conditions are not met at the start time, I need the automation to keep checking those conditions periodically so that the AC turns on when they are met.
I have searched the forum and google many times but I have struggled to find an answer that seemed relevant or that I could understand. At one point I found a reference to a Repeat Until variable that I have added to my automation but it doesn’t seem to have had any effect. Maybe I’m not using it correctly.
My preference is to use the UI to set up the automations and my understanding of YAML is close to zero, so that is also making it hard to find an answer I think.
This is my Automation for Cooling so far:
Start time: 12:00
End Time: 23:00
If outside temperature is above 26
and either
climate.ac_living_kitch is above 24.8
climate.ac_wayne_s_bed is above 24.8
Then
Turn on Scene scene.ac_cooling_default
My current attempts result in either the cooling mode being activated at the start time if the conditions are met or else it never activates.
I’d really appreciate any help that can be offered. Thanks.
Also running Automatons for long periods of time, if there is an interruption for instance HA restarts or whatever, the Automation ends and doesn’t restart. The recommendation is to trigger the automation when things happen then let it end, then have another trigger or another automation when the next thing happens. Trying to run the automation to monitor some long term thing is prone to error because of this.
So for your specific question I rec adjust things so it acts on the triggered events as they occur.
With these kinds of automations it’s normally a good idea to have all conditions as triggers and all triggers as conditions. Thus, add one time trigger for 12:00 too, so that when 12:00 strikes and all other conditions are already met, then it will turn on.
It depends on whether you and or or them together. I’d rather make two automations, or make a blueprint if the automations are identical. Otherwise, you’ll need to have logic in your actions to see which ACs have met the conditions, leading to duplicated logic (what you already have in your conditions), with an additional check for which entity it’s true.
Although I’m posting YAML, I’m creating/editing my automations with the UI. I don’t know how to edit YAML correctly and I don’t see a way in the UI to insert and/or into the triggers.
Regardless of that, I’ve done some testing and the automation activates if either of the climate.ac triggers hit 24.8.
If I add a time trigger at 12:00 then nothing happens when they reach temperature.
So I’m thinking that I should create a secondary automation to trigger this one at 12:00 just to check if the temperature has already been reached at that time.
It should.
But it will only trigger when it’s 12:00:00, so if this has already passed then it won’t trigger.
All the suggestions above is good.
But there is one that is kind of left hanging.
Your outside temperature is listed as a condition only, it should be a trigger also.
Because each of the triggers can happen, but you need to ensure that everything is as it should for the AC to turn on.
The temperature could go up during the night but then the time condition stops it from activating.
Remember, a trigger is a moment in time, so e.g. when the time comes (12:00), you want to check in the conditions whether the temperature is as required. But, if you trigger on temperature, you want to ensure the time condition holds true as well. Put differently: you want your conditions to all pass, whatever the trigger.
I added an if/then/else condition to the action of the automation so that at the end time the system would be switched off.
But without an 11:00pm trigger there was nothing to make sure the condition got checked at that time, so it didn’t turn off.
Thanks for your suggestion, but I’m not having much luck.
I’ve tried setting the end time trigger to 23:00, 22:59 and 23:01 and the AC system doesn’t turn off for any of them.
I’ve tried moving the 23:00 trigger to be the last trigger in the list with no improvement.
If I run the automation manually after the end time the AC system turns off, so it would seem to be a failure to trigger at the end time.
I have automations for switches that use the same if/then/else action but don’t have any conditions/triggers other than start/end times and these work perfectly.