ESPHome  2024.3.2
api_pb2_service.cpp
Go to the documentation of this file.
1 // This file was automatically generated with a tool.
2 // See scripts/api_protobuf/api_protobuf.py
3 #include "api_pb2_service.h"
4 #include "esphome/core/log.h"
5 
6 namespace esphome {
7 namespace api {
8 
9 static const char *const TAG = "api.service";
10 
12 #ifdef HAS_PROTO_MESSAGE_DUMP
13  ESP_LOGVV(TAG, "send_hello_response: %s", msg.dump().c_str());
14 #endif
15  return this->send_message_<HelloResponse>(msg, 2);
16 }
18 #ifdef HAS_PROTO_MESSAGE_DUMP
19  ESP_LOGVV(TAG, "send_connect_response: %s", msg.dump().c_str());
20 #endif
21  return this->send_message_<ConnectResponse>(msg, 4);
22 }
24 #ifdef HAS_PROTO_MESSAGE_DUMP
25  ESP_LOGVV(TAG, "send_disconnect_request: %s", msg.dump().c_str());
26 #endif
27  return this->send_message_<DisconnectRequest>(msg, 5);
28 }
30 #ifdef HAS_PROTO_MESSAGE_DUMP
31  ESP_LOGVV(TAG, "send_disconnect_response: %s", msg.dump().c_str());
32 #endif
33  return this->send_message_<DisconnectResponse>(msg, 6);
34 }
36 #ifdef HAS_PROTO_MESSAGE_DUMP
37  ESP_LOGVV(TAG, "send_ping_request: %s", msg.dump().c_str());
38 #endif
39  return this->send_message_<PingRequest>(msg, 7);
40 }
42 #ifdef HAS_PROTO_MESSAGE_DUMP
43  ESP_LOGVV(TAG, "send_ping_response: %s", msg.dump().c_str());
44 #endif
45  return this->send_message_<PingResponse>(msg, 8);
46 }
48 #ifdef HAS_PROTO_MESSAGE_DUMP
49  ESP_LOGVV(TAG, "send_device_info_response: %s", msg.dump().c_str());
50 #endif
51  return this->send_message_<DeviceInfoResponse>(msg, 10);
52 }
54 #ifdef HAS_PROTO_MESSAGE_DUMP
55  ESP_LOGVV(TAG, "send_list_entities_done_response: %s", msg.dump().c_str());
56 #endif
57  return this->send_message_<ListEntitiesDoneResponse>(msg, 19);
58 }
59 #ifdef USE_BINARY_SENSOR
61 #ifdef HAS_PROTO_MESSAGE_DUMP
62  ESP_LOGVV(TAG, "send_list_entities_binary_sensor_response: %s", msg.dump().c_str());
63 #endif
64  return this->send_message_<ListEntitiesBinarySensorResponse>(msg, 12);
65 }
66 #endif
67 #ifdef USE_BINARY_SENSOR
69 #ifdef HAS_PROTO_MESSAGE_DUMP
70  ESP_LOGVV(TAG, "send_binary_sensor_state_response: %s", msg.dump().c_str());
71 #endif
72  return this->send_message_<BinarySensorStateResponse>(msg, 21);
73 }
74 #endif
75 #ifdef USE_COVER
77 #ifdef HAS_PROTO_MESSAGE_DUMP
78  ESP_LOGVV(TAG, "send_list_entities_cover_response: %s", msg.dump().c_str());
79 #endif
80  return this->send_message_<ListEntitiesCoverResponse>(msg, 13);
81 }
82 #endif
83 #ifdef USE_COVER
85 #ifdef HAS_PROTO_MESSAGE_DUMP
86  ESP_LOGVV(TAG, "send_cover_state_response: %s", msg.dump().c_str());
87 #endif
88  return this->send_message_<CoverStateResponse>(msg, 22);
89 }
90 #endif
91 #ifdef USE_COVER
92 #endif
93 #ifdef USE_FAN
95 #ifdef HAS_PROTO_MESSAGE_DUMP
96  ESP_LOGVV(TAG, "send_list_entities_fan_response: %s", msg.dump().c_str());
97 #endif
98  return this->send_message_<ListEntitiesFanResponse>(msg, 14);
99 }
100 #endif
101 #ifdef USE_FAN
103 #ifdef HAS_PROTO_MESSAGE_DUMP
104  ESP_LOGVV(TAG, "send_fan_state_response: %s", msg.dump().c_str());
105 #endif
106  return this->send_message_<FanStateResponse>(msg, 23);
107 }
108 #endif
109 #ifdef USE_FAN
110 #endif
111 #ifdef USE_LIGHT
113 #ifdef HAS_PROTO_MESSAGE_DUMP
114  ESP_LOGVV(TAG, "send_list_entities_light_response: %s", msg.dump().c_str());
115 #endif
116  return this->send_message_<ListEntitiesLightResponse>(msg, 15);
117 }
118 #endif
119 #ifdef USE_LIGHT
121 #ifdef HAS_PROTO_MESSAGE_DUMP
122  ESP_LOGVV(TAG, "send_light_state_response: %s", msg.dump().c_str());
123 #endif
124  return this->send_message_<LightStateResponse>(msg, 24);
125 }
126 #endif
127 #ifdef USE_LIGHT
128 #endif
129 #ifdef USE_SENSOR
131 #ifdef HAS_PROTO_MESSAGE_DUMP
132  ESP_LOGVV(TAG, "send_list_entities_sensor_response: %s", msg.dump().c_str());
133 #endif
134  return this->send_message_<ListEntitiesSensorResponse>(msg, 16);
135 }
136 #endif
137 #ifdef USE_SENSOR
139 #ifdef HAS_PROTO_MESSAGE_DUMP
140  ESP_LOGVV(TAG, "send_sensor_state_response: %s", msg.dump().c_str());
141 #endif
142  return this->send_message_<SensorStateResponse>(msg, 25);
143 }
144 #endif
145 #ifdef USE_SWITCH
147 #ifdef HAS_PROTO_MESSAGE_DUMP
148  ESP_LOGVV(TAG, "send_list_entities_switch_response: %s", msg.dump().c_str());
149 #endif
150  return this->send_message_<ListEntitiesSwitchResponse>(msg, 17);
151 }
152 #endif
153 #ifdef USE_SWITCH
155 #ifdef HAS_PROTO_MESSAGE_DUMP
156  ESP_LOGVV(TAG, "send_switch_state_response: %s", msg.dump().c_str());
157 #endif
158  return this->send_message_<SwitchStateResponse>(msg, 26);
159 }
160 #endif
161 #ifdef USE_SWITCH
162 #endif
163 #ifdef USE_TEXT_SENSOR
165 #ifdef HAS_PROTO_MESSAGE_DUMP
166  ESP_LOGVV(TAG, "send_list_entities_text_sensor_response: %s", msg.dump().c_str());
167 #endif
168  return this->send_message_<ListEntitiesTextSensorResponse>(msg, 18);
169 }
170 #endif
171 #ifdef USE_TEXT_SENSOR
173 #ifdef HAS_PROTO_MESSAGE_DUMP
174  ESP_LOGVV(TAG, "send_text_sensor_state_response: %s", msg.dump().c_str());
175 #endif
176  return this->send_message_<TextSensorStateResponse>(msg, 27);
177 }
178 #endif
180  return this->send_message_<SubscribeLogsResponse>(msg, 29);
181 }
183 #ifdef HAS_PROTO_MESSAGE_DUMP
184  ESP_LOGVV(TAG, "send_homeassistant_service_response: %s", msg.dump().c_str());
185 #endif
186  return this->send_message_<HomeassistantServiceResponse>(msg, 35);
187 }
190 #ifdef HAS_PROTO_MESSAGE_DUMP
191  ESP_LOGVV(TAG, "send_subscribe_home_assistant_state_response: %s", msg.dump().c_str());
192 #endif
193  return this->send_message_<SubscribeHomeAssistantStateResponse>(msg, 39);
194 }
196 #ifdef HAS_PROTO_MESSAGE_DUMP
197  ESP_LOGVV(TAG, "send_get_time_request: %s", msg.dump().c_str());
198 #endif
199  return this->send_message_<GetTimeRequest>(msg, 36);
200 }
202 #ifdef HAS_PROTO_MESSAGE_DUMP
203  ESP_LOGVV(TAG, "send_get_time_response: %s", msg.dump().c_str());
204 #endif
205  return this->send_message_<GetTimeResponse>(msg, 37);
206 }
208 #ifdef HAS_PROTO_MESSAGE_DUMP
209  ESP_LOGVV(TAG, "send_list_entities_services_response: %s", msg.dump().c_str());
210 #endif
211  return this->send_message_<ListEntitiesServicesResponse>(msg, 41);
212 }
213 #ifdef USE_ESP32_CAMERA
215 #ifdef HAS_PROTO_MESSAGE_DUMP
216  ESP_LOGVV(TAG, "send_list_entities_camera_response: %s", msg.dump().c_str());
217 #endif
218  return this->send_message_<ListEntitiesCameraResponse>(msg, 43);
219 }
220 #endif
221 #ifdef USE_ESP32_CAMERA
223 #ifdef HAS_PROTO_MESSAGE_DUMP
224  ESP_LOGVV(TAG, "send_camera_image_response: %s", msg.dump().c_str());
225 #endif
226  return this->send_message_<CameraImageResponse>(msg, 44);
227 }
228 #endif
229 #ifdef USE_ESP32_CAMERA
230 #endif
231 #ifdef USE_CLIMATE
233 #ifdef HAS_PROTO_MESSAGE_DUMP
234  ESP_LOGVV(TAG, "send_list_entities_climate_response: %s", msg.dump().c_str());
235 #endif
236  return this->send_message_<ListEntitiesClimateResponse>(msg, 46);
237 }
238 #endif
239 #ifdef USE_CLIMATE
241 #ifdef HAS_PROTO_MESSAGE_DUMP
242  ESP_LOGVV(TAG, "send_climate_state_response: %s", msg.dump().c_str());
243 #endif
244  return this->send_message_<ClimateStateResponse>(msg, 47);
245 }
246 #endif
247 #ifdef USE_CLIMATE
248 #endif
249 #ifdef USE_NUMBER
251 #ifdef HAS_PROTO_MESSAGE_DUMP
252  ESP_LOGVV(TAG, "send_list_entities_number_response: %s", msg.dump().c_str());
253 #endif
254  return this->send_message_<ListEntitiesNumberResponse>(msg, 49);
255 }
256 #endif
257 #ifdef USE_NUMBER
259 #ifdef HAS_PROTO_MESSAGE_DUMP
260  ESP_LOGVV(TAG, "send_number_state_response: %s", msg.dump().c_str());
261 #endif
262  return this->send_message_<NumberStateResponse>(msg, 50);
263 }
264 #endif
265 #ifdef USE_NUMBER
266 #endif
267 #ifdef USE_SELECT
269 #ifdef HAS_PROTO_MESSAGE_DUMP
270  ESP_LOGVV(TAG, "send_list_entities_select_response: %s", msg.dump().c_str());
271 #endif
272  return this->send_message_<ListEntitiesSelectResponse>(msg, 52);
273 }
274 #endif
275 #ifdef USE_SELECT
277 #ifdef HAS_PROTO_MESSAGE_DUMP
278  ESP_LOGVV(TAG, "send_select_state_response: %s", msg.dump().c_str());
279 #endif
280  return this->send_message_<SelectStateResponse>(msg, 53);
281 }
282 #endif
283 #ifdef USE_SELECT
284 #endif
285 #ifdef USE_LOCK
287 #ifdef HAS_PROTO_MESSAGE_DUMP
288  ESP_LOGVV(TAG, "send_list_entities_lock_response: %s", msg.dump().c_str());
289 #endif
290  return this->send_message_<ListEntitiesLockResponse>(msg, 58);
291 }
292 #endif
293 #ifdef USE_LOCK
295 #ifdef HAS_PROTO_MESSAGE_DUMP
296  ESP_LOGVV(TAG, "send_lock_state_response: %s", msg.dump().c_str());
297 #endif
298  return this->send_message_<LockStateResponse>(msg, 59);
299 }
300 #endif
301 #ifdef USE_LOCK
302 #endif
303 #ifdef USE_BUTTON
305 #ifdef HAS_PROTO_MESSAGE_DUMP
306  ESP_LOGVV(TAG, "send_list_entities_button_response: %s", msg.dump().c_str());
307 #endif
308  return this->send_message_<ListEntitiesButtonResponse>(msg, 61);
309 }
310 #endif
311 #ifdef USE_BUTTON
312 #endif
313 #ifdef USE_MEDIA_PLAYER
315 #ifdef HAS_PROTO_MESSAGE_DUMP
316  ESP_LOGVV(TAG, "send_list_entities_media_player_response: %s", msg.dump().c_str());
317 #endif
318  return this->send_message_<ListEntitiesMediaPlayerResponse>(msg, 63);
319 }
320 #endif
321 #ifdef USE_MEDIA_PLAYER
323 #ifdef HAS_PROTO_MESSAGE_DUMP
324  ESP_LOGVV(TAG, "send_media_player_state_response: %s", msg.dump().c_str());
325 #endif
326  return this->send_message_<MediaPlayerStateResponse>(msg, 64);
327 }
328 #endif
329 #ifdef USE_MEDIA_PLAYER
330 #endif
331 #ifdef USE_BLUETOOTH_PROXY
332 #endif
333 #ifdef USE_BLUETOOTH_PROXY
335 #ifdef HAS_PROTO_MESSAGE_DUMP
336  ESP_LOGVV(TAG, "send_bluetooth_le_advertisement_response: %s", msg.dump().c_str());
337 #endif
338  return this->send_message_<BluetoothLEAdvertisementResponse>(msg, 67);
339 }
340 #endif
341 #ifdef USE_BLUETOOTH_PROXY
344 #ifdef HAS_PROTO_MESSAGE_DUMP
345  ESP_LOGVV(TAG, "send_bluetooth_le_raw_advertisements_response: %s", msg.dump().c_str());
346 #endif
347  return this->send_message_<BluetoothLERawAdvertisementsResponse>(msg, 93);
348 }
349 #endif
350 #ifdef USE_BLUETOOTH_PROXY
351 #endif
352 #ifdef USE_BLUETOOTH_PROXY
354 #ifdef HAS_PROTO_MESSAGE_DUMP
355  ESP_LOGVV(TAG, "send_bluetooth_device_connection_response: %s", msg.dump().c_str());
356 #endif
357  return this->send_message_<BluetoothDeviceConnectionResponse>(msg, 69);
358 }
359 #endif
360 #ifdef USE_BLUETOOTH_PROXY
361 #endif
362 #ifdef USE_BLUETOOTH_PROXY
364 #ifdef HAS_PROTO_MESSAGE_DUMP
365  ESP_LOGVV(TAG, "send_bluetooth_gatt_get_services_response: %s", msg.dump().c_str());
366 #endif
367  return this->send_message_<BluetoothGATTGetServicesResponse>(msg, 71);
368 }
369 #endif
370 #ifdef USE_BLUETOOTH_PROXY
373 #ifdef HAS_PROTO_MESSAGE_DUMP
374  ESP_LOGVV(TAG, "send_bluetooth_gatt_get_services_done_response: %s", msg.dump().c_str());
375 #endif
376  return this->send_message_<BluetoothGATTGetServicesDoneResponse>(msg, 72);
377 }
378 #endif
379 #ifdef USE_BLUETOOTH_PROXY
380 #endif
381 #ifdef USE_BLUETOOTH_PROXY
383 #ifdef HAS_PROTO_MESSAGE_DUMP
384  ESP_LOGVV(TAG, "send_bluetooth_gatt_read_response: %s", msg.dump().c_str());
385 #endif
386  return this->send_message_<BluetoothGATTReadResponse>(msg, 74);
387 }
388 #endif
389 #ifdef USE_BLUETOOTH_PROXY
390 #endif
391 #ifdef USE_BLUETOOTH_PROXY
392 #endif
393 #ifdef USE_BLUETOOTH_PROXY
394 #endif
395 #ifdef USE_BLUETOOTH_PROXY
396 #endif
397 #ifdef USE_BLUETOOTH_PROXY
399 #ifdef HAS_PROTO_MESSAGE_DUMP
400  ESP_LOGVV(TAG, "send_bluetooth_gatt_notify_data_response: %s", msg.dump().c_str());
401 #endif
402  return this->send_message_<BluetoothGATTNotifyDataResponse>(msg, 79);
403 }
404 #endif
405 #ifdef USE_BLUETOOTH_PROXY
406 #endif
407 #ifdef USE_BLUETOOTH_PROXY
409 #ifdef HAS_PROTO_MESSAGE_DUMP
410  ESP_LOGVV(TAG, "send_bluetooth_connections_free_response: %s", msg.dump().c_str());
411 #endif
412  return this->send_message_<BluetoothConnectionsFreeResponse>(msg, 81);
413 }
414 #endif
415 #ifdef USE_BLUETOOTH_PROXY
417 #ifdef HAS_PROTO_MESSAGE_DUMP
418  ESP_LOGVV(TAG, "send_bluetooth_gatt_error_response: %s", msg.dump().c_str());
419 #endif
420  return this->send_message_<BluetoothGATTErrorResponse>(msg, 82);
421 }
422 #endif
423 #ifdef USE_BLUETOOTH_PROXY
425 #ifdef HAS_PROTO_MESSAGE_DUMP
426  ESP_LOGVV(TAG, "send_bluetooth_gatt_write_response: %s", msg.dump().c_str());
427 #endif
428  return this->send_message_<BluetoothGATTWriteResponse>(msg, 83);
429 }
430 #endif
431 #ifdef USE_BLUETOOTH_PROXY
433 #ifdef HAS_PROTO_MESSAGE_DUMP
434  ESP_LOGVV(TAG, "send_bluetooth_gatt_notify_response: %s", msg.dump().c_str());
435 #endif
436  return this->send_message_<BluetoothGATTNotifyResponse>(msg, 84);
437 }
438 #endif
439 #ifdef USE_BLUETOOTH_PROXY
441 #ifdef HAS_PROTO_MESSAGE_DUMP
442  ESP_LOGVV(TAG, "send_bluetooth_device_pairing_response: %s", msg.dump().c_str());
443 #endif
444  return this->send_message_<BluetoothDevicePairingResponse>(msg, 85);
445 }
446 #endif
447 #ifdef USE_BLUETOOTH_PROXY
449 #ifdef HAS_PROTO_MESSAGE_DUMP
450  ESP_LOGVV(TAG, "send_bluetooth_device_unpairing_response: %s", msg.dump().c_str());
451 #endif
452  return this->send_message_<BluetoothDeviceUnpairingResponse>(msg, 86);
453 }
454 #endif
455 #ifdef USE_BLUETOOTH_PROXY
456 #endif
457 #ifdef USE_BLUETOOTH_PROXY
459 #ifdef HAS_PROTO_MESSAGE_DUMP
460  ESP_LOGVV(TAG, "send_bluetooth_device_clear_cache_response: %s", msg.dump().c_str());
461 #endif
462  return this->send_message_<BluetoothDeviceClearCacheResponse>(msg, 88);
463 }
464 #endif
465 #ifdef USE_VOICE_ASSISTANT
466 #endif
467 #ifdef USE_VOICE_ASSISTANT
469 #ifdef HAS_PROTO_MESSAGE_DUMP
470  ESP_LOGVV(TAG, "send_voice_assistant_request: %s", msg.dump().c_str());
471 #endif
472  return this->send_message_<VoiceAssistantRequest>(msg, 90);
473 }
474 #endif
475 #ifdef USE_VOICE_ASSISTANT
476 #endif
477 #ifdef USE_VOICE_ASSISTANT
478 #endif
479 #ifdef USE_ALARM_CONTROL_PANEL
482 #ifdef HAS_PROTO_MESSAGE_DUMP
483  ESP_LOGVV(TAG, "send_list_entities_alarm_control_panel_response: %s", msg.dump().c_str());
484 #endif
485  return this->send_message_<ListEntitiesAlarmControlPanelResponse>(msg, 94);
486 }
487 #endif
488 #ifdef USE_ALARM_CONTROL_PANEL
490 #ifdef HAS_PROTO_MESSAGE_DUMP
491  ESP_LOGVV(TAG, "send_alarm_control_panel_state_response: %s", msg.dump().c_str());
492 #endif
493  return this->send_message_<AlarmControlPanelStateResponse>(msg, 95);
494 }
495 #endif
496 #ifdef USE_ALARM_CONTROL_PANEL
497 #endif
498 #ifdef USE_TEXT
500 #ifdef HAS_PROTO_MESSAGE_DUMP
501  ESP_LOGVV(TAG, "send_list_entities_text_response: %s", msg.dump().c_str());
502 #endif
503  return this->send_message_<ListEntitiesTextResponse>(msg, 97);
504 }
505 #endif
506 #ifdef USE_TEXT
508 #ifdef HAS_PROTO_MESSAGE_DUMP
509  ESP_LOGVV(TAG, "send_text_state_response: %s", msg.dump().c_str());
510 #endif
511  return this->send_message_<TextStateResponse>(msg, 98);
512 }
513 #endif
514 #ifdef USE_TEXT
515 #endif
516 #ifdef USE_DATETIME_DATE
518 #ifdef HAS_PROTO_MESSAGE_DUMP
519  ESP_LOGVV(TAG, "send_list_entities_date_response: %s", msg.dump().c_str());
520 #endif
521  return this->send_message_<ListEntitiesDateResponse>(msg, 100);
522 }
523 #endif
524 #ifdef USE_DATETIME_DATE
526 #ifdef HAS_PROTO_MESSAGE_DUMP
527  ESP_LOGVV(TAG, "send_date_state_response: %s", msg.dump().c_str());
528 #endif
529  return this->send_message_<DateStateResponse>(msg, 101);
530 }
531 #endif
532 #ifdef USE_DATETIME_DATE
533 #endif
534 bool APIServerConnectionBase::read_message(uint32_t msg_size, uint32_t msg_type, uint8_t *msg_data) {
535  switch (msg_type) {
536  case 1: {
537  HelloRequest msg;
538  msg.decode(msg_data, msg_size);
539 #ifdef HAS_PROTO_MESSAGE_DUMP
540  ESP_LOGVV(TAG, "on_hello_request: %s", msg.dump().c_str());
541 #endif
542  this->on_hello_request(msg);
543  break;
544  }
545  case 3: {
546  ConnectRequest msg;
547  msg.decode(msg_data, msg_size);
548 #ifdef HAS_PROTO_MESSAGE_DUMP
549  ESP_LOGVV(TAG, "on_connect_request: %s", msg.dump().c_str());
550 #endif
551  this->on_connect_request(msg);
552  break;
553  }
554  case 5: {
555  DisconnectRequest msg;
556  msg.decode(msg_data, msg_size);
557 #ifdef HAS_PROTO_MESSAGE_DUMP
558  ESP_LOGVV(TAG, "on_disconnect_request: %s", msg.dump().c_str());
559 #endif
560  this->on_disconnect_request(msg);
561  break;
562  }
563  case 6: {
564  DisconnectResponse msg;
565  msg.decode(msg_data, msg_size);
566 #ifdef HAS_PROTO_MESSAGE_DUMP
567  ESP_LOGVV(TAG, "on_disconnect_response: %s", msg.dump().c_str());
568 #endif
569  this->on_disconnect_response(msg);
570  break;
571  }
572  case 7: {
573  PingRequest msg;
574  msg.decode(msg_data, msg_size);
575 #ifdef HAS_PROTO_MESSAGE_DUMP
576  ESP_LOGVV(TAG, "on_ping_request: %s", msg.dump().c_str());
577 #endif
578  this->on_ping_request(msg);
579  break;
580  }
581  case 8: {
582  PingResponse msg;
583  msg.decode(msg_data, msg_size);
584 #ifdef HAS_PROTO_MESSAGE_DUMP
585  ESP_LOGVV(TAG, "on_ping_response: %s", msg.dump().c_str());
586 #endif
587  this->on_ping_response(msg);
588  break;
589  }
590  case 9: {
591  DeviceInfoRequest msg;
592  msg.decode(msg_data, msg_size);
593 #ifdef HAS_PROTO_MESSAGE_DUMP
594  ESP_LOGVV(TAG, "on_device_info_request: %s", msg.dump().c_str());
595 #endif
596  this->on_device_info_request(msg);
597  break;
598  }
599  case 11: {
601  msg.decode(msg_data, msg_size);
602 #ifdef HAS_PROTO_MESSAGE_DUMP
603  ESP_LOGVV(TAG, "on_list_entities_request: %s", msg.dump().c_str());
604 #endif
605  this->on_list_entities_request(msg);
606  break;
607  }
608  case 20: {
610  msg.decode(msg_data, msg_size);
611 #ifdef HAS_PROTO_MESSAGE_DUMP
612  ESP_LOGVV(TAG, "on_subscribe_states_request: %s", msg.dump().c_str());
613 #endif
614  this->on_subscribe_states_request(msg);
615  break;
616  }
617  case 28: {
619  msg.decode(msg_data, msg_size);
620 #ifdef HAS_PROTO_MESSAGE_DUMP
621  ESP_LOGVV(TAG, "on_subscribe_logs_request: %s", msg.dump().c_str());
622 #endif
623  this->on_subscribe_logs_request(msg);
624  break;
625  }
626  case 30: {
627 #ifdef USE_COVER
629  msg.decode(msg_data, msg_size);
630 #ifdef HAS_PROTO_MESSAGE_DUMP
631  ESP_LOGVV(TAG, "on_cover_command_request: %s", msg.dump().c_str());
632 #endif
633  this->on_cover_command_request(msg);
634 #endif
635  break;
636  }
637  case 31: {
638 #ifdef USE_FAN
639  FanCommandRequest msg;
640  msg.decode(msg_data, msg_size);
641 #ifdef HAS_PROTO_MESSAGE_DUMP
642  ESP_LOGVV(TAG, "on_fan_command_request: %s", msg.dump().c_str());
643 #endif
644  this->on_fan_command_request(msg);
645 #endif
646  break;
647  }
648  case 32: {
649 #ifdef USE_LIGHT
651  msg.decode(msg_data, msg_size);
652 #ifdef HAS_PROTO_MESSAGE_DUMP
653  ESP_LOGVV(TAG, "on_light_command_request: %s", msg.dump().c_str());
654 #endif
655  this->on_light_command_request(msg);
656 #endif
657  break;
658  }
659  case 33: {
660 #ifdef USE_SWITCH
662  msg.decode(msg_data, msg_size);
663 #ifdef HAS_PROTO_MESSAGE_DUMP
664  ESP_LOGVV(TAG, "on_switch_command_request: %s", msg.dump().c_str());
665 #endif
666  this->on_switch_command_request(msg);
667 #endif
668  break;
669  }
670  case 34: {
672  msg.decode(msg_data, msg_size);
673 #ifdef HAS_PROTO_MESSAGE_DUMP
674  ESP_LOGVV(TAG, "on_subscribe_homeassistant_services_request: %s", msg.dump().c_str());
675 #endif
677  break;
678  }
679  case 36: {
680  GetTimeRequest msg;
681  msg.decode(msg_data, msg_size);
682 #ifdef HAS_PROTO_MESSAGE_DUMP
683  ESP_LOGVV(TAG, "on_get_time_request: %s", msg.dump().c_str());
684 #endif
685  this->on_get_time_request(msg);
686  break;
687  }
688  case 37: {
689  GetTimeResponse msg;
690  msg.decode(msg_data, msg_size);
691 #ifdef HAS_PROTO_MESSAGE_DUMP
692  ESP_LOGVV(TAG, "on_get_time_response: %s", msg.dump().c_str());
693 #endif
694  this->on_get_time_response(msg);
695  break;
696  }
697  case 38: {
699  msg.decode(msg_data, msg_size);
700 #ifdef HAS_PROTO_MESSAGE_DUMP
701  ESP_LOGVV(TAG, "on_subscribe_home_assistant_states_request: %s", msg.dump().c_str());
702 #endif
704  break;
705  }
706  case 40: {
708  msg.decode(msg_data, msg_size);
709 #ifdef HAS_PROTO_MESSAGE_DUMP
710  ESP_LOGVV(TAG, "on_home_assistant_state_response: %s", msg.dump().c_str());
711 #endif
713  break;
714  }
715  case 42: {
717  msg.decode(msg_data, msg_size);
718 #ifdef HAS_PROTO_MESSAGE_DUMP
719  ESP_LOGVV(TAG, "on_execute_service_request: %s", msg.dump().c_str());
720 #endif
721  this->on_execute_service_request(msg);
722  break;
723  }
724  case 45: {
725 #ifdef USE_ESP32_CAMERA
726  CameraImageRequest msg;
727  msg.decode(msg_data, msg_size);
728 #ifdef HAS_PROTO_MESSAGE_DUMP
729  ESP_LOGVV(TAG, "on_camera_image_request: %s", msg.dump().c_str());
730 #endif
731  this->on_camera_image_request(msg);
732 #endif
733  break;
734  }
735  case 48: {
736 #ifdef USE_CLIMATE
738  msg.decode(msg_data, msg_size);
739 #ifdef HAS_PROTO_MESSAGE_DUMP
740  ESP_LOGVV(TAG, "on_climate_command_request: %s", msg.dump().c_str());
741 #endif
742  this->on_climate_command_request(msg);
743 #endif
744  break;
745  }
746  case 51: {
747 #ifdef USE_NUMBER
749  msg.decode(msg_data, msg_size);
750 #ifdef HAS_PROTO_MESSAGE_DUMP
751  ESP_LOGVV(TAG, "on_number_command_request: %s", msg.dump().c_str());
752 #endif
753  this->on_number_command_request(msg);
754 #endif
755  break;
756  }
757  case 54: {
758 #ifdef USE_SELECT
760  msg.decode(msg_data, msg_size);
761 #ifdef HAS_PROTO_MESSAGE_DUMP
762  ESP_LOGVV(TAG, "on_select_command_request: %s", msg.dump().c_str());
763 #endif
764  this->on_select_command_request(msg);
765 #endif
766  break;
767  }
768  case 60: {
769 #ifdef USE_LOCK
770  LockCommandRequest msg;
771  msg.decode(msg_data, msg_size);
772 #ifdef HAS_PROTO_MESSAGE_DUMP
773  ESP_LOGVV(TAG, "on_lock_command_request: %s", msg.dump().c_str());
774 #endif
775  this->on_lock_command_request(msg);
776 #endif
777  break;
778  }
779  case 62: {
780 #ifdef USE_BUTTON
782  msg.decode(msg_data, msg_size);
783 #ifdef HAS_PROTO_MESSAGE_DUMP
784  ESP_LOGVV(TAG, "on_button_command_request: %s", msg.dump().c_str());
785 #endif
786  this->on_button_command_request(msg);
787 #endif
788  break;
789  }
790  case 65: {
791 #ifdef USE_MEDIA_PLAYER
793  msg.decode(msg_data, msg_size);
794 #ifdef HAS_PROTO_MESSAGE_DUMP
795  ESP_LOGVV(TAG, "on_media_player_command_request: %s", msg.dump().c_str());
796 #endif
798 #endif
799  break;
800  }
801  case 66: {
802 #ifdef USE_BLUETOOTH_PROXY
804  msg.decode(msg_data, msg_size);
805 #ifdef HAS_PROTO_MESSAGE_DUMP
806  ESP_LOGVV(TAG, "on_subscribe_bluetooth_le_advertisements_request: %s", msg.dump().c_str());
807 #endif
809 #endif
810  break;
811  }
812  case 68: {
813 #ifdef USE_BLUETOOTH_PROXY
815  msg.decode(msg_data, msg_size);
816 #ifdef HAS_PROTO_MESSAGE_DUMP
817  ESP_LOGVV(TAG, "on_bluetooth_device_request: %s", msg.dump().c_str());
818 #endif
819  this->on_bluetooth_device_request(msg);
820 #endif
821  break;
822  }
823  case 70: {
824 #ifdef USE_BLUETOOTH_PROXY
826  msg.decode(msg_data, msg_size);
827 #ifdef HAS_PROTO_MESSAGE_DUMP
828  ESP_LOGVV(TAG, "on_bluetooth_gatt_get_services_request: %s", msg.dump().c_str());
829 #endif
831 #endif
832  break;
833  }
834  case 73: {
835 #ifdef USE_BLUETOOTH_PROXY
837  msg.decode(msg_data, msg_size);
838 #ifdef HAS_PROTO_MESSAGE_DUMP
839  ESP_LOGVV(TAG, "on_bluetooth_gatt_read_request: %s", msg.dump().c_str());
840 #endif
842 #endif
843  break;
844  }
845  case 75: {
846 #ifdef USE_BLUETOOTH_PROXY
848  msg.decode(msg_data, msg_size);
849 #ifdef HAS_PROTO_MESSAGE_DUMP
850  ESP_LOGVV(TAG, "on_bluetooth_gatt_write_request: %s", msg.dump().c_str());
851 #endif
853 #endif
854  break;
855  }
856  case 76: {
857 #ifdef USE_BLUETOOTH_PROXY
859  msg.decode(msg_data, msg_size);
860 #ifdef HAS_PROTO_MESSAGE_DUMP
861  ESP_LOGVV(TAG, "on_bluetooth_gatt_read_descriptor_request: %s", msg.dump().c_str());
862 #endif
864 #endif
865  break;
866  }
867  case 77: {
868 #ifdef USE_BLUETOOTH_PROXY
870  msg.decode(msg_data, msg_size);
871 #ifdef HAS_PROTO_MESSAGE_DUMP
872  ESP_LOGVV(TAG, "on_bluetooth_gatt_write_descriptor_request: %s", msg.dump().c_str());
873 #endif
875 #endif
876  break;
877  }
878  case 78: {
879 #ifdef USE_BLUETOOTH_PROXY
881  msg.decode(msg_data, msg_size);
882 #ifdef HAS_PROTO_MESSAGE_DUMP
883  ESP_LOGVV(TAG, "on_bluetooth_gatt_notify_request: %s", msg.dump().c_str());
884 #endif
886 #endif
887  break;
888  }
889  case 80: {
890 #ifdef USE_BLUETOOTH_PROXY
892  msg.decode(msg_data, msg_size);
893 #ifdef HAS_PROTO_MESSAGE_DUMP
894  ESP_LOGVV(TAG, "on_subscribe_bluetooth_connections_free_request: %s", msg.dump().c_str());
895 #endif
897 #endif
898  break;
899  }
900  case 87: {
901 #ifdef USE_BLUETOOTH_PROXY
903  msg.decode(msg_data, msg_size);
904 #ifdef HAS_PROTO_MESSAGE_DUMP
905  ESP_LOGVV(TAG, "on_unsubscribe_bluetooth_le_advertisements_request: %s", msg.dump().c_str());
906 #endif
908 #endif
909  break;
910  }
911  case 89: {
912 #ifdef USE_VOICE_ASSISTANT
914  msg.decode(msg_data, msg_size);
915 #ifdef HAS_PROTO_MESSAGE_DUMP
916  ESP_LOGVV(TAG, "on_subscribe_voice_assistant_request: %s", msg.dump().c_str());
917 #endif
919 #endif
920  break;
921  }
922  case 91: {
923 #ifdef USE_VOICE_ASSISTANT
925  msg.decode(msg_data, msg_size);
926 #ifdef HAS_PROTO_MESSAGE_DUMP
927  ESP_LOGVV(TAG, "on_voice_assistant_response: %s", msg.dump().c_str());
928 #endif
929  this->on_voice_assistant_response(msg);
930 #endif
931  break;
932  }
933  case 92: {
934 #ifdef USE_VOICE_ASSISTANT
936  msg.decode(msg_data, msg_size);
937 #ifdef HAS_PROTO_MESSAGE_DUMP
938  ESP_LOGVV(TAG, "on_voice_assistant_event_response: %s", msg.dump().c_str());
939 #endif
941 #endif
942  break;
943  }
944  case 96: {
945 #ifdef USE_ALARM_CONTROL_PANEL
947  msg.decode(msg_data, msg_size);
948 #ifdef HAS_PROTO_MESSAGE_DUMP
949  ESP_LOGVV(TAG, "on_alarm_control_panel_command_request: %s", msg.dump().c_str());
950 #endif
952 #endif
953  break;
954  }
955  case 99: {
956 #ifdef USE_TEXT
957  TextCommandRequest msg;
958  msg.decode(msg_data, msg_size);
959 #ifdef HAS_PROTO_MESSAGE_DUMP
960  ESP_LOGVV(TAG, "on_text_command_request: %s", msg.dump().c_str());
961 #endif
962  this->on_text_command_request(msg);
963 #endif
964  break;
965  }
966  case 102: {
967 #ifdef USE_DATETIME_DATE
968  DateCommandRequest msg;
969  msg.decode(msg_data, msg_size);
970 #ifdef HAS_PROTO_MESSAGE_DUMP
971  ESP_LOGVV(TAG, "on_date_command_request: %s", msg.dump().c_str());
972 #endif
973  this->on_date_command_request(msg);
974 #endif
975  break;
976  }
977  default:
978  return false;
979  }
980  return true;
981 }
982 
984  HelloResponse ret = this->hello(msg);
985  if (!this->send_hello_response(ret)) {
986  this->on_fatal_error();
987  }
988 }
990  ConnectResponse ret = this->connect(msg);
991  if (!this->send_connect_response(ret)) {
992  this->on_fatal_error();
993  }
994 }
996  DisconnectResponse ret = this->disconnect(msg);
997  if (!this->send_disconnect_response(ret)) {
998  this->on_fatal_error();
999  }
1000 }
1002  PingResponse ret = this->ping(msg);
1003  if (!this->send_ping_response(ret)) {
1004  this->on_fatal_error();
1005  }
1006 }
1008  if (!this->is_connection_setup()) {
1009  this->on_no_setup_connection();
1010  return;
1011  }
1012  DeviceInfoResponse ret = this->device_info(msg);
1013  if (!this->send_device_info_response(ret)) {
1014  this->on_fatal_error();
1015  }
1016 }
1018  if (!this->is_connection_setup()) {
1019  this->on_no_setup_connection();
1020  return;
1021  }
1022  if (!this->is_authenticated()) {
1023  this->on_unauthenticated_access();
1024  return;
1025  }
1026  this->list_entities(msg);
1027 }
1029  if (!this->is_connection_setup()) {
1030  this->on_no_setup_connection();
1031  return;
1032  }
1033  if (!this->is_authenticated()) {
1034  this->on_unauthenticated_access();
1035  return;
1036  }
1037  this->subscribe_states(msg);
1038 }
1040  if (!this->is_connection_setup()) {
1041  this->on_no_setup_connection();
1042  return;
1043  }
1044  if (!this->is_authenticated()) {
1045  this->on_unauthenticated_access();
1046  return;
1047  }
1048  this->subscribe_logs(msg);
1049 }
1052  if (!this->is_connection_setup()) {
1053  this->on_no_setup_connection();
1054  return;
1055  }
1056  if (!this->is_authenticated()) {
1057  this->on_unauthenticated_access();
1058  return;
1059  }
1060  this->subscribe_homeassistant_services(msg);
1061 }
1063  if (!this->is_connection_setup()) {
1064  this->on_no_setup_connection();
1065  return;
1066  }
1067  if (!this->is_authenticated()) {
1068  this->on_unauthenticated_access();
1069  return;
1070  }
1071  this->subscribe_home_assistant_states(msg);
1072 }
1074  if (!this->is_connection_setup()) {
1075  this->on_no_setup_connection();
1076  return;
1077  }
1078  GetTimeResponse ret = this->get_time(msg);
1079  if (!this->send_get_time_response(ret)) {
1080  this->on_fatal_error();
1081  }
1082 }
1084  if (!this->is_connection_setup()) {
1085  this->on_no_setup_connection();
1086  return;
1087  }
1088  if (!this->is_authenticated()) {
1089  this->on_unauthenticated_access();
1090  return;
1091  }
1092  this->execute_service(msg);
1093 }
1094 #ifdef USE_COVER
1096  if (!this->is_connection_setup()) {
1097  this->on_no_setup_connection();
1098  return;
1099  }
1100  if (!this->is_authenticated()) {
1101  this->on_unauthenticated_access();
1102  return;
1103  }
1104  this->cover_command(msg);
1105 }
1106 #endif
1107 #ifdef USE_FAN
1109  if (!this->is_connection_setup()) {
1110  this->on_no_setup_connection();
1111  return;
1112  }
1113  if (!this->is_authenticated()) {
1114  this->on_unauthenticated_access();
1115  return;
1116  }
1117  this->fan_command(msg);
1118 }
1119 #endif
1120 #ifdef USE_LIGHT
1122  if (!this->is_connection_setup()) {
1123  this->on_no_setup_connection();
1124  return;
1125  }
1126  if (!this->is_authenticated()) {
1127  this->on_unauthenticated_access();
1128  return;
1129  }
1130  this->light_command(msg);
1131 }
1132 #endif
1133 #ifdef USE_SWITCH
1135  if (!this->is_connection_setup()) {
1136  this->on_no_setup_connection();
1137  return;
1138  }
1139  if (!this->is_authenticated()) {
1140  this->on_unauthenticated_access();
1141  return;
1142  }
1143  this->switch_command(msg);
1144 }
1145 #endif
1146 #ifdef USE_ESP32_CAMERA
1148  if (!this->is_connection_setup()) {
1149  this->on_no_setup_connection();
1150  return;
1151  }
1152  if (!this->is_authenticated()) {
1153  this->on_unauthenticated_access();
1154  return;
1155  }
1156  this->camera_image(msg);
1157 }
1158 #endif
1159 #ifdef USE_CLIMATE
1161  if (!this->is_connection_setup()) {
1162  this->on_no_setup_connection();
1163  return;
1164  }
1165  if (!this->is_authenticated()) {
1166  this->on_unauthenticated_access();
1167  return;
1168  }
1169  this->climate_command(msg);
1170 }
1171 #endif
1172 #ifdef USE_NUMBER
1174  if (!this->is_connection_setup()) {
1175  this->on_no_setup_connection();
1176  return;
1177  }
1178  if (!this->is_authenticated()) {
1179  this->on_unauthenticated_access();
1180  return;
1181  }
1182  this->number_command(msg);
1183 }
1184 #endif
1185 #ifdef USE_TEXT
1187  if (!this->is_connection_setup()) {
1188  this->on_no_setup_connection();
1189  return;
1190  }
1191  if (!this->is_authenticated()) {
1192  this->on_unauthenticated_access();
1193  return;
1194  }
1195  this->text_command(msg);
1196 }
1197 #endif
1198 #ifdef USE_SELECT
1200  if (!this->is_connection_setup()) {
1201  this->on_no_setup_connection();
1202  return;
1203  }
1204  if (!this->is_authenticated()) {
1205  this->on_unauthenticated_access();
1206  return;
1207  }
1208  this->select_command(msg);
1209 }
1210 #endif
1211 #ifdef USE_BUTTON
1213  if (!this->is_connection_setup()) {
1214  this->on_no_setup_connection();
1215  return;
1216  }
1217  if (!this->is_authenticated()) {
1218  this->on_unauthenticated_access();
1219  return;
1220  }
1221  this->button_command(msg);
1222 }
1223 #endif
1224 #ifdef USE_LOCK
1226  if (!this->is_connection_setup()) {
1227  this->on_no_setup_connection();
1228  return;
1229  }
1230  if (!this->is_authenticated()) {
1231  this->on_unauthenticated_access();
1232  return;
1233  }
1234  this->lock_command(msg);
1235 }
1236 #endif
1237 #ifdef USE_MEDIA_PLAYER
1239  if (!this->is_connection_setup()) {
1240  this->on_no_setup_connection();
1241  return;
1242  }
1243  if (!this->is_authenticated()) {
1244  this->on_unauthenticated_access();
1245  return;
1246  }
1247  this->media_player_command(msg);
1248 }
1249 #endif
1250 #ifdef USE_DATETIME_DATE
1252  if (!this->is_connection_setup()) {
1253  this->on_no_setup_connection();
1254  return;
1255  }
1256  if (!this->is_authenticated()) {
1257  this->on_unauthenticated_access();
1258  return;
1259  }
1260  this->date_command(msg);
1261 }
1262 #endif
1263 #ifdef USE_BLUETOOTH_PROXY
1266  if (!this->is_connection_setup()) {
1267  this->on_no_setup_connection();
1268  return;
1269  }
1270  if (!this->is_authenticated()) {
1271  this->on_unauthenticated_access();
1272  return;
1273  }
1274  this->subscribe_bluetooth_le_advertisements(msg);
1275 }
1276 #endif
1277 #ifdef USE_BLUETOOTH_PROXY
1279  if (!this->is_connection_setup()) {
1280  this->on_no_setup_connection();
1281  return;
1282  }
1283  if (!this->is_authenticated()) {
1284  this->on_unauthenticated_access();
1285  return;
1286  }
1287  this->bluetooth_device_request(msg);
1288 }
1289 #endif
1290 #ifdef USE_BLUETOOTH_PROXY
1292  if (!this->is_connection_setup()) {
1293  this->on_no_setup_connection();
1294  return;
1295  }
1296  if (!this->is_authenticated()) {
1297  this->on_unauthenticated_access();
1298  return;
1299  }
1300  this->bluetooth_gatt_get_services(msg);
1301 }
1302 #endif
1303 #ifdef USE_BLUETOOTH_PROXY
1305  if (!this->is_connection_setup()) {
1306  this->on_no_setup_connection();
1307  return;
1308  }
1309  if (!this->is_authenticated()) {
1310  this->on_unauthenticated_access();
1311  return;
1312  }
1313  this->bluetooth_gatt_read(msg);
1314 }
1315 #endif
1316 #ifdef USE_BLUETOOTH_PROXY
1318  if (!this->is_connection_setup()) {
1319  this->on_no_setup_connection();
1320  return;
1321  }
1322  if (!this->is_authenticated()) {
1323  this->on_unauthenticated_access();
1324  return;
1325  }
1326  this->bluetooth_gatt_write(msg);
1327 }
1328 #endif
1329 #ifdef USE_BLUETOOTH_PROXY
1331  if (!this->is_connection_setup()) {
1332  this->on_no_setup_connection();
1333  return;
1334  }
1335  if (!this->is_authenticated()) {
1336  this->on_unauthenticated_access();
1337  return;
1338  }
1339  this->bluetooth_gatt_read_descriptor(msg);
1340 }
1341 #endif
1342 #ifdef USE_BLUETOOTH_PROXY
1344  if (!this->is_connection_setup()) {
1345  this->on_no_setup_connection();
1346  return;
1347  }
1348  if (!this->is_authenticated()) {
1349  this->on_unauthenticated_access();
1350  return;
1351  }
1352  this->bluetooth_gatt_write_descriptor(msg);
1353 }
1354 #endif
1355 #ifdef USE_BLUETOOTH_PROXY
1357  if (!this->is_connection_setup()) {
1358  this->on_no_setup_connection();
1359  return;
1360  }
1361  if (!this->is_authenticated()) {
1362  this->on_unauthenticated_access();
1363  return;
1364  }
1365  this->bluetooth_gatt_notify(msg);
1366 }
1367 #endif
1368 #ifdef USE_BLUETOOTH_PROXY
1371  if (!this->is_connection_setup()) {
1372  this->on_no_setup_connection();
1373  return;
1374  }
1375  if (!this->is_authenticated()) {
1376  this->on_unauthenticated_access();
1377  return;
1378  }
1379  BluetoothConnectionsFreeResponse ret = this->subscribe_bluetooth_connections_free(msg);
1380  if (!this->send_bluetooth_connections_free_response(ret)) {
1381  this->on_fatal_error();
1382  }
1383 }
1384 #endif
1385 #ifdef USE_BLUETOOTH_PROXY
1388  if (!this->is_connection_setup()) {
1389  this->on_no_setup_connection();
1390  return;
1391  }
1392  if (!this->is_authenticated()) {
1393  this->on_unauthenticated_access();
1394  return;
1395  }
1396  this->unsubscribe_bluetooth_le_advertisements(msg);
1397 }
1398 #endif
1399 #ifdef USE_VOICE_ASSISTANT
1401  if (!this->is_connection_setup()) {
1402  this->on_no_setup_connection();
1403  return;
1404  }
1405  if (!this->is_authenticated()) {
1406  this->on_unauthenticated_access();
1407  return;
1408  }
1409  this->subscribe_voice_assistant(msg);
1410 }
1411 #endif
1412 #ifdef USE_ALARM_CONTROL_PANEL
1414  if (!this->is_connection_setup()) {
1415  this->on_no_setup_connection();
1416  return;
1417  }
1418  if (!this->is_authenticated()) {
1419  this->on_unauthenticated_access();
1420  return;
1421  }
1422  this->alarm_control_panel_command(msg);
1423 }
1424 #endif
1425 
1426 } // namespace api
1427 } // namespace esphome
void on_text_command_request(const TextCommandRequest &msg) override
bool send_list_entities_binary_sensor_response(const ListEntitiesBinarySensorResponse &msg)
void on_unsubscribe_bluetooth_le_advertisements_request(const UnsubscribeBluetoothLEAdvertisementsRequest &msg) override
virtual void on_climate_command_request(const ClimateCommandRequest &value)
bool send_date_state_response(const DateStateResponse &msg)
virtual void on_subscribe_home_assistant_states_request(const SubscribeHomeAssistantStatesRequest &value)
bool send_fan_state_response(const FanStateResponse &msg)
bool send_ping_response(const PingResponse &msg)
virtual void on_subscribe_homeassistant_services_request(const SubscribeHomeassistantServicesRequest &value)
bool send_bluetooth_gatt_read_response(const BluetoothGATTReadResponse &msg)
virtual void on_hello_request(const HelloRequest &value)
void on_device_info_request(const DeviceInfoRequest &msg) override
bool send_text_state_response(const TextStateResponse &msg)
bool send_get_time_response(const GetTimeResponse &msg)
bool send_ping_request(const PingRequest &msg)
virtual void on_unsubscribe_bluetooth_le_advertisements_request(const UnsubscribeBluetoothLEAdvertisementsRequest &value)
void on_bluetooth_gatt_get_services_request(const BluetoothGATTGetServicesRequest &msg) override
virtual void on_bluetooth_device_request(const BluetoothDeviceRequest &value)
bool send_bluetooth_gatt_notify_data_response(const BluetoothGATTNotifyDataResponse &msg)
virtual void on_voice_assistant_response(const VoiceAssistantResponse &value)
virtual void on_no_setup_connection()=0
void on_subscribe_home_assistant_states_request(const SubscribeHomeAssistantStatesRequest &msg) override
virtual void on_ping_response(const PingResponse &value)
void on_bluetooth_gatt_write_request(const BluetoothGATTWriteRequest &msg) override
virtual void on_light_command_request(const LightCommandRequest &value)
bool send_subscribe_logs_response(const SubscribeLogsResponse &msg)
std::string dump() const
Definition: proto.cpp:84
bool send_climate_state_response(const ClimateStateResponse &msg)
bool send_binary_sensor_state_response(const BinarySensorStateResponse &msg)
void on_cover_command_request(const CoverCommandRequest &msg) override
virtual void on_fatal_error()=0
bool send_bluetooth_gatt_error_response(const BluetoothGATTErrorResponse &msg)
void on_fan_command_request(const FanCommandRequest &msg) override
void on_subscribe_homeassistant_services_request(const SubscribeHomeassistantServicesRequest &msg) override
void decode(const uint8_t *buffer, size_t length)
Definition: proto.cpp:10
bool send_list_entities_fan_response(const ListEntitiesFanResponse &msg)
bool send_number_state_response(const NumberStateResponse &msg)
virtual void on_home_assistant_state_response(const HomeAssistantStateResponse &value)
bool send_list_entities_select_response(const ListEntitiesSelectResponse &msg)
bool send_homeassistant_service_response(const HomeassistantServiceResponse &msg)
void on_date_command_request(const DateCommandRequest &msg) override
bool send_bluetooth_gatt_write_response(const BluetoothGATTWriteResponse &msg)
virtual void on_bluetooth_gatt_write_request(const BluetoothGATTWriteRequest &value)
bool send_bluetooth_device_connection_response(const BluetoothDeviceConnectionResponse &msg)
virtual void on_connect_request(const ConnectRequest &value)
bool send_list_entities_done_response(const ListEntitiesDoneResponse &msg)
bool send_device_info_response(const DeviceInfoResponse &msg)
void on_switch_command_request(const SwitchCommandRequest &msg) override
void on_bluetooth_gatt_read_descriptor_request(const BluetoothGATTReadDescriptorRequest &msg) override
void on_button_command_request(const ButtonCommandRequest &msg) override
void on_get_time_request(const GetTimeRequest &msg) override
virtual void on_subscribe_voice_assistant_request(const SubscribeVoiceAssistantRequest &value)
bool send_connect_response(const ConnectResponse &msg)
virtual void on_subscribe_bluetooth_le_advertisements_request(const SubscribeBluetoothLEAdvertisementsRequest &value)
void on_disconnect_request(const DisconnectRequest &msg) override
virtual void on_list_entities_request(const ListEntitiesRequest &value)
virtual void on_disconnect_request(const DisconnectRequest &value)
virtual void on_text_command_request(const TextCommandRequest &value)
virtual void on_select_command_request(const SelectCommandRequest &value)
virtual void on_disconnect_response(const DisconnectResponse &value)
virtual void on_bluetooth_gatt_get_services_request(const BluetoothGATTGetServicesRequest &value)
void on_ping_request(const PingRequest &msg) override
bool send_bluetooth_le_advertisement_response(const BluetoothLEAdvertisementResponse &msg)
virtual void on_camera_image_request(const CameraImageRequest &value)
bool send_list_entities_services_response(const ListEntitiesServicesResponse &msg)
virtual void on_lock_command_request(const LockCommandRequest &value)
bool send_bluetooth_gatt_get_services_response(const BluetoothGATTGetServicesResponse &msg)
void on_media_player_command_request(const MediaPlayerCommandRequest &msg) override
virtual void on_media_player_command_request(const MediaPlayerCommandRequest &value)
bool send_list_entities_text_sensor_response(const ListEntitiesTextSensorResponse &msg)
void on_subscribe_bluetooth_le_advertisements_request(const SubscribeBluetoothLEAdvertisementsRequest &msg) override
virtual void on_subscribe_bluetooth_connections_free_request(const SubscribeBluetoothConnectionsFreeRequest &value)
void on_execute_service_request(const ExecuteServiceRequest &msg) override
bool send_bluetooth_device_unpairing_response(const BluetoothDeviceUnpairingResponse &msg)
void on_connect_request(const ConnectRequest &msg) override
virtual void on_alarm_control_panel_command_request(const AlarmControlPanelCommandRequest &value)
bool send_list_entities_light_response(const ListEntitiesLightResponse &msg)
virtual void on_cover_command_request(const CoverCommandRequest &value)
bool send_text_sensor_state_response(const TextSensorStateResponse &msg)
virtual void on_voice_assistant_event_response(const VoiceAssistantEventResponse &value)
bool send_bluetooth_gatt_notify_response(const BluetoothGATTNotifyResponse &msg)
bool send_list_entities_cover_response(const ListEntitiesCoverResponse &msg)
bool send_disconnect_request(const DisconnectRequest &msg)
void on_subscribe_voice_assistant_request(const SubscribeVoiceAssistantRequest &msg) override
bool send_list_entities_camera_response(const ListEntitiesCameraResponse &msg)
bool send_list_entities_button_response(const ListEntitiesButtonResponse &msg)
bool send_list_entities_media_player_response(const ListEntitiesMediaPlayerResponse &msg)
void on_bluetooth_gatt_read_request(const BluetoothGATTReadRequest &msg) override
bool send_voice_assistant_request(const VoiceAssistantRequest &msg)
virtual void on_date_command_request(const DateCommandRequest &value)
void on_subscribe_bluetooth_connections_free_request(const SubscribeBluetoothConnectionsFreeRequest &msg) override
virtual void on_execute_service_request(const ExecuteServiceRequest &value)
void on_light_command_request(const LightCommandRequest &msg) override
void on_list_entities_request(const ListEntitiesRequest &msg) override
bool send_list_entities_number_response(const ListEntitiesNumberResponse &msg)
bool send_switch_state_response(const SwitchStateResponse &msg)
bool read_message(uint32_t msg_size, uint32_t msg_type, uint8_t *msg_data) override
void on_select_command_request(const SelectCommandRequest &msg) override
void on_subscribe_logs_request(const SubscribeLogsRequest &msg) override
bool send_camera_image_response(const CameraImageResponse &msg)
bool send_list_entities_lock_response(const ListEntitiesLockResponse &msg)
void on_bluetooth_gatt_write_descriptor_request(const BluetoothGATTWriteDescriptorRequest &msg) override
bool send_list_entities_sensor_response(const ListEntitiesSensorResponse &msg)
bool send_list_entities_alarm_control_panel_response(const ListEntitiesAlarmControlPanelResponse &msg)
virtual void on_subscribe_states_request(const SubscribeStatesRequest &value)
void on_bluetooth_gatt_notify_request(const BluetoothGATTNotifyRequest &msg) override
bool send_select_state_response(const SelectStateResponse &msg)
bool send_bluetooth_connections_free_response(const BluetoothConnectionsFreeResponse &msg)
virtual void on_bluetooth_gatt_read_descriptor_request(const BluetoothGATTReadDescriptorRequest &value)
void on_subscribe_states_request(const SubscribeStatesRequest &msg) override
void on_camera_image_request(const CameraImageRequest &msg) override
virtual void on_bluetooth_gatt_write_descriptor_request(const BluetoothGATTWriteDescriptorRequest &value)
bool send_light_state_response(const LightStateResponse &msg)
virtual void on_bluetooth_gatt_notify_request(const BluetoothGATTNotifyRequest &value)
virtual void on_number_command_request(const NumberCommandRequest &value)
bool send_media_player_state_response(const MediaPlayerStateResponse &msg)
bool send_subscribe_home_assistant_state_response(const SubscribeHomeAssistantStateResponse &msg)
bool send_get_time_request(const GetTimeRequest &msg)
virtual bool is_authenticated()=0
bool send_list_entities_switch_response(const ListEntitiesSwitchResponse &msg)
virtual void on_get_time_request(const GetTimeRequest &value)
void on_alarm_control_panel_command_request(const AlarmControlPanelCommandRequest &msg) override
bool send_list_entities_date_response(const ListEntitiesDateResponse &msg)
virtual void on_unauthenticated_access()=0
virtual void on_fan_command_request(const FanCommandRequest &value)
This is a workaround until we can figure out a way to get the tflite-micro idf component code availab...
Definition: a01nyub.cpp:7
bool send_sensor_state_response(const SensorStateResponse &msg)
bool send_cover_state_response(const CoverStateResponse &msg)
bool send_list_entities_text_response(const ListEntitiesTextResponse &msg)
bool send_hello_response(const HelloResponse &msg)
bool send_alarm_control_panel_state_response(const AlarmControlPanelStateResponse &msg)
bool send_list_entities_climate_response(const ListEntitiesClimateResponse &msg)
bool send_disconnect_response(const DisconnectResponse &msg)
void on_climate_command_request(const ClimateCommandRequest &msg) override
bool send_bluetooth_device_pairing_response(const BluetoothDevicePairingResponse &msg)
bool send_bluetooth_gatt_get_services_done_response(const BluetoothGATTGetServicesDoneResponse &msg)
virtual void on_button_command_request(const ButtonCommandRequest &value)
void on_lock_command_request(const LockCommandRequest &msg) override
bool send_lock_state_response(const LockStateResponse &msg)
bool send_bluetooth_device_clear_cache_response(const BluetoothDeviceClearCacheResponse &msg)
void on_bluetooth_device_request(const BluetoothDeviceRequest &msg) override
virtual void on_device_info_request(const DeviceInfoRequest &value)
bool send_bluetooth_le_raw_advertisements_response(const BluetoothLERawAdvertisementsResponse &msg)
virtual void on_switch_command_request(const SwitchCommandRequest &value)
virtual void on_get_time_response(const GetTimeResponse &value)
virtual void on_bluetooth_gatt_read_request(const BluetoothGATTReadRequest &value)
virtual bool is_connection_setup()=0
void on_number_command_request(const NumberCommandRequest &msg) override
virtual void on_ping_request(const PingRequest &value)
void on_hello_request(const HelloRequest &msg) override
virtual void on_subscribe_logs_request(const SubscribeLogsRequest &value)