12 #ifdef USE_BINARY_SENSOR 19 #ifdef USE_BINARY_SENSOR 53 void dump_config()
override;
54 void setup()
override;
56 uint32_t get_supported_features()
const override;
57 bool get_requires_code()
const override;
62 #ifdef USE_BINARY_SENSOR 76 void add_code(
const std::string &code) { this->codes_.push_back(code); }
120 #ifdef USE_BINARY_SENSOR 130 uint32_t arming_home_time_{0};
132 uint32_t arming_night_time_{0};
142 bool requires_code_to_arm_ =
false;
143 bool supports_arm_home_ =
false;
144 bool supports_arm_night_ =
false;
145 bool sensors_ready_ =
false;
146 bool sensors_ready_last_ =
false;
147 uint8_t next_store_index_ = 0;
void add_code(const std::string &code)
add a code
uint32_t arming_away_time_
void set_pending_time(uint32_t time)
set the delay before triggering
void set_supports_arm_home(bool supports_arm_home)
bool get_requires_code_to_arm() const override
void set_arming_night_time(uint32_t time)
set the delay before arming night
TemplateAlarmControlPanelRestoreMode
void set_arming_home_time(uint32_t time)
set the delay before arming home
void set_trigger_time(uint32_t time)
set the delay before resetting after triggered
void set_supports_arm_night(bool supports_arm_night)
void set_arming_away_time(uint32_t time)
set the delay before arming away
void set_requires_code_to_arm(bool code_to_arm)
set requires a code to arm
std::map< binary_sensor::BinarySensor *, SensorInfo > sensor_map_
bool get_all_sensors_ready()
Implementation of SPI Controller mode.
Base class for all binary_sensor-type classes.
std::vector< SensorDataStore > sensor_data_
void set_restore_mode(TemplateAlarmControlPanelRestoreMode restore_mode)
std::vector< std::string > codes_
esphome::sensor::Sensor * sensor
void IRAM_ATTR HOT delay(uint32_t ms)