This modification permit to use optional parameter mode in fonction set_power().
it is useful in certain case (and i need it ;) )
0: Normal turn on operation (default value)
1: Turn on and switch to CT mode.
2: Turn on and switch to RGB mode.
3: Turn on and switch to HSV mode.
4: Turn on and switch to color flow mode.
5: Turn on and switch to Night light mode. (Ceiling light only).
This modification permit to use optional parameter mode in fonction set_power(). it is useful in certain case (and i need it ;) )
0: Normal turn on operation (default value) 1: Turn on and switch to CT mode. 2: Turn on and switch to RGB mode. 3: Turn on and switch to HSV mode. 4: Turn on and switch to color flow mode. 5: Turn on and switch to Night light mode. (Ceiling light only).
See documentation on page 13: https://www.yeelight.com/download/Yeelight_Inter-Operation_Spec.pdf