ESPHome 2025.6.0
Loading...
Searching...
No Matches
subscribe_state.cpp
Go to the documentation of this file.
1#include "subscribe_state.h"
2#ifdef USE_API
3#include "api_connection.h"
4#include "esphome/core/log.h"
5
6namespace esphome {
7namespace api {
8
9#ifdef USE_BINARY_SENSOR
13#endif
14#ifdef USE_COVER
16#endif
17#ifdef USE_FAN
19#endif
20#ifdef USE_LIGHT
22#endif
23#ifdef USE_SENSOR
25#endif
26#ifdef USE_SWITCH
28#endif
29#ifdef USE_TEXT_SENSOR
33#endif
34#ifdef USE_CLIMATE
36#endif
37#ifdef USE_NUMBER
39#endif
40#ifdef USE_DATETIME_DATE
42#endif
43#ifdef USE_DATETIME_TIME
45#endif
46#ifdef USE_DATETIME_DATETIME
50#endif
51#ifdef USE_TEXT
53#endif
54#ifdef USE_SELECT
56#endif
57#ifdef USE_LOCK
58bool InitialStateIterator::on_lock(lock::Lock *a_lock) { return this->client_->send_lock_state(a_lock); }
59#endif
60#ifdef USE_VALVE
62#endif
63#ifdef USE_MEDIA_PLAYER
67#endif
68#ifdef USE_ALARM_CONTROL_PANEL
72#endif
73#ifdef USE_UPDATE
75#endif
77
78} // namespace api
79} // namespace esphome
80#endif
bool send_media_player_state(media_player::MediaPlayer *media_player)
bool send_time_state(datetime::TimeEntity *time)
bool send_text_sensor_state(text_sensor::TextSensor *text_sensor)
bool send_fan_state(fan::Fan *fan)
bool send_sensor_state(sensor::Sensor *sensor)
bool send_binary_sensor_state(binary_sensor::BinarySensor *binary_sensor)
bool send_valve_state(valve::Valve *valve)
bool send_select_state(select::Select *select)
bool send_switch_state(switch_::Switch *a_switch)
bool send_lock_state(lock::Lock *a_lock)
bool send_update_state(update::UpdateEntity *update)
bool send_date_state(datetime::DateEntity *date)
bool send_number_state(number::Number *number)
bool send_light_state(light::LightState *light)
bool send_datetime_state(datetime::DateTimeEntity *datetime)
bool send_alarm_control_panel_state(alarm_control_panel::AlarmControlPanel *a_alarm_control_panel)
bool send_text_state(text::Text *text)
bool send_climate_state(climate::Climate *climate)
bool send_cover_state(cover::Cover *cover)
bool on_valve(valve::Valve *valve) override
bool on_fan(fan::Fan *fan) override
bool on_light(light::LightState *light) override
bool on_text_sensor(text_sensor::TextSensor *text_sensor) override
bool on_sensor(sensor::Sensor *sensor) override
bool on_date(datetime::DateEntity *date) override
bool on_lock(lock::Lock *a_lock) override
bool on_text(text::Text *text) override
InitialStateIterator(APIConnection *client)
bool on_datetime(datetime::DateTimeEntity *datetime) override
bool on_cover(cover::Cover *cover) override
bool on_number(number::Number *number) override
bool on_media_player(media_player::MediaPlayer *media_player) override
bool on_switch(switch_::Switch *a_switch) override
bool on_binary_sensor(binary_sensor::BinarySensor *binary_sensor) override
bool on_alarm_control_panel(alarm_control_panel::AlarmControlPanel *a_alarm_control_panel) override
bool on_update(update::UpdateEntity *update) override
bool on_time(datetime::TimeEntity *time) override
bool on_climate(climate::Climate *climate) override
bool on_select(select::Select *select) override
Base class for all binary_sensor-type classes.
ClimateDevice - This is the base class for all climate integrations.
Definition climate.h:168
Base class for all cover devices.
Definition cover.h:111
This class represents the communication layer between the front-end MQTT layer and the hardware outpu...
Definition light_state.h:63
Base class for all locks.
Definition lock.h:103
Base-class for all numbers.
Definition number.h:39
Base-class for all selects.
Definition select.h:31
Base-class for all sensors.
Definition sensor.h:62
Base class for all switches.
Definition switch.h:39
Base-class for all text inputs.
Definition text.h:24
Base class for all valve devices.
Definition valve.h:105
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7