Cancel makes the delay go away. So if you walk into the room, motion triggers lights on. Then you walk out, motion stops. Easy so far.
The motion off starts a timer. The lights turn off after X minutes, no matter what. You return to the room, the lights turn off from the previously running timer.
With Cancel, you return to the room, and the timer resets. And resets again if needed. The lights stay on until you are truly not going back and forth into this room. So you want to cancel right away in the rule to let the motion re-trigger the rule.
Dimmers are both dimmers and switches. And generally, setting dimmer to zero is not really off. If you want off, use Switch>OFF in your rules.
Thanks much for shedding more light on that! So the motion sensor stays on throughout the day, and itโs not going off in the morning at 8am, I canโt quite get it to work. Am I missing a rule somewhere? Do I need to do a simple automation for motion sensor on/off at a certain time?
Gotcha! Just saw your post after I added the screenshots. I'll definitely check that out. Thanks so much! I feel I'm super close because of everyone's superb help, thank you!!
That is not how I would have written that, but I am not an expert in rules. I am just OK with them.
I am not quite sure about some things in there like the Pause, I don't think that is working like you intended. And Dim 0 is not off, so that might be causing issues.
I can show you what I did in a similar situation, however mine looks quite similar to April's above.
Screenshot. In Windows, the command is CTRL> Print Screen. I just use basic Paint to paste and crop. I crossed out the parts you don't want (light colors).
At the very least, the base logic is here (IF, ELSE, ENDIF).
Awesome, thanks! I just meant, in the Hub settings, how do I show the screen with all that logic like that. I feel like i've come across it before, but the rules in my rule machine don't look like code.
If you are using Rule Machine, once you enter the rule, (click on the name of rule in Apps) it should look exactly like that. Nothing special otherwise.
I'm meaning the code itself, showing the IFS ANDS and other Logic, like the actual programming language being read by the hub, I can't seem to get it to show the programming language screens. The text on yours and april's screenshots are much different than my simple text with youre having IF:ELSE statements directly from the code.
You don't need the wait for 9.30pm just make the trigger 9.30pm. It does the same thing but the wait is a needless step.
Change dim to 0 to switch off and maybe put the pausing of the rule before the off which should remove the ability for the light to stay on.
For the second rule
You need to add a wait for inactive between the 2 dimming of the lights and no delay on the first dimming it should be on the second to stop the lights turnig off the moment the motion sensor goes inactive unless you want that.