8 namespace alarm_control_panel {
10 static const char *
const TAG =
"alarm_control_panel";
66 ESP_LOGW(TAG,
"Cannot arm when not disarmed");
71 ESP_LOGW(TAG,
"Cannot trip alarm when disarmed");
78 ESP_LOGW(TAG,
"Cannot disarm when not armed");
83 ESP_LOGW(TAG,
"Cannot arm home when not supported");
88 ESP_LOGW(TAG,
"Cannot arm night when not supported");
AlarmControlPanelState get_state() const
Get the state.
AlarmControlPanelCall & arm_away()
AlarmControlPanelCall & arm_vacation()
optional< std::string > code_
bool is_state_armed(AlarmControlPanelState state)
AlarmControlPanelCall & arm_night()
AlarmControlPanelCall & pending()
AlarmControlPanelCall & arm_custom_bypass()
AlarmControlPanel * parent_
AlarmControlPanelCall & disarm()
const optional< std::string > & get_code() const
virtual void control(const AlarmControlPanelCall &call)=0
AlarmControlPanelCall & set_code(const std::string &code)
const optional< AlarmControlPanelState > & get_state() const
optional< AlarmControlPanelState > state_
Implementation of SPI Controller mode.
AlarmControlPanelCall(AlarmControlPanel *parent)
virtual uint32_t get_supported_features() const =0
A numeric representation of the supported features as per HomeAssistant.
AlarmControlPanelCall & arm_home()
AlarmControlPanelCall & triggered()