SetSecurityMode

Purpose

This function enables or disables the security mode.  When security mode is enabled, the event trigger time is randomly set to plus or minus 30 minutes from the actual set time.  This can give your home a lived-in look because lights and other devices won't be turned on at the same time day after day.

Parameters

Parameter: mode
Type: integer
Description: Use 0 to disable the security mode and 1 to enable it.

Returns

None.

Example

The following script statement will enable security mode.

hs.SetSecurityMode 1