1 #include "list_entities.h" 10 namespace web_server {
14 #ifdef USE_BINARY_SENSOR 72 #ifdef USE_TEXT_SENSOR 117 #ifdef USE_DATETIME_DATE 126 #ifdef USE_DATETIME_TIME 133 #ifdef USE_DATETIME_DATETIME 160 #ifdef USE_ALARM_CONTROL_PANEL 175 const std::string null_event_type =
"";
Base class for all switches.
bool on_sensor(sensor::Sensor *sensor) override
AlarmControlPanelState get_state() const
Get the state.
This class represents the communication layer between the front-end MQTT layer and the hardware outpu...
bool on_event(event::Event *event) override
bool on_binary_sensor(binary_sensor::BinarySensor *binary_sensor) override
std::string number_json(number::Number *obj, float value, JsonDetail start_config)
Dump the number state with its value as a JSON string.
std::string sensor_json(sensor::Sensor *obj, float value, JsonDetail start_config)
Dump the sensor state with its value as a JSON string.
Base class for all cover devices.
This class allows users to create a web server with their ESP nodes.
std::string select_json(select::Select *obj, const std::string &value, JsonDetail start_config)
Dump the select state with its value as a JSON string.
LockState state
The current reported state of the lock.
bool on_button(button::Button *button) override
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.
bool on_time(datetime::TimeEntity *time) override
std::string event_json(event::Event *obj, const std::string &event_type, JsonDetail start_config)
Dump the event details with its value as a JSON string.
bool on_switch(switch_::Switch *a_switch) override
std::string text_sensor_json(text_sensor::TextSensor *obj, const std::string &value, JsonDetail start_config)
Dump the text sensor state with its value as a JSON string.
std::string text_json(text::Text *obj, const std::string &value, JsonDetail start_config)
Dump the text state with its value as a JSON string.
std::string update_json(update::UpdateEntity *obj, JsonDetail start_config)
Dump the update state with its value as a JSON string.
float state
This member variable stores the last state that has passed through all filters.
ListEntitiesIterator(WebServer *web_server)
Base-class for all numbers.
bool on_select(select::Select *select) override
std::string time_json(datetime::TimeEntity *obj, JsonDetail start_config)
Dump the time state with its value as a JSON string.
bool state
The current reported state of the binary sensor.
std::string switch_json(switch_::Switch *obj, bool value, JsonDetail start_config)
Dump the switch state with its value as a JSON string.
bool on_valve(valve::Valve *valve) override
std::string light_json(light::LightState *obj, JsonDetail start_config)
Dump the light state as a JSON string.
esphome::binary_sensor::BinarySensor * binary_sensor
std::string valve_json(valve::Valve *obj, JsonDetail start_config)
Dump the valve state as a JSON string.
std::string button_json(button::Button *obj, JsonDetail start_config)
Dump the button details with its value as a JSON string.
bool on_cover(cover::Cover *cover) override
bool on_fan(fan::Fan *fan) override
std::string date_json(datetime::DateEntity *obj, JsonDetail start_config)
Dump the date state with its value as a JSON string.
std::string datetime_json(datetime::DateTimeEntity *obj, JsonDetail start_config)
Dump the datetime state with its value as a JSON string.
bool on_update(update::UpdateEntity *update) override
Base-class for all selects.
Implementation of SPI Controller mode.
Base class for all valve devices.
std::string fan_json(fan::Fan *obj, JsonDetail start_config)
Dump the fan state as a JSON string.
Base class for all binary_sensor-type classes.
bool on_text_sensor(text_sensor::TextSensor *text_sensor) override
Base-class for all sensors.
std::string alarm_control_panel_json(alarm_control_panel::AlarmControlPanel *obj, alarm_control_panel::AlarmControlPanelState value, JsonDetail start_config)
Dump the alarm_control_panel state with its value as a JSON string.
bool on_datetime(datetime::DateTimeEntity *datetime) override
bool state
The current reported state of the binary sensor.
std::string lock_json(lock::Lock *obj, lock::LockState value, JsonDetail start_config)
Dump the lock state with its value as a JSON string.
esphome::sensor::Sensor * sensor
bool on_light(light::LightState *light) override
std::string climate_json(climate::Climate *obj, JsonDetail start_config)
Dump the climate details.
Base class for all locks.
ClimateDevice - This is the base class for all climate integrations.
std::string binary_sensor_json(binary_sensor::BinarySensor *obj, bool value, JsonDetail start_config)
Dump the binary sensor state with its value as a JSON string.
bool on_number(number::Number *number) override
bool on_date(datetime::DateEntity *date) override
std::string cover_json(cover::Cover *obj, JsonDetail start_config)
Dump the cover state as a JSON string.