Documentation
ZW_DimUpEx
boolean ZW_DimUpEx (int $InstanceID, int $Duration)
Parameters
InstanceID | ID of the device to be switched |
Duration | Runtime until dimming up completely (0..255) (see table) |
Returns
If the command succeeds, it returns TRUE, otherwise FALSE.
Description
Starts dimming up the device with ID InstanceID in runtime Duration.
Duration | Description |
---|---|
0 | Immediately |
1 - 127 | 1 - 127 Seconds |
128 - 254 | 1 - 127 Minutes |
255 | Device default for duration |
Example
//The device with the ID 12345 starts to dim up over a runtime of 10 minutes
ZW_DimUpEx(12345, 138);
//The device with ID 12345 begins to dim up over a runtime of 5 seconds
ZW_DimUpEx(12345, 5);