9using namespace alarm_control_panel;
32 auto code =
call.get_code();
36 if (!code.has_value() || *code !=
"1234") {
45 if (!code.has_value() || *code !=
"1234") {
void status_momentary_error(const char *name, uint32_t length=5000)
Set error status flag and automatically clear it after a timeout.
void publish_state(AlarmControlPanelState state)
Set the state of the alarm_control_panel.
uint32_t get_supported_features() const override
void control(const AlarmControlPanelCall &call) override
void set_type(DemoAlarmControlPanelType type)
DemoAlarmControlPanelType type_
bool get_requires_code_to_arm() const override
bool get_requires_code() const override
DemoAlarmControlPanelType
Providing packet encoding functions for exchanging data with a remote host.