ESPHome  2025.3.3
list_entities.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "esphome/core/defines.h"
4 #ifdef USE_WEBSERVER
7 namespace esphome {
8 #ifdef USE_ESP_IDF
9 namespace web_server_idf {
10 class AsyncEventSource;
11 }
12 #endif
13 namespace web_server {
14 
15 #ifdef USE_ARDUINO
17 #endif
18 class WebServer;
19 
21  public:
22 #ifdef USE_ARDUINO
24 #endif
25 #ifdef USE_ESP_IDF
27 #endif
28  virtual ~ListEntitiesIterator();
29 #ifdef USE_BINARY_SENSOR
30  bool on_binary_sensor(binary_sensor::BinarySensor *obj) override;
31 #endif
32 #ifdef USE_COVER
33  bool on_cover(cover::Cover *obj) override;
34 #endif
35 #ifdef USE_FAN
36  bool on_fan(fan::Fan *obj) override;
37 #endif
38 #ifdef USE_LIGHT
39  bool on_light(light::LightState *obj) override;
40 #endif
41 #ifdef USE_SENSOR
42  bool on_sensor(sensor::Sensor *obj) override;
43 #endif
44 #ifdef USE_SWITCH
45  bool on_switch(switch_::Switch *obj) override;
46 #endif
47 #ifdef USE_BUTTON
48  bool on_button(button::Button *obj) override;
49 #endif
50 #ifdef USE_TEXT_SENSOR
51  bool on_text_sensor(text_sensor::TextSensor *obj) override;
52 #endif
53 #ifdef USE_CLIMATE
54  bool on_climate(climate::Climate *obj) override;
55 #endif
56 #ifdef USE_NUMBER
57  bool on_number(number::Number *obj) override;
58 #endif
59 #ifdef USE_DATETIME_DATE
60  bool on_date(datetime::DateEntity *obj) override;
61 #endif
62 #ifdef USE_DATETIME_TIME
63  bool on_time(datetime::TimeEntity *obj) override;
64 #endif
65 #ifdef USE_DATETIME_DATETIME
66  bool on_datetime(datetime::DateTimeEntity *obj) override;
67 #endif
68 #ifdef USE_TEXT
69  bool on_text(text::Text *obj) override;
70 #endif
71 #ifdef USE_SELECT
72  bool on_select(select::Select *obj) override;
73 #endif
74 #ifdef USE_LOCK
75  bool on_lock(lock::Lock *obj) override;
76 #endif
77 #ifdef USE_VALVE
78  bool on_valve(valve::Valve *obj) override;
79 #endif
80 #ifdef USE_ALARM_CONTROL_PANEL
81  bool on_alarm_control_panel(alarm_control_panel::AlarmControlPanel *obj) override;
82 #endif
83 #ifdef USE_EVENT
84  bool on_event(event::Event *obj) override;
85 #endif
86 #ifdef USE_UPDATE
87  bool on_update(update::UpdateEntity *obj) override;
88 #endif
89  bool completed() { return this->state_ == IteratorState::NONE; }
90 
91  protected:
93 #ifdef USE_ARDUINO
95 #endif
96 #ifdef USE_ESP_IDF
98 #endif
99 };
100 
101 } // namespace web_server
102 } // namespace esphome
103 #endif
esphome::web_server_idf::AsyncEventSource * events_
Definition: list_entities.h:97
Base class for all switches.
Definition: switch.h:39
This class represents the communication layer between the front-end MQTT layer and the hardware outpu...
Definition: light_state.h:63
Base class for all cover devices.
Definition: cover.h:111
This class allows users to create a web server with their ESP nodes.
Definition: web_server.h:149
Base class for all buttons.
Definition: button.h:29
Base-class for all text inputs.
Definition: text.h:24
Base-class for all numbers.
Definition: number.h:39
friend class DeferredUpdateEventSource
Definition: web_server.h:75
DeferredUpdateEventSource * events_
Definition: list_entities.h:94
Base-class for all selects.
Definition: select.h:31
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7
Base class for all valve devices.
Definition: valve.h:105
Base class for all binary_sensor-type classes.
Definition: binary_sensor.h:37
Base-class for all sensors.
Definition: sensor.h:57
Base class for all locks.
Definition: lock.h:103
ClimateDevice - This is the base class for all climate integrations.
Definition: climate.h:168