I've been banging my head against the wall trying to get motion sensors to work in the bathroom. I'm trying to accomplish the following:
1) Daytime - turn on 100% with fast ramp based on motion and time out after no motion
2) Nighttime - turn on 30% with slow ramp based on motion and time out after no motion
3) Turn off if switch turned off
4) Ramp up light to 100% at night if switch pressed and turn off via switch or time out after no motion, reset to 30% until sunrise
I'm struggling with the nighttime slow ramp and lower light and the ramp up override from the switch.
Initially when you walk in the room at night, you get a slow ramp set to 30% but on the next detection of motion, the light is turned on to 100% (scene resets to 100% with 0.1 ramp rate).
Not sure why. Any thoughts?
I have the following:
MS - set to always on + sensing mode
Bathroom Light Scene - MS controller, Switchlinc responder
Motion Program:
If
Control MS-Sensor is switched on
Then
Set Scene Bathroom Light On
Wait 1 min
Set Scene Bathroom Light Off
Switch Off Override Program:
If Control Switchlinc is switched Off or Fast Off
Then
Disable Motion Program
Set Scene Bathroom Light Off
Wait 10 sec
Enable Motion Program
Night Ramp Rate Program:
If 10pm-Sunrise (next day)
Then
In Scene MS-Sensor Set Switchlinc 30% (On Level)
In Scene MS-Sensor Set Switchlinc 4.5 Sec (Ramp Rate)
Else
In Scene MS-Sensor Set Switchlinc 100% (On Level)
In Scene MS-Sensor Set Switchlinc 0.1 Sec (Ramp Rate)
Switch On Override Program:
If Control Switchlinc is switched On or Fast On
AND Status Switchlinc > Off
Then
In Scene MS-Sensor Set Switchlinc 100% (On Level)
In Scene MS-Sensor Set Switchlinc 0.1 Sec (Ramp Rate)
Set Scene Bathroom Light On