ESPHome 2026.8.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 }
55 msg.decode(msg_data, msg_size);
56#ifdef HAS_PROTO_MESSAGE_DUMP
57 this->log_receive_message_(LOG_STR("on_disconnect_request"), msg);
58#endif
59 this->on_disconnect_request(msg);
60 break;
61 }
63#ifdef HAS_PROTO_MESSAGE_DUMP
64 this->log_receive_message_(LOG_STR("on_disconnect_response"));
65#endif
67 break;
68 }
70#ifdef HAS_PROTO_MESSAGE_DUMP
71 this->log_receive_message_(LOG_STR("on_ping_request"));
72#endif
73 this->on_ping_request();
74 break;
75 }
77#ifdef HAS_PROTO_MESSAGE_DUMP
78 this->log_receive_message_(LOG_STR("on_ping_response"));
79#endif
80 this->on_ping_response();
81 break;
82 }
83 case 9 /* DeviceInfoRequest is empty */: {
84#ifdef HAS_PROTO_MESSAGE_DUMP
85 this->log_receive_message_(LOG_STR("on_device_info_request"));
86#endif
88 break;
89 }
90 case 11 /* ListEntitiesRequest is empty */: {
91#ifdef HAS_PROTO_MESSAGE_DUMP
92 this->log_receive_message_(LOG_STR("on_list_entities_request"));
93#endif
95 break;
96 }
97 case 20 /* SubscribeStatesRequest is empty */: {
98#ifdef HAS_PROTO_MESSAGE_DUMP
99 this->log_receive_message_(LOG_STR("on_subscribe_states_request"));
100#endif
102 break;
103 }
106 msg.decode(msg_data, msg_size);
107#ifdef HAS_PROTO_MESSAGE_DUMP
108 this->log_receive_message_(LOG_STR("on_subscribe_logs_request"), msg);
109#endif
110 this->on_subscribe_logs_request(msg);
111 break;
112 }
113#ifdef USE_COVER
116 msg.decode(msg_data, msg_size);
117#ifdef HAS_PROTO_MESSAGE_DUMP
118 this->log_receive_message_(LOG_STR("on_cover_command_request"), msg);
119#endif
120 this->on_cover_command_request(msg);
121 break;
122 }
123#endif
124#ifdef USE_FAN
127 msg.decode(msg_data, msg_size);
128#ifdef HAS_PROTO_MESSAGE_DUMP
129 this->log_receive_message_(LOG_STR("on_fan_command_request"), msg);
130#endif
131 this->on_fan_command_request(msg);
132 break;
133 }
134#endif
135#ifdef USE_LIGHT
138 msg.decode(msg_data, msg_size);
139#ifdef HAS_PROTO_MESSAGE_DUMP
140 this->log_receive_message_(LOG_STR("on_light_command_request"), msg);
141#endif
142 this->on_light_command_request(msg);
143 break;
144 }
145#endif
146#ifdef USE_SWITCH
149 msg.decode(msg_data, msg_size);
150#ifdef HAS_PROTO_MESSAGE_DUMP
151 this->log_receive_message_(LOG_STR("on_switch_command_request"), msg);
152#endif
153 this->on_switch_command_request(msg);
154 break;
155 }
156#endif
157#ifdef USE_API_HOMEASSISTANT_SERVICES
158 case 34 /* SubscribeHomeassistantServicesRequest is empty */: {
159#ifdef HAS_PROTO_MESSAGE_DUMP
160 this->log_receive_message_(LOG_STR("on_subscribe_homeassistant_services_request"));
161#endif
163 break;
164 }
165#endif
167 GetTimeResponse msg;
168 msg.decode(msg_data, msg_size);
169#ifdef HAS_PROTO_MESSAGE_DUMP
170 this->log_receive_message_(LOG_STR("on_get_time_response"), msg);
171#endif
172 this->on_get_time_response(msg);
173 break;
174 }
175#ifdef USE_API_HOMEASSISTANT_STATES
176 case 38 /* SubscribeHomeAssistantStatesRequest is empty */: {
177#ifdef HAS_PROTO_MESSAGE_DUMP
178 this->log_receive_message_(LOG_STR("on_subscribe_home_assistant_states_request"));
179#endif
181 break;
182 }
183#endif
184#ifdef USE_API_HOMEASSISTANT_STATES
187 msg.decode(msg_data, msg_size);
188#ifdef HAS_PROTO_MESSAGE_DUMP
189 this->log_receive_message_(LOG_STR("on_home_assistant_state_response"), msg);
190#endif
192 break;
193 }
194#endif
195#ifdef USE_API_USER_DEFINED_ACTIONS
198 msg.decode(msg_data, msg_size);
199#ifdef HAS_PROTO_MESSAGE_DUMP
200 this->log_receive_message_(LOG_STR("on_execute_service_request"), msg);
201#endif
203 break;
204 }
205#endif
206#ifdef USE_CAMERA
209 msg.decode(msg_data, msg_size);
210#ifdef HAS_PROTO_MESSAGE_DUMP
211 this->log_receive_message_(LOG_STR("on_camera_image_request"), msg);
212#endif
213 this->on_camera_image_request(msg);
214 break;
215 }
216#endif
217#ifdef USE_CLIMATE
220 msg.decode(msg_data, msg_size);
221#ifdef HAS_PROTO_MESSAGE_DUMP
222 this->log_receive_message_(LOG_STR("on_climate_command_request"), msg);
223#endif
225 break;
226 }
227#endif
228#ifdef USE_NUMBER
231 msg.decode(msg_data, msg_size);
232#ifdef HAS_PROTO_MESSAGE_DUMP
233 this->log_receive_message_(LOG_STR("on_number_command_request"), msg);
234#endif
235 this->on_number_command_request(msg);
236 break;
237 }
238#endif
239#ifdef USE_SELECT
242 msg.decode(msg_data, msg_size);
243#ifdef HAS_PROTO_MESSAGE_DUMP
244 this->log_receive_message_(LOG_STR("on_select_command_request"), msg);
245#endif
246 this->on_select_command_request(msg);
247 break;
248 }
249#endif
250#ifdef USE_SIREN
253 msg.decode(msg_data, msg_size);
254#ifdef HAS_PROTO_MESSAGE_DUMP
255 this->log_receive_message_(LOG_STR("on_siren_command_request"), msg);
256#endif
257 this->on_siren_command_request(msg);
258 break;
259 }
260#endif
261#ifdef USE_LOCK
264 msg.decode(msg_data, msg_size);
265#ifdef HAS_PROTO_MESSAGE_DUMP
266 this->log_receive_message_(LOG_STR("on_lock_command_request"), msg);
267#endif
268 this->on_lock_command_request(msg);
269 break;
270 }
271#endif
272#ifdef USE_BUTTON
275 msg.decode(msg_data, msg_size);
276#ifdef HAS_PROTO_MESSAGE_DUMP
277 this->log_receive_message_(LOG_STR("on_button_command_request"), msg);
278#endif
279 this->on_button_command_request(msg);
280 break;
281 }
282#endif
283#ifdef USE_MEDIA_PLAYER
286 msg.decode(msg_data, msg_size);
287#ifdef HAS_PROTO_MESSAGE_DUMP
288 this->log_receive_message_(LOG_STR("on_media_player_command_request"), msg);
289#endif
291 break;
292 }
293#endif
294#ifdef USE_BLUETOOTH_PROXY
297 msg.decode(msg_data, msg_size);
298#ifdef HAS_PROTO_MESSAGE_DUMP
299 this->log_receive_message_(LOG_STR("on_subscribe_bluetooth_le_advertisements_request"), msg);
300#endif
302 break;
303 }
304#endif
305#ifdef USE_BLUETOOTH_PROXY
308 msg.decode(msg_data, msg_size);
309#ifdef HAS_PROTO_MESSAGE_DUMP
310 this->log_receive_message_(LOG_STR("on_bluetooth_device_request"), msg);
311#endif
313 break;
314 }
315#endif
316#ifdef USE_BLUETOOTH_PROXY
319 msg.decode(msg_data, msg_size);
320#ifdef HAS_PROTO_MESSAGE_DUMP
321 this->log_receive_message_(LOG_STR("on_bluetooth_gatt_get_services_request"), msg);
322#endif
324 break;
325 }
326#endif
327#ifdef USE_BLUETOOTH_PROXY
330 msg.decode(msg_data, msg_size);
331#ifdef HAS_PROTO_MESSAGE_DUMP
332 this->log_receive_message_(LOG_STR("on_bluetooth_gatt_read_request"), msg);
333#endif
335 break;
336 }
337#endif
338#ifdef USE_BLUETOOTH_PROXY
341 msg.decode(msg_data, msg_size);
342#ifdef HAS_PROTO_MESSAGE_DUMP
343 this->log_receive_message_(LOG_STR("on_bluetooth_gatt_write_request"), msg);
344#endif
346 break;
347 }
348#endif
349#ifdef USE_BLUETOOTH_PROXY
352 msg.decode(msg_data, msg_size);
353#ifdef HAS_PROTO_MESSAGE_DUMP
354 this->log_receive_message_(LOG_STR("on_bluetooth_gatt_read_descriptor_request"), msg);
355#endif
357 break;
358 }
359#endif
360#ifdef USE_BLUETOOTH_PROXY
363 msg.decode(msg_data, msg_size);
364#ifdef HAS_PROTO_MESSAGE_DUMP
365 this->log_receive_message_(LOG_STR("on_bluetooth_gatt_write_descriptor_request"), msg);
366#endif
368 break;
369 }
370#endif
371#ifdef USE_BLUETOOTH_PROXY
374 msg.decode(msg_data, msg_size);
375#ifdef HAS_PROTO_MESSAGE_DUMP
376 this->log_receive_message_(LOG_STR("on_bluetooth_gatt_notify_request"), msg);
377#endif
379 break;
380 }
381#endif
382#ifdef USE_BLUETOOTH_PROXY
383 case 80 /* SubscribeBluetoothConnectionsFreeRequest is empty */: {
384#ifdef HAS_PROTO_MESSAGE_DUMP
385 this->log_receive_message_(LOG_STR("on_subscribe_bluetooth_connections_free_request"));
386#endif
388 break;
389 }
390#endif
391#ifdef USE_BLUETOOTH_PROXY
392 case 87 /* UnsubscribeBluetoothLEAdvertisementsRequest is empty */: {
393#ifdef HAS_PROTO_MESSAGE_DUMP
394 this->log_receive_message_(LOG_STR("on_unsubscribe_bluetooth_le_advertisements_request"));
395#endif
397 break;
398 }
399#endif
400#ifdef USE_VOICE_ASSISTANT
403 msg.decode(msg_data, msg_size);
404#ifdef HAS_PROTO_MESSAGE_DUMP
405 this->log_receive_message_(LOG_STR("on_subscribe_voice_assistant_request"), msg);
406#endif
408 break;
409 }
410#endif
411#ifdef USE_VOICE_ASSISTANT
414 msg.decode(msg_data, msg_size);
415#ifdef HAS_PROTO_MESSAGE_DUMP
416 this->log_receive_message_(LOG_STR("on_voice_assistant_response"), msg);
417#endif
419 break;
420 }
421#endif
422#ifdef USE_VOICE_ASSISTANT
425 msg.decode(msg_data, msg_size);
426#ifdef HAS_PROTO_MESSAGE_DUMP
427 this->log_receive_message_(LOG_STR("on_voice_assistant_event_response"), msg);
428#endif
430 break;
431 }
432#endif
433#ifdef USE_ALARM_CONTROL_PANEL
436 msg.decode(msg_data, msg_size);
437#ifdef HAS_PROTO_MESSAGE_DUMP
438 this->log_receive_message_(LOG_STR("on_alarm_control_panel_command_request"), msg);
439#endif
441 break;
442 }
443#endif
444#ifdef USE_TEXT
447 msg.decode(msg_data, msg_size);
448#ifdef HAS_PROTO_MESSAGE_DUMP
449 this->log_receive_message_(LOG_STR("on_text_command_request"), msg);
450#endif
451 this->on_text_command_request(msg);
452 break;
453 }
454#endif
455#ifdef USE_DATETIME_DATE
458 msg.decode(msg_data, msg_size);
459#ifdef HAS_PROTO_MESSAGE_DUMP
460 this->log_receive_message_(LOG_STR("on_date_command_request"), msg);
461#endif
462 this->on_date_command_request(msg);
463 break;
464 }
465#endif
466#ifdef USE_DATETIME_TIME
469 msg.decode(msg_data, msg_size);
470#ifdef HAS_PROTO_MESSAGE_DUMP
471 this->log_receive_message_(LOG_STR("on_time_command_request"), msg);
472#endif
473 this->on_time_command_request(msg);
474 break;
475 }
476#endif
477#ifdef USE_VOICE_ASSISTANT
480 msg.decode(msg_data, msg_size);
481#ifdef HAS_PROTO_MESSAGE_DUMP
482 this->log_receive_message_(LOG_STR("on_voice_assistant_audio"), msg);
483#endif
484 this->on_voice_assistant_audio(msg);
485 break;
486 }
487#endif
488#ifdef USE_VALVE
491 msg.decode(msg_data, msg_size);
492#ifdef HAS_PROTO_MESSAGE_DUMP
493 this->log_receive_message_(LOG_STR("on_valve_command_request"), msg);
494#endif
495 this->on_valve_command_request(msg);
496 break;
497 }
498#endif
499#ifdef USE_DATETIME_DATETIME
502 msg.decode(msg_data, msg_size);
503#ifdef HAS_PROTO_MESSAGE_DUMP
504 this->log_receive_message_(LOG_STR("on_date_time_command_request"), msg);
505#endif
507 break;
508 }
509#endif
510#ifdef USE_VOICE_ASSISTANT
513 msg.decode(msg_data, msg_size);
514#ifdef HAS_PROTO_MESSAGE_DUMP
515 this->log_receive_message_(LOG_STR("on_voice_assistant_timer_event_response"), msg);
516#endif
518 break;
519 }
520#endif
521#ifdef USE_UPDATE
524 msg.decode(msg_data, msg_size);
525#ifdef HAS_PROTO_MESSAGE_DUMP
526 this->log_receive_message_(LOG_STR("on_update_command_request"), msg);
527#endif
528 this->on_update_command_request(msg);
529 break;
530 }
531#endif
532#ifdef USE_VOICE_ASSISTANT
535 msg.decode(msg_data, msg_size);
536#ifdef HAS_PROTO_MESSAGE_DUMP
537 this->log_receive_message_(LOG_STR("on_voice_assistant_announce_request"), msg);
538#endif
540 break;
541 }
542#endif
543#ifdef USE_VOICE_ASSISTANT
546 msg.decode(msg_data, msg_size);
547#ifdef HAS_PROTO_MESSAGE_DUMP
548 this->log_receive_message_(LOG_STR("on_voice_assistant_configuration_request"), msg);
549#endif
551 break;
552 }
553#endif
554#ifdef USE_VOICE_ASSISTANT
557 msg.decode(msg_data, msg_size);
558#ifdef HAS_PROTO_MESSAGE_DUMP
559 this->log_receive_message_(LOG_STR("on_voice_assistant_set_configuration"), msg);
560#endif
562 break;
563 }
564#endif
565#ifdef USE_API_NOISE
568 msg.decode(msg_data, msg_size);
569#ifdef HAS_PROTO_MESSAGE_DUMP
570 this->log_receive_message_(LOG_STR("on_noise_encryption_set_key_request"), msg);
571#endif
573 break;
574 }
575#endif
576#ifdef USE_BLUETOOTH_PROXY
579 msg.decode(msg_data, msg_size);
580#ifdef HAS_PROTO_MESSAGE_DUMP
581 this->log_receive_message_(LOG_STR("on_bluetooth_scanner_set_mode_request"), msg);
582#endif
584 break;
585 }
586#endif
587#ifdef USE_ZWAVE_PROXY
589 ZWaveProxyFrame msg;
590 msg.decode(msg_data, msg_size);
591#ifdef HAS_PROTO_MESSAGE_DUMP
592 this->log_receive_message_(LOG_STR("on_z_wave_proxy_frame"), msg);
593#endif
594 this->on_z_wave_proxy_frame(msg);
595 break;
596 }
597#endif
598#ifdef USE_ZWAVE_PROXY
601 msg.decode(msg_data, msg_size);
602#ifdef HAS_PROTO_MESSAGE_DUMP
603 this->log_receive_message_(LOG_STR("on_z_wave_proxy_request"), msg);
604#endif
605 this->on_z_wave_proxy_request(msg);
606 break;
607 }
608#endif
609#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES
612 msg.decode(msg_data, msg_size);
613#ifdef HAS_PROTO_MESSAGE_DUMP
614 this->log_receive_message_(LOG_STR("on_homeassistant_action_response"), msg);
615#endif
617 break;
618 }
619#endif
620#ifdef USE_WATER_HEATER
623 msg.decode(msg_data, msg_size);
624#ifdef HAS_PROTO_MESSAGE_DUMP
625 this->log_receive_message_(LOG_STR("on_water_heater_command_request"), msg);
626#endif
628 break;
629 }
630#endif
631#if defined(USE_IR_RF) || defined(USE_RADIO_FREQUENCY)
634 msg.decode(msg_data, msg_size);
635#ifdef HAS_PROTO_MESSAGE_DUMP
636 this->log_receive_message_(LOG_STR("on_infrared_rf_transmit_raw_timings_request"), msg);
637#endif
639 break;
640 }
641#endif
642#ifdef USE_SERIAL_PROXY
645 msg.decode(msg_data, msg_size);
646#ifdef HAS_PROTO_MESSAGE_DUMP
647 this->log_receive_message_(LOG_STR("on_serial_proxy_configure_request"), msg);
648#endif
650 break;
651 }
652#endif
653#ifdef USE_SERIAL_PROXY
656 msg.decode(msg_data, msg_size);
657#ifdef HAS_PROTO_MESSAGE_DUMP
658 this->log_receive_message_(LOG_STR("on_serial_proxy_write_request"), msg);
659#endif
661 break;
662 }
663#endif
664#ifdef USE_SERIAL_PROXY
667 msg.decode(msg_data, msg_size);
668#ifdef HAS_PROTO_MESSAGE_DUMP
669 this->log_receive_message_(LOG_STR("on_serial_proxy_set_modem_pins_request"), msg);
670#endif
672 break;
673 }
674#endif
675#ifdef USE_SERIAL_PROXY
678 msg.decode(msg_data, msg_size);
679#ifdef HAS_PROTO_MESSAGE_DUMP
680 this->log_receive_message_(LOG_STR("on_serial_proxy_get_modem_pins_request"), msg);
681#endif
683 break;
684 }
685#endif
686#ifdef USE_SERIAL_PROXY
689 msg.decode(msg_data, msg_size);
690#ifdef HAS_PROTO_MESSAGE_DUMP
691 this->log_receive_message_(LOG_STR("on_serial_proxy_request"), msg);
692#endif
693 this->on_serial_proxy_request(msg);
694 break;
695 }
696#endif
697#ifdef USE_BLUETOOTH_PROXY
700 msg.decode(msg_data, msg_size);
701#ifdef HAS_PROTO_MESSAGE_DUMP
702 this->log_receive_message_(LOG_STR("on_bluetooth_set_connection_params_request"), msg);
703#endif
705 break;
706 }
707#endif
708 default:
709 break;
710 }
711}
712#endif // USE_API
713
714} // 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_disconnect_request(const DisconnectRequest &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:1936
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2157
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2063
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2102
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2339
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1797
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1374
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1454
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:693
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2750
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2947
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:436
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:453
Fixed-size buffer for message dumps - avoids heap allocation.
Definition proto.h:543
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1286
void decode(const uint8_t *buffer, size_t length)
Definition api_pb2.cpp:1331
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:755
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1215
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:399
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1155
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1113
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:829
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1760
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1865
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1036
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1595
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:466
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:479
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:1646
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3151
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3227
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3259
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3211
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3193
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1699
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:997
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2356
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:945
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2697
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2804
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3005
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2895
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2492
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2449
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2432
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2405
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:2590
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:1534
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3023
static constexpr uint8_t MESSAGE_TYPE
Definition api_pb2.h:3041
static void uint32_t