Hi all!
I have run into an interesting issue (or maybe I just don’t “get it”).
I have an automation running every minute. If the time of day is between 8:30 am and 6pm, and if my weather forecast sensor predicts 25°C or more for today and if I’m awake (a Boolean set everytime I say “ok google, good morning”, as I don’t want the covers in the bedroom to move if I’m still asleep past 8:30am), it will partially close the roller shutters. Otherwise, nothing should happen.
The trigger for this is time, and it is triggered every one minute.
In order to avoid unnecessary roller shutter travel, I wish to run this automation along with another sciprt ( the “ok google, good morning” script). So when I have in my script:
it does trigger the automation, bypassing said automation’s condition, and will partially close my shutters even if the forecasted temperature condition doesn’t match.
How could I apply the automation’s condition even when the automation is programmatically triggered, without having to insert the same condition in my “good morning” script?
It doesn’t make sense, though. Shouldn’t the condition be like a centralized way of managing whether the content of the automation should be ran or not? It seems redundant and counterproductive to have the condition both in my script and in my automation.
I mean, the triggering should be ignored since it has been triggered manually (or programmatical), but not the rest of the automation (conditions, actions, etc.)
I am not sure what you are trying to do by the way. You seem to only want the shutters to open when you get up. Run it all from the good morning script. Or do I miss something?
Conditions can also be part of an action. You can combine multiple service calls and conditions in a single action, and they will be processed in the order you put them in. If the result of a condition is false, the action will stop there so any service calls after that condition will not be executed.
So when I wake up in the morning, I want my shutters to open.
Throughout the day, if today’s max temperature is 24°C or above, I want my shutters to be lowered, as to reduce sun exposure.
What I want to avoid, is for me shutter to open all the way up in the morning, then moments later, go back down to, what I call, “summertime warmness” position. I want it to go directly to the “summertime warmness” position (60% shut) instead of going from 100% shut to 0% then back down to 60%.
And as the forecast might change throughout the day, I need to have this “summertime warmness” automation monitoring said forecast through the day.