ESPHome 2026.6.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
24#ifdef USE_API
25void APIConnection::read_message_(uint32_t msg_size, uint32_t msg_type, const uint8_t *msg_data) {
26 // Check authentication/connection requirements
27 switch (msg_type) {
28 case HelloRequest::MESSAGE_TYPE: // No setup required
29 case DisconnectRequest::MESSAGE_TYPE: // No setup required
30 case PingRequest::MESSAGE_TYPE: // No setup required
31 break;
32 case 9 /* DeviceInfoRequest is empty */: // Connection setup only
33 if (!this->check_connection_setup_()) {
34 return;
35 }
36 break;
37 default:
38 if (!this->check_authenticated_()) {
39 return;
40 }
41 break;
42 }
43 switch (msg_type) {
45 HelloRequest msg;
46 msg.decode(msg_data, msg_size);
47#ifdef HAS_PROTO_MESSAGE_DUMP
48 this->log_receive_message_(LOG_STR("on_hello_request"), msg);
49#endif
50 this->on_hello_request(msg);
51 break;
52 }
54#ifdef HAS_PROTO_MESSAGE_DUMP
55 this->log_receive_message_(LOG_STR("on_disconnect_request"));
56#endif
58 break;
59 }
61#ifdef HAS_PROTO_MESSAGE_DUMP
62 this->log_receive_message_(LOG_STR("on_disconnect_response"));
63#endif
65 break;
66 }
68#ifdef HAS_PROTO_MESSAGE_DUMP
69 this->log_receive_message_(LOG_STR("on_ping_request"));
70#endif
71 this->on_ping_request();
72 break;
73 }
75#ifdef HAS_PROTO_MESSAGE_DUMP
76 this->log_receive_message_(LOG_STR("on_ping_response"));
77#endif
78 this->on_ping_response();
79 break;
80 }
81 case 9 /* DeviceInfoRequest is empty */: {
82#ifdef HAS_PROTO_MESSAGE_DUMP
83 this->log_receive_message_(LOG_STR("on_device_info_request"));
84#endif
86 break;
87 }
88 case 11 /* ListEntitiesRequest is empty */: {
89#ifdef HAS_PROTO_MESSAGE_DUMP
90 this->log_receive_message_(LOG_STR("on_list_entities_request"));
91#endif
93 break;
94 }
95 case 20 /* SubscribeStatesRequest is empty */: {
96#ifdef HAS_PROTO_MESSAGE_DUMP
97 this->log_receive_message_(LOG_STR("on_subscribe_states_request"));
98#endif
100 break;
101 }
104 msg.decode(msg_data, msg_size);
105#ifdef HAS_PROTO_MESSAGE_DUMP
106 this->log_receive_message_(LOG_STR("on_subscribe_logs_request"), msg);
107#endif
108 this->on_subscribe_logs_request(msg);
109 break;
110 }
111#ifdef USE_COVER
114 msg.decode(msg_data, msg_size);
115#ifdef HAS_PROTO_MESSAGE_DUMP
116 this->log_receive_message_(LOG_STR("on_cover_command_request"), msg);
117#endif
118 this->on_cover_command_request(msg);
119 break;
120 }
121#endif
122#ifdef USE_FAN
125 msg.decode(msg_data, msg_size);
126#ifdef HAS_PROTO_MESSAGE_DUMP
127 this->log_receive_message_(LOG_STR("on_fan_command_request"), msg);
128#endif
129 this->on_fan_command_request(msg);
130 break;
131 }
132#endif
133#ifdef USE_LIGHT
136 msg.decode(msg_data, msg_size);
137#ifdef HAS_PROTO_MESSAGE_DUMP
138 this->log_receive_message_(LOG_STR("on_light_command_request"), msg);
139#endif
140 this->on_light_command_request(msg);
141 break;
142 }
143#endif
144#ifdef USE_SWITCH
147 msg.decode(msg_data, msg_size);
148#ifdef HAS_PROTO_MESSAGE_DUMP
149 this->log_receive_message_(LOG_STR("on_switch_command_request"), msg);
150#endif
151 this->on_switch_command_request(msg);
152 break;
153 }
154#endif
155#ifdef USE_API_HOMEASSISTANT_SERVICES
156 case 34 /* SubscribeHomeassistantServicesRequest is empty */: {
157#ifdef HAS_PROTO_MESSAGE_DUMP
158 this->log_receive_message_(LOG_STR("on_subscribe_homeassistant_services_request"));
159#endif
161 break;
162 }
163#endif
165 GetTimeResponse msg;
166 msg.decode(msg_data, msg_size);
167#ifdef HAS_PROTO_MESSAGE_DUMP
168 this->log_receive_message_(LOG_STR("on_get_time_response"), msg);
169#endif
170 this->on_get_time_response(msg);
171 break;
172 }
173#ifdef USE_API_HOMEASSISTANT_STATES
174 case 38 /* SubscribeHomeAssistantStatesRequest is empty */: {
175#ifdef HAS_PROTO_MESSAGE_DUMP
176 this->log_receive_message_(LOG_STR("on_subscribe_home_assistant_states_request"));
177#endif
179 break;
180 }
181#endif
182#ifdef USE_API_HOMEASSISTANT_STATES
185 msg.decode(msg_data, msg_size);
186#ifdef HAS_PROTO_MESSAGE_DUMP
187 this->log_receive_message_(LOG_STR("on_home_assistant_state_response"), msg);
188#endif
190 break;
191 }
192#endif
193#ifdef USE_API_USER_DEFINED_ACTIONS
196 msg.decode(msg_data, msg_size);
197#ifdef HAS_PROTO_MESSAGE_DUMP
198 this->log_receive_message_(LOG_STR("on_execute_service_request"), msg);
199#endif
201 break;
202 }
203#endif
204#ifdef USE_CAMERA
207 msg.decode(msg_data, msg_size);
208#ifdef HAS_PROTO_MESSAGE_DUMP
209 this->log_receive_message_(LOG_STR("on_camera_image_request"), msg);
210#endif
211 this->on_camera_image_request(msg);
212 break;
213 }
214#endif
215#ifdef USE_CLIMATE
218 msg.decode(msg_data, msg_size);
219#ifdef HAS_PROTO_MESSAGE_DUMP
220 this->log_receive_message_(LOG_STR("on_climate_command_request"), msg);
221#endif
223 break;
224 }
225#endif
226#ifdef USE_NUMBER
229 msg.decode(msg_data, msg_size);
230#ifdef HAS_PROTO_MESSAGE_DUMP
231 this->log_receive_message_(LOG_STR("on_number_command_request"), msg);
232#endif
233 this->on_number_command_request(msg);
234 break;
235 }
236#endif
237#ifdef USE_SELECT
240 msg.decode(msg_data, msg_size);
241#ifdef HAS_PROTO_MESSAGE_DUMP
242 this->log_receive_message_(LOG_STR("on_select_command_request"), msg);
243#endif
244 this->on_select_command_request(msg);
245 break;
246 }
247#endif
248#ifdef USE_SIREN
251 msg.decode(msg_data, msg_size);
252#ifdef HAS_PROTO_MESSAGE_DUMP
253 this->log_receive_message_(LOG_STR("on_siren_command_request"), msg);
254#endif
255 this->on_siren_command_request(msg);
256 break;
257 }
258#endif
259#ifdef USE_LOCK
262 msg.decode(msg_data, msg_size);
263#ifdef HAS_PROTO_MESSAGE_DUMP
264 this->log_receive_message_(LOG_STR("on_lock_command_request"), msg);
265#endif
266 this->on_lock_command_request(msg);
267 break;
268 }
269#endif
270#ifdef USE_BUTTON
273 msg.decode(msg_data, msg_size);
274#ifdef HAS_PROTO_MESSAGE_DUMP
275 this->log_receive_message_(LOG_STR("on_button_command_request"), msg);
276#endif
277 this->on_button_command_request(msg);
278 break;
279 }
280#endif
281#ifdef USE_MEDIA_PLAYER
284 msg.decode(msg_data, msg_size);
285#ifdef HAS_PROTO_MESSAGE_DUMP
286 this->log_receive_message_(LOG_STR("on_media_player_command_request"), msg);
287#endif
289 break;
290 }
291#endif
292#ifdef USE_BLUETOOTH_PROXY
295 msg.decode(msg_data, msg_size);
296#ifdef HAS_PROTO_MESSAGE_DUMP
297 this->log_receive_message_(LOG_STR("on_subscribe_bluetooth_le_advertisements_request"), msg);
298#endif
300 break;
301 }
302#endif
303#ifdef USE_BLUETOOTH_PROXY
306 msg.decode(msg_data, msg_size);
307#ifdef HAS_PROTO_MESSAGE_DUMP
308 this->log_receive_message_(LOG_STR("on_bluetooth_device_request"), msg);
309#endif
311 break;
312 }
313#endif
314#ifdef USE_BLUETOOTH_PROXY
317 msg.decode(msg_data, msg_size);
318#ifdef HAS_PROTO_MESSAGE_DUMP
319 this->log_receive_message_(LOG_STR("on_bluetooth_gatt_get_services_request"), msg);
320#endif
322 break;
323 }
324#endif
325#ifdef USE_BLUETOOTH_PROXY
328 msg.decode(msg_data, msg_size);
329#ifdef HAS_PROTO_MESSAGE_DUMP
330 this->log_receive_message_(LOG_STR("on_bluetooth_gatt_read_request"), msg);
331#endif
333 break;
334 }
335#endif
336#ifdef USE_BLUETOOTH_PROXY
339 msg.decode(msg_data, msg_size);
340#ifdef HAS_PROTO_MESSAGE_DUMP
341 this->log_receive_message_(LOG_STR("on_bluetooth_gatt_write_request"), msg);
342#endif
344 break;
345 }
346#endif
347#ifdef USE_BLUETOOTH_PROXY
350 msg.decode(msg_data, msg_size);
351#ifdef HAS_PROTO_MESSAGE_DUMP
352 this->log_receive_message_(LOG_STR("on_bluetooth_gatt_read_descriptor_request"), msg);
353#endif
355 break;
356 }
357#endif
358#ifdef USE_BLUETOOTH_PROXY
361 msg.decode(msg_data, msg_size);
362#ifdef HAS_PROTO_MESSAGE_DUMP
363 this->log_receive_message_(LOG_STR("on_bluetooth_gatt_write_descriptor_request"), msg);
364#endif
366 break;
367 }
368#endif
369#ifdef USE_BLUETOOTH_PROXY
372 msg.decode(msg_data, msg_size);
373#ifdef HAS_PROTO_MESSAGE_DUMP
374 this->log_receive_message_(LOG_STR("on_bluetooth_gatt_notify_request"), msg);
375#endif
377 break;
378 }
379#endif
380#ifdef USE_BLUETOOTH_PROXY
381 case 80 /* SubscribeBluetoothConnectionsFreeRequest is empty */: {
382#ifdef HAS_PROTO_MESSAGE_DUMP
383 this->log_receive_message_(LOG_STR("on_subscribe_bluetooth_connections_free_request"));
384#endif
386 break;
387 }
388#endif
389#ifdef USE_BLUETOOTH_PROXY
390 case 87 /* UnsubscribeBluetoothLEAdvertisementsRequest is empty */: {
391#ifdef HAS_PROTO_MESSAGE_DUMP
392 this->log_receive_message_(LOG_STR("on_unsubscribe_bluetooth_le_advertisements_request"));
393#endif
395 break;
396 }
397#endif
398#ifdef USE_VOICE_ASSISTANT
401 msg.decode(msg_data, msg_size);
402#ifdef HAS_PROTO_MESSAGE_DUMP
403 this->log_receive_message_(LOG_STR("on_subscribe_voice_assistant_request"), msg);
404#endif
406 break;
407 }
408#endif
409#ifdef USE_VOICE_ASSISTANT
412 msg.decode(msg_data, msg_size);
413#ifdef HAS_PROTO_MESSAGE_DUMP
414 this->log_receive_message_(LOG_STR("on_voice_assistant_response"), msg);
415#endif
417 break;
418 }
419#endif
420#ifdef USE_VOICE_ASSISTANT
423 msg.decode(msg_data, msg_size);
424#ifdef HAS_PROTO_MESSAGE_DUMP
425 this->log_receive_message_(LOG_STR("on_voice_assistant_event_response"), msg);
426#endif
428 break;
429 }
430#endif
431#ifdef USE_ALARM_CONTROL_PANEL
434 msg.decode(msg_data, msg_size);
435#ifdef HAS_PROTO_MESSAGE_DUMP
436 this->log_receive_message_(LOG_STR("on_alarm_control_panel_command_request"), msg);
437#endif
439 break;
440 }
441#endif
442#ifdef USE_TEXT
445 msg.decode(msg_data, msg_size);
446#ifdef HAS_PROTO_MESSAGE_DUMP
447 this->log_receive_message_(LOG_STR("on_text_command_request"), msg);
448#endif
449 this->on_text_command_request(msg);
450 break;
451 }
452#endif
453#ifdef USE_DATETIME_DATE
456 msg.decode(msg_data, msg_size);
457#ifdef HAS_PROTO_MESSAGE_DUMP
458 this->log_receive_message_(LOG_STR("on_date_command_request"), msg);
459#endif
460 this->on_date_command_request(msg);
461 break;
462 }
463#endif
464#ifdef USE_DATETIME_TIME
467 msg.decode(msg_data, msg_size);
468#ifdef HAS_PROTO_MESSAGE_DUMP
469 this->log_receive_message_(LOG_STR("on_time_command_request"), msg);
470#endif
471 this->on_time_command_request(msg);
472 break;
473 }
474#endif
475#ifdef USE_VOICE_ASSISTANT
478 msg.decode(msg_data, msg_size);
479#ifdef HAS_PROTO_MESSAGE_DUMP
480 this->log_receive_message_(LOG_STR("on_voice_assistant_audio"), msg);
481#endif
482 this->on_voice_assistant_audio(msg);
483 break;
484 }
485#endif
486#ifdef USE_VALVE
489 msg.decode(msg_data, msg_size);
490#ifdef HAS_PROTO_MESSAGE_DUMP
491 this->log_receive_message_(LOG_STR("on_valve_command_request"), msg);
492#endif
493 this->on_valve_command_request(msg);
494 break;
495 }
496#endif
497#ifdef USE_DATETIME_DATETIME
500 msg.decode(msg_data, msg_size);
501#ifdef HAS_PROTO_MESSAGE_DUMP
502 this->log_receive_message_(LOG_STR("on_date_time_command_request"), msg);
503#endif
505 break;
506 }
507#endif
508#ifdef USE_VOICE_ASSISTANT
511 msg.decode(msg_data, msg_size);
512#ifdef HAS_PROTO_MESSAGE_DUMP
513 this->log_receive_message_(LOG_STR("on_voice_assistant_timer_event_response"), msg);
514#endif
516 break;
517 }
518#endif
519#ifdef USE_UPDATE
522 msg.decode(msg_data, msg_size);
523#ifdef HAS_PROTO_MESSAGE_DUMP
524 this->log_receive_message_(LOG_STR("on_update_command_request"), msg);
525#endif
526 this->on_update_command_request(msg);
527 break;
528 }
529#endif
530#ifdef USE_VOICE_ASSISTANT
533 msg.decode(msg_data, msg_size);
534#ifdef HAS_PROTO_MESSAGE_DUMP
535 this->log_receive_message_(LOG_STR("on_voice_assistant_announce_request"), msg);
536#endif
538 break;
539 }
540#endif
541#ifdef USE_VOICE_ASSISTANT
544 msg.decode(msg_data, msg_size);
545#ifdef HAS_PROTO_MESSAGE_DUMP
546 this->log_receive_message_(LOG_STR("on_voice_assistant_configuration_request"), msg);
547#endif
549 break;
550 }
551#endif
552#ifdef USE_VOICE_ASSISTANT
555 msg.decode(msg_data, msg_size);
556#ifdef HAS_PROTO_MESSAGE_DUMP
557 this->log_receive_message_(LOG_STR("on_voice_assistant_set_configuration"), msg);
558#endif
560 break;
561 }
562#endif
563#ifdef USE_API_NOISE
566 msg.decode(msg_data, msg_size);
567#ifdef HAS_PROTO_MESSAGE_DUMP
568 this->log_receive_message_(LOG_STR("on_noise_encryption_set_key_request"), msg);
569#endif
571 break;
572 }
573#endif
574#ifdef USE_BLUETOOTH_PROXY
577 msg.decode(msg_data, msg_size);
578#ifdef HAS_PROTO_MESSAGE_DUMP
579 this->log_receive_message_(LOG_STR("on_bluetooth_scanner_set_mode_request"), msg);
580#endif
582 break;
583 }
584#endif
585#ifdef USE_ZWAVE_PROXY
587 ZWaveProxyFrame msg;
588 msg.decode(msg_data, msg_size);
589#ifdef HAS_PROTO_MESSAGE_DUMP
590 this->log_receive_message_(LOG_STR("on_z_wave_proxy_frame"), msg);
591#endif
592 this->on_z_wave_proxy_frame(msg);
593 break;
594 }
595#endif
596#ifdef USE_ZWAVE_PROXY
599 msg.decode(msg_data, msg_size);
600#ifdef HAS_PROTO_MESSAGE_DUMP
601 this->log_receive_message_(LOG_STR("on_z_wave_proxy_request"), msg);
602#endif
603 this->on_z_wave_proxy_request(msg);
604 break;
605 }
606#endif
607#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES
610 msg.decode(msg_data, msg_size);
611#ifdef HAS_PROTO_MESSAGE_DUMP
612 this->log_receive_message_(LOG_STR("on_homeassistant_action_response"), msg);
613#endif
615 break;
616 }
617#endif
618#ifdef USE_WATER_HEATER
621 msg.decode(msg_data, msg_size);
622#ifdef HAS_PROTO_MESSAGE_DUMP
623 this->log_receive_message_(LOG_STR("on_water_heater_command_request"), msg);
624#endif
626 break;
627 }
628#endif
629#if defined(USE_IR_RF) || defined(USE_RADIO_FREQUENCY)
632 msg.decode(msg_data, msg_size);
633#ifdef HAS_PROTO_MESSAGE_DUMP
634 this->log_receive_message_(LOG_STR("on_infrared_rf_transmit_raw_timings_request"), msg);
635#endif
637 break;
638 }
639#endif
640#ifdef USE_SERIAL_PROXY
643 msg.decode(msg_data, msg_size);
644#ifdef HAS_PROTO_MESSAGE_DUMP
645 this->log_receive_message_(LOG_STR("on_serial_proxy_configure_request"), msg);
646#endif
648 break;
649 }
650#endif
651#ifdef USE_SERIAL_PROXY
654 msg.decode(msg_data, msg_size);
655#ifdef HAS_PROTO_MESSAGE_DUMP
656 this->log_receive_message_(LOG_STR("on_serial_proxy_write_request"), msg);
657#endif
659 break;
660 }
661#endif
662#ifdef USE_SERIAL_PROXY
665 msg.decode(msg_data, msg_size);
666#ifdef HAS_PROTO_MESSAGE_DUMP
667 this->log_receive_message_(LOG_STR("on_serial_proxy_set_modem_pins_request"), msg);
668#endif
670 break;
671 }
672#endif
673#ifdef USE_SERIAL_PROXY
676 msg.decode(msg_data, msg_size);
677#ifdef HAS_PROTO_MESSAGE_DUMP
678 this->log_receive_message_(LOG_STR("on_serial_proxy_get_modem_pins_request"), msg);
679#endif
681 break;
682 }
683#endif
684#ifdef USE_SERIAL_PROXY
687 msg.decode(msg_data, msg_size);
688#ifdef HAS_PROTO_MESSAGE_DUMP
689 this->log_receive_message_(LOG_STR("on_serial_proxy_request"), msg);
690#endif
691 this->on_serial_proxy_request(msg);
692 break;
693 }
694#endif
695#ifdef USE_BLUETOOTH_PROXY
698 msg.decode(msg_data, msg_size);
699#ifdef HAS_PROTO_MESSAGE_DUMP
700 this->log_receive_message_(LOG_STR("on_bluetooth_set_connection_params_request"), msg);
701#endif
703 break;
704 }
705#endif
706 default:
707 break;
708 }
709}
710#endif // USE_API
711
712} // 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:1925
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2146
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2052
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2091
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2328
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1786
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1363
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1443
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:682
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2739
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2936
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:432
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:445
Fixed-size buffer for message dumps - avoids heap allocation.
Definition proto.h:543
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1275
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.cpp:1305
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:744
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1204
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:395
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1144
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1102
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:818
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1749
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1854
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1025
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1584
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:458
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:471
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:1635
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3140
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3216
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3248
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3200
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3182
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1688
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:986
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2345
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:934
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2686
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2793
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2994
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2884
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2481
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2438
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2421
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2394
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2579
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1523
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3012
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3030
static void uint32_t