ESPHome  2024.12.2
alarm_control_panel_state.cpp
Go to the documentation of this file.
2 
3 namespace esphome {
4 namespace alarm_control_panel {
5 
7  switch (state) {
9  return LOG_STR("DISARMED");
11  return LOG_STR("ARMED_HOME");
13  return LOG_STR("ARMED_AWAY");
15  return LOG_STR("ARMED_NIGHT");
17  return LOG_STR("ARMED_VACATION");
19  return LOG_STR("ARMED_CUSTOM_BYPASS");
20  case ACP_STATE_PENDING:
21  return LOG_STR("PENDING");
22  case ACP_STATE_ARMING:
23  return LOG_STR("ARMING");
25  return LOG_STR("DISARMING");
27  return LOG_STR("TRIGGERED");
28  default:
29  return LOG_STR("UNKNOWN");
30  }
31 }
32 
33 } // namespace alarm_control_panel
34 } // namespace esphome
const LogString * alarm_control_panel_state_to_string(AlarmControlPanelState state)
Returns a string representation of the state.
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7
bool state
Definition: fan.h:34