ESPHome
2025.3.3
esphome
esphome
components
web_server
list_entities.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/core/defines.h
"
4
#ifdef USE_WEBSERVER
5
#include "
esphome/core/component.h
"
6
#include "
esphome/core/component_iterator.h
"
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
16
class
DeferredUpdateEventSource
;
17
#endif
18
class
WebServer;
19
20
class
ListEntitiesIterator
:
public
ComponentIterator
{
21
public
:
22
#ifdef USE_ARDUINO
23
ListEntitiesIterator
(
const
WebServer
*ws,
DeferredUpdateEventSource
*es);
24
#endif
25
#ifdef USE_ESP_IDF
26
ListEntitiesIterator
(
const
WebServer
*ws,
esphome::web_server_idf::AsyncEventSource
*es);
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
:
92
const
WebServer
*
web_server_
;
93
#ifdef USE_ARDUINO
94
DeferredUpdateEventSource
*
events_
;
95
#endif
96
#ifdef USE_ESP_IDF
97
esphome::web_server_idf::AsyncEventSource
*
events_
;
98
#endif
99
};
100
101
}
// namespace web_server
102
}
// namespace esphome
103
#endif
esphome::web_server::ListEntitiesIterator::events_
esphome::web_server_idf::AsyncEventSource * events_
Definition:
list_entities.h:97
esphome::switch_::Switch
Base class for all switches.
Definition:
switch.h:39
esphome::light::LightState
This class represents the communication layer between the front-end MQTT layer and the hardware outpu...
Definition:
light_state.h:63
esphome::alarm_control_panel::AlarmControlPanel
Definition:
alarm_control_panel.h:25
esphome::cover::Cover
Base class for all cover devices.
Definition:
cover.h:111
esphome::web_server::WebServer
This class allows users to create a web server with their ESP nodes.
Definition:
web_server.h:149
esphome::web_server::ListEntitiesIterator
Definition:
list_entities.h:20
esphome::datetime::DateTimeEntity
Definition:
datetime_entity.h:39
esphome::ComponentIterator
Definition:
component_iterator.h:19
esphome::web_server::ListEntitiesIterator::completed
bool completed()
Definition:
list_entities.h:89
esphome::button::Button
Base class for all buttons.
Definition:
button.h:29
esphome::datetime::TimeEntity
Definition:
time_entity.h:37
esphome::text::Text
Base-class for all text inputs.
Definition:
text.h:24
esphome::web_server_idf::AsyncEventSource
Definition:
web_server_idf.h:280
esphome::update::UpdateEntity
Definition:
update_entity.h:29
esphome::anova::NONE
Definition:
anova_base.h:10
esphome::text_sensor::TextSensor
Definition:
text_sensor.h:34
defines.h
esphome::number::Number
Base-class for all numbers.
Definition:
number.h:39
esphome::fan::Fan
Definition:
fan.h:107
esphome::web_server::DeferredUpdateEventSource
Definition:
web_server.h:73
DeferredUpdateEventSource
friend class DeferredUpdateEventSource
Definition:
web_server.h:75
esphome::event::Event
Definition:
event.h:24
esphome::web_server::ListEntitiesIterator::events_
DeferredUpdateEventSource * events_
Definition:
list_entities.h:94
esphome::datetime::DateEntity
Definition:
date_entity.h:36
esphome::select::Select
Base-class for all selects.
Definition:
select.h:31
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
esphome::valve::Valve
Base class for all valve devices.
Definition:
valve.h:105
component.h
esphome::binary_sensor::BinarySensor
Base class for all binary_sensor-type classes.
Definition:
binary_sensor.h:37
component_iterator.h
esphome::sensor::Sensor
Base-class for all sensors.
Definition:
sensor.h:57
esphome::web_server::ListEntitiesIterator::web_server_
const WebServer * web_server_
Definition:
list_entities.h:92
esphome::lock::Lock
Base class for all locks.
Definition:
lock.h:103
esphome::climate::Climate
ClimateDevice - This is the base class for all climate integrations.
Definition:
climate.h:168
Generated by
1.8.13