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?
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
bill.d
April 20, 2023, 4:00pm
5
gerald1:
No motion would be nice.
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.
Learn how to use Room Lighting to automate lighting in a room based on motion sensors, contact sensors, buttons, and more! Room Lighting can also activate lights together, like a group or scene.
2 Likes
This is my go-to when things start getting complicated.
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.
1 Like
system
Closed
April 19, 2024, 7:49pm
7
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.