Documentation
PJ_DimRGBW
boolean PJ_DimRGBW (int $InstanceID, int $R, int $RTime, int $G, int $GZeit, int $B, int $BZeit, int $W, int $WZeit)
Parameters
InstanceID | ID of the device to be switched |
R | Brightness value 0 (off) to 255 (on, maximum brightness) |
RTime | In seconds in which the desired brightness level is to be achieved |
G | Brightness value 0 (off) to 255 (on, maximum brightness) |
GZeit | In seconds in which the desired brightness level is to be achieved |
B | Brightness value 0 (off) to 255 (on, maximum brightness) |
BZeit | In seconds in which the desired brightness level is to be achieved |
W | Brightness value 0 (off) to 255 (on, maximum brightness) |
WZeit | In seconds in which the desired brightness level is to be achieved |
Returns
If the command succeeds, it returns TRUE, otherwise FALSE.
Description
Sends a dimming command to the RGBW-868 controller of the ID InstanceID.
The value for the time is divided internally into two sections. When times are specified over 255 seconds, automatically all times that were less than 255 are set to 255. This area is intended for slow scenarios to wake up.
Example
//dim in 2 seconds on yellow
PJ_DimRGBW(12345,255,2,255,2,0,0,0,0);