SecurityManager

Contain utility methods and constants dealing with the house’s security sytem.

aaa_modules.security_manager.ITEM_NAME_PARTITION_ARM_MODE = 'PARTITION1_ARM_MODE'

The item name for the partition arm mode.

aaa_modules.security_manager.STATE_ARM_AWAY = 1

The value for the arm away state.

aaa_modules.security_manager.STATE_ARM_STAY = 2

The value for the arm stay state.

aaa_modules.security_manager.STATE_UNARMED = 0

The value for the unarmed state.

aaa_modules.security_manager.WHEN_CHANGED_FROM_ARM_AWAY_TO_UNARMED = 'Item PARTITION1_ARM_MODE changed from 1 to 0'

The @when condition when system is changed from armed away to unarmed.

aaa_modules.security_manager.WHEN_CHANGED_TO_ARMED_AWAY = 'Item PARTITION1_ARM_MODE changed to 1'

The @when condition when system is armed away.

aaa_modules.security_manager.WHEN_CHANGED_TO_ARMED_STAY = 'Item PARTITION1_ARM_MODE changed to 2'

The @when condition when system is armed stay.

aaa_modules.security_manager.WHEN_CHANGED_TO_UNARMED = 'Item PARTITION1_ARM_MODE changed to 0'

The @when condition when system is unarmed.

aaa_modules.security_manager.isInVacation(items)[source]
Parameters:items (scope.items) –
Returns:True if the house is set to vacation mode.