Auto Dimming light activated via switch

@jonwhoward, If you want to try the “smartapp gentle wakeup” that I modify?
I modified it in IDE and published it for me. I installed it in the new app and it works perfectly, except for the phrases that does not exist in new app and the link with other app’s.
It works by increasing and decreasing light. I have tested it with a dimmable light bulb, I don’t have dimmable switches, but I hope it will work the same.
It is the link to post about smartapp modification:

The link to modified smartapp code: