What can we improve?

Documentation

(Edit)

IPS_SetEventActive

 boolean IPS_SetEventActive (int $EventID, boolean $Active) 

Parameters

EventID

ID of the event to be changed

Active

Indicates whether the event should be activated (TRUE) or deactivated (FALSE)

Returns

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

Description

After the activation / deactivation, the new status can be read via IPS_GetEvent. It is possible to determine the next execution date for active cyclic events. For a deactivated event the NextRun value is zero.

Example

IPS_SetEventActive($EventID, true);  // Activates the event