ESPHome  2024.3.1
Public Member Functions | Protected Attributes
esphome::api::InitialStateIterator Class Reference

#include <subscribe_state.h>

Inheritance diagram for esphome::api::InitialStateIterator:
esphome::ComponentIterator

Public Member Functions

 InitialStateIterator (APIConnection *client)
 
bool on_binary_sensor (binary_sensor::BinarySensor *binary_sensor) override
 
bool on_cover (cover::Cover *cover) override
 
bool on_fan (fan::Fan *fan) override
 
bool on_light (light::LightState *light) override
 
bool on_sensor (sensor::Sensor *sensor) override
 
bool on_switch (switch_::Switch *a_switch) override
 
bool on_button (button::Button *button) override
 
bool on_text_sensor (text_sensor::TextSensor *text_sensor) override
 
bool on_climate (climate::Climate *climate) override
 
bool on_number (number::Number *number) override
 
bool on_date (datetime::DateEntity *date) override
 
bool on_text (text::Text *text) override
 
bool on_select (select::Select *select) override
 
bool on_lock (lock::Lock *a_lock) override
 
bool on_media_player (media_player::MediaPlayer *media_player) override
 
bool on_alarm_control_panel (alarm_control_panel::AlarmControlPanel *a_alarm_control_panel) override
 
- Public Member Functions inherited from esphome::ComponentIterator
void begin (bool include_internal=false)
 
void advance ()
 
virtual bool on_begin ()
 
virtual bool on_service (api::UserServiceDescriptor *service)
 
virtual bool on_camera (esp32_camera::ESP32Camera *camera)
 
virtual bool on_end ()
 

Protected Attributes

APIConnectionclient_
 
- Protected Attributes inherited from esphome::ComponentIterator
enum esphome::ComponentIterator::IteratorState NONE
 
size_t at_ {0}
 
bool include_internal_ {false}
 

Additional Inherited Members

- Protected Types inherited from esphome::ComponentIterator
enum  IteratorState {
  IteratorState::NONE = 0, IteratorState::BEGIN, IteratorState::BINARY_SENSOR, IteratorState::COVER,
  IteratorState::FAN, IteratorState::LIGHT, IteratorState::SENSOR, IteratorState::SWITCH,
  IteratorState::BUTTON, IteratorState::TEXT_SENSOR, IteratorState::SERVICE, IteratorState::CAMERA,
  IteratorState::CLIMATE, IteratorState::NUMBER, IteratorState::DATETIME_DATE, IteratorState::TEXT,
  IteratorState::SELECT, IteratorState::LOCK, IteratorState::MEDIA_PLAYER, IteratorState::ALARM_CONTROL_PANEL,
  IteratorState::MAX
}
 

Detailed Description

Definition at line 13 of file subscribe_state.h.

Constructor & Destructor Documentation

◆ InitialStateIterator()

esphome::api::InitialStateIterator::InitialStateIterator ( APIConnection client)

Definition at line 69 of file subscribe_state.cpp.

Member Function Documentation

◆ on_alarm_control_panel()

bool esphome::api::InitialStateIterator::on_alarm_control_panel ( alarm_control_panel::AlarmControlPanel a_alarm_control_panel)
overridevirtual

Implements esphome::ComponentIterator.

Definition at line 65 of file subscribe_state.cpp.

◆ on_binary_sensor()

bool esphome::api::InitialStateIterator::on_binary_sensor ( binary_sensor::BinarySensor binary_sensor)
overridevirtual

Implements esphome::ComponentIterator.

Definition at line 9 of file subscribe_state.cpp.

◆ on_button()

bool esphome::api::InitialStateIterator::on_button ( button::Button button)
inlineoverridevirtual

Implements esphome::ComponentIterator.

Definition at line 35 of file subscribe_state.h.

◆ on_climate()

bool esphome::api::InitialStateIterator::on_climate ( climate::Climate climate)
overridevirtual

Implements esphome::ComponentIterator.

Definition at line 38 of file subscribe_state.cpp.

◆ on_cover()

bool esphome::api::InitialStateIterator::on_cover ( cover::Cover cover)
overridevirtual

Implements esphome::ComponentIterator.

Definition at line 14 of file subscribe_state.cpp.

◆ on_date()

bool esphome::api::InitialStateIterator::on_date ( datetime::DateEntity date)
overridevirtual

Implements esphome::ComponentIterator.

Definition at line 46 of file subscribe_state.cpp.

◆ on_fan()

bool esphome::api::InitialStateIterator::on_fan ( fan::Fan fan)
overridevirtual

Implements esphome::ComponentIterator.

Definition at line 17 of file subscribe_state.cpp.

◆ on_light()

bool esphome::api::InitialStateIterator::on_light ( light::LightState light)
overridevirtual

Implements esphome::ComponentIterator.

Definition at line 20 of file subscribe_state.cpp.

◆ on_lock()

bool esphome::api::InitialStateIterator::on_lock ( lock::Lock a_lock)
overridevirtual

Implements esphome::ComponentIterator.

Definition at line 57 of file subscribe_state.cpp.

◆ on_media_player()

bool esphome::api::InitialStateIterator::on_media_player ( media_player::MediaPlayer media_player)
overridevirtual

Reimplemented from esphome::ComponentIterator.

Definition at line 60 of file subscribe_state.cpp.

◆ on_number()

bool esphome::api::InitialStateIterator::on_number ( number::Number number)
overridevirtual

Implements esphome::ComponentIterator.

Definition at line 41 of file subscribe_state.cpp.

◆ on_select()

bool esphome::api::InitialStateIterator::on_select ( select::Select select)
overridevirtual

Implements esphome::ComponentIterator.

Definition at line 52 of file subscribe_state.cpp.

◆ on_sensor()

bool esphome::api::InitialStateIterator::on_sensor ( sensor::Sensor sensor)
overridevirtual

Implements esphome::ComponentIterator.

Definition at line 23 of file subscribe_state.cpp.

◆ on_switch()

bool esphome::api::InitialStateIterator::on_switch ( switch_::Switch a_switch)
overridevirtual

Implements esphome::ComponentIterator.

Definition at line 28 of file subscribe_state.cpp.

◆ on_text()

bool esphome::api::InitialStateIterator::on_text ( text::Text text)
overridevirtual

Implements esphome::ComponentIterator.

Definition at line 49 of file subscribe_state.cpp.

◆ on_text_sensor()

bool esphome::api::InitialStateIterator::on_text_sensor ( text_sensor::TextSensor text_sensor)
overridevirtual

Implements esphome::ComponentIterator.

Definition at line 33 of file subscribe_state.cpp.

Field Documentation

◆ client_

APIConnection* esphome::api::InitialStateIterator::client_
protected

Definition at line 65 of file subscribe_state.h.


The documentation for this class was generated from the following files: