boolean LCN_SwitchDurationSec (int $InstanceID, int $Seconds, string $DimmingTime, boolean $Preserving)
InstanceID | ID of the device to be switched |
Seconds | After how many seconds it should be dimmed down |
DimmingTime | How fast to dim down |
Preserving | The device is only shut down after the time elapsed if it has not been on before. |
If the command succeeds, it returns TRUE, otherwise FALSE.
Dims the device with ID InstanceID brighter after Seconds seconds. Other options are the dimming speed DimmingTime and whether it is Preserving.
DimmingTime | Description |
---|---|
'K' | Short DimmingTime |
'M' | Medium DimmingTime |
'L' | Long DimmingTime |
// Quickly dim device 12345 after 5 seconds
LCN_SwitchDurationSec(12345, 5, 'K', false);