
How to best deal with 2 different light levels
I have my house set up with 2 modes. Day and sleep and am wondering if I'm doing it the most efficient way. The way I have it set up is my motion detector MS16A is set to (set motion state to off after 10 minutes of last sent ON. Then I have 4 triggers setup like this:
- Code: Select all
Trigger: "Bedroom Motion" onOffState becomes on
Condition: if myHouseMode is NOT sleep
Actions: brighten "Bedroom Lights" by 100%
Trigger: "Bedroom Motion" onOffState becomes on
Condition: if myHouseMode is sleep
Actions: brighten "Bedroom Lights" by 8%, turn off "Bedroom Motion" (set for 15 seconds)
Trigger: "Bedroom Motion" onOffState becomes on
Condition: always execute
Actions: turn on "Bedroom Lights"
Trigger: "Bedroom Motion" onOffState becomes off
Condition: always execute
Actions: turn off "Bedroom Lights"
This works but I'm wondering if there is a better way to do it. Also I consider adding a 3rd mode for night light levels. Sleep mode is just used to dim the lights quickly at night when sleeping.
I didn't see another way of handing the off delay during the day (10 minutes) and in sleep mode which I want to be about 15 seconds.
I like using the auto off in the motion sensor so I don't send unnecessary on commands when motion is detected.
Would doing this in a script work better? I've thought that if I want a motion sensor to sense motion and turn the lights on for 10 minutes then during that 10 minutes I could disable that motion sensor so RF receiver doesn't have to deal with unnecessary motion detection. This should speed up the motion sensing when there is a lot of movement since it's handled sequentially right?