ESPHome 2025.9.0-dev
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 GetTimeRequest msg;
165 // Empty message: no decode needed
166#ifdef HAS_PROTO_MESSAGE_DUMP
167 ESP_LOGVV(TAG, "on_get_time_request: %s", msg.dump().c_str());
168#endif
169 this->on_get_time_request(msg);
170 break;
171 }
173 GetTimeResponse msg;
174 msg.decode(msg_data, msg_size);
175#ifdef HAS_PROTO_MESSAGE_DUMP
176 ESP_LOGVV(TAG, "on_get_time_response: %s", msg.dump().c_str());
177#endif
178 this->on_get_time_response(msg);
179 break;
180 }
181#ifdef USE_API_HOMEASSISTANT_STATES
184 // Empty message: no decode needed
185#ifdef HAS_PROTO_MESSAGE_DUMP
186 ESP_LOGVV(TAG, "on_subscribe_home_assistant_states_request: %s", msg.dump().c_str());
187#endif
189 break;
190 }
191#endif
192#ifdef USE_API_HOMEASSISTANT_STATES
195 msg.decode(msg_data, msg_size);
196#ifdef HAS_PROTO_MESSAGE_DUMP
197 ESP_LOGVV(TAG, "on_home_assistant_state_response: %s", msg.dump().c_str());
198#endif
200 break;
201 }
202#endif
203#ifdef USE_API_SERVICES
206 msg.decode(msg_data, msg_size);
207#ifdef HAS_PROTO_MESSAGE_DUMP
208 ESP_LOGVV(TAG, "on_execute_service_request: %s", msg.dump().c_str());
209#endif
211 break;
212 }
213#endif
214#ifdef USE_CAMERA
217 msg.decode(msg_data, msg_size);
218#ifdef HAS_PROTO_MESSAGE_DUMP
219 ESP_LOGVV(TAG, "on_camera_image_request: %s", msg.dump().c_str());
220#endif
221 this->on_camera_image_request(msg);
222 break;
223 }
224#endif
225#ifdef USE_CLIMATE
228 msg.decode(msg_data, msg_size);
229#ifdef HAS_PROTO_MESSAGE_DUMP
230 ESP_LOGVV(TAG, "on_climate_command_request: %s", msg.dump().c_str());
231#endif
233 break;
234 }
235#endif
236#ifdef USE_NUMBER
239 msg.decode(msg_data, msg_size);
240#ifdef HAS_PROTO_MESSAGE_DUMP
241 ESP_LOGVV(TAG, "on_number_command_request: %s", msg.dump().c_str());
242#endif
243 this->on_number_command_request(msg);
244 break;
245 }
246#endif
247#ifdef USE_SELECT
250 msg.decode(msg_data, msg_size);
251#ifdef HAS_PROTO_MESSAGE_DUMP
252 ESP_LOGVV(TAG, "on_select_command_request: %s", msg.dump().c_str());
253#endif
254 this->on_select_command_request(msg);
255 break;
256 }
257#endif
258#ifdef USE_SIREN
261 msg.decode(msg_data, msg_size);
262#ifdef HAS_PROTO_MESSAGE_DUMP
263 ESP_LOGVV(TAG, "on_siren_command_request: %s", msg.dump().c_str());
264#endif
265 this->on_siren_command_request(msg);
266 break;
267 }
268#endif
269#ifdef USE_LOCK
272 msg.decode(msg_data, msg_size);
273#ifdef HAS_PROTO_MESSAGE_DUMP
274 ESP_LOGVV(TAG, "on_lock_command_request: %s", msg.dump().c_str());
275#endif
276 this->on_lock_command_request(msg);
277 break;
278 }
279#endif
280#ifdef USE_BUTTON
283 msg.decode(msg_data, msg_size);
284#ifdef HAS_PROTO_MESSAGE_DUMP
285 ESP_LOGVV(TAG, "on_button_command_request: %s", msg.dump().c_str());
286#endif
287 this->on_button_command_request(msg);
288 break;
289 }
290#endif
291#ifdef USE_MEDIA_PLAYER
294 msg.decode(msg_data, msg_size);
295#ifdef HAS_PROTO_MESSAGE_DUMP
296 ESP_LOGVV(TAG, "on_media_player_command_request: %s", msg.dump().c_str());
297#endif
299 break;
300 }
301#endif
302#ifdef USE_BLUETOOTH_PROXY
305 msg.decode(msg_data, msg_size);
306#ifdef HAS_PROTO_MESSAGE_DUMP
307 ESP_LOGVV(TAG, "on_subscribe_bluetooth_le_advertisements_request: %s", msg.dump().c_str());
308#endif
310 break;
311 }
312#endif
313#ifdef USE_BLUETOOTH_PROXY
316 msg.decode(msg_data, msg_size);
317#ifdef HAS_PROTO_MESSAGE_DUMP
318 ESP_LOGVV(TAG, "on_bluetooth_device_request: %s", msg.dump().c_str());
319#endif
321 break;
322 }
323#endif
324#ifdef USE_BLUETOOTH_PROXY
327 msg.decode(msg_data, msg_size);
328#ifdef HAS_PROTO_MESSAGE_DUMP
329 ESP_LOGVV(TAG, "on_bluetooth_gatt_get_services_request: %s", msg.dump().c_str());
330#endif
332 break;
333 }
334#endif
335#ifdef USE_BLUETOOTH_PROXY
338 msg.decode(msg_data, msg_size);
339#ifdef HAS_PROTO_MESSAGE_DUMP
340 ESP_LOGVV(TAG, "on_bluetooth_gatt_read_request: %s", msg.dump().c_str());
341#endif
343 break;
344 }
345#endif
346#ifdef USE_BLUETOOTH_PROXY
349 msg.decode(msg_data, msg_size);
350#ifdef HAS_PROTO_MESSAGE_DUMP
351 ESP_LOGVV(TAG, "on_bluetooth_gatt_write_request: %s", msg.dump().c_str());
352#endif
354 break;
355 }
356#endif
357#ifdef USE_BLUETOOTH_PROXY
360 msg.decode(msg_data, msg_size);
361#ifdef HAS_PROTO_MESSAGE_DUMP
362 ESP_LOGVV(TAG, "on_bluetooth_gatt_read_descriptor_request: %s", msg.dump().c_str());
363#endif
365 break;
366 }
367#endif
368#ifdef USE_BLUETOOTH_PROXY
371 msg.decode(msg_data, msg_size);
372#ifdef HAS_PROTO_MESSAGE_DUMP
373 ESP_LOGVV(TAG, "on_bluetooth_gatt_write_descriptor_request: %s", msg.dump().c_str());
374#endif
376 break;
377 }
378#endif
379#ifdef USE_BLUETOOTH_PROXY
382 msg.decode(msg_data, msg_size);
383#ifdef HAS_PROTO_MESSAGE_DUMP
384 ESP_LOGVV(TAG, "on_bluetooth_gatt_notify_request: %s", msg.dump().c_str());
385#endif
387 break;
388 }
389#endif
390#ifdef USE_BLUETOOTH_PROXY
393 // Empty message: no decode needed
394#ifdef HAS_PROTO_MESSAGE_DUMP
395 ESP_LOGVV(TAG, "on_subscribe_bluetooth_connections_free_request: %s", msg.dump().c_str());
396#endif
398 break;
399 }
400#endif
401#ifdef USE_BLUETOOTH_PROXY
404 // Empty message: no decode needed
405#ifdef HAS_PROTO_MESSAGE_DUMP
406 ESP_LOGVV(TAG, "on_unsubscribe_bluetooth_le_advertisements_request: %s", msg.dump().c_str());
407#endif
409 break;
410 }
411#endif
412#ifdef USE_VOICE_ASSISTANT
415 msg.decode(msg_data, msg_size);
416#ifdef HAS_PROTO_MESSAGE_DUMP
417 ESP_LOGVV(TAG, "on_subscribe_voice_assistant_request: %s", msg.dump().c_str());
418#endif
420 break;
421 }
422#endif
423#ifdef USE_VOICE_ASSISTANT
426 msg.decode(msg_data, msg_size);
427#ifdef HAS_PROTO_MESSAGE_DUMP
428 ESP_LOGVV(TAG, "on_voice_assistant_response: %s", msg.dump().c_str());
429#endif
431 break;
432 }
433#endif
434#ifdef USE_VOICE_ASSISTANT
437 msg.decode(msg_data, msg_size);
438#ifdef HAS_PROTO_MESSAGE_DUMP
439 ESP_LOGVV(TAG, "on_voice_assistant_event_response: %s", msg.dump().c_str());
440#endif
442 break;
443 }
444#endif
445#ifdef USE_ALARM_CONTROL_PANEL
448 msg.decode(msg_data, msg_size);
449#ifdef HAS_PROTO_MESSAGE_DUMP
450 ESP_LOGVV(TAG, "on_alarm_control_panel_command_request: %s", msg.dump().c_str());
451#endif
453 break;
454 }
455#endif
456#ifdef USE_TEXT
459 msg.decode(msg_data, msg_size);
460#ifdef HAS_PROTO_MESSAGE_DUMP
461 ESP_LOGVV(TAG, "on_text_command_request: %s", msg.dump().c_str());
462#endif
463 this->on_text_command_request(msg);
464 break;
465 }
466#endif
467#ifdef USE_DATETIME_DATE
470 msg.decode(msg_data, msg_size);
471#ifdef HAS_PROTO_MESSAGE_DUMP
472 ESP_LOGVV(TAG, "on_date_command_request: %s", msg.dump().c_str());
473#endif
474 this->on_date_command_request(msg);
475 break;
476 }
477#endif
478#ifdef USE_DATETIME_TIME
481 msg.decode(msg_data, msg_size);
482#ifdef HAS_PROTO_MESSAGE_DUMP
483 ESP_LOGVV(TAG, "on_time_command_request: %s", msg.dump().c_str());
484#endif
485 this->on_time_command_request(msg);
486 break;
487 }
488#endif
489#ifdef USE_VOICE_ASSISTANT
492 msg.decode(msg_data, msg_size);
493#ifdef HAS_PROTO_MESSAGE_DUMP
494 ESP_LOGVV(TAG, "on_voice_assistant_audio: %s", msg.dump().c_str());
495#endif
496 this->on_voice_assistant_audio(msg);
497 break;
498 }
499#endif
500#ifdef USE_VALVE
503 msg.decode(msg_data, msg_size);
504#ifdef HAS_PROTO_MESSAGE_DUMP
505 ESP_LOGVV(TAG, "on_valve_command_request: %s", msg.dump().c_str());
506#endif
507 this->on_valve_command_request(msg);
508 break;
509 }
510#endif
511#ifdef USE_DATETIME_DATETIME
514 msg.decode(msg_data, msg_size);
515#ifdef HAS_PROTO_MESSAGE_DUMP
516 ESP_LOGVV(TAG, "on_date_time_command_request: %s", msg.dump().c_str());
517#endif
519 break;
520 }
521#endif
522#ifdef USE_VOICE_ASSISTANT
525 msg.decode(msg_data, msg_size);
526#ifdef HAS_PROTO_MESSAGE_DUMP
527 ESP_LOGVV(TAG, "on_voice_assistant_timer_event_response: %s", msg.dump().c_str());
528#endif
530 break;
531 }
532#endif
533#ifdef USE_UPDATE
536 msg.decode(msg_data, msg_size);
537#ifdef HAS_PROTO_MESSAGE_DUMP
538 ESP_LOGVV(TAG, "on_update_command_request: %s", msg.dump().c_str());
539#endif
540 this->on_update_command_request(msg);
541 break;
542 }
543#endif
544#ifdef USE_VOICE_ASSISTANT
547 msg.decode(msg_data, msg_size);
548#ifdef HAS_PROTO_MESSAGE_DUMP
549 ESP_LOGVV(TAG, "on_voice_assistant_announce_request: %s", msg.dump().c_str());
550#endif
552 break;
553 }
554#endif
555#ifdef USE_VOICE_ASSISTANT
558 // Empty message: no decode needed
559#ifdef HAS_PROTO_MESSAGE_DUMP
560 ESP_LOGVV(TAG, "on_voice_assistant_configuration_request: %s", msg.dump().c_str());
561#endif
563 break;
564 }
565#endif
566#ifdef USE_VOICE_ASSISTANT
569 msg.decode(msg_data, msg_size);
570#ifdef HAS_PROTO_MESSAGE_DUMP
571 ESP_LOGVV(TAG, "on_voice_assistant_set_configuration: %s", msg.dump().c_str());
572#endif
574 break;
575 }
576#endif
577#ifdef USE_API_NOISE
580 msg.decode(msg_data, msg_size);
581#ifdef HAS_PROTO_MESSAGE_DUMP
582 ESP_LOGVV(TAG, "on_noise_encryption_set_key_request: %s", msg.dump().c_str());
583#endif
585 break;
586 }
587#endif
588#ifdef USE_BLUETOOTH_PROXY
591 msg.decode(msg_data, msg_size);
592#ifdef HAS_PROTO_MESSAGE_DUMP
593 ESP_LOGVV(TAG, "on_bluetooth_scanner_set_mode_request: %s", msg.dump().c_str());
594#endif
596 break;
597 }
598#endif
599 default:
600 break;
601 }
602}
603
605 if (!this->send_hello_response(msg)) {
606 this->on_fatal_error();
607 }
608}
610 if (!this->send_connect_response(msg)) {
611 this->on_fatal_error();
612 }
613}
615 if (!this->send_disconnect_response(msg)) {
616 this->on_fatal_error();
617 }
618}
620 if (!this->send_ping_response(msg)) {
621 this->on_fatal_error();
622 }
623}
630 if (this->check_authenticated_()) {
631 this->list_entities(msg);
632 }
633}
644#ifdef USE_API_HOMEASSISTANT_SERVICES
651#endif
652#ifdef USE_API_HOMEASSISTANT_STATES
658#endif
660 if (this->check_connection_setup_() && !this->send_get_time_response(msg)) {
661 this->on_fatal_error();
662 }
663}
664#ifdef USE_API_SERVICES
670#endif
671#ifdef USE_API_NOISE
677#endif
678#ifdef USE_BUTTON
684#endif
685#ifdef USE_CAMERA
687 if (this->check_authenticated_()) {
688 this->camera_image(msg);
689 }
690}
691#endif
692#ifdef USE_CLIMATE
698#endif
699#ifdef USE_COVER
701 if (this->check_authenticated_()) {
702 this->cover_command(msg);
703 }
704}
705#endif
706#ifdef USE_DATETIME_DATE
708 if (this->check_authenticated_()) {
709 this->date_command(msg);
710 }
711}
712#endif
713#ifdef USE_DATETIME_DATETIME
719#endif
720#ifdef USE_FAN
722 if (this->check_authenticated_()) {
723 this->fan_command(msg);
724 }
725}
726#endif
727#ifdef USE_LIGHT
729 if (this->check_authenticated_()) {
730 this->light_command(msg);
731 }
732}
733#endif
734#ifdef USE_LOCK
736 if (this->check_authenticated_()) {
737 this->lock_command(msg);
738 }
739}
740#endif
741#ifdef USE_MEDIA_PLAYER
747#endif
748#ifdef USE_NUMBER
754#endif
755#ifdef USE_SELECT
761#endif
762#ifdef USE_SIREN
764 if (this->check_authenticated_()) {
765 this->siren_command(msg);
766 }
767}
768#endif
769#ifdef USE_SWITCH
775#endif
776#ifdef USE_TEXT
778 if (this->check_authenticated_()) {
779 this->text_command(msg);
780 }
781}
782#endif
783#ifdef USE_DATETIME_TIME
785 if (this->check_authenticated_()) {
786 this->time_command(msg);
787 }
788}
789#endif
790#ifdef USE_UPDATE
796#endif
797#ifdef USE_VALVE
799 if (this->check_authenticated_()) {
800 this->valve_command(msg);
801 }
802}
803#endif
804#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
853#endif
854#ifdef USE_BLUETOOTH_PROXY
860#endif
861#ifdef USE_BLUETOOTH_PROXY
868#endif
869#ifdef USE_BLUETOOTH_PROXY
876#endif
877#ifdef USE_BLUETOOTH_PROXY
883#endif
884#ifdef USE_VOICE_ASSISTANT
890#endif
891#ifdef USE_VOICE_ASSISTANT
897#endif
898#ifdef USE_VOICE_ASSISTANT
904#endif
905#ifdef USE_ALARM_CONTROL_PANEL
911#endif
912
913} // 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_get_time_request(const GetTimeRequest &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
void on_get_time_request(const GetTimeRequest &msg) override
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 bool send_get_time_response(const GetTimeRequest &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:2233
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:2634
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2834
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:1163
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:84
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:2250
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:937
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2581
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2688
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2898
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2782
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2391
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2345
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2328
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2301
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2472