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)
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)
def alarm_arm_home(self, code=None): """Send arm home command.""" if self._code: EVL_CONTROLLER.arm_stay_partition(str(code), self._partition_number)
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)
def alarm_keypress(self, keypress=None): """Send custom keypress.""" if keypress: EVL_CONTROLLER.keypresses_to_partition(self._partition_number, keypress)