#Automation that runs between Sunrise (+04:00:00) and Sunset (+01:30:00) Example please?

1 messages · Page 1 of 1 (latest)

subtle tulip
#

Coming over from Homekit Controller and trying to convert a simple automation I have there. How do I include the "AND" logic to say "between Sunrise +(insert time) and Sunset +(insert time)?

copper sun
#

A sunrise trigger to turn do something and a sunset trigger to do something

#

Nothing happens between them

subtle tulip
#

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

copper sun
#

Conditions are and by default

subtle tulip
copper sun
#

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

subtle tulip
#

My biggest question is

#

are the conditions lumped together or separate entities under 'And If'?

copper sun
#

Conditions are and by default

subtle tulip
#

Sorry, i'm not following

#

Are and by default

copper sun
#

Unlike a trigger, which is always or, conditions are and by default - all conditions have to be true.

#

From that page

subtle tulip
#

Figured it out. I wasn't saving before I was testing the logic