Send feedback!
(Edit)
ZW_DimSetEx
boolean ZW_DimSetEx (integer $InstanceID, integer $Intensity, integer $Duration)
Parameters
InstanceID |
ID of the device to be switched
|
Intensity |
Value from 0-100 (in %)
|
Duration |
Runtime until the intensity is reached (0..255) (see table)
|
Returns
If the command succeeds, it returns TRUE, otherwise FALSE. |
Description
Dims the device with ID InstanceID to value Intensity in runtime Duration.
Duration |
Description |
0 |
Immediately |
1 - 127 |
1 - 127 Seconds |
128 - 254 |
1 - 127 Minutes |
255 |
Device default for duration |
Example
//Dims the device with ID 12345 to 50% in 10 minutes
ZW_DimSetEx(12345, 50, 138);
//Dims the device with ID 12345 to 30% in 5 seconds
ZW_DimSetEx(12345, 30, 5);