ESPHome 2025.9.3
Loading...
Searching...
No Matches
api_pb2_service.cpp
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#include "api_pb2_service.h"
4#include "esphome/core/log.h"
5
6namespace esphome::api {
7
8static const char *const TAG = "api.service";
9
10#ifdef HAS_PROTO_MESSAGE_DUMP
11void APIServerConnectionBase::log_send_message_(const char *name, const std::string &dump) {
12 ESP_LOGVV(TAG, "send_message %s: %s", name, dump.c_str());
13}
14#endif
15
16void APIServerConnectionBase::read_message(uint32_t msg_size, uint32_t msg_type, uint8_t *msg_data) {
17 switch (msg_type) {
19 HelloRequest msg;
20 msg.decode(msg_data, msg_size);
21#ifdef HAS_PROTO_MESSAGE_DUMP
22 ESP_LOGVV(TAG, "on_hello_request: %s", msg.dump().c_str());
23#endif
24 this->on_hello_request(msg);
25 break;
26 }
29 msg.decode(msg_data, msg_size);
30#ifdef HAS_PROTO_MESSAGE_DUMP
31 ESP_LOGVV(TAG, "on_connect_request: %s", msg.dump().c_str());
32#endif
33 this->on_connect_request(msg);
34 break;
35 }
38 // Empty message: no decode needed
39#ifdef HAS_PROTO_MESSAGE_DUMP
40 ESP_LOGVV(TAG, "on_disconnect_request: %s", msg.dump().c_str());
41#endif
42 this->on_disconnect_request(msg);
43 break;
44 }
47 // Empty message: no decode needed
48#ifdef HAS_PROTO_MESSAGE_DUMP
49 ESP_LOGVV(TAG, "on_disconnect_response: %s", msg.dump().c_str());
50#endif
51 this->on_disconnect_response(msg);
52 break;
53 }
55 PingRequest msg;
56 // Empty message: no decode needed
57#ifdef HAS_PROTO_MESSAGE_DUMP
58 ESP_LOGVV(TAG, "on_ping_request: %s", msg.dump().c_str());
59#endif
60 this->on_ping_request(msg);
61 break;
62 }
64 PingResponse msg;
65 // Empty message: no decode needed
66#ifdef HAS_PROTO_MESSAGE_DUMP
67 ESP_LOGVV(TAG, "on_ping_response: %s", msg.dump().c_str());
68#endif
69 this->on_ping_response(msg);
70 break;
71 }
74 // Empty message: no decode needed
75#ifdef HAS_PROTO_MESSAGE_DUMP
76 ESP_LOGVV(TAG, "on_device_info_request: %s", msg.dump().c_str());
77#endif
78 this->on_device_info_request(msg);
79 break;
80 }
83 // Empty message: no decode needed
84#ifdef HAS_PROTO_MESSAGE_DUMP
85 ESP_LOGVV(TAG, "on_list_entities_request: %s", msg.dump().c_str());
86#endif
87 this->on_list_entities_request(msg);
88 break;
89 }
92 // Empty message: no decode needed
93#ifdef HAS_PROTO_MESSAGE_DUMP
94 ESP_LOGVV(TAG, "on_subscribe_states_request: %s", msg.dump().c_str());
95#endif
97 break;
98 }
101 msg.decode(msg_data, msg_size);
102#ifdef HAS_PROTO_MESSAGE_DUMP
103 ESP_LOGVV(TAG, "on_subscribe_logs_request: %s", msg.dump().c_str());
104#endif
105 this->on_subscribe_logs_request(msg);
106 break;
107 }
108#ifdef USE_COVER
111 msg.decode(msg_data, msg_size);
112#ifdef HAS_PROTO_MESSAGE_DUMP
113 ESP_LOGVV(TAG, "on_cover_command_request: %s", msg.dump().c_str());
114#endif
115 this->on_cover_command_request(msg);
116 break;
117 }
118#endif
119#ifdef USE_FAN
122 msg.decode(msg_data, msg_size);
123#ifdef HAS_PROTO_MESSAGE_DUMP
124 ESP_LOGVV(TAG, "on_fan_command_request: %s", msg.dump().c_str());
125#endif
126 this->on_fan_command_request(msg);
127 break;
128 }
129#endif
130#ifdef USE_LIGHT
133 msg.decode(msg_data, msg_size);
134#ifdef HAS_PROTO_MESSAGE_DUMP
135 ESP_LOGVV(TAG, "on_light_command_request: %s", msg.dump().c_str());
136#endif
137 this->on_light_command_request(msg);
138 break;
139 }
140#endif
141#ifdef USE_SWITCH
144 msg.decode(msg_data, msg_size);
145#ifdef HAS_PROTO_MESSAGE_DUMP
146 ESP_LOGVV(TAG, "on_switch_command_request: %s", msg.dump().c_str());
147#endif
148 this->on_switch_command_request(msg);
149 break;
150 }
151#endif
152#ifdef USE_API_HOMEASSISTANT_SERVICES
155 // Empty message: no decode needed
156#ifdef HAS_PROTO_MESSAGE_DUMP
157 ESP_LOGVV(TAG, "on_subscribe_homeassistant_services_request: %s", msg.dump().c_str());
158#endif
160 break;
161 }
162#endif
164 GetTimeResponse msg;
165 msg.decode(msg_data, msg_size);
166#ifdef HAS_PROTO_MESSAGE_DUMP
167 ESP_LOGVV(TAG, "on_get_time_response: %s", msg.dump().c_str());
168#endif
169 this->on_get_time_response(msg);
170 break;
171 }
172#ifdef USE_API_HOMEASSISTANT_STATES
175 // Empty message: no decode needed
176#ifdef HAS_PROTO_MESSAGE_DUMP
177 ESP_LOGVV(TAG, "on_subscribe_home_assistant_states_request: %s", msg.dump().c_str());
178#endif
180 break;
181 }
182#endif
183#ifdef USE_API_HOMEASSISTANT_STATES
186 msg.decode(msg_data, msg_size);
187#ifdef HAS_PROTO_MESSAGE_DUMP
188 ESP_LOGVV(TAG, "on_home_assistant_state_response: %s", msg.dump().c_str());
189#endif
191 break;
192 }
193#endif
194#ifdef USE_API_SERVICES
197 msg.decode(msg_data, msg_size);
198#ifdef HAS_PROTO_MESSAGE_DUMP
199 ESP_LOGVV(TAG, "on_execute_service_request: %s", msg.dump().c_str());
200#endif
202 break;
203 }
204#endif
205#ifdef USE_CAMERA
208 msg.decode(msg_data, msg_size);
209#ifdef HAS_PROTO_MESSAGE_DUMP
210 ESP_LOGVV(TAG, "on_camera_image_request: %s", msg.dump().c_str());
211#endif
212 this->on_camera_image_request(msg);
213 break;
214 }
215#endif
216#ifdef USE_CLIMATE
219 msg.decode(msg_data, msg_size);
220#ifdef HAS_PROTO_MESSAGE_DUMP
221 ESP_LOGVV(TAG, "on_climate_command_request: %s", msg.dump().c_str());
222#endif
224 break;
225 }
226#endif
227#ifdef USE_NUMBER
230 msg.decode(msg_data, msg_size);
231#ifdef HAS_PROTO_MESSAGE_DUMP
232 ESP_LOGVV(TAG, "on_number_command_request: %s", msg.dump().c_str());
233#endif
234 this->on_number_command_request(msg);
235 break;
236 }
237#endif
238#ifdef USE_SELECT
241 msg.decode(msg_data, msg_size);
242#ifdef HAS_PROTO_MESSAGE_DUMP
243 ESP_LOGVV(TAG, "on_select_command_request: %s", msg.dump().c_str());
244#endif
245 this->on_select_command_request(msg);
246 break;
247 }
248#endif
249#ifdef USE_SIREN
252 msg.decode(msg_data, msg_size);
253#ifdef HAS_PROTO_MESSAGE_DUMP
254 ESP_LOGVV(TAG, "on_siren_command_request: %s", msg.dump().c_str());
255#endif
256 this->on_siren_command_request(msg);
257 break;
258 }
259#endif
260#ifdef USE_LOCK
263 msg.decode(msg_data, msg_size);
264#ifdef HAS_PROTO_MESSAGE_DUMP
265 ESP_LOGVV(TAG, "on_lock_command_request: %s", msg.dump().c_str());
266#endif
267 this->on_lock_command_request(msg);
268 break;
269 }
270#endif
271#ifdef USE_BUTTON
274 msg.decode(msg_data, msg_size);
275#ifdef HAS_PROTO_MESSAGE_DUMP
276 ESP_LOGVV(TAG, "on_button_command_request: %s", msg.dump().c_str());
277#endif
278 this->on_button_command_request(msg);
279 break;
280 }
281#endif
282#ifdef USE_MEDIA_PLAYER
285 msg.decode(msg_data, msg_size);
286#ifdef HAS_PROTO_MESSAGE_DUMP
287 ESP_LOGVV(TAG, "on_media_player_command_request: %s", msg.dump().c_str());
288#endif
290 break;
291 }
292#endif
293#ifdef USE_BLUETOOTH_PROXY
296 msg.decode(msg_data, msg_size);
297#ifdef HAS_PROTO_MESSAGE_DUMP
298 ESP_LOGVV(TAG, "on_subscribe_bluetooth_le_advertisements_request: %s", msg.dump().c_str());
299#endif
301 break;
302 }
303#endif
304#ifdef USE_BLUETOOTH_PROXY
307 msg.decode(msg_data, msg_size);
308#ifdef HAS_PROTO_MESSAGE_DUMP
309 ESP_LOGVV(TAG, "on_bluetooth_device_request: %s", msg.dump().c_str());
310#endif
312 break;
313 }
314#endif
315#ifdef USE_BLUETOOTH_PROXY
318 msg.decode(msg_data, msg_size);
319#ifdef HAS_PROTO_MESSAGE_DUMP
320 ESP_LOGVV(TAG, "on_bluetooth_gatt_get_services_request: %s", msg.dump().c_str());
321#endif
323 break;
324 }
325#endif
326#ifdef USE_BLUETOOTH_PROXY
329 msg.decode(msg_data, msg_size);
330#ifdef HAS_PROTO_MESSAGE_DUMP
331 ESP_LOGVV(TAG, "on_bluetooth_gatt_read_request: %s", msg.dump().c_str());
332#endif
334 break;
335 }
336#endif
337#ifdef USE_BLUETOOTH_PROXY
340 msg.decode(msg_data, msg_size);
341#ifdef HAS_PROTO_MESSAGE_DUMP
342 ESP_LOGVV(TAG, "on_bluetooth_gatt_write_request: %s", msg.dump().c_str());
343#endif
345 break;
346 }
347#endif
348#ifdef USE_BLUETOOTH_PROXY
351 msg.decode(msg_data, msg_size);
352#ifdef HAS_PROTO_MESSAGE_DUMP
353 ESP_LOGVV(TAG, "on_bluetooth_gatt_read_descriptor_request: %s", msg.dump().c_str());
354#endif
356 break;
357 }
358#endif
359#ifdef USE_BLUETOOTH_PROXY
362 msg.decode(msg_data, msg_size);
363#ifdef HAS_PROTO_MESSAGE_DUMP
364 ESP_LOGVV(TAG, "on_bluetooth_gatt_write_descriptor_request: %s", msg.dump().c_str());
365#endif
367 break;
368 }
369#endif
370#ifdef USE_BLUETOOTH_PROXY
373 msg.decode(msg_data, msg_size);
374#ifdef HAS_PROTO_MESSAGE_DUMP
375 ESP_LOGVV(TAG, "on_bluetooth_gatt_notify_request: %s", msg.dump().c_str());
376#endif
378 break;
379 }
380#endif
381#ifdef USE_BLUETOOTH_PROXY
384 // Empty message: no decode needed
385#ifdef HAS_PROTO_MESSAGE_DUMP
386 ESP_LOGVV(TAG, "on_subscribe_bluetooth_connections_free_request: %s", msg.dump().c_str());
387#endif
389 break;
390 }
391#endif
392#ifdef USE_BLUETOOTH_PROXY
395 // Empty message: no decode needed
396#ifdef HAS_PROTO_MESSAGE_DUMP
397 ESP_LOGVV(TAG, "on_unsubscribe_bluetooth_le_advertisements_request: %s", msg.dump().c_str());
398#endif
400 break;
401 }
402#endif
403#ifdef USE_VOICE_ASSISTANT
406 msg.decode(msg_data, msg_size);
407#ifdef HAS_PROTO_MESSAGE_DUMP
408 ESP_LOGVV(TAG, "on_subscribe_voice_assistant_request: %s", msg.dump().c_str());
409#endif
411 break;
412 }
413#endif
414#ifdef USE_VOICE_ASSISTANT
417 msg.decode(msg_data, msg_size);
418#ifdef HAS_PROTO_MESSAGE_DUMP
419 ESP_LOGVV(TAG, "on_voice_assistant_response: %s", msg.dump().c_str());
420#endif
422 break;
423 }
424#endif
425#ifdef USE_VOICE_ASSISTANT
428 msg.decode(msg_data, msg_size);
429#ifdef HAS_PROTO_MESSAGE_DUMP
430 ESP_LOGVV(TAG, "on_voice_assistant_event_response: %s", msg.dump().c_str());
431#endif
433 break;
434 }
435#endif
436#ifdef USE_ALARM_CONTROL_PANEL
439 msg.decode(msg_data, msg_size);
440#ifdef HAS_PROTO_MESSAGE_DUMP
441 ESP_LOGVV(TAG, "on_alarm_control_panel_command_request: %s", msg.dump().c_str());
442#endif
444 break;
445 }
446#endif
447#ifdef USE_TEXT
450 msg.decode(msg_data, msg_size);
451#ifdef HAS_PROTO_MESSAGE_DUMP
452 ESP_LOGVV(TAG, "on_text_command_request: %s", msg.dump().c_str());
453#endif
454 this->on_text_command_request(msg);
455 break;
456 }
457#endif
458#ifdef USE_DATETIME_DATE
461 msg.decode(msg_data, msg_size);
462#ifdef HAS_PROTO_MESSAGE_DUMP
463 ESP_LOGVV(TAG, "on_date_command_request: %s", msg.dump().c_str());
464#endif
465 this->on_date_command_request(msg);
466 break;
467 }
468#endif
469#ifdef USE_DATETIME_TIME
472 msg.decode(msg_data, msg_size);
473#ifdef HAS_PROTO_MESSAGE_DUMP
474 ESP_LOGVV(TAG, "on_time_command_request: %s", msg.dump().c_str());
475#endif
476 this->on_time_command_request(msg);
477 break;
478 }
479#endif
480#ifdef USE_VOICE_ASSISTANT
483 msg.decode(msg_data, msg_size);
484#ifdef HAS_PROTO_MESSAGE_DUMP
485 ESP_LOGVV(TAG, "on_voice_assistant_audio: %s", msg.dump().c_str());
486#endif
487 this->on_voice_assistant_audio(msg);
488 break;
489 }
490#endif
491#ifdef USE_VALVE
494 msg.decode(msg_data, msg_size);
495#ifdef HAS_PROTO_MESSAGE_DUMP
496 ESP_LOGVV(TAG, "on_valve_command_request: %s", msg.dump().c_str());
497#endif
498 this->on_valve_command_request(msg);
499 break;
500 }
501#endif
502#ifdef USE_DATETIME_DATETIME
505 msg.decode(msg_data, msg_size);
506#ifdef HAS_PROTO_MESSAGE_DUMP
507 ESP_LOGVV(TAG, "on_date_time_command_request: %s", msg.dump().c_str());
508#endif
510 break;
511 }
512#endif
513#ifdef USE_VOICE_ASSISTANT
516 msg.decode(msg_data, msg_size);
517#ifdef HAS_PROTO_MESSAGE_DUMP
518 ESP_LOGVV(TAG, "on_voice_assistant_timer_event_response: %s", msg.dump().c_str());
519#endif
521 break;
522 }
523#endif
524#ifdef USE_UPDATE
527 msg.decode(msg_data, msg_size);
528#ifdef HAS_PROTO_MESSAGE_DUMP
529 ESP_LOGVV(TAG, "on_update_command_request: %s", msg.dump().c_str());
530#endif
531 this->on_update_command_request(msg);
532 break;
533 }
534#endif
535#ifdef USE_VOICE_ASSISTANT
538 msg.decode(msg_data, msg_size);
539#ifdef HAS_PROTO_MESSAGE_DUMP
540 ESP_LOGVV(TAG, "on_voice_assistant_announce_request: %s", msg.dump().c_str());
541#endif
543 break;
544 }
545#endif
546#ifdef USE_VOICE_ASSISTANT
549 // Empty message: no decode needed
550#ifdef HAS_PROTO_MESSAGE_DUMP
551 ESP_LOGVV(TAG, "on_voice_assistant_configuration_request: %s", msg.dump().c_str());
552#endif
554 break;
555 }
556#endif
557#ifdef USE_VOICE_ASSISTANT
560 msg.decode(msg_data, msg_size);
561#ifdef HAS_PROTO_MESSAGE_DUMP
562 ESP_LOGVV(TAG, "on_voice_assistant_set_configuration: %s", msg.dump().c_str());
563#endif
565 break;
566 }
567#endif
568#ifdef USE_API_NOISE
571 msg.decode(msg_data, msg_size);
572#ifdef HAS_PROTO_MESSAGE_DUMP
573 ESP_LOGVV(TAG, "on_noise_encryption_set_key_request: %s", msg.dump().c_str());
574#endif
576 break;
577 }
578#endif
579#ifdef USE_BLUETOOTH_PROXY
582 msg.decode(msg_data, msg_size);
583#ifdef HAS_PROTO_MESSAGE_DUMP
584 ESP_LOGVV(TAG, "on_bluetooth_scanner_set_mode_request: %s", msg.dump().c_str());
585#endif
587 break;
588 }
589#endif
590 default:
591 break;
592 }
593}
594
596 if (!this->send_hello_response(msg)) {
597 this->on_fatal_error();
598 }
599}
601 if (!this->send_connect_response(msg)) {
602 this->on_fatal_error();
603 }
604}
606 if (!this->send_disconnect_response(msg)) {
607 this->on_fatal_error();
608 }
609}
611 if (!this->send_ping_response(msg)) {
612 this->on_fatal_error();
613 }
614}
621 if (this->check_authenticated_()) {
622 this->list_entities(msg);
623 }
624}
635#ifdef USE_API_HOMEASSISTANT_SERVICES
642#endif
643#ifdef USE_API_HOMEASSISTANT_STATES
649#endif
650#ifdef USE_API_SERVICES
656#endif
657#ifdef USE_API_NOISE
663#endif
664#ifdef USE_BUTTON
670#endif
671#ifdef USE_CAMERA
673 if (this->check_authenticated_()) {
674 this->camera_image(msg);
675 }
676}
677#endif
678#ifdef USE_CLIMATE
684#endif
685#ifdef USE_COVER
687 if (this->check_authenticated_()) {
688 this->cover_command(msg);
689 }
690}
691#endif
692#ifdef USE_DATETIME_DATE
694 if (this->check_authenticated_()) {
695 this->date_command(msg);
696 }
697}
698#endif
699#ifdef USE_DATETIME_DATETIME
705#endif
706#ifdef USE_FAN
708 if (this->check_authenticated_()) {
709 this->fan_command(msg);
710 }
711}
712#endif
713#ifdef USE_LIGHT
715 if (this->check_authenticated_()) {
716 this->light_command(msg);
717 }
718}
719#endif
720#ifdef USE_LOCK
722 if (this->check_authenticated_()) {
723 this->lock_command(msg);
724 }
725}
726#endif
727#ifdef USE_MEDIA_PLAYER
733#endif
734#ifdef USE_NUMBER
740#endif
741#ifdef USE_SELECT
747#endif
748#ifdef USE_SIREN
750 if (this->check_authenticated_()) {
751 this->siren_command(msg);
752 }
753}
754#endif
755#ifdef USE_SWITCH
761#endif
762#ifdef USE_TEXT
764 if (this->check_authenticated_()) {
765 this->text_command(msg);
766 }
767}
768#endif
769#ifdef USE_DATETIME_TIME
771 if (this->check_authenticated_()) {
772 this->time_command(msg);
773 }
774}
775#endif
776#ifdef USE_UPDATE
782#endif
783#ifdef USE_VALVE
785 if (this->check_authenticated_()) {
786 this->valve_command(msg);
787 }
788}
789#endif
790#ifdef USE_BLUETOOTH_PROXY
797#endif
798#ifdef USE_BLUETOOTH_PROXY
804#endif
805#ifdef USE_BLUETOOTH_PROXY
811#endif
812#ifdef USE_BLUETOOTH_PROXY
818#endif
819#ifdef USE_BLUETOOTH_PROXY
825#endif
826#ifdef USE_BLUETOOTH_PROXY
832#endif
833#ifdef USE_BLUETOOTH_PROXY
839#endif
840#ifdef USE_BLUETOOTH_PROXY
846#endif
847#ifdef USE_BLUETOOTH_PROXY
854#endif
855#ifdef USE_BLUETOOTH_PROXY
862#endif
863#ifdef USE_BLUETOOTH_PROXY
869#endif
870#ifdef USE_VOICE_ASSISTANT
876#endif
877#ifdef USE_VOICE_ASSISTANT
883#endif
884#ifdef USE_VOICE_ASSISTANT
890#endif
891#ifdef USE_ALARM_CONTROL_PANEL
897#endif
898
899} // namespace esphome::api
virtual void on_voice_assistant_configuration_request(const VoiceAssistantConfigurationRequest &value)
virtual void on_bluetooth_gatt_get_services_request(const BluetoothGATTGetServicesRequest &value)
void read_message(uint32_t msg_size, uint32_t msg_type, uint8_t *msg_data) override
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_subscribe_home_assistant_states_request(const SubscribeHomeAssistantStatesRequest &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)
virtual void on_voice_assistant_set_configuration(const VoiceAssistantSetConfiguration &value)
virtual void on_bluetooth_gatt_read_descriptor_request(const BluetoothGATTReadDescriptorRequest &value)
virtual void on_list_entities_request(const ListEntitiesRequest &value)
virtual void on_noise_encryption_set_key_request(const NoiseEncryptionSetKeyRequest &value)
virtual void on_lock_command_request(const LockCommandRequest &value)
virtual void on_media_player_command_request(const MediaPlayerCommandRequest &value)
virtual void on_bluetooth_gatt_write_request(const BluetoothGATTWriteRequest &value)
virtual void on_subscribe_states_request(const SubscribeStatesRequest &value)
virtual void on_ping_response(const PingResponse &value)
virtual void on_valve_command_request(const ValveCommandRequest &value)
virtual void on_bluetooth_gatt_read_request(const BluetoothGATTReadRequest &value)
virtual void on_disconnect_request(const DisconnectRequest &value)
void log_send_message_(const char *name, const std::string &dump)
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_camera_image_request(const CameraImageRequest &value)
virtual void on_subscribe_logs_request(const SubscribeLogsRequest &value)
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_connect_request(const ConnectRequest &value)
virtual void on_voice_assistant_announce_request(const VoiceAssistantAnnounceRequest &value)
virtual void on_climate_command_request(const ClimateCommandRequest &value)
virtual void on_ping_request(const PingRequest &value)
virtual void on_voice_assistant_response(const VoiceAssistantResponse &value)
virtual void on_light_command_request(const LightCommandRequest &value)
virtual void on_subscribe_bluetooth_connections_free_request(const SubscribeBluetoothConnectionsFreeRequest &value)
virtual void on_date_time_command_request(const DateTimeCommandRequest &value)
virtual void on_subscribe_homeassistant_services_request(const SubscribeHomeassistantServicesRequest &value)
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_voice_assistant_event_response(const VoiceAssistantEventResponse &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)
virtual void on_unsubscribe_bluetooth_le_advertisements_request(const UnsubscribeBluetoothLEAdvertisementsRequest &value)
virtual void on_update_command_request(const UpdateCommandRequest &value)
virtual void on_disconnect_response(const DisconnectResponse &value)
virtual void on_device_info_request(const DeviceInfoRequest &value)
virtual void on_time_command_request(const TimeCommandRequest &value)
virtual bool send_voice_assistant_get_configuration_response(const VoiceAssistantConfigurationRequest &msg)=0
virtual void voice_assistant_set_configuration(const VoiceAssistantSetConfiguration &msg)=0
void on_media_player_command_request(const MediaPlayerCommandRequest &msg) override
void on_subscribe_bluetooth_connections_free_request(const SubscribeBluetoothConnectionsFreeRequest &msg) override
void on_number_command_request(const NumberCommandRequest &msg) override
virtual void lock_command(const LockCommandRequest &msg)=0
virtual void text_command(const TextCommandRequest &msg)=0
void on_ping_request(const PingRequest &msg) override
virtual void subscribe_logs(const SubscribeLogsRequest &msg)=0
void on_subscribe_logs_request(const SubscribeLogsRequest &msg) override
virtual void light_command(const LightCommandRequest &msg)=0
void on_device_info_request(const DeviceInfoRequest &msg) override
void on_camera_image_request(const CameraImageRequest &msg) override
virtual void select_command(const SelectCommandRequest &msg)=0
virtual void unsubscribe_bluetooth_le_advertisements(const UnsubscribeBluetoothLEAdvertisementsRequest &msg)=0
virtual void camera_image(const CameraImageRequest &msg)=0
void on_date_time_command_request(const DateTimeCommandRequest &msg) override
void on_bluetooth_gatt_write_request(const BluetoothGATTWriteRequest &msg) override
void on_update_command_request(const UpdateCommandRequest &msg) override
virtual void valve_command(const ValveCommandRequest &msg)=0
virtual void bluetooth_gatt_get_services(const BluetoothGATTGetServicesRequest &msg)=0
void on_bluetooth_gatt_notify_request(const BluetoothGATTNotifyRequest &msg) override
void on_text_command_request(const TextCommandRequest &msg) override
void on_select_command_request(const SelectCommandRequest &msg) override
virtual void climate_command(const ClimateCommandRequest &msg)=0
virtual void execute_service(const ExecuteServiceRequest &msg)=0
void on_lock_command_request(const LockCommandRequest &msg) override
void on_execute_service_request(const ExecuteServiceRequest &msg) override
void on_button_command_request(const ButtonCommandRequest &msg) override
virtual void bluetooth_gatt_read_descriptor(const BluetoothGATTReadDescriptorRequest &msg)=0
virtual bool send_noise_encryption_set_key_response(const NoiseEncryptionSetKeyRequest &msg)=0
void on_list_entities_request(const ListEntitiesRequest &msg) override
virtual void bluetooth_device_request(const BluetoothDeviceRequest &msg)=0
virtual bool send_subscribe_bluetooth_connections_free_response(const SubscribeBluetoothConnectionsFreeRequest &msg)=0
virtual void subscribe_home_assistant_states(const SubscribeHomeAssistantStatesRequest &msg)=0
void on_siren_command_request(const SirenCommandRequest &msg) override
virtual bool send_connect_response(const ConnectRequest &msg)=0
virtual void fan_command(const FanCommandRequest &msg)=0
void on_subscribe_home_assistant_states_request(const SubscribeHomeAssistantStatesRequest &msg) override
void on_subscribe_voice_assistant_request(const SubscribeVoiceAssistantRequest &msg) override
void on_hello_request(const HelloRequest &msg) override
void on_climate_command_request(const ClimateCommandRequest &msg) override
virtual void list_entities(const ListEntitiesRequest &msg)=0
void on_subscribe_bluetooth_le_advertisements_request(const SubscribeBluetoothLEAdvertisementsRequest &msg) override
virtual void number_command(const NumberCommandRequest &msg)=0
void on_unsubscribe_bluetooth_le_advertisements_request(const UnsubscribeBluetoothLEAdvertisementsRequest &msg) override
void on_connect_request(const ConnectRequest &msg) override
void on_fan_command_request(const FanCommandRequest &msg) override
virtual void bluetooth_gatt_read(const BluetoothGATTReadRequest &msg)=0
void on_subscribe_homeassistant_services_request(const SubscribeHomeassistantServicesRequest &msg) override
virtual void bluetooth_gatt_write(const BluetoothGATTWriteRequest &msg)=0
virtual void button_command(const ButtonCommandRequest &msg)=0
virtual void siren_command(const SirenCommandRequest &msg)=0
virtual void bluetooth_gatt_notify(const BluetoothGATTNotifyRequest &msg)=0
virtual bool send_device_info_response(const DeviceInfoRequest &msg)=0
virtual bool send_ping_response(const PingRequest &msg)=0
void on_alarm_control_panel_command_request(const AlarmControlPanelCommandRequest &msg) override
virtual void time_command(const TimeCommandRequest &msg)=0
virtual void subscribe_voice_assistant(const SubscribeVoiceAssistantRequest &msg)=0
void on_bluetooth_gatt_get_services_request(const BluetoothGATTGetServicesRequest &msg) override
virtual void cover_command(const CoverCommandRequest &msg)=0
virtual void bluetooth_scanner_set_mode(const BluetoothScannerSetModeRequest &msg)=0
virtual void update_command(const UpdateCommandRequest &msg)=0
virtual void subscribe_states(const SubscribeStatesRequest &msg)=0
virtual void switch_command(const SwitchCommandRequest &msg)=0
void on_bluetooth_gatt_read_request(const BluetoothGATTReadRequest &msg) override
virtual void datetime_command(const DateTimeCommandRequest &msg)=0
void on_bluetooth_scanner_set_mode_request(const BluetoothScannerSetModeRequest &msg) override
void on_date_command_request(const DateCommandRequest &msg) override
void on_time_command_request(const TimeCommandRequest &msg) override
virtual void bluetooth_gatt_write_descriptor(const BluetoothGATTWriteDescriptorRequest &msg)=0
virtual void subscribe_homeassistant_services(const SubscribeHomeassistantServicesRequest &msg)=0
void on_disconnect_request(const DisconnectRequest &msg) override
virtual void date_command(const DateCommandRequest &msg)=0
void on_voice_assistant_configuration_request(const VoiceAssistantConfigurationRequest &msg) override
void on_cover_command_request(const CoverCommandRequest &msg) override
void on_valve_command_request(const ValveCommandRequest &msg) override
void on_light_command_request(const LightCommandRequest &msg) override
virtual void alarm_control_panel_command(const AlarmControlPanelCommandRequest &msg)=0
virtual bool send_hello_response(const HelloRequest &msg)=0
virtual void media_player_command(const MediaPlayerCommandRequest &msg)=0
void on_voice_assistant_set_configuration(const VoiceAssistantSetConfiguration &msg) override
void on_bluetooth_device_request(const BluetoothDeviceRequest &msg) override
void on_bluetooth_gatt_read_descriptor_request(const BluetoothGATTReadDescriptorRequest &msg) override
void on_subscribe_states_request(const SubscribeStatesRequest &msg) override
void on_bluetooth_gatt_write_descriptor_request(const BluetoothGATTWriteDescriptorRequest &msg) override
virtual void subscribe_bluetooth_le_advertisements(const SubscribeBluetoothLEAdvertisementsRequest &msg)=0
virtual bool send_disconnect_response(const DisconnectRequest &msg)=0
void on_noise_encryption_set_key_request(const NoiseEncryptionSetKeyRequest &msg) override
void on_switch_command_request(const SwitchCommandRequest &msg) override
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1807
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2026
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1934
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1973
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2234
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1665
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1302
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1382
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:365
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:680
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2635
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2835
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:448
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:396
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:409
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1246
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:743
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1176
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:326
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1145
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:818
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:564
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1627
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1734
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1030
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1460
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:422
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:435
void decode(const uint8_t *buffer, size_t length)
Definition proto.cpp:10
std::string dump() const
Definition proto.cpp:80
virtual void on_fatal_error()=0
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1512
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1565
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:991
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:590
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2251
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:937
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2582
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2689
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2899
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2783
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2392
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2346
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2329
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2302
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2473