[RESOLVED] Gentle Wake Lighting

lights
light
motion

#1

1) Give a description of the problem
Trying to design motion lighting similar to “Gentle Wake” app

2) What is the expected behavior?
When motion is detected at between a certain time the light will gradually turn on from 1% to 100% over a period of time. If the light switch is pressed then it would turn on to full power.

The gentle wake up app always restarted after you turned the light off and tried to turn back on…


#2

I think I understand that you’re saying once the fade-up has begun that it won’t stop for anything, including changes to the switches. And that’s correct. Once a fade sequence has begun, nothing can stop it. The way it works is by scheduling events for the device which operate outside of the piston. I think the only solution would be to hard-code the level changes.
Set level 100
Wait 3 sec
Set level 99
Wait 3 sec
Set level 98


#3

You are absolutely correct. You cannot cancel a WC fade once it has begun. And you describe exactly how it works too. It “does the math” and figures out the time interval when it needs to send the next “set level” command to the lights. It does not stop for anything.

So if the fade is at 50% and going up and you turn the lights on to 100%, the next fade command will come along and set them to 51% (or whatever based on the timer interval).

There were a few folks on here who were making their own fades that could be cancelled…but it’s an involved process. There might be a few posts around with that type of topic though as it’s been a popular-ish request (there’s even a feature request for it).