How to set a trigger "between times"

I'm looking for an automation that will trigger between two times, 9:30pm to 6am.

I didn't see anythig similar to this in rule machine.
How can I make this happen?

Trigger what, and how exactly?

Need more info to answer intelligently. Maybe describe exactly what you are trying to do.

I want to do the following automation:

If the time is between 9:30pm and 6:30am
And
Porch door is open
And
Motion sensor isn't detecting any movement (false).

Wait 10 minutes and then send a notification to my phone.
If possible, I would prefer to make alexa say a reminder.

Thanks,

1 Like

use a required expression
image

once enabled, define a required expression

do a new condition
image

set the condition for between 2 times
image

set your specific times

then create the rest of your rule. you could look to add the contact/motion into there as well and use only a single instance for the trigger (e.g. add motion to the required expression and use the door as the trigger)

Thank you.
Now I struggle a little to set a delay when the contact sensor is off, to wait 10 min and send an Aelxa notification.

One of the concepts that is important to grasp is the difference between events and states.

An event such as "the door opened" can be used for a trigger.

A state such as "the door is open" can be used in a required expression or as a condition.

2 Likes

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.