I trying to figure out how to have the following trigger(s):
If Motion Stays Active for 1 Minute
And
Contact is Closed
The use case is defining a Boolean Variable to determine if a Room is Occupied.
I have:
If Motion Becomes Active
And
Door is Closed
But this doesn't work if there is constant motion in the room after the door is closed.
Ultimately, I would like to have both separated by an "Or"....
If Motion Becomes Active
And
Door is Closed
Or
If Motions Stays Active for 1 Minute
And
Door is Closed
I am trying to reduplicate my SmartThings webCoRE Pistons for my Bathroom Light and Fans but finding I have to do this with multiple RM Rules.
Group 1
If Motion Changes to Active
Then
With Light Turn On
Group 2
If Motion Becomes Active
And
Door is Closed
Or
If Motions Stays Active for 1 Minute
And
Door is Closed
Then Set Variable to Occupied
Group 3
If Occupied Changes to True
Then With Fan
Wait 3 Minutes
Turn On
Group 4
If Door Changes to Open
Then Set Variable Occupied to False
Group 5
If Occupied Changes to False
And
Fan is On
Then with Fan
Wait 2 Minutes
Turn Off
Group 6
If Motion Changes to Inactive
And
Occupied is False
Then
With Light
Wait 2 Minutes
Turn Off
This kind of automation is standard throughout my home. I can set this up pretty easily in webCoRE with just 1 Piston. Does RM offers all of the above in 1 Rule?
I have it all working but had to create multiple rules using the Boolean function in RM.
Here's an example: