1 #include "list_entities.h" 10 namespace web_server {
14 : web_server_(ws), events_(es) {}
21 #ifdef USE_BINARY_SENSOR 23 if (this->
events_->count() == 0)
31 if (this->
events_->count() == 0)
39 if (this->
events_->count() == 0)
47 if (this->
events_->count() == 0)
55 if (this->
events_->count() == 0)
63 if (this->
events_->count() == 0)
71 if (this->
events_->count() == 0)
77 #ifdef USE_TEXT_SENSOR 79 if (this->
events_->count() == 0)
87 if (this->
events_->count() == 0)
96 if (this->
events_->count() == 0)
105 if (this->
events_->count() == 0)
114 if (this->
events_->count() == 0)
121 #ifdef USE_DATETIME_DATE 123 if (this->
events_->count() == 0)
130 #ifdef USE_DATETIME_TIME 132 if (this->
events_->count() == 0)
139 #ifdef USE_DATETIME_DATETIME 141 if (this->
events_->count() == 0)
150 if (this->
events_->count() == 0)
159 if (this->
events_->count() == 0)
166 #ifdef USE_ALARM_CONTROL_PANEL 168 if (this->
events_->count() == 0)
177 if (this->
events_->count() == 0)
187 if (this->
events_->count() == 0)
Base class for all switches.
bool on_cover(cover::Cover *obj) override
static std::string date_all_json_generator(WebServer *web_server, void *source)
This class represents the communication layer between the front-end MQTT layer and the hardware outpu...
Base class for all cover devices.
bool on_number(number::Number *obj) override
static std::string binary_sensor_all_json_generator(WebServer *web_server, void *source)
This class allows users to create a web server with their ESP nodes.
bool on_lock(lock::Lock *obj) override
bool on_event(event::Event *obj) override
bool on_button(button::Button *obj) override
static std::string select_all_json_generator(WebServer *web_server, void *source)
static std::string update_all_json_generator(WebServer *web_server, void *source)
static std::string text_sensor_all_json_generator(WebServer *web_server, void *source)
static std::string text_all_json_generator(WebServer *web_server, void *source)
static std::string alarm_control_panel_all_json_generator(WebServer *web_server, void *source)
bool on_select(select::Select *obj) override
virtual ~ListEntitiesIterator()
static std::string datetime_all_json_generator(WebServer *web_server, void *source)
static std::string fan_all_json_generator(WebServer *web_server, void *source)
Base-class for all text inputs.
bool on_fan(fan::Fan *obj) override
void deferrable_send_state(void *source, const char *event_type, message_generator_t *message_generator)
bool on_climate(climate::Climate *obj) override
bool on_update(update::UpdateEntity *obj) override
static std::string time_all_json_generator(WebServer *web_server, void *source)
bool on_datetime(datetime::DateTimeEntity *obj) override
bool on_text(text::Text *obj) override
static std::string switch_all_json_generator(WebServer *web_server, void *source)
static std::string valve_all_json_generator(WebServer *web_server, void *source)
bool on_light(light::LightState *obj) override
static std::string cover_all_json_generator(WebServer *web_server, void *source)
static std::string event_all_json_generator(WebServer *web_server, void *source)
Base-class for all numbers.
static std::string climate_all_json_generator(WebServer *web_server, void *source)
bool on_binary_sensor(binary_sensor::BinarySensor *obj) override
static std::string button_all_json_generator(WebServer *web_server, void *source)
static std::string number_all_json_generator(WebServer *web_server, void *source)
bool on_valve(valve::Valve *obj) override
DeferredUpdateEventSource * events_
ListEntitiesIterator(const WebServer *ws, DeferredUpdateEventSource *es)
bool on_sensor(sensor::Sensor *obj) override
static std::string light_all_json_generator(WebServer *web_server, void *source)
static std::string lock_all_json_generator(WebServer *web_server, void *source)
bool on_date(datetime::DateEntity *obj) override
Base-class for all selects.
Implementation of SPI Controller mode.
static std::string sensor_all_json_generator(WebServer *web_server, void *source)
bool on_switch(switch_::Switch *obj) override
Base class for all valve devices.
Base class for all binary_sensor-type classes.
Base-class for all sensors.
bool on_alarm_control_panel(alarm_control_panel::AlarmControlPanel *obj) override
const WebServer * web_server_
bool on_time(datetime::TimeEntity *obj) override
Base class for all locks.
ClimateDevice - This is the base class for all climate integrations.
bool on_text_sensor(text_sensor::TextSensor *obj) override