I have a motion sensor configured in a bathroom that control a switchlinc dimmer and i would like to have it come on at 15% from 11p-6a and 100% the rest of the time.
i have tried many variations to my programs and this is what i have currently
i have tried with and without the parentheses
this is the program from 11p-6a, followed by 6a-11p and then the timer to turn them off. the program is working but it always turns on the lights at 100% what am i missing or how can i simplify this code?
If
(
From 11:00:00PM
To 6:00:00AM (next day)
And Status 'Master Bathroom / Master Bathroom Lights' is Off
And Control 'Master Bathroom / Master Bathroom Motion-Sensor' is switched On
)
Then
Set 'Master Bathroom / Master Bathroom Lights' 15%
Else
- No Actions - (To add one, press 'Action')
If
(
From 6:00:01AM
To 10:59:59PM (next day)
And Status 'Master Bathroom / Master Bathroom Lights' is Off
And Control 'Master Bathroom / Master Bathroom Motion-Sensor' is switched On
)
Then
Set 'Master Bathroom / Master Bathroom Lights' 100%
Else
- No Actions - (To add one, press 'Action')
If
Status 'Master Bathroom / Master Bathroom Motion-Sensor' is Off
Then
Wait 4 minutes
Set 'Master Bathroom / Master Bathroom Lights' Off
Else
- No Actions - (To add one, press 'Action')