ESPHome 2025.5.0
Loading...
Searching...
No Matches
alarm_control_panel_state.cpp
Go to the documentation of this file.
2
3namespace esphome {
4namespace 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");
21 return LOG_STR("PENDING");
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
bool state
Definition fan.h:0
const LogString * alarm_control_panel_state_to_string(AlarmControlPanelState state)
Returns a string representation of the state.
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7