'Send alarm trigger command. No code needed.'

def alarm_trigger(self, code=None):

    self._pre_trigger_state = self._state
    self._state = STATE_ALARM_TRIGGERED
    self._state_ts = dt_util.utcnow()
    self.schedule_update_ha_state()
    if self._trigger_time:
        track_point_in_time(self._hass, self.async_update_ha_state, (self._state_ts + self._pending_time))
        track_point_in_time(self._hass, self.async_update_ha_state, ((self._state_ts + self._pending_time) + self._trigger_time))
