ESPHome
2024.12.2
esphome
esphome
components
alarm_control_panel
alarm_control_panel_state.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <cstdint>
4
#include "
esphome/core/log.h
"
5
6
namespace
esphome
{
7
namespace
alarm_control_panel {
8
9
enum
AlarmControlPanelState
: uint8_t {
10
ACP_STATE_DISARMED
= 0,
11
ACP_STATE_ARMED_HOME
= 1,
12
ACP_STATE_ARMED_AWAY
= 2,
13
ACP_STATE_ARMED_NIGHT
= 3,
14
ACP_STATE_ARMED_VACATION
= 4,
15
ACP_STATE_ARMED_CUSTOM_BYPASS
= 5,
16
ACP_STATE_PENDING
= 6,
17
ACP_STATE_ARMING
= 7,
18
ACP_STATE_DISARMING
= 8,
19
ACP_STATE_TRIGGERED
= 9
20
};
21
26
const
LogString *
alarm_control_panel_state_to_string
(
AlarmControlPanelState
state
);
27
28
}
// namespace alarm_control_panel
29
}
// namespace esphome
esphome::alarm_control_panel::AlarmControlPanelState
AlarmControlPanelState
Definition:
alarm_control_panel_state.h:9
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
log.h
state
bool state
Definition:
fan.h:34
Generated by
1.8.13