ESPHome 2026.3.0
Loading...
Searching...
No Matches
api_pb2_service.h
Go to the documentation of this file.
1// This file was automatically generated with a tool.
2// See script/api_protobuf/api_protobuf.py
3#pragma once
4
6
7#include "api_pb2.h"
8
9namespace esphome::api {
10
12 public:
13#ifdef HAS_PROTO_MESSAGE_DUMP
14 protected:
15 void log_send_message_(const char *name, const char *dump);
16 void log_receive_message_(const LogString *name, const ProtoMessage &msg);
17 void log_receive_message_(const LogString *name);
18
19 public:
20#endif
21
22 virtual void on_hello_request(const HelloRequest &value){};
23
24 virtual void on_disconnect_request(){};
25 virtual void on_disconnect_response(){};
26 virtual void on_ping_request(){};
27 virtual void on_ping_response(){};
28 virtual void on_device_info_request(){};
29
30 virtual void on_list_entities_request(){};
31
33
34#ifdef USE_COVER
35 virtual void on_cover_command_request(const CoverCommandRequest &value){};
36#endif
37
38#ifdef USE_FAN
39 virtual void on_fan_command_request(const FanCommandRequest &value){};
40#endif
41
42#ifdef USE_LIGHT
43 virtual void on_light_command_request(const LightCommandRequest &value){};
44#endif
45
46#ifdef USE_SWITCH
47 virtual void on_switch_command_request(const SwitchCommandRequest &value){};
48#endif
49
50 virtual void on_subscribe_logs_request(const SubscribeLogsRequest &value){};
51
52#ifdef USE_API_NOISE
54#endif
55
56#ifdef USE_API_HOMEASSISTANT_SERVICES
58#endif
59
60#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES
62#endif
63#ifdef USE_API_HOMEASSISTANT_STATES
65#endif
66
67#ifdef USE_API_HOMEASSISTANT_STATES
69#endif
70
71 virtual void on_get_time_response(const GetTimeResponse &value){};
72
73#ifdef USE_API_USER_DEFINED_ACTIONS
75#endif
76
77#ifdef USE_CAMERA
78 virtual void on_camera_image_request(const CameraImageRequest &value){};
79#endif
80
81#ifdef USE_CLIMATE
83#endif
84
85#ifdef USE_WATER_HEATER
87#endif
88
89#ifdef USE_NUMBER
90 virtual void on_number_command_request(const NumberCommandRequest &value){};
91#endif
92
93#ifdef USE_SELECT
94 virtual void on_select_command_request(const SelectCommandRequest &value){};
95#endif
96
97#ifdef USE_SIREN
98 virtual void on_siren_command_request(const SirenCommandRequest &value){};
99#endif
100
101#ifdef USE_LOCK
102 virtual void on_lock_command_request(const LockCommandRequest &value){};
103#endif
104
105#ifdef USE_BUTTON
107#endif
108
109#ifdef USE_MEDIA_PLAYER
111#endif
112#ifdef USE_BLUETOOTH_PROXY
115#endif
116
117#ifdef USE_BLUETOOTH_PROXY
119#endif
120
121#ifdef USE_BLUETOOTH_PROXY
123#endif
124
125#ifdef USE_BLUETOOTH_PROXY
127#endif
128
129#ifdef USE_BLUETOOTH_PROXY
131#endif
132#ifdef USE_BLUETOOTH_PROXY
134#endif
135#ifdef USE_BLUETOOTH_PROXY
137#endif
138#ifdef USE_BLUETOOTH_PROXY
140#endif
141
142#ifdef USE_BLUETOOTH_PROXY
144#endif
145
146#ifdef USE_BLUETOOTH_PROXY
148#endif
149
150#ifdef USE_BLUETOOTH_PROXY
152#endif
153#ifdef USE_VOICE_ASSISTANT
155#endif
156
157#ifdef USE_VOICE_ASSISTANT
159#endif
160#ifdef USE_VOICE_ASSISTANT
162#endif
163#ifdef USE_VOICE_ASSISTANT
164 virtual void on_voice_assistant_audio(const VoiceAssistantAudio &value){};
165#endif
166#ifdef USE_VOICE_ASSISTANT
168#endif
169#ifdef USE_VOICE_ASSISTANT
171#endif
172
173#ifdef USE_VOICE_ASSISTANT
175#endif
176
177#ifdef USE_VOICE_ASSISTANT
179#endif
180
181#ifdef USE_ALARM_CONTROL_PANEL
183#endif
184
185#ifdef USE_TEXT
186 virtual void on_text_command_request(const TextCommandRequest &value){};
187#endif
188
189#ifdef USE_DATETIME_DATE
190 virtual void on_date_command_request(const DateCommandRequest &value){};
191#endif
192
193#ifdef USE_DATETIME_TIME
194 virtual void on_time_command_request(const TimeCommandRequest &value){};
195#endif
196
197#ifdef USE_VALVE
198 virtual void on_valve_command_request(const ValveCommandRequest &value){};
199#endif
200
201#ifdef USE_DATETIME_DATETIME
203#endif
204
205#ifdef USE_UPDATE
207#endif
208#ifdef USE_ZWAVE_PROXY
209 virtual void on_z_wave_proxy_frame(const ZWaveProxyFrame &value){};
210#endif
211#ifdef USE_ZWAVE_PROXY
212 virtual void on_z_wave_proxy_request(const ZWaveProxyRequest &value){};
213#endif
214
215#ifdef USE_IR_RF
217#endif
218
219#ifdef USE_SERIAL_PROXY
221#endif
222
223#ifdef USE_SERIAL_PROXY
225#endif
226#ifdef USE_SERIAL_PROXY
228#endif
229#ifdef USE_SERIAL_PROXY
231#endif
232
233#ifdef USE_SERIAL_PROXY
234 virtual void on_serial_proxy_request(const SerialProxyRequest &value){};
235#endif
236
237#ifdef USE_BLUETOOTH_PROXY
239#endif
240
241 protected:
242 void read_message(uint32_t msg_size, uint32_t msg_type, const uint8_t *msg_data) override;
243};
244
245} // namespace esphome::api
virtual void on_voice_assistant_configuration_request(const VoiceAssistantConfigurationRequest &value)
virtual void on_bluetooth_gatt_get_services_request(const BluetoothGATTGetServicesRequest &value)
virtual void on_alarm_control_panel_command_request(const AlarmControlPanelCommandRequest &value)
virtual void on_siren_command_request(const SirenCommandRequest &value)
virtual void on_hello_request(const HelloRequest &value)
virtual void on_bluetooth_gatt_notify_request(const BluetoothGATTNotifyRequest &value)
virtual void on_bluetooth_device_request(const BluetoothDeviceRequest &value)
virtual void on_home_assistant_state_response(const HomeAssistantStateResponse &value)
virtual void on_get_time_response(const GetTimeResponse &value)
void read_message(uint32_t msg_size, uint32_t msg_type, const uint8_t *msg_data) override
virtual void on_homeassistant_action_response(const HomeassistantActionResponse &value)
virtual void on_voice_assistant_set_configuration(const VoiceAssistantSetConfiguration &value)
virtual void on_bluetooth_gatt_read_descriptor_request(const BluetoothGATTReadDescriptorRequest &value)
virtual void on_noise_encryption_set_key_request(const NoiseEncryptionSetKeyRequest &value)
virtual void on_z_wave_proxy_frame(const ZWaveProxyFrame &value)
virtual void on_infrared_rf_transmit_raw_timings_request(const InfraredRFTransmitRawTimingsRequest &value)
virtual void on_lock_command_request(const LockCommandRequest &value)
virtual void on_media_player_command_request(const MediaPlayerCommandRequest &value)
virtual void on_water_heater_command_request(const WaterHeaterCommandRequest &value)
virtual void on_bluetooth_gatt_write_request(const BluetoothGATTWriteRequest &value)
virtual void on_valve_command_request(const ValveCommandRequest &value)
virtual void on_bluetooth_gatt_read_request(const BluetoothGATTReadRequest &value)
virtual void on_subscribe_bluetooth_connections_free_request()
virtual void on_bluetooth_set_connection_params_request(const BluetoothSetConnectionParamsRequest &value)
virtual void on_cover_command_request(const CoverCommandRequest &value)
virtual void on_subscribe_bluetooth_le_advertisements_request(const SubscribeBluetoothLEAdvertisementsRequest &value)
virtual void on_text_command_request(const TextCommandRequest &value)
virtual void on_select_command_request(const SelectCommandRequest &value)
virtual void on_fan_command_request(const FanCommandRequest &value)
virtual void on_serial_proxy_get_modem_pins_request(const SerialProxyGetModemPinsRequest &value)
virtual void on_serial_proxy_request(const SerialProxyRequest &value)
virtual void on_subscribe_homeassistant_services_request()
virtual void on_camera_image_request(const CameraImageRequest &value)
virtual void on_serial_proxy_configure_request(const SerialProxyConfigureRequest &value)
virtual void on_subscribe_logs_request(const SubscribeLogsRequest &value)
virtual void on_unsubscribe_bluetooth_le_advertisements_request()
virtual void on_bluetooth_gatt_write_descriptor_request(const BluetoothGATTWriteDescriptorRequest &value)
virtual void on_voice_assistant_audio(const VoiceAssistantAudio &value)
virtual void on_subscribe_voice_assistant_request(const SubscribeVoiceAssistantRequest &value)
virtual void on_serial_proxy_set_modem_pins_request(const SerialProxySetModemPinsRequest &value)
virtual void on_voice_assistant_announce_request(const VoiceAssistantAnnounceRequest &value)
virtual void on_climate_command_request(const ClimateCommandRequest &value)
virtual void on_voice_assistant_response(const VoiceAssistantResponse &value)
virtual void on_light_command_request(const LightCommandRequest &value)
virtual void on_date_time_command_request(const DateTimeCommandRequest &value)
virtual void on_subscribe_home_assistant_states_request()
virtual void on_switch_command_request(const SwitchCommandRequest &value)
virtual void on_voice_assistant_timer_event_response(const VoiceAssistantTimerEventResponse &value)
virtual void on_button_command_request(const ButtonCommandRequest &value)
virtual void on_serial_proxy_write_request(const SerialProxyWriteRequest &value)
virtual void on_voice_assistant_event_response(const VoiceAssistantEventResponse &value)
void log_send_message_(const char *name, const char *dump)
virtual void on_z_wave_proxy_request(const ZWaveProxyRequest &value)
virtual void on_number_command_request(const NumberCommandRequest &value)
virtual void on_execute_service_request(const ExecuteServiceRequest &value)
virtual void on_bluetooth_scanner_set_mode_request(const BluetoothScannerSetModeRequest &value)
virtual void on_date_command_request(const DateCommandRequest &value)
void log_receive_message_(const LogString *name, const ProtoMessage &msg)
virtual void on_update_command_request(const UpdateCommandRequest &value)
virtual void on_time_command_request(const TimeCommandRequest &value)
static void uint32_t