ESPHome  2022.9.1
Public Member Functions | Protected Attributes
esphome::api::ListEntitiesIterator Class Reference

#include <list_entities.h>

Inheritance diagram for esphome::api::ListEntitiesIterator:
esphome::ComponentIterator

Public Member Functions

 ListEntitiesIterator (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_service (UserServiceDescriptor *service) override
 
bool on_camera (esp32_camera::ESP32Camera *camera) override
 
bool on_climate (climate::Climate *climate) override
 
bool on_number (number::Number *number) 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_end () override
 
- Public Member Functions inherited from esphome::ComponentIterator
void begin (bool include_internal=false)
 
void advance ()
 
virtual bool on_begin ()
 

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::SELECT, IteratorState::LOCK,
  IteratorState::MEDIA_PLAYER, IteratorState::MAX
}
 

Detailed Description

Definition at line 12 of file list_entities.h.

Constructor & Destructor Documentation

◆ ListEntitiesIterator()

esphome::api::ListEntitiesIterator::ListEntitiesIterator ( APIConnection client)

Definition at line 43 of file list_entities.cpp.

Member Function Documentation

◆ on_binary_sensor()

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

Implements esphome::ComponentIterator.

Definition at line 11 of file list_entities.cpp.

◆ on_button()

bool esphome::api::ListEntitiesIterator::on_button ( button::Button button)
overridevirtual

Implements esphome::ComponentIterator.

Definition at line 31 of file list_entities.cpp.

◆ on_camera()

bool esphome::api::ListEntitiesIterator::on_camera ( esp32_camera::ESP32Camera camera)
overridevirtual

Reimplemented from esphome::ComponentIterator.

Definition at line 50 of file list_entities.cpp.

◆ on_climate()

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

Implements esphome::ComponentIterator.

Definition at line 56 of file list_entities.cpp.

◆ on_cover()

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

Implements esphome::ComponentIterator.

Definition at line 16 of file list_entities.cpp.

◆ on_end()

bool esphome::api::ListEntitiesIterator::on_end ( )
overridevirtual

Reimplemented from esphome::ComponentIterator.

Definition at line 42 of file list_entities.cpp.

◆ on_fan()

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

Implements esphome::ComponentIterator.

Definition at line 19 of file list_entities.cpp.

◆ on_light()

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

Implements esphome::ComponentIterator.

Definition at line 22 of file list_entities.cpp.

◆ on_lock()

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

Implements esphome::ComponentIterator.

Definition at line 39 of file list_entities.cpp.

◆ on_media_player()

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

Reimplemented from esphome::ComponentIterator.

Definition at line 68 of file list_entities.cpp.

◆ on_number()

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

Implements esphome::ComponentIterator.

Definition at line 60 of file list_entities.cpp.

◆ on_select()

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

Implements esphome::ComponentIterator.

Definition at line 64 of file list_entities.cpp.

◆ on_sensor()

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

Implements esphome::ComponentIterator.

Definition at line 25 of file list_entities.cpp.

◆ on_service()

bool esphome::api::ListEntitiesIterator::on_service ( UserServiceDescriptor service)
overridevirtual

Reimplemented from esphome::ComponentIterator.

Definition at line 44 of file list_entities.cpp.

◆ on_switch()

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

Implements esphome::ComponentIterator.

Definition at line 28 of file list_entities.cpp.

◆ on_text_sensor()

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

Implements esphome::ComponentIterator.

Definition at line 34 of file list_entities.cpp.

Field Documentation

◆ client_

APIConnection* esphome::api::ListEntitiesIterator::client_
protected

Definition at line 61 of file list_entities.h.


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