ESPHome 2025.9.0-dev
Loading...
Searching...
No Matches
list_entities.cpp
Go to the documentation of this file.
1#include "list_entities.h"
2#ifdef USE_API
3#include "api_connection.h"
4#include "api_pb2.h"
6#include "esphome/core/log.h"
7#include "esphome/core/util.h"
8
9namespace esphome::api {
10
11// Generate entity handler implementations using macros
12#ifdef USE_BINARY_SENSOR
14#endif
15#ifdef USE_COVER
17#endif
18#ifdef USE_FAN
20#endif
21#ifdef USE_LIGHT
23#endif
24#ifdef USE_SENSOR
26#endif
27#ifdef USE_SWITCH
29#endif
30#ifdef USE_BUTTON
32#endif
33#ifdef USE_TEXT_SENSOR
35#endif
36#ifdef USE_LOCK
38#endif
39#ifdef USE_VALVE
41#endif
42#ifdef USE_CAMERA
44#endif
45#ifdef USE_CLIMATE
47#endif
48#ifdef USE_NUMBER
50#endif
51#ifdef USE_DATETIME_DATE
53#endif
54#ifdef USE_DATETIME_TIME
56#endif
57#ifdef USE_DATETIME_DATETIME
59#endif
60#ifdef USE_TEXT
62#endif
63#ifdef USE_SELECT
65#endif
66#ifdef USE_MEDIA_PLAYER
68#endif
69#ifdef USE_ALARM_CONTROL_PANEL
72#endif
73#ifdef USE_EVENT
75#endif
76#ifdef USE_UPDATE
78#endif
79
80// Special cases that don't follow the pattern
82
84
85#ifdef USE_API_SERVICES
90#endif
91
92} // namespace esphome::api
93#endif
bool send_message(const ProtoMessage &msg, uint8_t message_type)
ListEntitiesIterator(APIConnection *client)
bool on_service(UserServiceDescriptor *service) override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1207
virtual ListEntitiesServicesResponse encode_list_service_response()=0
Base class for all binary_sensor-type classes.
Base class for all buttons.
Definition button.h:29
Abstract camera base class.
Definition camera.h:57
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:66
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:59
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
LIST_ENTITIES_HANDLER(binary_sensor, binary_sensor::BinarySensor, ListEntitiesBinarySensorResponse) LIST_ENTITIES_HANDLER(cover