#Automation Trigger Question

1 messages · Page 1 of 1 (latest)

nocturne prism
#

I am trying to write an automation where, between 8pm and 5am, if any of three cameras detects motion, my sprinklers are activated for 15 seconds. However, I am unable to set a time window automation trigger as it only lets me enter a specific time.

I think what I want is possible using YAML but I’d like to know if it’s possible to achieve this in the visual editor as well.

cerulean vigil
#

The time period should be the condition, not the trigger

#

A time period is not a trigger. A trigger is a moment in time

#

You are thinking about it backward

nocturne prism
#

I thought that might be the case. I’ve tried making the trigger the camera motion detection, but I could not figure out how to make an OR statement trigger where the automation is triggered by any of the three cameras.

#

In other words I couldn’t make the trigger a conditional

cerulean vigil
#

Indeed

#

That's what a condition is for

dull orchid
nocturne prism
#

Got it, thanks. For future reference, if I use a Sunset trigger, will the automation only activate at a specific time corresponding to sunset? Or will it remain triggered until sunrise?

cerulean vigil
#

There's no such thing as remaining triggered

#

It triggers at a single time

nocturne prism
#

Yeah I’m definitely overthinking this lol. So if I have my trigger set to sunset, and include an And If statement, will the action only occur if the And condition is met at the exact time of sunset?

cerulean vigil
#

Yes

dull orchid
#

You really want motion on camera to be the triggers. Then condition with time and/or sun below horizon.

nocturne prism
#

Makes sense, thanks again 👍