#Automation that runs between Sunrise (+04:00:00) and Sunset (+01:30:00) Example please?
1 messages · Page 1 of 1 (latest)
A sunrise trigger to turn do something and a sunset trigger to do something
Nothing happens between them
Okay, so what I want is:
Trigger: Motion
And If between Sunrise(+4:00) and Sunset(+1:30)
Then turn on AC in Sunroom
So basically, turn on the AC if there's someone in the room during those hours (when it's most heated in that room)
The logic works without the "and If" component
Conditions are and by default
I want the motion in the room to act as the trigger. Or do I need to have Motion + Sun conditions?
Just what you said
Trigger on motion, condition on time
And read up on sun elevation, which is a much better way to do what you're doing
My biggest question is
are the conditions lumped together or separate entities under 'And If'?
Conditions are and by default
If you just want the syntax: https://www.home-assistant.io/docs/scripts/conditions/
Unlike a trigger, which is always or, conditions are and by default - all conditions have to be true.
From that page
Figured it out. I wasn't saving before I was testing the logic