ESPHome  2024.6.6
Go to the documentation of this file.
1 #pragma once
5 #include "esphome/core/defines.h"
6 namespace esphome {
7 namespace web_server {
9 class WebServer;
12  public:
13  ListEntitiesIterator(WebServer *web_server);
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
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
45  bool on_date(datetime::DateEntity *date) override;
46 #endif
48  bool on_time(datetime::TimeEntity *time) override;
49 #endif
51  bool on_datetime(datetime::DateTimeEntity *datetime) override;
52 #endif
53 #ifdef USE_TEXT
54  bool on_text(text::Text *text) override;
55 #endif
56 #ifdef USE_SELECT
57  bool on_select(select::Select *select) override;
58 #endif
59 #ifdef USE_LOCK
60  bool on_lock(lock::Lock *a_lock) override;
61 #endif
62 #ifdef USE_VALVE
63  bool on_valve(valve::Valve *valve) override;
64 #endif
66  bool on_alarm_control_panel(alarm_control_panel::AlarmControlPanel *a_alarm_control_panel) override;
67 #endif
68 #ifdef USE_EVENT
69  bool on_event(event::Event *event) override;
70 #endif
71 #ifdef USE_UPDATE
72  bool on_update(update::UpdateEntity *update) override;
73 #endif
75  protected:
77 };
79 } // namespace web_server
80 } // 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_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:59
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
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
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 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
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