18 bool advance_platform =
false;
20 switch (this->state_) {
26 advance_platform =
true;
31 #ifdef USE_BINARY_SENSOR 34 advance_platform =
true;
49 advance_platform =
true;
64 advance_platform =
true;
71 success = this->
on_fan(fan);
79 advance_platform =
true;
94 advance_platform =
true;
109 advance_platform =
true;
124 advance_platform =
true;
136 #ifdef USE_TEXT_SENSOR 139 advance_platform =
true;
154 advance_platform =
true;
161 #ifdef USE_ESP32_CAMERA 164 advance_platform =
true;
167 advance_platform = success =
true;
178 advance_platform =
true;
193 advance_platform =
true;
205 #ifdef USE_DATETIME_DATE 208 advance_platform =
true;
220 #ifdef USE_DATETIME_TIME 223 advance_platform =
true;
235 #ifdef USE_DATETIME_DATETIME 238 advance_platform =
true;
253 advance_platform =
true;
268 advance_platform =
true;
283 advance_platform =
true;
290 success = this->
on_lock(a_lock);
298 advance_platform =
true;
310 #ifdef USE_MEDIA_PLAYER 313 advance_platform =
true;
325 #ifdef USE_ALARM_CONTROL_PANEL 328 advance_platform =
true;
343 advance_platform =
true;
358 advance_platform =
true;
377 if (advance_platform) {
378 this->state_ =
static_cast<IteratorState>(
static_cast<uint32_t
>(this->state_) + 1);
380 }
else if (success) {
389 #ifdef USE_ESP32_CAMERA 392 #ifdef USE_MEDIA_PLAYER virtual bool on_time(datetime::TimeEntity *time)=0
virtual bool on_update(update::UpdateEntity *update)=0
virtual bool on_alarm_control_panel(alarm_control_panel::AlarmControlPanel *a_alarm_control_panel)=0
const std::vector< datetime::DateTimeEntity * > & get_datetimes()
virtual bool on_lock(lock::Lock *a_lock)=0
const std::vector< UserServiceDescriptor * > & get_user_services() const
const std::vector< climate::Climate * > & get_climates()
const std::vector< update::UpdateEntity * > & get_updates()
const std::vector< alarm_control_panel::AlarmControlPanel * > & get_alarm_control_panels()
const std::vector< valve::Valve * > & get_valves()
virtual bool on_button(button::Button *button)=0
const std::vector< event::Event * > & get_events()
virtual bool on_text(text::Text *text)=0
virtual bool on_select(select::Select *select)=0
const std::vector< fan::Fan * > & get_fans()
virtual bool on_date(datetime::DateEntity *date)=0
virtual bool on_valve(valve::Valve *valve)=0
virtual bool on_climate(climate::Climate *climate)=0
virtual bool on_light(light::LightState *light)=0
const std::vector< datetime::TimeEntity * > & get_times()
virtual bool on_event(event::Event *event)=0
const std::vector< lock::Lock * > & get_locks()
virtual bool on_media_player(media_player::MediaPlayer *media_player)
const std::vector< button::Button * > & get_buttons()
ESP32Camera * global_esp32_camera
const std::vector< switch_::Switch * > & get_switches()
virtual bool on_binary_sensor(binary_sensor::BinarySensor *binary_sensor)=0
virtual bool on_fan(fan::Fan *fan)=0
virtual bool on_camera(esp32_camera::ESP32Camera *camera)
virtual bool on_text_sensor(text_sensor::TextSensor *text_sensor)=0
const std::vector< text_sensor::TextSensor * > & get_text_sensors()
const std::vector< sensor::Sensor * > & get_sensors()
Application App
Global storage of Application pointer - only one Application can exist.
const std::vector< binary_sensor::BinarySensor * > & get_binary_sensors()
virtual bool on_sensor(sensor::Sensor *sensor)=0
virtual bool on_switch(switch_::Switch *a_switch)=0
void begin(bool include_internal=false)
const std::vector< text::Text * > & get_texts()
esphome::binary_sensor::BinarySensor * binary_sensor
const std::vector< cover::Cover * > & get_covers()
virtual bool on_cover(cover::Cover *cover)=0
const std::vector< light::LightState * > & get_lights()
const std::vector< media_player::MediaPlayer * > & get_media_players()
Implementation of SPI Controller mode.
virtual bool on_service(api::UserServiceDescriptor *service)
virtual bool on_number(number::Number *number)=0
const std::vector< datetime::DateEntity * > & get_dates()
const std::vector< select::Select * > & get_selects()
const std::vector< number::Number * > & get_numbers()
virtual bool on_datetime(datetime::DateTimeEntity *datetime)=0
APIServer * global_api_server
esphome::sensor::Sensor * sensor