Esempio n. 1
0
 def alarm_arm_away(self, code=None):
     """Send arm away command."""
     if code:
         EVL_CONTROLLER.arm_away_partition(str(code),
                                           self._partition_number)
     else:
         EVL_CONTROLLER.arm_away_partition(str(self._code),
                                           self._partition_number)
Esempio n. 2
0
 def alarm_disarm(self, code=None):
     """Send disarm command."""
     if code:
         EVL_CONTROLLER.disarm_partition(str(code),
                                         self._partition_number)
     else:
         EVL_CONTROLLER.disarm_partition(str(self._code),
                                         self._partition_number)
Esempio n. 3
0
 def alarm_arm_home(self, code=None):
     """Send arm home command."""
     if self._code:
         EVL_CONTROLLER.arm_stay_partition(str(code),
                                           self._partition_number)
Esempio n. 4
0
 def alarm_trigger(self, code=None):
     """Alarm trigger command. Will be used to trigger a panic alarm."""
     if self._code:
         EVL_CONTROLLER.panic_alarm(self._panic_type)
Esempio n. 5
0
 def alarm_arm_home(self, code=None):
     """Send arm home command."""
     if self._code:
         EVL_CONTROLLER.arm_stay_partition(str(code),
                                           self._partition_number)
Esempio n. 6
0
 def alarm_trigger(self, code=None):
     """Alarm trigger command. Will be used to trigger a panic alarm."""
     if self._code:
         EVL_CONTROLLER.panic_alarm(self._panic_type)
Esempio n. 7
0
 def alarm_keypress(self, keypress=None):
     """Send custom keypress."""
     if keypress:
         EVL_CONTROLLER.keypresses_to_partition(self._partition_number,
                                                keypress)