ESPHome  2024.4.0
list_entities.h
Go to the documentation of this file.
1 #pragma once
2 
5 #include "esphome/core/defines.h"
6 namespace esphome {
7 namespace web_server {
8 
9 class WebServer;
10 
12  public:
13  ListEntitiesIterator(WebServer *web_server);
14 #ifdef USE_BINARY_SENSOR
15  bool on_binary_sensor(binary_sensor::BinarySensor *binary_sensor) override;
16 #endif
17 #ifdef USE_COVER
18  bool on_cover(cover::Cover *cover) override;
19 #endif
20 #ifdef USE_FAN
21  bool on_fan(fan::Fan *fan) override;
22 #endif
23 #ifdef USE_LIGHT
24  bool on_light(light::LightState *light) override;
25 #endif
26 #ifdef USE_SENSOR
27  bool on_sensor(sensor::Sensor *sensor) override;
28 #endif
29 #ifdef USE_SWITCH
30  bool on_switch(switch_::Switch *a_switch) override;
31 #endif
32 #ifdef USE_BUTTON
33  bool on_button(button::Button *button) override;
34 #endif
35 #ifdef USE_TEXT_SENSOR
36  bool on_text_sensor(text_sensor::TextSensor *text_sensor) override;
37 #endif
38 #ifdef USE_CLIMATE
39  bool on_climate(climate::Climate *climate) override;
40 #endif
41 #ifdef USE_NUMBER
42  bool on_number(number::Number *number) override;
43 #endif
44 #ifdef USE_DATETIME_DATE
45  bool on_date(datetime::DateEntity *date) override;
46 #endif
47 #ifdef USE_DATETIME_TIME
48  bool on_time(datetime::TimeEntity *time) override;
49 #endif
50 #ifdef USE_TEXT
51  bool on_text(text::Text *text) override;
52 #endif
53 #ifdef USE_SELECT
54  bool on_select(select::Select *select) override;
55 #endif
56 #ifdef USE_LOCK
57  bool on_lock(lock::Lock *a_lock) override;
58 #endif
59 #ifdef USE_ALARM_CONTROL_PANEL
60  bool on_alarm_control_panel(alarm_control_panel::AlarmControlPanel *a_alarm_control_panel) override;
61 #endif
62 
63  protected:
65 };
66 
67 } // namespace web_server
68 } // namespace esphome
Base class for all switches.
Definition: switch.h:39
bool on_sensor(sensor::Sensor *sensor) override
This class represents the communication layer between the front-end MQTT layer and the hardware outpu...
Definition: light_state.h:34
bool on_binary_sensor(binary_sensor::BinarySensor *binary_sensor) override
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:53
bool on_button(button::Button *button) override
Base class for all buttons.
Definition: button.h:29
bool on_lock(lock::Lock *a_lock) override
bool on_alarm_control_panel(alarm_control_panel::AlarmControlPanel *a_alarm_control_panel) override
bool on_climate(climate::Climate *climate) override
bool on_text(text::Text *text) override
Base-class for all text inputs.
Definition: text.h:24
bool on_time(datetime::TimeEntity *time) override
bool on_switch(switch_::Switch *a_switch) override
Base-class for all numbers.
Definition: number.h:39
bool on_select(select::Select *select) override
bool on_cover(cover::Cover *cover) override
bool on_fan(fan::Fan *fan) override
Base-class for all selects.
Definition: select.h:31
This is a workaround until we can figure out a way to get the tflite-micro idf component code availab...
Definition: a01nyub.cpp:7
Base class for all binary_sensor-type classes.
Definition: binary_sensor.h:37
bool on_text_sensor(text_sensor::TextSensor *text_sensor) override
Base-class for all sensors.
Definition: sensor.h:57
bool on_light(light::LightState *light) override
Base class for all locks.
Definition: lock.h:103
ClimateDevice - This is the base class for all climate integrations.
Definition: climate.h:168
bool on_number(number::Number *number) override
bool on_date(datetime::DateEntity *date) override