Light adjustment


#21

Glad it is working for you. The pauses may not be required for you, but works well for me.

All in a day’s work! LOL


Side note: I think it is important to keep in line 28:

and 
IF bulb's level is greater than 25%

to keep the code clean & streamlined with no potential loop


#22

If “Command Optimization” is disabled in a piston, it forces that piston to send all commands. Even if the device is already showing in that state.

For example:
Normally, if a bulb is on, and webCoRE has a command to turn on the bulb, it will not send the command because the bulb is already on. On the other hand, if Command Optimization is disabled, it will send the on command regardless of status.