ESPHome  2024.10.2
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 namespace web_server {
9 
10 class WebServer;
11 
13  public:
14  ListEntitiesIterator(WebServer *web_server);
15 #ifdef USE_BINARY_SENSOR
17 #endif
18 #ifdef USE_COVER
19  bool on_cover(cover::Cover *cover) override;
20 #endif
21 #ifdef USE_FAN
22  bool on_fan(fan::Fan *fan) override;
23 #endif
24 #ifdef USE_LIGHT
25  bool on_light(light::LightState *light) override;
26 #endif
27 #ifdef USE_SENSOR
28  bool on_sensor(sensor::Sensor *sensor) override;
29 #endif
30 #ifdef USE_SWITCH
31  bool on_switch(switch_::Switch *a_switch) override;
32 #endif
33 #ifdef USE_BUTTON
34  bool on_button(button::Button *button) override;
35 #endif
36 #ifdef USE_TEXT_SENSOR
37  bool on_text_sensor(text_sensor::TextSensor *text_sensor) override;
38 #endif
39 #ifdef USE_CLIMATE
40  bool on_climate(climate::Climate *climate) override;
41 #endif
42 #ifdef USE_NUMBER
43  bool on_number(number::Number *number) override;
44 #endif
45 #ifdef USE_DATETIME_DATE
46  bool on_date(datetime::DateEntity *date) override;
47 #endif
48 #ifdef USE_DATETIME_TIME
49  bool on_time(datetime::TimeEntity *time) override;
50 #endif
51 #ifdef USE_DATETIME_DATETIME
52  bool on_datetime(datetime::DateTimeEntity *datetime) override;
53 #endif
54 #ifdef USE_TEXT
55  bool on_text(text::Text *text) override;
56 #endif
57 #ifdef USE_SELECT
58  bool on_select(select::Select *select) override;
59 #endif
60 #ifdef USE_LOCK
61  bool on_lock(lock::Lock *a_lock) override;
62 #endif
63 #ifdef USE_VALVE
64  bool on_valve(valve::Valve *valve) override;
65 #endif
66 #ifdef USE_ALARM_CONTROL_PANEL
67  bool on_alarm_control_panel(alarm_control_panel::AlarmControlPanel *a_alarm_control_panel) override;
68 #endif
69 #ifdef USE_EVENT
70  bool on_event(event::Event *event) override;
71 #endif
72 #ifdef USE_UPDATE
73  bool on_update(update::UpdateEntity *update) override;
74 #endif
75 
76  protected:
78 };
79 
80 } // namespace web_server
81 } // namespace esphome
82 #endif
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_event(event::Event *event) override
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:66
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_valve(valve::Valve *valve) override
esphome::binary_sensor::BinarySensor * binary_sensor
Definition: statsd.h:40
bool on_cover(cover::Cover *cover) override
bool on_fan(fan::Fan *fan) override
bool on_update(update::UpdateEntity *update) override
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
bool on_text_sensor(text_sensor::TextSensor *text_sensor) override
Base-class for all sensors.
Definition: sensor.h:57
bool on_datetime(datetime::DateTimeEntity *datetime) override
esphome::sensor::Sensor * sensor
Definition: statsd.h:37
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