ESPHome 2026.5.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 "api_connection.h"
5#include "esphome/core/log.h"
6
7namespace esphome::api {
8
9static const char *const TAG = "api.service";
10
11#ifdef HAS_PROTO_MESSAGE_DUMP
12void APIServerConnectionBase::log_send_message_(const LogString *name, const char *dump) {
13 ESP_LOGVV(TAG, "send_message %s: %s", LOG_STR_ARG(name), dump);
14}
15void APIServerConnectionBase::log_receive_message_(const LogString *name, const ProtoMessage &msg) {
16 DumpBuffer dump_buf;
17 ESP_LOGVV(TAG, "%s: %s", LOG_STR_ARG(name), msg.dump_to(dump_buf));
18}
20 ESP_LOGVV(TAG, "%s: {}", LOG_STR_ARG(name));
21}
22#endif
23
24void APIConnection::read_message_(uint32_t msg_size, uint32_t msg_type, const uint8_t *msg_data) {
25 // Check authentication/connection requirements
26 switch (msg_type) {
27 case HelloRequest::MESSAGE_TYPE: // No setup required
28 case DisconnectRequest::MESSAGE_TYPE: // No setup required
29 case PingRequest::MESSAGE_TYPE: // No setup required
30 break;
31 case 9 /* DeviceInfoRequest is empty */: // Connection setup only
32 if (!this->check_connection_setup_()) {
33 return;
34 }
35 break;
36 default:
37 if (!this->check_authenticated_()) {
38 return;
39 }
40 break;
41 }
42 switch (msg_type) {
44 HelloRequest msg;
45 msg.decode(msg_data, msg_size);
46#ifdef HAS_PROTO_MESSAGE_DUMP
47 this->log_receive_message_(LOG_STR("on_hello_request"), msg);
48#endif
49 this->on_hello_request(msg);
50 break;
51 }
53#ifdef HAS_PROTO_MESSAGE_DUMP
54 this->log_receive_message_(LOG_STR("on_disconnect_request"));
55#endif
57 break;
58 }
60#ifdef HAS_PROTO_MESSAGE_DUMP
61 this->log_receive_message_(LOG_STR("on_disconnect_response"));
62#endif
64 break;
65 }
67#ifdef HAS_PROTO_MESSAGE_DUMP
68 this->log_receive_message_(LOG_STR("on_ping_request"));
69#endif
70 this->on_ping_request();
71 break;
72 }
74#ifdef HAS_PROTO_MESSAGE_DUMP
75 this->log_receive_message_(LOG_STR("on_ping_response"));
76#endif
77 this->on_ping_response();
78 break;
79 }
80 case 9 /* DeviceInfoRequest is empty */: {
81#ifdef HAS_PROTO_MESSAGE_DUMP
82 this->log_receive_message_(LOG_STR("on_device_info_request"));
83#endif
85 break;
86 }
87 case 11 /* ListEntitiesRequest is empty */: {
88#ifdef HAS_PROTO_MESSAGE_DUMP
89 this->log_receive_message_(LOG_STR("on_list_entities_request"));
90#endif
92 break;
93 }
94 case 20 /* SubscribeStatesRequest is empty */: {
95#ifdef HAS_PROTO_MESSAGE_DUMP
96 this->log_receive_message_(LOG_STR("on_subscribe_states_request"));
97#endif
99 break;
100 }
103 msg.decode(msg_data, msg_size);
104#ifdef HAS_PROTO_MESSAGE_DUMP
105 this->log_receive_message_(LOG_STR("on_subscribe_logs_request"), msg);
106#endif
107 this->on_subscribe_logs_request(msg);
108 break;
109 }
110#ifdef USE_COVER
113 msg.decode(msg_data, msg_size);
114#ifdef HAS_PROTO_MESSAGE_DUMP
115 this->log_receive_message_(LOG_STR("on_cover_command_request"), msg);
116#endif
117 this->on_cover_command_request(msg);
118 break;
119 }
120#endif
121#ifdef USE_FAN
124 msg.decode(msg_data, msg_size);
125#ifdef HAS_PROTO_MESSAGE_DUMP
126 this->log_receive_message_(LOG_STR("on_fan_command_request"), msg);
127#endif
128 this->on_fan_command_request(msg);
129 break;
130 }
131#endif
132#ifdef USE_LIGHT
135 msg.decode(msg_data, msg_size);
136#ifdef HAS_PROTO_MESSAGE_DUMP
137 this->log_receive_message_(LOG_STR("on_light_command_request"), msg);
138#endif
139 this->on_light_command_request(msg);
140 break;
141 }
142#endif
143#ifdef USE_SWITCH
146 msg.decode(msg_data, msg_size);
147#ifdef HAS_PROTO_MESSAGE_DUMP
148 this->log_receive_message_(LOG_STR("on_switch_command_request"), msg);
149#endif
150 this->on_switch_command_request(msg);
151 break;
152 }
153#endif
154#ifdef USE_API_HOMEASSISTANT_SERVICES
155 case 34 /* SubscribeHomeassistantServicesRequest is empty */: {
156#ifdef HAS_PROTO_MESSAGE_DUMP
157 this->log_receive_message_(LOG_STR("on_subscribe_homeassistant_services_request"));
158#endif
160 break;
161 }
162#endif
164 GetTimeResponse msg;
165 msg.decode(msg_data, msg_size);
166#ifdef HAS_PROTO_MESSAGE_DUMP
167 this->log_receive_message_(LOG_STR("on_get_time_response"), msg);
168#endif
169 this->on_get_time_response(msg);
170 break;
171 }
172#ifdef USE_API_HOMEASSISTANT_STATES
173 case 38 /* SubscribeHomeAssistantStatesRequest is empty */: {
174#ifdef HAS_PROTO_MESSAGE_DUMP
175 this->log_receive_message_(LOG_STR("on_subscribe_home_assistant_states_request"));
176#endif
178 break;
179 }
180#endif
181#ifdef USE_API_HOMEASSISTANT_STATES
184 msg.decode(msg_data, msg_size);
185#ifdef HAS_PROTO_MESSAGE_DUMP
186 this->log_receive_message_(LOG_STR("on_home_assistant_state_response"), msg);
187#endif
189 break;
190 }
191#endif
192#ifdef USE_API_USER_DEFINED_ACTIONS
195 msg.decode(msg_data, msg_size);
196#ifdef HAS_PROTO_MESSAGE_DUMP
197 this->log_receive_message_(LOG_STR("on_execute_service_request"), msg);
198#endif
200 break;
201 }
202#endif
203#ifdef USE_CAMERA
206 msg.decode(msg_data, msg_size);
207#ifdef HAS_PROTO_MESSAGE_DUMP
208 this->log_receive_message_(LOG_STR("on_camera_image_request"), msg);
209#endif
210 this->on_camera_image_request(msg);
211 break;
212 }
213#endif
214#ifdef USE_CLIMATE
217 msg.decode(msg_data, msg_size);
218#ifdef HAS_PROTO_MESSAGE_DUMP
219 this->log_receive_message_(LOG_STR("on_climate_command_request"), msg);
220#endif
222 break;
223 }
224#endif
225#ifdef USE_NUMBER
228 msg.decode(msg_data, msg_size);
229#ifdef HAS_PROTO_MESSAGE_DUMP
230 this->log_receive_message_(LOG_STR("on_number_command_request"), msg);
231#endif
232 this->on_number_command_request(msg);
233 break;
234 }
235#endif
236#ifdef USE_SELECT
239 msg.decode(msg_data, msg_size);
240#ifdef HAS_PROTO_MESSAGE_DUMP
241 this->log_receive_message_(LOG_STR("on_select_command_request"), msg);
242#endif
243 this->on_select_command_request(msg);
244 break;
245 }
246#endif
247#ifdef USE_SIREN
250 msg.decode(msg_data, msg_size);
251#ifdef HAS_PROTO_MESSAGE_DUMP
252 this->log_receive_message_(LOG_STR("on_siren_command_request"), msg);
253#endif
254 this->on_siren_command_request(msg);
255 break;
256 }
257#endif
258#ifdef USE_LOCK
261 msg.decode(msg_data, msg_size);
262#ifdef HAS_PROTO_MESSAGE_DUMP
263 this->log_receive_message_(LOG_STR("on_lock_command_request"), msg);
264#endif
265 this->on_lock_command_request(msg);
266 break;
267 }
268#endif
269#ifdef USE_BUTTON
272 msg.decode(msg_data, msg_size);
273#ifdef HAS_PROTO_MESSAGE_DUMP
274 this->log_receive_message_(LOG_STR("on_button_command_request"), msg);
275#endif
276 this->on_button_command_request(msg);
277 break;
278 }
279#endif
280#ifdef USE_MEDIA_PLAYER
283 msg.decode(msg_data, msg_size);
284#ifdef HAS_PROTO_MESSAGE_DUMP
285 this->log_receive_message_(LOG_STR("on_media_player_command_request"), msg);
286#endif
288 break;
289 }
290#endif
291#ifdef USE_BLUETOOTH_PROXY
294 msg.decode(msg_data, msg_size);
295#ifdef HAS_PROTO_MESSAGE_DUMP
296 this->log_receive_message_(LOG_STR("on_subscribe_bluetooth_le_advertisements_request"), msg);
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 this->log_receive_message_(LOG_STR("on_bluetooth_device_request"), msg);
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 this->log_receive_message_(LOG_STR("on_bluetooth_gatt_get_services_request"), msg);
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 this->log_receive_message_(LOG_STR("on_bluetooth_gatt_read_request"), msg);
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 this->log_receive_message_(LOG_STR("on_bluetooth_gatt_write_request"), msg);
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 this->log_receive_message_(LOG_STR("on_bluetooth_gatt_read_descriptor_request"), msg);
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 this->log_receive_message_(LOG_STR("on_bluetooth_gatt_write_descriptor_request"), msg);
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 this->log_receive_message_(LOG_STR("on_bluetooth_gatt_notify_request"), msg);
374#endif
376 break;
377 }
378#endif
379#ifdef USE_BLUETOOTH_PROXY
380 case 80 /* SubscribeBluetoothConnectionsFreeRequest is empty */: {
381#ifdef HAS_PROTO_MESSAGE_DUMP
382 this->log_receive_message_(LOG_STR("on_subscribe_bluetooth_connections_free_request"));
383#endif
385 break;
386 }
387#endif
388#ifdef USE_BLUETOOTH_PROXY
389 case 87 /* UnsubscribeBluetoothLEAdvertisementsRequest is empty */: {
390#ifdef HAS_PROTO_MESSAGE_DUMP
391 this->log_receive_message_(LOG_STR("on_unsubscribe_bluetooth_le_advertisements_request"));
392#endif
394 break;
395 }
396#endif
397#ifdef USE_VOICE_ASSISTANT
400 msg.decode(msg_data, msg_size);
401#ifdef HAS_PROTO_MESSAGE_DUMP
402 this->log_receive_message_(LOG_STR("on_subscribe_voice_assistant_request"), msg);
403#endif
405 break;
406 }
407#endif
408#ifdef USE_VOICE_ASSISTANT
411 msg.decode(msg_data, msg_size);
412#ifdef HAS_PROTO_MESSAGE_DUMP
413 this->log_receive_message_(LOG_STR("on_voice_assistant_response"), msg);
414#endif
416 break;
417 }
418#endif
419#ifdef USE_VOICE_ASSISTANT
422 msg.decode(msg_data, msg_size);
423#ifdef HAS_PROTO_MESSAGE_DUMP
424 this->log_receive_message_(LOG_STR("on_voice_assistant_event_response"), msg);
425#endif
427 break;
428 }
429#endif
430#ifdef USE_ALARM_CONTROL_PANEL
433 msg.decode(msg_data, msg_size);
434#ifdef HAS_PROTO_MESSAGE_DUMP
435 this->log_receive_message_(LOG_STR("on_alarm_control_panel_command_request"), msg);
436#endif
438 break;
439 }
440#endif
441#ifdef USE_TEXT
444 msg.decode(msg_data, msg_size);
445#ifdef HAS_PROTO_MESSAGE_DUMP
446 this->log_receive_message_(LOG_STR("on_text_command_request"), msg);
447#endif
448 this->on_text_command_request(msg);
449 break;
450 }
451#endif
452#ifdef USE_DATETIME_DATE
455 msg.decode(msg_data, msg_size);
456#ifdef HAS_PROTO_MESSAGE_DUMP
457 this->log_receive_message_(LOG_STR("on_date_command_request"), msg);
458#endif
459 this->on_date_command_request(msg);
460 break;
461 }
462#endif
463#ifdef USE_DATETIME_TIME
466 msg.decode(msg_data, msg_size);
467#ifdef HAS_PROTO_MESSAGE_DUMP
468 this->log_receive_message_(LOG_STR("on_time_command_request"), msg);
469#endif
470 this->on_time_command_request(msg);
471 break;
472 }
473#endif
474#ifdef USE_VOICE_ASSISTANT
477 msg.decode(msg_data, msg_size);
478#ifdef HAS_PROTO_MESSAGE_DUMP
479 this->log_receive_message_(LOG_STR("on_voice_assistant_audio"), msg);
480#endif
481 this->on_voice_assistant_audio(msg);
482 break;
483 }
484#endif
485#ifdef USE_VALVE
488 msg.decode(msg_data, msg_size);
489#ifdef HAS_PROTO_MESSAGE_DUMP
490 this->log_receive_message_(LOG_STR("on_valve_command_request"), msg);
491#endif
492 this->on_valve_command_request(msg);
493 break;
494 }
495#endif
496#ifdef USE_DATETIME_DATETIME
499 msg.decode(msg_data, msg_size);
500#ifdef HAS_PROTO_MESSAGE_DUMP
501 this->log_receive_message_(LOG_STR("on_date_time_command_request"), msg);
502#endif
504 break;
505 }
506#endif
507#ifdef USE_VOICE_ASSISTANT
510 msg.decode(msg_data, msg_size);
511#ifdef HAS_PROTO_MESSAGE_DUMP
512 this->log_receive_message_(LOG_STR("on_voice_assistant_timer_event_response"), msg);
513#endif
515 break;
516 }
517#endif
518#ifdef USE_UPDATE
521 msg.decode(msg_data, msg_size);
522#ifdef HAS_PROTO_MESSAGE_DUMP
523 this->log_receive_message_(LOG_STR("on_update_command_request"), msg);
524#endif
525 this->on_update_command_request(msg);
526 break;
527 }
528#endif
529#ifdef USE_VOICE_ASSISTANT
532 msg.decode(msg_data, msg_size);
533#ifdef HAS_PROTO_MESSAGE_DUMP
534 this->log_receive_message_(LOG_STR("on_voice_assistant_announce_request"), msg);
535#endif
537 break;
538 }
539#endif
540#ifdef USE_VOICE_ASSISTANT
543 msg.decode(msg_data, msg_size);
544#ifdef HAS_PROTO_MESSAGE_DUMP
545 this->log_receive_message_(LOG_STR("on_voice_assistant_configuration_request"), msg);
546#endif
548 break;
549 }
550#endif
551#ifdef USE_VOICE_ASSISTANT
554 msg.decode(msg_data, msg_size);
555#ifdef HAS_PROTO_MESSAGE_DUMP
556 this->log_receive_message_(LOG_STR("on_voice_assistant_set_configuration"), msg);
557#endif
559 break;
560 }
561#endif
562#ifdef USE_API_NOISE
565 msg.decode(msg_data, msg_size);
566#ifdef HAS_PROTO_MESSAGE_DUMP
567 this->log_receive_message_(LOG_STR("on_noise_encryption_set_key_request"), msg);
568#endif
570 break;
571 }
572#endif
573#ifdef USE_BLUETOOTH_PROXY
576 msg.decode(msg_data, msg_size);
577#ifdef HAS_PROTO_MESSAGE_DUMP
578 this->log_receive_message_(LOG_STR("on_bluetooth_scanner_set_mode_request"), msg);
579#endif
581 break;
582 }
583#endif
584#ifdef USE_ZWAVE_PROXY
586 ZWaveProxyFrame msg;
587 msg.decode(msg_data, msg_size);
588#ifdef HAS_PROTO_MESSAGE_DUMP
589 this->log_receive_message_(LOG_STR("on_z_wave_proxy_frame"), msg);
590#endif
591 this->on_z_wave_proxy_frame(msg);
592 break;
593 }
594#endif
595#ifdef USE_ZWAVE_PROXY
598 msg.decode(msg_data, msg_size);
599#ifdef HAS_PROTO_MESSAGE_DUMP
600 this->log_receive_message_(LOG_STR("on_z_wave_proxy_request"), msg);
601#endif
602 this->on_z_wave_proxy_request(msg);
603 break;
604 }
605#endif
606#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES
609 msg.decode(msg_data, msg_size);
610#ifdef HAS_PROTO_MESSAGE_DUMP
611 this->log_receive_message_(LOG_STR("on_homeassistant_action_response"), msg);
612#endif
614 break;
615 }
616#endif
617#ifdef USE_WATER_HEATER
620 msg.decode(msg_data, msg_size);
621#ifdef HAS_PROTO_MESSAGE_DUMP
622 this->log_receive_message_(LOG_STR("on_water_heater_command_request"), msg);
623#endif
625 break;
626 }
627#endif
628#ifdef USE_IR_RF
631 msg.decode(msg_data, msg_size);
632#ifdef HAS_PROTO_MESSAGE_DUMP
633 this->log_receive_message_(LOG_STR("on_infrared_rf_transmit_raw_timings_request"), msg);
634#endif
636 break;
637 }
638#endif
639#ifdef USE_SERIAL_PROXY
642 msg.decode(msg_data, msg_size);
643#ifdef HAS_PROTO_MESSAGE_DUMP
644 this->log_receive_message_(LOG_STR("on_serial_proxy_configure_request"), msg);
645#endif
647 break;
648 }
649#endif
650#ifdef USE_SERIAL_PROXY
653 msg.decode(msg_data, msg_size);
654#ifdef HAS_PROTO_MESSAGE_DUMP
655 this->log_receive_message_(LOG_STR("on_serial_proxy_write_request"), msg);
656#endif
658 break;
659 }
660#endif
661#ifdef USE_SERIAL_PROXY
664 msg.decode(msg_data, msg_size);
665#ifdef HAS_PROTO_MESSAGE_DUMP
666 this->log_receive_message_(LOG_STR("on_serial_proxy_set_modem_pins_request"), msg);
667#endif
669 break;
670 }
671#endif
672#ifdef USE_SERIAL_PROXY
675 msg.decode(msg_data, msg_size);
676#ifdef HAS_PROTO_MESSAGE_DUMP
677 this->log_receive_message_(LOG_STR("on_serial_proxy_get_modem_pins_request"), msg);
678#endif
680 break;
681 }
682#endif
683#ifdef USE_SERIAL_PROXY
686 msg.decode(msg_data, msg_size);
687#ifdef HAS_PROTO_MESSAGE_DUMP
688 this->log_receive_message_(LOG_STR("on_serial_proxy_request"), msg);
689#endif
690 this->on_serial_proxy_request(msg);
691 break;
692 }
693#endif
694#ifdef USE_BLUETOOTH_PROXY
697 msg.decode(msg_data, msg_size);
698#ifdef HAS_PROTO_MESSAGE_DUMP
699 this->log_receive_message_(LOG_STR("on_bluetooth_set_connection_params_request"), msg);
700#endif
702 break;
703 }
704#endif
705 default:
706 break;
707 }
708}
709
710} // namespace esphome::api
void on_subscribe_voice_assistant_request(const SubscribeVoiceAssistantRequest &msg)
void on_camera_image_request(const CameraImageRequest &msg)
void on_media_player_command_request(const MediaPlayerCommandRequest &msg)
void on_text_command_request(const TextCommandRequest &msg)
void on_update_command_request(const UpdateCommandRequest &msg)
void on_voice_assistant_announce_request(const VoiceAssistantAnnounceRequest &msg)
void on_subscribe_bluetooth_le_advertisements_request(const SubscribeBluetoothLEAdvertisementsRequest &msg)
void on_button_command_request(const ButtonCommandRequest &msg)
void on_bluetooth_gatt_get_services_request(const BluetoothGATTGetServicesRequest &msg)
void on_bluetooth_gatt_notify_request(const BluetoothGATTNotifyRequest &msg)
void on_valve_command_request(const ValveCommandRequest &msg)
void on_bluetooth_device_request(const BluetoothDeviceRequest &msg)
void on_bluetooth_gatt_read_descriptor_request(const BluetoothGATTReadDescriptorRequest &msg)
void on_bluetooth_gatt_write_request(const BluetoothGATTWriteRequest &msg)
void on_cover_command_request(const CoverCommandRequest &msg)
void on_z_wave_proxy_frame(const ZWaveProxyFrame &msg)
void on_fan_command_request(const FanCommandRequest &msg)
void on_climate_command_request(const ClimateCommandRequest &msg)
void on_bluetooth_scanner_set_mode_request(const BluetoothScannerSetModeRequest &msg)
void on_voice_assistant_configuration_request(const VoiceAssistantConfigurationRequest &msg)
void on_z_wave_proxy_request(const ZWaveProxyRequest &msg)
void on_bluetooth_set_connection_params_request(const BluetoothSetConnectionParamsRequest &msg)
void on_date_command_request(const DateCommandRequest &msg)
void on_subscribe_logs_request(const SubscribeLogsRequest &msg)
void on_serial_proxy_get_modem_pins_request(const SerialProxyGetModemPinsRequest &msg)
void on_voice_assistant_timer_event_response(const VoiceAssistantTimerEventResponse &msg)
void on_select_command_request(const SelectCommandRequest &msg)
void on_infrared_rf_transmit_raw_timings_request(const InfraredRFTransmitRawTimingsRequest &msg)
void on_serial_proxy_set_modem_pins_request(const SerialProxySetModemPinsRequest &msg)
void on_homeassistant_action_response(const HomeassistantActionResponse &msg)
void on_switch_command_request(const SwitchCommandRequest &msg)
void on_get_time_response(const GetTimeResponse &value)
void on_noise_encryption_set_key_request(const NoiseEncryptionSetKeyRequest &msg)
void on_serial_proxy_request(const SerialProxyRequest &msg)
void on_lock_command_request(const LockCommandRequest &msg)
void on_bluetooth_gatt_write_descriptor_request(const BluetoothGATTWriteDescriptorRequest &msg)
void on_execute_service_request(const ExecuteServiceRequest &msg)
void on_number_command_request(const NumberCommandRequest &msg)
void on_serial_proxy_configure_request(const SerialProxyConfigureRequest &msg)
void on_time_command_request(const TimeCommandRequest &msg)
void on_bluetooth_gatt_read_request(const BluetoothGATTReadRequest &msg)
void on_hello_request(const HelloRequest &msg)
void on_voice_assistant_audio(const VoiceAssistantAudio &msg)
void on_serial_proxy_write_request(const SerialProxyWriteRequest &msg)
void on_light_command_request(const LightCommandRequest &msg)
void on_voice_assistant_set_configuration(const VoiceAssistantSetConfiguration &msg)
void on_date_time_command_request(const DateTimeCommandRequest &msg)
void read_message_(uint32_t msg_size, uint32_t msg_type, const uint8_t *msg_data)
void on_voice_assistant_event_response(const VoiceAssistantEventResponse &msg)
void on_alarm_control_panel_command_request(const AlarmControlPanelCommandRequest &msg)
void on_unsubscribe_bluetooth_le_advertisements_request()
void on_water_heater_command_request(const WaterHeaterCommandRequest &msg)
void on_home_assistant_state_response(const HomeAssistantStateResponse &msg)
void on_voice_assistant_response(const VoiceAssistantResponse &msg)
void on_siren_command_request(const SirenCommandRequest &value)
void log_send_message_(const LogString *name, const char *dump)
void log_receive_message_(const LogString *name, const ProtoMessage &msg)
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1916
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2137
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2043
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2082
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2319
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1777
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1356
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1435
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:675
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2728
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2925
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:425
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:438
Fixed-size buffer for message dumps - avoids heap allocation.
Definition proto.h:516
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1268
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.cpp:1305
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:737
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1197
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:388
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1137
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1095
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:811
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1740
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1845
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1018
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1575
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:451
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:464
void decode(const uint8_t *buffer, size_t length)
Definition proto.cpp:213
virtual const char * dump_to(DumpBuffer &out) const =0
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1626
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3107
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3183
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3215
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3167
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3149
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1679
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:979
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2336
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:927
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2675
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2782
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2983
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2873
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2470
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2429
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2412
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2385
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2568
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1514
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3001
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3019
static void uint32_t