ESPHome
2024.11.0
esphome
esphome
components
alarm_control_panel
alarm_control_panel_state.cpp
Go to the documentation of this file.
1
#include "
alarm_control_panel_state.h
"
2
3
namespace
esphome
{
4
namespace
alarm_control_panel {
5
6
const
LogString *
alarm_control_panel_state_to_string
(
AlarmControlPanelState
state
) {
7
switch
(state) {
8
case
ACP_STATE_DISARMED
:
9
return
LOG_STR(
"DISARMED"
);
10
case
ACP_STATE_ARMED_HOME
:
11
return
LOG_STR(
"ARMED_HOME"
);
12
case
ACP_STATE_ARMED_AWAY
:
13
return
LOG_STR(
"ARMED_AWAY"
);
14
case
ACP_STATE_ARMED_NIGHT
:
15
return
LOG_STR(
"ARMED_NIGHT"
);
16
case
ACP_STATE_ARMED_VACATION
:
17
return
LOG_STR(
"ARMED_VACATION"
);
18
case
ACP_STATE_ARMED_CUSTOM_BYPASS
:
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"
);
24
case
ACP_STATE_DISARMING
:
25
return
LOG_STR(
"DISARMING"
);
26
case
ACP_STATE_TRIGGERED
:
27
return
LOG_STR(
"TRIGGERED"
);
28
default
:
29
return
LOG_STR(
"UNKNOWN"
);
30
}
31
}
32
33
}
// namespace alarm_control_panel
34
}
// namespace esphome
esphome::alarm_control_panel::AlarmControlPanelState
AlarmControlPanelState
Definition:
alarm_control_panel_state.h:9
alarm_control_panel_state.h
esphome::alarm_control_panel::ACP_STATE_DISARMING
Definition:
alarm_control_panel_state.h:18
esphome::alarm_control_panel::ACP_STATE_TRIGGERED
Definition:
alarm_control_panel_state.h:19
esphome::alarm_control_panel::ACP_STATE_PENDING
Definition:
alarm_control_panel_state.h:16
esphome::alarm_control_panel::ACP_STATE_ARMED_VACATION
Definition:
alarm_control_panel_state.h:14
esphome::alarm_control_panel::ACP_STATE_ARMED_CUSTOM_BYPASS
Definition:
alarm_control_panel_state.h:15
esphome::alarm_control_panel::ACP_STATE_ARMED_NIGHT
Definition:
alarm_control_panel_state.h:13
esphome::alarm_control_panel::alarm_control_panel_state_to_string
const LogString * alarm_control_panel_state_to_string(AlarmControlPanelState state)
Returns a string representation of the state.
Definition:
alarm_control_panel_state.cpp:6
esphome::alarm_control_panel::ACP_STATE_DISARMED
Definition:
alarm_control_panel_state.h:10
esphome::alarm_control_panel::ACP_STATE_ARMED_HOME
Definition:
alarm_control_panel_state.h:11
esphome::alarm_control_panel::ACP_STATE_ARMING
Definition:
alarm_control_panel_state.h:17
esphome::alarm_control_panel::ACP_STATE_ARMED_AWAY
Definition:
alarm_control_panel_state.h:12
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
state
bool state
Definition:
fan.h:34
Generated by
1.8.13