boolean PJ_SwitchDuration (int $InstanceID, boolean $Status, int $Dauer)
InstanceID | ID of the device to be switched |
Status | TRUE for On, FALSE for Off |
Dauer | On or off times in seconds |
If the command succeeds, it returns TRUE, otherwise FALSE.
Switches the relay from the WDT with ID InstanceID to value Status for Duration seconds.
The IP Symcon 868 radio system is bidirectional and thus the WDT sends the new status of the relay after the expiration of the timer.
//The following command turns on the relay for 60 seconds:
PJ_SwitchDuration(12345, True, 60);