« Back to Product

Documentation

LCN_SwitchDurationSec

 boolean LCN_SwitchDurationSec (int $InstanceID, int $Seconds, string $DimmingTime, boolean $Preserving) 

Parameters

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.

Returns

If the command succeeds, it returns TRUE, otherwise FALSE.

Description

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

Example

// Quickly dim device 12345 after 5 seconds
LCN_SwitchDurationSec(12345, 5, 'K', false);
Any questions?