Time of Day motion light else switch that times out?

Hello Rule Machine Wizards! I am very new to Rule Machine and trying to figure one rule out.

Motion sensor triggers light switch to come on between 830am to 12am only and cut off 2 min later if not motion.

This works great in basic rules.

I would like to add the switch operation in off times but have it shut off after 2 min as well.

Ideas?

So, if you turn on with the switch, still turn off after 2 minutes of no motion or just always turn the light off after two minutes?

No motion would be nice.

This is what I would do. This will always turn off the stitch after 2 minutes once there is no motion.

Trigger: Switch turns on and stays on for 2 minutes
Actions:
Wait for condition: No Motion
Switch: Off

An alternative to always turn off the switch when there is no motion for 2 minutes would be:

Required Expression: Switch on
Trigger: Motion stops for 2 minutes
Action: Switch Off

1 Like

I recommend using Room Lighting. You just set up the periods or modes to match your scenarios. Some modes will turn on (Activate column), all modes will turn off. The setup should be similar to the following (that shows within Day mode only turning on via switch, off is based on timer or motion ending):

Room Lighting can be complex, but gets easier with use.

2 Likes

This is my go-to when things start getting complicated. :thinking:

Light/switch comes on?
No motion for x minutes?
Turn light/switch off.

It might be an extra rule in the system, but it keeps me sane. :crazy_face:

1 Like

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