ESPHome 2026.8.0-dev
Loading...
Searching...
No Matches
api_pb2_dump.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.h"
6
7#include <cinttypes>
8
9#ifdef HAS_PROTO_MESSAGE_DUMP
10
11namespace esphome::api {
12
13#ifdef USE_ESP8266
14// Out-of-line to avoid inlining strlen_P/memcpy_P at every call site
15void DumpBuffer::append_p_esp8266(const char *str) {
16 size_t len = strlen_P(str);
17 size_t space = CAPACITY - 1 - pos_;
18 if (len > space)
19 len = space;
20 if (len > 0) {
21 memcpy_P(buf_ + pos_, str, len);
22 pos_ += len;
23 buf_[pos_] = '\0';
24 }
25}
26#endif
27
28// Helper function to append a quoted string, handling empty StringRef
29static inline void append_quoted_string(DumpBuffer &out, const StringRef &ref) {
30 out.append("'");
31 if (!ref.empty()) {
32 out.append(ref.c_str(), ref.size());
33 }
34 out.append("'");
35}
36
37// Common helpers for dump_field functions
38// field_name is a PROGMEM pointer (flash on ESP8266, regular pointer on other platforms)
39static inline void append_field_prefix(DumpBuffer &out, const char *field_name, int indent) {
40 out.append(indent, ' ').append_p(field_name).append(": ");
41}
42
43static inline void append_uint(DumpBuffer &out, uint32_t value) {
44 out.set_pos(buf_append_printf(out.data(), DumpBuffer::CAPACITY, out.pos(), "%" PRIu32, value));
45}
46
47// RAII helper for message dump formatting
48// message_name is a PROGMEM pointer (flash on ESP8266, regular pointer on other platforms)
49class MessageDumpHelper {
50 public:
51 MessageDumpHelper(DumpBuffer &out, const char *message_name) : out_(out) {
52 out_.append_p(message_name);
53 out_.append(" {\n");
54 }
55 ~MessageDumpHelper() { out_.append(" }"); }
56
57 private:
58 DumpBuffer &out_;
59};
60
61// Helper functions to reduce code duplication in dump methods
62// field_name parameters are PROGMEM pointers (flash on ESP8266, regular pointers on other platforms)
63// Not all overloads are used in every build (depends on enabled components)
64#pragma GCC diagnostic push
65#pragma GCC diagnostic ignored "-Wunused-function"
66static void dump_field(DumpBuffer &out, const char *field_name, int32_t value, int indent = 2) {
67 append_field_prefix(out, field_name, indent);
68 out.set_pos(buf_append_printf(out.data(), DumpBuffer::CAPACITY, out.pos(), "%" PRId32 "\n", value));
69}
70
71static void dump_field(DumpBuffer &out, const char *field_name, uint32_t value, int indent = 2) {
72 append_field_prefix(out, field_name, indent);
73 out.set_pos(buf_append_printf(out.data(), DumpBuffer::CAPACITY, out.pos(), "%" PRIu32 "\n", value));
74}
75
76static void dump_field(DumpBuffer &out, const char *field_name, float value, int indent = 2) {
77 append_field_prefix(out, field_name, indent);
78 out.set_pos(buf_append_printf(out.data(), DumpBuffer::CAPACITY, out.pos(), "%g\n", value));
79}
80
81static void dump_field(DumpBuffer &out, const char *field_name, uint64_t value, int indent = 2) {
82 append_field_prefix(out, field_name, indent);
83 out.set_pos(buf_append_printf(out.data(), DumpBuffer::CAPACITY, out.pos(), "%" PRIu64 "\n", value));
84}
85
86static void dump_field(DumpBuffer &out, const char *field_name, bool value, int indent = 2) {
87 append_field_prefix(out, field_name, indent);
88 out.append(YESNO(value));
89 out.append("\n");
90}
91
92static void dump_field(DumpBuffer &out, const char *field_name, const std::string &value, int indent = 2) {
93 append_field_prefix(out, field_name, indent);
94 out.append("'").append(value.c_str()).append("'");
95 out.append("\n");
96}
97
98static void dump_field(DumpBuffer &out, const char *field_name, StringRef value, int indent = 2) {
99 append_field_prefix(out, field_name, indent);
100 append_quoted_string(out, value);
101 out.append("\n");
102}
103
104static void dump_field(DumpBuffer &out, const char *field_name, const char *value, int indent = 2) {
105 append_field_prefix(out, field_name, indent);
106 out.append("'").append(value).append("'");
107 out.append("\n");
108}
109
110// proto_enum_to_string returns PROGMEM pointers, so use append_p
111template<typename T> static void dump_field(DumpBuffer &out, const char *field_name, T value, int indent = 2) {
112 append_field_prefix(out, field_name, indent);
113 out.append_p(proto_enum_to_string<T>(value));
114 out.append("\n");
115}
116
117// Helper for bytes fields - uses stack buffer to avoid heap allocation
118// Buffer sized for 160 bytes of data (480 chars with separators) to fit typical log buffer
119// field_name is a PROGMEM pointer (flash on ESP8266, regular pointer on other platforms)
120static void dump_bytes_field(DumpBuffer &out, const char *field_name, const uint8_t *data, size_t len, int indent = 2) {
121 char hex_buf[format_hex_pretty_size(160)];
122 append_field_prefix(out, field_name, indent);
123 format_hex_pretty_to(hex_buf, data, len);
124 out.append(hex_buf).append("\n");
125}
126#pragma GCC diagnostic pop
127
129 switch (value) {
131 return ESPHOME_PSTR("DISCONNECT_REASON_UNSPECIFIED");
133 return ESPHOME_PSTR("DISCONNECT_REASON_PROVISIONING_CLOSED");
134 default:
135 return ESPHOME_PSTR("UNKNOWN");
136 }
137}
139 switch (value) {
141 return ESPHOME_PSTR("SERIAL_PROXY_PORT_TYPE_TTL");
143 return ESPHOME_PSTR("SERIAL_PROXY_PORT_TYPE_RS232");
145 return ESPHOME_PSTR("SERIAL_PROXY_PORT_TYPE_RS485");
146 default:
147 return ESPHOME_PSTR("UNKNOWN");
148 }
149}
151 switch (value) {
153 return ESPHOME_PSTR("ENTITY_CATEGORY_NONE");
155 return ESPHOME_PSTR("ENTITY_CATEGORY_CONFIG");
157 return ESPHOME_PSTR("ENTITY_CATEGORY_DIAGNOSTIC");
158 default:
159 return ESPHOME_PSTR("UNKNOWN");
160 }
161}
162#ifdef USE_COVER
164 switch (value) {
166 return ESPHOME_PSTR("COVER_OPERATION_IDLE");
168 return ESPHOME_PSTR("COVER_OPERATION_IS_OPENING");
170 return ESPHOME_PSTR("COVER_OPERATION_IS_CLOSING");
171 default:
172 return ESPHOME_PSTR("UNKNOWN");
173 }
174}
175#endif
176#ifdef USE_FAN
178 switch (value) {
180 return ESPHOME_PSTR("FAN_DIRECTION_FORWARD");
182 return ESPHOME_PSTR("FAN_DIRECTION_REVERSE");
183 default:
184 return ESPHOME_PSTR("UNKNOWN");
185 }
186}
187#endif
188#ifdef USE_LIGHT
190 switch (value) {
192 return ESPHOME_PSTR("COLOR_MODE_UNKNOWN");
194 return ESPHOME_PSTR("COLOR_MODE_ON_OFF");
196 return ESPHOME_PSTR("COLOR_MODE_LEGACY_BRIGHTNESS");
198 return ESPHOME_PSTR("COLOR_MODE_BRIGHTNESS");
200 return ESPHOME_PSTR("COLOR_MODE_WHITE");
202 return ESPHOME_PSTR("COLOR_MODE_COLOR_TEMPERATURE");
204 return ESPHOME_PSTR("COLOR_MODE_COLD_WARM_WHITE");
206 return ESPHOME_PSTR("COLOR_MODE_RGB");
208 return ESPHOME_PSTR("COLOR_MODE_RGB_WHITE");
210 return ESPHOME_PSTR("COLOR_MODE_RGB_COLOR_TEMPERATURE");
212 return ESPHOME_PSTR("COLOR_MODE_RGB_COLD_WARM_WHITE");
213 default:
214 return ESPHOME_PSTR("UNKNOWN");
215 }
216}
217#endif
218#ifdef USE_SENSOR
220 switch (value) {
222 return ESPHOME_PSTR("STATE_CLASS_NONE");
224 return ESPHOME_PSTR("STATE_CLASS_MEASUREMENT");
226 return ESPHOME_PSTR("STATE_CLASS_TOTAL_INCREASING");
228 return ESPHOME_PSTR("STATE_CLASS_TOTAL");
230 return ESPHOME_PSTR("STATE_CLASS_MEASUREMENT_ANGLE");
231 default:
232 return ESPHOME_PSTR("UNKNOWN");
233 }
234}
235#endif
237 switch (value) {
239 return ESPHOME_PSTR("LOG_LEVEL_NONE");
241 return ESPHOME_PSTR("LOG_LEVEL_ERROR");
243 return ESPHOME_PSTR("LOG_LEVEL_WARN");
245 return ESPHOME_PSTR("LOG_LEVEL_INFO");
247 return ESPHOME_PSTR("LOG_LEVEL_CONFIG");
249 return ESPHOME_PSTR("LOG_LEVEL_DEBUG");
251 return ESPHOME_PSTR("LOG_LEVEL_VERBOSE");
253 return ESPHOME_PSTR("LOG_LEVEL_VERY_VERBOSE");
254 default:
255 return ESPHOME_PSTR("UNKNOWN");
256 }
257}
259 switch (value) {
261 return ESPHOME_PSTR("DST_RULE_TYPE_NONE");
263 return ESPHOME_PSTR("DST_RULE_TYPE_MONTH_WEEK_DAY");
265 return ESPHOME_PSTR("DST_RULE_TYPE_JULIAN_NO_LEAP");
267 return ESPHOME_PSTR("DST_RULE_TYPE_DAY_OF_YEAR");
268 default:
269 return ESPHOME_PSTR("UNKNOWN");
270 }
271}
272#ifdef USE_API_USER_DEFINED_ACTIONS
274 switch (value) {
276 return ESPHOME_PSTR("SERVICE_ARG_TYPE_BOOL");
278 return ESPHOME_PSTR("SERVICE_ARG_TYPE_INT");
280 return ESPHOME_PSTR("SERVICE_ARG_TYPE_FLOAT");
282 return ESPHOME_PSTR("SERVICE_ARG_TYPE_STRING");
284 return ESPHOME_PSTR("SERVICE_ARG_TYPE_BOOL_ARRAY");
286 return ESPHOME_PSTR("SERVICE_ARG_TYPE_INT_ARRAY");
288 return ESPHOME_PSTR("SERVICE_ARG_TYPE_FLOAT_ARRAY");
290 return ESPHOME_PSTR("SERVICE_ARG_TYPE_STRING_ARRAY");
291 default:
292 return ESPHOME_PSTR("UNKNOWN");
293 }
294}
296 switch (value) {
298 return ESPHOME_PSTR("SUPPORTS_RESPONSE_NONE");
300 return ESPHOME_PSTR("SUPPORTS_RESPONSE_OPTIONAL");
302 return ESPHOME_PSTR("SUPPORTS_RESPONSE_ONLY");
304 return ESPHOME_PSTR("SUPPORTS_RESPONSE_STATUS");
305 default:
306 return ESPHOME_PSTR("UNKNOWN");
307 }
308}
309#endif
311 switch (value) {
313 return ESPHOME_PSTR("TEMPERATURE_UNIT_CELSIUS");
315 return ESPHOME_PSTR("TEMPERATURE_UNIT_FAHRENHEIT");
317 return ESPHOME_PSTR("TEMPERATURE_UNIT_KELVIN");
318 default:
319 return ESPHOME_PSTR("UNKNOWN");
320 }
321}
322#ifdef USE_CLIMATE
324 switch (value) {
326 return ESPHOME_PSTR("CLIMATE_MODE_OFF");
328 return ESPHOME_PSTR("CLIMATE_MODE_HEAT_COOL");
330 return ESPHOME_PSTR("CLIMATE_MODE_COOL");
332 return ESPHOME_PSTR("CLIMATE_MODE_HEAT");
334 return ESPHOME_PSTR("CLIMATE_MODE_FAN_ONLY");
336 return ESPHOME_PSTR("CLIMATE_MODE_DRY");
338 return ESPHOME_PSTR("CLIMATE_MODE_AUTO");
339 default:
340 return ESPHOME_PSTR("UNKNOWN");
341 }
342}
344 switch (value) {
346 return ESPHOME_PSTR("CLIMATE_FAN_ON");
348 return ESPHOME_PSTR("CLIMATE_FAN_OFF");
350 return ESPHOME_PSTR("CLIMATE_FAN_AUTO");
352 return ESPHOME_PSTR("CLIMATE_FAN_LOW");
354 return ESPHOME_PSTR("CLIMATE_FAN_MEDIUM");
356 return ESPHOME_PSTR("CLIMATE_FAN_HIGH");
358 return ESPHOME_PSTR("CLIMATE_FAN_MIDDLE");
360 return ESPHOME_PSTR("CLIMATE_FAN_FOCUS");
362 return ESPHOME_PSTR("CLIMATE_FAN_DIFFUSE");
364 return ESPHOME_PSTR("CLIMATE_FAN_QUIET");
365 default:
366 return ESPHOME_PSTR("UNKNOWN");
367 }
368}
370 switch (value) {
372 return ESPHOME_PSTR("CLIMATE_SWING_OFF");
374 return ESPHOME_PSTR("CLIMATE_SWING_BOTH");
376 return ESPHOME_PSTR("CLIMATE_SWING_VERTICAL");
378 return ESPHOME_PSTR("CLIMATE_SWING_HORIZONTAL");
379 default:
380 return ESPHOME_PSTR("UNKNOWN");
381 }
382}
384 switch (value) {
386 return ESPHOME_PSTR("CLIMATE_ACTION_OFF");
388 return ESPHOME_PSTR("CLIMATE_ACTION_COOLING");
390 return ESPHOME_PSTR("CLIMATE_ACTION_HEATING");
392 return ESPHOME_PSTR("CLIMATE_ACTION_IDLE");
394 return ESPHOME_PSTR("CLIMATE_ACTION_DRYING");
396 return ESPHOME_PSTR("CLIMATE_ACTION_FAN");
398 return ESPHOME_PSTR("CLIMATE_ACTION_DEFROSTING");
399 default:
400 return ESPHOME_PSTR("UNKNOWN");
401 }
402}
404 switch (value) {
406 return ESPHOME_PSTR("CLIMATE_PRESET_NONE");
408 return ESPHOME_PSTR("CLIMATE_PRESET_HOME");
410 return ESPHOME_PSTR("CLIMATE_PRESET_AWAY");
412 return ESPHOME_PSTR("CLIMATE_PRESET_BOOST");
414 return ESPHOME_PSTR("CLIMATE_PRESET_COMFORT");
416 return ESPHOME_PSTR("CLIMATE_PRESET_ECO");
418 return ESPHOME_PSTR("CLIMATE_PRESET_SLEEP");
420 return ESPHOME_PSTR("CLIMATE_PRESET_ACTIVITY");
421 default:
422 return ESPHOME_PSTR("UNKNOWN");
423 }
424}
425#endif
426#ifdef USE_WATER_HEATER
428 switch (value) {
430 return ESPHOME_PSTR("WATER_HEATER_MODE_OFF");
432 return ESPHOME_PSTR("WATER_HEATER_MODE_ECO");
434 return ESPHOME_PSTR("WATER_HEATER_MODE_ELECTRIC");
436 return ESPHOME_PSTR("WATER_HEATER_MODE_PERFORMANCE");
438 return ESPHOME_PSTR("WATER_HEATER_MODE_HIGH_DEMAND");
440 return ESPHOME_PSTR("WATER_HEATER_MODE_HEAT_PUMP");
442 return ESPHOME_PSTR("WATER_HEATER_MODE_GAS");
443 default:
444 return ESPHOME_PSTR("UNKNOWN");
445 }
446}
447#endif
448template<>
450 switch (value) {
452 return ESPHOME_PSTR("WATER_HEATER_COMMAND_HAS_NONE");
454 return ESPHOME_PSTR("WATER_HEATER_COMMAND_HAS_MODE");
456 return ESPHOME_PSTR("WATER_HEATER_COMMAND_HAS_TARGET_TEMPERATURE");
458 return ESPHOME_PSTR("WATER_HEATER_COMMAND_HAS_STATE");
460 return ESPHOME_PSTR("WATER_HEATER_COMMAND_HAS_TARGET_TEMPERATURE_LOW");
462 return ESPHOME_PSTR("WATER_HEATER_COMMAND_HAS_TARGET_TEMPERATURE_HIGH");
464 return ESPHOME_PSTR("WATER_HEATER_COMMAND_HAS_ON_STATE");
466 return ESPHOME_PSTR("WATER_HEATER_COMMAND_HAS_AWAY_STATE");
467 default:
468 return ESPHOME_PSTR("UNKNOWN");
469 }
470}
471#ifdef USE_NUMBER
473 switch (value) {
475 return ESPHOME_PSTR("NUMBER_MODE_AUTO");
477 return ESPHOME_PSTR("NUMBER_MODE_BOX");
479 return ESPHOME_PSTR("NUMBER_MODE_SLIDER");
480 default:
481 return ESPHOME_PSTR("UNKNOWN");
482 }
483}
484#endif
485#ifdef USE_LOCK
487 switch (value) {
489 return ESPHOME_PSTR("LOCK_STATE_NONE");
491 return ESPHOME_PSTR("LOCK_STATE_LOCKED");
493 return ESPHOME_PSTR("LOCK_STATE_UNLOCKED");
495 return ESPHOME_PSTR("LOCK_STATE_JAMMED");
497 return ESPHOME_PSTR("LOCK_STATE_LOCKING");
499 return ESPHOME_PSTR("LOCK_STATE_UNLOCKING");
501 return ESPHOME_PSTR("LOCK_STATE_OPENING");
503 return ESPHOME_PSTR("LOCK_STATE_OPEN");
504 default:
505 return ESPHOME_PSTR("UNKNOWN");
506 }
507}
509 switch (value) {
511 return ESPHOME_PSTR("LOCK_UNLOCK");
512 case enums::LOCK_LOCK:
513 return ESPHOME_PSTR("LOCK_LOCK");
514 case enums::LOCK_OPEN:
515 return ESPHOME_PSTR("LOCK_OPEN");
516 default:
517 return ESPHOME_PSTR("UNKNOWN");
518 }
519}
520#endif
521#ifdef USE_MEDIA_PLAYER
523 switch (value) {
525 return ESPHOME_PSTR("MEDIA_PLAYER_STATE_NONE");
527 return ESPHOME_PSTR("MEDIA_PLAYER_STATE_IDLE");
529 return ESPHOME_PSTR("MEDIA_PLAYER_STATE_PLAYING");
531 return ESPHOME_PSTR("MEDIA_PLAYER_STATE_PAUSED");
533 return ESPHOME_PSTR("MEDIA_PLAYER_STATE_ANNOUNCING");
535 return ESPHOME_PSTR("MEDIA_PLAYER_STATE_OFF");
537 return ESPHOME_PSTR("MEDIA_PLAYER_STATE_ON");
538 default:
539 return ESPHOME_PSTR("UNKNOWN");
540 }
541}
543 switch (value) {
545 return ESPHOME_PSTR("MEDIA_PLAYER_COMMAND_PLAY");
547 return ESPHOME_PSTR("MEDIA_PLAYER_COMMAND_PAUSE");
549 return ESPHOME_PSTR("MEDIA_PLAYER_COMMAND_STOP");
551 return ESPHOME_PSTR("MEDIA_PLAYER_COMMAND_MUTE");
553 return ESPHOME_PSTR("MEDIA_PLAYER_COMMAND_UNMUTE");
555 return ESPHOME_PSTR("MEDIA_PLAYER_COMMAND_TOGGLE");
557 return ESPHOME_PSTR("MEDIA_PLAYER_COMMAND_VOLUME_UP");
559 return ESPHOME_PSTR("MEDIA_PLAYER_COMMAND_VOLUME_DOWN");
561 return ESPHOME_PSTR("MEDIA_PLAYER_COMMAND_ENQUEUE");
563 return ESPHOME_PSTR("MEDIA_PLAYER_COMMAND_REPEAT_ONE");
565 return ESPHOME_PSTR("MEDIA_PLAYER_COMMAND_REPEAT_OFF");
567 return ESPHOME_PSTR("MEDIA_PLAYER_COMMAND_CLEAR_PLAYLIST");
569 return ESPHOME_PSTR("MEDIA_PLAYER_COMMAND_TURN_ON");
571 return ESPHOME_PSTR("MEDIA_PLAYER_COMMAND_TURN_OFF");
572 default:
573 return ESPHOME_PSTR("UNKNOWN");
574 }
575}
577 switch (value) {
579 return ESPHOME_PSTR("MEDIA_PLAYER_FORMAT_PURPOSE_DEFAULT");
581 return ESPHOME_PSTR("MEDIA_PLAYER_FORMAT_PURPOSE_ANNOUNCEMENT");
582 default:
583 return ESPHOME_PSTR("UNKNOWN");
584 }
585}
586#endif
587#ifdef USE_BLUETOOTH_PROXY
588template<>
590 switch (value) {
592 return ESPHOME_PSTR("BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT");
594 return ESPHOME_PSTR("BLUETOOTH_DEVICE_REQUEST_TYPE_DISCONNECT");
596 return ESPHOME_PSTR("BLUETOOTH_DEVICE_REQUEST_TYPE_PAIR");
598 return ESPHOME_PSTR("BLUETOOTH_DEVICE_REQUEST_TYPE_UNPAIR");
600 return ESPHOME_PSTR("BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT_V3_WITH_CACHE");
602 return ESPHOME_PSTR("BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT_V3_WITHOUT_CACHE");
604 return ESPHOME_PSTR("BLUETOOTH_DEVICE_REQUEST_TYPE_CLEAR_CACHE");
605 default:
606 return ESPHOME_PSTR("UNKNOWN");
607 }
608}
610 switch (value) {
612 return ESPHOME_PSTR("BLUETOOTH_SCANNER_STATE_IDLE");
614 return ESPHOME_PSTR("BLUETOOTH_SCANNER_STATE_STARTING");
616 return ESPHOME_PSTR("BLUETOOTH_SCANNER_STATE_RUNNING");
618 return ESPHOME_PSTR("BLUETOOTH_SCANNER_STATE_FAILED");
620 return ESPHOME_PSTR("BLUETOOTH_SCANNER_STATE_STOPPING");
622 return ESPHOME_PSTR("BLUETOOTH_SCANNER_STATE_STOPPED");
623 default:
624 return ESPHOME_PSTR("UNKNOWN");
625 }
626}
628 switch (value) {
630 return ESPHOME_PSTR("BLUETOOTH_SCANNER_MODE_PASSIVE");
632 return ESPHOME_PSTR("BLUETOOTH_SCANNER_MODE_ACTIVE");
633 default:
634 return ESPHOME_PSTR("UNKNOWN");
635 }
636}
637#endif
638template<>
640 switch (value) {
642 return ESPHOME_PSTR("VOICE_ASSISTANT_SUBSCRIBE_NONE");
644 return ESPHOME_PSTR("VOICE_ASSISTANT_SUBSCRIBE_API_AUDIO");
645 default:
646 return ESPHOME_PSTR("UNKNOWN");
647 }
648}
650 switch (value) {
652 return ESPHOME_PSTR("VOICE_ASSISTANT_REQUEST_NONE");
654 return ESPHOME_PSTR("VOICE_ASSISTANT_REQUEST_USE_VAD");
656 return ESPHOME_PSTR("VOICE_ASSISTANT_REQUEST_USE_WAKE_WORD");
657 default:
658 return ESPHOME_PSTR("UNKNOWN");
659 }
660}
661#ifdef USE_VOICE_ASSISTANT
663 switch (value) {
665 return ESPHOME_PSTR("VOICE_ASSISTANT_ERROR");
667 return ESPHOME_PSTR("VOICE_ASSISTANT_RUN_START");
669 return ESPHOME_PSTR("VOICE_ASSISTANT_RUN_END");
671 return ESPHOME_PSTR("VOICE_ASSISTANT_STT_START");
673 return ESPHOME_PSTR("VOICE_ASSISTANT_STT_END");
675 return ESPHOME_PSTR("VOICE_ASSISTANT_INTENT_START");
677 return ESPHOME_PSTR("VOICE_ASSISTANT_INTENT_END");
679 return ESPHOME_PSTR("VOICE_ASSISTANT_TTS_START");
681 return ESPHOME_PSTR("VOICE_ASSISTANT_TTS_END");
683 return ESPHOME_PSTR("VOICE_ASSISTANT_WAKE_WORD_START");
685 return ESPHOME_PSTR("VOICE_ASSISTANT_WAKE_WORD_END");
687 return ESPHOME_PSTR("VOICE_ASSISTANT_STT_VAD_START");
689 return ESPHOME_PSTR("VOICE_ASSISTANT_STT_VAD_END");
691 return ESPHOME_PSTR("VOICE_ASSISTANT_TTS_STREAM_START");
693 return ESPHOME_PSTR("VOICE_ASSISTANT_TTS_STREAM_END");
695 return ESPHOME_PSTR("VOICE_ASSISTANT_INTENT_PROGRESS");
696 default:
697 return ESPHOME_PSTR("UNKNOWN");
698 }
699}
701 switch (value) {
703 return ESPHOME_PSTR("VOICE_ASSISTANT_TIMER_STARTED");
705 return ESPHOME_PSTR("VOICE_ASSISTANT_TIMER_UPDATED");
707 return ESPHOME_PSTR("VOICE_ASSISTANT_TIMER_CANCELLED");
709 return ESPHOME_PSTR("VOICE_ASSISTANT_TIMER_FINISHED");
710 default:
711 return ESPHOME_PSTR("UNKNOWN");
712 }
713}
714#endif
715#ifdef USE_ALARM_CONTROL_PANEL
717 switch (value) {
719 return ESPHOME_PSTR("ALARM_STATE_DISARMED");
721 return ESPHOME_PSTR("ALARM_STATE_ARMED_HOME");
723 return ESPHOME_PSTR("ALARM_STATE_ARMED_AWAY");
725 return ESPHOME_PSTR("ALARM_STATE_ARMED_NIGHT");
727 return ESPHOME_PSTR("ALARM_STATE_ARMED_VACATION");
729 return ESPHOME_PSTR("ALARM_STATE_ARMED_CUSTOM_BYPASS");
731 return ESPHOME_PSTR("ALARM_STATE_PENDING");
733 return ESPHOME_PSTR("ALARM_STATE_ARMING");
735 return ESPHOME_PSTR("ALARM_STATE_DISARMING");
737 return ESPHOME_PSTR("ALARM_STATE_TRIGGERED");
738 default:
739 return ESPHOME_PSTR("UNKNOWN");
740 }
741}
742template<>
744 switch (value) {
746 return ESPHOME_PSTR("ALARM_CONTROL_PANEL_DISARM");
748 return ESPHOME_PSTR("ALARM_CONTROL_PANEL_ARM_AWAY");
750 return ESPHOME_PSTR("ALARM_CONTROL_PANEL_ARM_HOME");
752 return ESPHOME_PSTR("ALARM_CONTROL_PANEL_ARM_NIGHT");
754 return ESPHOME_PSTR("ALARM_CONTROL_PANEL_ARM_VACATION");
756 return ESPHOME_PSTR("ALARM_CONTROL_PANEL_ARM_CUSTOM_BYPASS");
758 return ESPHOME_PSTR("ALARM_CONTROL_PANEL_TRIGGER");
759 default:
760 return ESPHOME_PSTR("UNKNOWN");
761 }
762}
763#endif
764#ifdef USE_TEXT
766 switch (value) {
768 return ESPHOME_PSTR("TEXT_MODE_TEXT");
770 return ESPHOME_PSTR("TEXT_MODE_PASSWORD");
771 default:
772 return ESPHOME_PSTR("UNKNOWN");
773 }
774}
775#endif
776#ifdef USE_VALVE
778 switch (value) {
780 return ESPHOME_PSTR("VALVE_OPERATION_IDLE");
782 return ESPHOME_PSTR("VALVE_OPERATION_IS_OPENING");
784 return ESPHOME_PSTR("VALVE_OPERATION_IS_CLOSING");
785 default:
786 return ESPHOME_PSTR("UNKNOWN");
787 }
788}
789#endif
790#ifdef USE_UPDATE
792 switch (value) {
794 return ESPHOME_PSTR("UPDATE_COMMAND_NONE");
796 return ESPHOME_PSTR("UPDATE_COMMAND_UPDATE");
798 return ESPHOME_PSTR("UPDATE_COMMAND_CHECK");
799 default:
800 return ESPHOME_PSTR("UNKNOWN");
801 }
802}
803#endif
804#ifdef USE_ZWAVE_PROXY
806 switch (value) {
808 return ESPHOME_PSTR("ZWAVE_PROXY_REQUEST_TYPE_SUBSCRIBE");
810 return ESPHOME_PSTR("ZWAVE_PROXY_REQUEST_TYPE_UNSUBSCRIBE");
812 return ESPHOME_PSTR("ZWAVE_PROXY_REQUEST_TYPE_HOME_ID_CHANGE");
813 default:
814 return ESPHOME_PSTR("UNKNOWN");
815 }
816}
817#endif
818#ifdef USE_SERIAL_PROXY
820 switch (value) {
822 return ESPHOME_PSTR("SERIAL_PROXY_PARITY_NONE");
824 return ESPHOME_PSTR("SERIAL_PROXY_PARITY_EVEN");
826 return ESPHOME_PSTR("SERIAL_PROXY_PARITY_ODD");
827 default:
828 return ESPHOME_PSTR("UNKNOWN");
829 }
830}
832 switch (value) {
834 return ESPHOME_PSTR("SERIAL_PROXY_REQUEST_TYPE_SUBSCRIBE");
836 return ESPHOME_PSTR("SERIAL_PROXY_REQUEST_TYPE_UNSUBSCRIBE");
838 return ESPHOME_PSTR("SERIAL_PROXY_REQUEST_TYPE_FLUSH");
839 default:
840 return ESPHOME_PSTR("UNKNOWN");
841 }
842}
844 switch (value) {
846 return ESPHOME_PSTR("SERIAL_PROXY_STATUS_OK");
848 return ESPHOME_PSTR("SERIAL_PROXY_STATUS_ASSUMED_SUCCESS");
850 return ESPHOME_PSTR("SERIAL_PROXY_STATUS_ERROR");
852 return ESPHOME_PSTR("SERIAL_PROXY_STATUS_TIMEOUT");
854 return ESPHOME_PSTR("SERIAL_PROXY_STATUS_NOT_SUPPORTED");
855 default:
856 return ESPHOME_PSTR("UNKNOWN");
857 }
858}
859#endif
860
861const char *HelloRequest::dump_to(DumpBuffer &out) const {
862 MessageDumpHelper helper(out, ESPHOME_PSTR("HelloRequest"));
863 dump_field(out, ESPHOME_PSTR("client_info"), this->client_info);
864 dump_field(out, ESPHOME_PSTR("api_version_major"), this->api_version_major);
865 dump_field(out, ESPHOME_PSTR("api_version_minor"), this->api_version_minor);
866 return out.c_str();
867}
868const char *HelloResponse::dump_to(DumpBuffer &out) const {
869 MessageDumpHelper helper(out, ESPHOME_PSTR("HelloResponse"));
870 dump_field(out, ESPHOME_PSTR("api_version_major"), this->api_version_major);
871 dump_field(out, ESPHOME_PSTR("api_version_minor"), this->api_version_minor);
872 dump_field(out, ESPHOME_PSTR("server_info"), this->server_info);
873 dump_field(out, ESPHOME_PSTR("name"), this->name);
874 return out.c_str();
875}
876const char *DisconnectRequest::dump_to(DumpBuffer &out) const {
877 MessageDumpHelper helper(out, ESPHOME_PSTR("DisconnectRequest"));
878 dump_field(out, ESPHOME_PSTR("reason"), static_cast<enums::DisconnectReason>(this->reason));
879 return out.c_str();
880}
882 out.append_p(ESPHOME_PSTR("DisconnectResponse {}"));
883 return out.c_str();
884}
885const char *PingRequest::dump_to(DumpBuffer &out) const {
886 out.append_p(ESPHOME_PSTR("PingRequest {}"));
887 return out.c_str();
888}
889const char *PingResponse::dump_to(DumpBuffer &out) const {
890 out.append_p(ESPHOME_PSTR("PingResponse {}"));
891 return out.c_str();
892}
893#ifdef USE_AREAS
894const char *AreaInfo::dump_to(DumpBuffer &out) const {
895 MessageDumpHelper helper(out, ESPHOME_PSTR("AreaInfo"));
896 dump_field(out, ESPHOME_PSTR("area_id"), this->area_id);
897 dump_field(out, ESPHOME_PSTR("name"), this->name);
898 return out.c_str();
899}
900#endif
901#ifdef USE_DEVICES
902const char *DeviceInfo::dump_to(DumpBuffer &out) const {
903 MessageDumpHelper helper(out, ESPHOME_PSTR("DeviceInfo"));
904 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
905 dump_field(out, ESPHOME_PSTR("name"), this->name);
906 dump_field(out, ESPHOME_PSTR("area_id"), this->area_id);
907 return out.c_str();
908}
909#endif
910#ifdef USE_SERIAL_PROXY
911const char *SerialProxyInfo::dump_to(DumpBuffer &out) const {
912 MessageDumpHelper helper(out, ESPHOME_PSTR("SerialProxyInfo"));
913 dump_field(out, ESPHOME_PSTR("name"), this->name);
914 dump_field(out, ESPHOME_PSTR("port_type"), static_cast<enums::SerialProxyPortType>(this->port_type));
915 return out.c_str();
916}
917#endif
919 MessageDumpHelper helper(out, ESPHOME_PSTR("DeviceInfoResponse"));
920 dump_field(out, ESPHOME_PSTR("name"), this->name);
921 dump_field(out, ESPHOME_PSTR("mac_address"), this->mac_address);
922 dump_field(out, ESPHOME_PSTR("esphome_version"), this->esphome_version);
923 dump_field(out, ESPHOME_PSTR("compilation_time"), this->compilation_time);
924 dump_field(out, ESPHOME_PSTR("model"), this->model);
925#ifdef USE_DEEP_SLEEP
926 dump_field(out, ESPHOME_PSTR("has_deep_sleep"), this->has_deep_sleep);
927#endif
928#ifdef ESPHOME_PROJECT_NAME
929 dump_field(out, ESPHOME_PSTR("project_name"), this->project_name);
930#endif
931#ifdef ESPHOME_PROJECT_NAME
932 dump_field(out, ESPHOME_PSTR("project_version"), this->project_version);
933#endif
934#ifdef USE_WEBSERVER
935 dump_field(out, ESPHOME_PSTR("webserver_port"), this->webserver_port);
936#endif
937#ifdef USE_BLUETOOTH_PROXY
938 dump_field(out, ESPHOME_PSTR("bluetooth_proxy_feature_flags"), this->bluetooth_proxy_feature_flags);
939#endif
940 dump_field(out, ESPHOME_PSTR("manufacturer"), this->manufacturer);
941 dump_field(out, ESPHOME_PSTR("friendly_name"), this->friendly_name);
942#ifdef USE_VOICE_ASSISTANT
943 dump_field(out, ESPHOME_PSTR("voice_assistant_feature_flags"), this->voice_assistant_feature_flags);
944#endif
945#ifdef USE_AREAS
946 dump_field(out, ESPHOME_PSTR("suggested_area"), this->suggested_area);
947#endif
948#ifdef USE_BLUETOOTH_PROXY
949 dump_field(out, ESPHOME_PSTR("bluetooth_mac_address"), this->bluetooth_mac_address);
950#endif
951#ifdef USE_API_NOISE
952 dump_field(out, ESPHOME_PSTR("api_encryption_supported"), this->api_encryption_supported);
953#endif
954#ifdef USE_DEVICES
955 for (const auto &it : this->devices) {
956 out.append(4, ' ').append_p(ESPHOME_PSTR("devices")).append(": ");
957 it.dump_to(out);
958 out.append("\n");
959 }
960#endif
961#ifdef USE_AREAS
962 for (const auto &it : this->areas) {
963 out.append(4, ' ').append_p(ESPHOME_PSTR("areas")).append(": ");
964 it.dump_to(out);
965 out.append("\n");
966 }
967#endif
968#ifdef USE_AREAS
969 out.append(2, ' ').append_p(ESPHOME_PSTR("area")).append(": ");
970 this->area.dump_to(out);
971 out.append("\n");
972#endif
973#ifdef USE_ZWAVE_PROXY
974 dump_field(out, ESPHOME_PSTR("zwave_proxy_feature_flags"), this->zwave_proxy_feature_flags);
975#endif
976#ifdef USE_ZWAVE_PROXY
977 dump_field(out, ESPHOME_PSTR("zwave_home_id"), this->zwave_home_id);
978#endif
979#ifdef USE_SERIAL_PROXY
980 for (const auto &it : this->serial_proxies) {
981 out.append(4, ' ').append_p(ESPHOME_PSTR("serial_proxies")).append(": ");
982 it.dump_to(out);
983 out.append("\n");
984 }
985#endif
986#ifdef USE_API_NOISE
987 dump_field(out, ESPHOME_PSTR("api_encryption_provisionable"), this->api_encryption_provisionable);
988#endif
989 return out.c_str();
990}
992 out.append_p(ESPHOME_PSTR("ListEntitiesDoneResponse {}"));
993 return out.c_str();
994}
995#ifdef USE_BINARY_SENSOR
997 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesBinarySensorResponse"));
998 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
999 dump_field(out, ESPHOME_PSTR("key"), this->key);
1000 dump_field(out, ESPHOME_PSTR("name"), this->name);
1001 dump_field(out, ESPHOME_PSTR("device_class"), this->device_class);
1002 dump_field(out, ESPHOME_PSTR("is_status_binary_sensor"), this->is_status_binary_sensor);
1003 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1004#ifdef USE_ENTITY_ICON
1005 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
1006#endif
1007 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1008#ifdef USE_DEVICES
1009 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1010#endif
1011 return out.c_str();
1012}
1014 MessageDumpHelper helper(out, ESPHOME_PSTR("BinarySensorStateResponse"));
1015 dump_field(out, ESPHOME_PSTR("key"), this->key);
1016 dump_field(out, ESPHOME_PSTR("state"), this->state);
1017 dump_field(out, ESPHOME_PSTR("missing_state"), this->missing_state);
1018#ifdef USE_DEVICES
1019 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1020#endif
1021 return out.c_str();
1022}
1023#endif
1024#ifdef USE_COVER
1026 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesCoverResponse"));
1027 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1028 dump_field(out, ESPHOME_PSTR("key"), this->key);
1029 dump_field(out, ESPHOME_PSTR("name"), this->name);
1030 dump_field(out, ESPHOME_PSTR("assumed_state"), this->assumed_state);
1031 dump_field(out, ESPHOME_PSTR("supports_position"), this->supports_position);
1032 dump_field(out, ESPHOME_PSTR("supports_tilt"), this->supports_tilt);
1033 dump_field(out, ESPHOME_PSTR("device_class"), this->device_class);
1034 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1035#ifdef USE_ENTITY_ICON
1036 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
1037#endif
1038 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1039 dump_field(out, ESPHOME_PSTR("supports_stop"), this->supports_stop);
1040#ifdef USE_DEVICES
1041 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1042#endif
1043 return out.c_str();
1044}
1046 MessageDumpHelper helper(out, ESPHOME_PSTR("CoverStateResponse"));
1047 dump_field(out, ESPHOME_PSTR("key"), this->key);
1048 dump_field(out, ESPHOME_PSTR("position"), this->position);
1049 dump_field(out, ESPHOME_PSTR("tilt"), this->tilt);
1050 dump_field(out, ESPHOME_PSTR("current_operation"), static_cast<enums::CoverOperation>(this->current_operation));
1051#ifdef USE_DEVICES
1052 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1053#endif
1054 return out.c_str();
1055}
1057 MessageDumpHelper helper(out, ESPHOME_PSTR("CoverCommandRequest"));
1058 dump_field(out, ESPHOME_PSTR("key"), this->key);
1059 dump_field(out, ESPHOME_PSTR("has_position"), this->has_position);
1060 dump_field(out, ESPHOME_PSTR("position"), this->position);
1061 dump_field(out, ESPHOME_PSTR("has_tilt"), this->has_tilt);
1062 dump_field(out, ESPHOME_PSTR("tilt"), this->tilt);
1063 dump_field(out, ESPHOME_PSTR("stop"), this->stop);
1064#ifdef USE_DEVICES
1065 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1066#endif
1067 return out.c_str();
1068}
1069#endif
1070#ifdef USE_FAN
1072 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesFanResponse"));
1073 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1074 dump_field(out, ESPHOME_PSTR("key"), this->key);
1075 dump_field(out, ESPHOME_PSTR("name"), this->name);
1076 dump_field(out, ESPHOME_PSTR("supports_oscillation"), this->supports_oscillation);
1077 dump_field(out, ESPHOME_PSTR("supports_speed"), this->supports_speed);
1078 dump_field(out, ESPHOME_PSTR("supports_direction"), this->supports_direction);
1079 dump_field(out, ESPHOME_PSTR("supported_speed_count"), this->supported_speed_count);
1080 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1081#ifdef USE_ENTITY_ICON
1082 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
1083#endif
1084 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1085 for (const auto &it : *this->supported_preset_modes) {
1086 dump_field(out, ESPHOME_PSTR("supported_preset_modes"), it, 4);
1087 }
1088#ifdef USE_DEVICES
1089 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1090#endif
1091 return out.c_str();
1092}
1093const char *FanStateResponse::dump_to(DumpBuffer &out) const {
1094 MessageDumpHelper helper(out, ESPHOME_PSTR("FanStateResponse"));
1095 dump_field(out, ESPHOME_PSTR("key"), this->key);
1096 dump_field(out, ESPHOME_PSTR("state"), this->state);
1097 dump_field(out, ESPHOME_PSTR("oscillating"), this->oscillating);
1098 dump_field(out, ESPHOME_PSTR("direction"), static_cast<enums::FanDirection>(this->direction));
1099 dump_field(out, ESPHOME_PSTR("speed_level"), this->speed_level);
1100 dump_field(out, ESPHOME_PSTR("preset_mode"), this->preset_mode);
1101#ifdef USE_DEVICES
1102 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1103#endif
1104 return out.c_str();
1105}
1107 MessageDumpHelper helper(out, ESPHOME_PSTR("FanCommandRequest"));
1108 dump_field(out, ESPHOME_PSTR("key"), this->key);
1109 dump_field(out, ESPHOME_PSTR("has_state"), this->has_state);
1110 dump_field(out, ESPHOME_PSTR("state"), this->state);
1111 dump_field(out, ESPHOME_PSTR("has_oscillating"), this->has_oscillating);
1112 dump_field(out, ESPHOME_PSTR("oscillating"), this->oscillating);
1113 dump_field(out, ESPHOME_PSTR("has_direction"), this->has_direction);
1114 dump_field(out, ESPHOME_PSTR("direction"), static_cast<enums::FanDirection>(this->direction));
1115 dump_field(out, ESPHOME_PSTR("has_speed_level"), this->has_speed_level);
1116 dump_field(out, ESPHOME_PSTR("speed_level"), this->speed_level);
1117 dump_field(out, ESPHOME_PSTR("has_preset_mode"), this->has_preset_mode);
1118 dump_field(out, ESPHOME_PSTR("preset_mode"), this->preset_mode);
1119#ifdef USE_DEVICES
1120 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1121#endif
1122 return out.c_str();
1123}
1124#endif
1125#ifdef USE_LIGHT
1127 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesLightResponse"));
1128 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1129 dump_field(out, ESPHOME_PSTR("key"), this->key);
1130 dump_field(out, ESPHOME_PSTR("name"), this->name);
1131 for (const auto &it : *this->supported_color_modes) {
1132 dump_field(out, ESPHOME_PSTR("supported_color_modes"), static_cast<enums::ColorMode>(it), 4);
1133 }
1134 dump_field(out, ESPHOME_PSTR("min_mireds"), this->min_mireds);
1135 dump_field(out, ESPHOME_PSTR("max_mireds"), this->max_mireds);
1136 for (const auto &it : *this->effects) {
1137 dump_field(out, ESPHOME_PSTR("effects"), it, 4);
1138 }
1139 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1140#ifdef USE_ENTITY_ICON
1141 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
1142#endif
1143 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1144#ifdef USE_DEVICES
1145 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1146#endif
1147 return out.c_str();
1148}
1150 MessageDumpHelper helper(out, ESPHOME_PSTR("LightStateResponse"));
1151 dump_field(out, ESPHOME_PSTR("key"), this->key);
1152 dump_field(out, ESPHOME_PSTR("state"), this->state);
1153 dump_field(out, ESPHOME_PSTR("brightness"), this->brightness);
1154 dump_field(out, ESPHOME_PSTR("color_mode"), static_cast<enums::ColorMode>(this->color_mode));
1155 dump_field(out, ESPHOME_PSTR("color_brightness"), this->color_brightness);
1156 dump_field(out, ESPHOME_PSTR("red"), this->red);
1157 dump_field(out, ESPHOME_PSTR("green"), this->green);
1158 dump_field(out, ESPHOME_PSTR("blue"), this->blue);
1159 dump_field(out, ESPHOME_PSTR("white"), this->white);
1160 dump_field(out, ESPHOME_PSTR("color_temperature"), this->color_temperature);
1161 dump_field(out, ESPHOME_PSTR("cold_white"), this->cold_white);
1162 dump_field(out, ESPHOME_PSTR("warm_white"), this->warm_white);
1163 dump_field(out, ESPHOME_PSTR("effect"), this->effect);
1164#ifdef USE_DEVICES
1165 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1166#endif
1167 return out.c_str();
1168}
1170 MessageDumpHelper helper(out, ESPHOME_PSTR("LightCommandRequest"));
1171 dump_field(out, ESPHOME_PSTR("key"), this->key);
1172 dump_field(out, ESPHOME_PSTR("has_state"), this->has_state);
1173 dump_field(out, ESPHOME_PSTR("state"), this->state);
1174 dump_field(out, ESPHOME_PSTR("has_brightness"), this->has_brightness);
1175 dump_field(out, ESPHOME_PSTR("brightness"), this->brightness);
1176 dump_field(out, ESPHOME_PSTR("has_color_mode"), this->has_color_mode);
1177 dump_field(out, ESPHOME_PSTR("color_mode"), static_cast<enums::ColorMode>(this->color_mode));
1178 dump_field(out, ESPHOME_PSTR("has_color_brightness"), this->has_color_brightness);
1179 dump_field(out, ESPHOME_PSTR("color_brightness"), this->color_brightness);
1180 dump_field(out, ESPHOME_PSTR("has_rgb"), this->has_rgb);
1181 dump_field(out, ESPHOME_PSTR("red"), this->red);
1182 dump_field(out, ESPHOME_PSTR("green"), this->green);
1183 dump_field(out, ESPHOME_PSTR("blue"), this->blue);
1184 dump_field(out, ESPHOME_PSTR("has_white"), this->has_white);
1185 dump_field(out, ESPHOME_PSTR("white"), this->white);
1186 dump_field(out, ESPHOME_PSTR("has_color_temperature"), this->has_color_temperature);
1187 dump_field(out, ESPHOME_PSTR("color_temperature"), this->color_temperature);
1188 dump_field(out, ESPHOME_PSTR("has_cold_white"), this->has_cold_white);
1189 dump_field(out, ESPHOME_PSTR("cold_white"), this->cold_white);
1190 dump_field(out, ESPHOME_PSTR("has_warm_white"), this->has_warm_white);
1191 dump_field(out, ESPHOME_PSTR("warm_white"), this->warm_white);
1192 dump_field(out, ESPHOME_PSTR("has_transition_length"), this->has_transition_length);
1193 dump_field(out, ESPHOME_PSTR("transition_length"), this->transition_length);
1194 dump_field(out, ESPHOME_PSTR("has_flash_length"), this->has_flash_length);
1195 dump_field(out, ESPHOME_PSTR("flash_length"), this->flash_length);
1196 dump_field(out, ESPHOME_PSTR("has_effect"), this->has_effect);
1197 dump_field(out, ESPHOME_PSTR("effect"), this->effect);
1198#ifdef USE_DEVICES
1199 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1200#endif
1201 return out.c_str();
1202}
1203#endif
1204#ifdef USE_SENSOR
1206 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesSensorResponse"));
1207 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1208 dump_field(out, ESPHOME_PSTR("key"), this->key);
1209 dump_field(out, ESPHOME_PSTR("name"), this->name);
1210#ifdef USE_ENTITY_ICON
1211 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
1212#endif
1213 dump_field(out, ESPHOME_PSTR("unit_of_measurement"), this->unit_of_measurement);
1214 dump_field(out, ESPHOME_PSTR("accuracy_decimals"), this->accuracy_decimals);
1215 dump_field(out, ESPHOME_PSTR("force_update"), this->force_update);
1216 dump_field(out, ESPHOME_PSTR("device_class"), this->device_class);
1217 dump_field(out, ESPHOME_PSTR("state_class"), static_cast<enums::SensorStateClass>(this->state_class));
1218 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1219 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1220#ifdef USE_DEVICES
1221 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1222#endif
1223 return out.c_str();
1224}
1226 MessageDumpHelper helper(out, ESPHOME_PSTR("SensorStateResponse"));
1227 dump_field(out, ESPHOME_PSTR("key"), this->key);
1228 dump_field(out, ESPHOME_PSTR("state"), this->state);
1229 dump_field(out, ESPHOME_PSTR("missing_state"), this->missing_state);
1230#ifdef USE_DEVICES
1231 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1232#endif
1233 return out.c_str();
1234}
1235#endif
1236#ifdef USE_SWITCH
1238 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesSwitchResponse"));
1239 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1240 dump_field(out, ESPHOME_PSTR("key"), this->key);
1241 dump_field(out, ESPHOME_PSTR("name"), this->name);
1242#ifdef USE_ENTITY_ICON
1243 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
1244#endif
1245 dump_field(out, ESPHOME_PSTR("assumed_state"), this->assumed_state);
1246 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1247 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1248 dump_field(out, ESPHOME_PSTR("device_class"), this->device_class);
1249#ifdef USE_DEVICES
1250 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1251#endif
1252 return out.c_str();
1253}
1255 MessageDumpHelper helper(out, ESPHOME_PSTR("SwitchStateResponse"));
1256 dump_field(out, ESPHOME_PSTR("key"), this->key);
1257 dump_field(out, ESPHOME_PSTR("state"), this->state);
1258#ifdef USE_DEVICES
1259 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1260#endif
1261 return out.c_str();
1262}
1264 MessageDumpHelper helper(out, ESPHOME_PSTR("SwitchCommandRequest"));
1265 dump_field(out, ESPHOME_PSTR("key"), this->key);
1266 dump_field(out, ESPHOME_PSTR("state"), this->state);
1267#ifdef USE_DEVICES
1268 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1269#endif
1270 return out.c_str();
1271}
1272#endif
1273#ifdef USE_TEXT_SENSOR
1275 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesTextSensorResponse"));
1276 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1277 dump_field(out, ESPHOME_PSTR("key"), this->key);
1278 dump_field(out, ESPHOME_PSTR("name"), this->name);
1279#ifdef USE_ENTITY_ICON
1280 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
1281#endif
1282 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1283 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1284 dump_field(out, ESPHOME_PSTR("device_class"), this->device_class);
1285#ifdef USE_DEVICES
1286 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1287#endif
1288 return out.c_str();
1289}
1291 MessageDumpHelper helper(out, ESPHOME_PSTR("TextSensorStateResponse"));
1292 dump_field(out, ESPHOME_PSTR("key"), this->key);
1293 dump_field(out, ESPHOME_PSTR("state"), this->state);
1294 dump_field(out, ESPHOME_PSTR("missing_state"), this->missing_state);
1295#ifdef USE_DEVICES
1296 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1297#endif
1298 return out.c_str();
1299}
1300#endif
1302 MessageDumpHelper helper(out, ESPHOME_PSTR("SubscribeLogsRequest"));
1303 dump_field(out, ESPHOME_PSTR("level"), static_cast<enums::LogLevel>(this->level));
1304 dump_field(out, ESPHOME_PSTR("dump_config"), this->dump_config);
1305 return out.c_str();
1306}
1308 MessageDumpHelper helper(out, ESPHOME_PSTR("SubscribeLogsResponse"));
1309 dump_field(out, ESPHOME_PSTR("level"), static_cast<enums::LogLevel>(this->level));
1310 dump_bytes_field(out, ESPHOME_PSTR("message"), this->message_ptr_, this->message_len_);
1311 return out.c_str();
1312}
1313#ifdef USE_API_NOISE
1315 MessageDumpHelper helper(out, ESPHOME_PSTR("NoiseEncryptionSetKeyRequest"));
1316 dump_bytes_field(out, ESPHOME_PSTR("key"), this->key, this->key_len);
1317 return out.c_str();
1318}
1320 MessageDumpHelper helper(out, ESPHOME_PSTR("NoiseEncryptionSetKeyResponse"));
1321 dump_field(out, ESPHOME_PSTR("success"), this->success);
1322 return out.c_str();
1323}
1324#endif
1325#ifdef USE_API_HOMEASSISTANT_SERVICES
1327 MessageDumpHelper helper(out, ESPHOME_PSTR("HomeassistantServiceMap"));
1328 dump_field(out, ESPHOME_PSTR("key"), this->key);
1329 dump_field(out, ESPHOME_PSTR("value"), this->value);
1330 return out.c_str();
1331}
1333 MessageDumpHelper helper(out, ESPHOME_PSTR("HomeassistantActionRequest"));
1334 dump_field(out, ESPHOME_PSTR("service"), this->service);
1335 for (const auto &it : this->data) {
1336 out.append(4, ' ').append_p(ESPHOME_PSTR("data")).append(": ");
1337 it.dump_to(out);
1338 out.append("\n");
1339 }
1340 for (const auto &it : this->data_template) {
1341 out.append(4, ' ').append_p(ESPHOME_PSTR("data_template")).append(": ");
1342 it.dump_to(out);
1343 out.append("\n");
1344 }
1345 for (const auto &it : this->variables) {
1346 out.append(4, ' ').append_p(ESPHOME_PSTR("variables")).append(": ");
1347 it.dump_to(out);
1348 out.append("\n");
1349 }
1350 dump_field(out, ESPHOME_PSTR("is_event"), this->is_event);
1351#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES
1352 dump_field(out, ESPHOME_PSTR("call_id"), this->call_id);
1353#endif
1354#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1355 dump_field(out, ESPHOME_PSTR("wants_response"), this->wants_response);
1356#endif
1357#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1358 dump_field(out, ESPHOME_PSTR("response_template"), this->response_template);
1359#endif
1360 return out.c_str();
1361}
1362#endif
1363#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES
1365 MessageDumpHelper helper(out, ESPHOME_PSTR("HomeassistantActionResponse"));
1366 dump_field(out, ESPHOME_PSTR("call_id"), this->call_id);
1367 dump_field(out, ESPHOME_PSTR("success"), this->success);
1368 dump_field(out, ESPHOME_PSTR("error_message"), this->error_message);
1369#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1370 dump_bytes_field(out, ESPHOME_PSTR("response_data"), this->response_data, this->response_data_len);
1371#endif
1372 return out.c_str();
1373}
1374#endif
1375#ifdef USE_API_HOMEASSISTANT_STATES
1377 MessageDumpHelper helper(out, ESPHOME_PSTR("SubscribeHomeAssistantStateResponse"));
1378 dump_field(out, ESPHOME_PSTR("entity_id"), this->entity_id);
1379 dump_field(out, ESPHOME_PSTR("attribute"), this->attribute);
1380 dump_field(out, ESPHOME_PSTR("once"), this->once);
1381 return out.c_str();
1382}
1384 MessageDumpHelper helper(out, ESPHOME_PSTR("HomeAssistantStateResponse"));
1385 dump_field(out, ESPHOME_PSTR("entity_id"), this->entity_id);
1386 dump_field(out, ESPHOME_PSTR("state"), this->state);
1387 dump_field(out, ESPHOME_PSTR("attribute"), this->attribute);
1388 return out.c_str();
1389}
1390#endif
1391const char *GetTimeRequest::dump_to(DumpBuffer &out) const {
1392 out.append_p(ESPHOME_PSTR("GetTimeRequest {}"));
1393 return out.c_str();
1394}
1395const char *DSTRule::dump_to(DumpBuffer &out) const {
1396 MessageDumpHelper helper(out, ESPHOME_PSTR("DSTRule"));
1397 dump_field(out, ESPHOME_PSTR("time_seconds"), this->time_seconds);
1398 dump_field(out, ESPHOME_PSTR("day"), this->day);
1399 dump_field(out, ESPHOME_PSTR("type"), static_cast<enums::DSTRuleType>(this->type));
1400 dump_field(out, ESPHOME_PSTR("month"), this->month);
1401 dump_field(out, ESPHOME_PSTR("week"), this->week);
1402 dump_field(out, ESPHOME_PSTR("day_of_week"), this->day_of_week);
1403 return out.c_str();
1404}
1405const char *ParsedTimezone::dump_to(DumpBuffer &out) const {
1406 MessageDumpHelper helper(out, ESPHOME_PSTR("ParsedTimezone"));
1407 dump_field(out, ESPHOME_PSTR("std_offset_seconds"), this->std_offset_seconds);
1408 dump_field(out, ESPHOME_PSTR("dst_offset_seconds"), this->dst_offset_seconds);
1409 out.append(2, ' ').append_p(ESPHOME_PSTR("dst_start")).append(": ");
1410 this->dst_start.dump_to(out);
1411 out.append("\n");
1412 out.append(2, ' ').append_p(ESPHOME_PSTR("dst_end")).append(": ");
1413 this->dst_end.dump_to(out);
1414 out.append("\n");
1415 return out.c_str();
1416}
1417const char *GetTimeResponse::dump_to(DumpBuffer &out) const {
1418 MessageDumpHelper helper(out, ESPHOME_PSTR("GetTimeResponse"));
1419 dump_field(out, ESPHOME_PSTR("epoch_seconds"), this->epoch_seconds);
1420 dump_field(out, ESPHOME_PSTR("timezone"), this->timezone);
1421 out.append(2, ' ').append_p(ESPHOME_PSTR("parsed_timezone")).append(": ");
1422 this->parsed_timezone.dump_to(out);
1423 out.append("\n");
1424 return out.c_str();
1425}
1426#ifdef USE_API_USER_DEFINED_ACTIONS
1428 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesServicesArgument"));
1429 dump_field(out, ESPHOME_PSTR("name"), this->name);
1430 dump_field(out, ESPHOME_PSTR("type"), static_cast<enums::ServiceArgType>(this->type));
1431 return out.c_str();
1432}
1434 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesServicesResponse"));
1435 dump_field(out, ESPHOME_PSTR("name"), this->name);
1436 dump_field(out, ESPHOME_PSTR("key"), this->key);
1437 for (const auto &it : this->args) {
1438 out.append(4, ' ').append_p(ESPHOME_PSTR("args")).append(": ");
1439 it.dump_to(out);
1440 out.append("\n");
1441 }
1442 dump_field(out, ESPHOME_PSTR("supports_response"), static_cast<enums::SupportsResponseType>(this->supports_response));
1443 return out.c_str();
1444}
1446 MessageDumpHelper helper(out, ESPHOME_PSTR("ExecuteServiceArgument"));
1447 dump_field(out, ESPHOME_PSTR("bool_"), this->bool_);
1448 dump_field(out, ESPHOME_PSTR("legacy_int"), this->legacy_int);
1449 dump_field(out, ESPHOME_PSTR("float_"), this->float_);
1450 dump_field(out, ESPHOME_PSTR("string_"), this->string_);
1451 dump_field(out, ESPHOME_PSTR("int_"), this->int_);
1452 for (const auto it : this->bool_array) {
1453 dump_field(out, ESPHOME_PSTR("bool_array"), static_cast<bool>(it), 4);
1454 }
1455 for (const auto &it : this->int_array) {
1456 dump_field(out, ESPHOME_PSTR("int_array"), it, 4);
1457 }
1458 for (const auto &it : this->float_array) {
1459 dump_field(out, ESPHOME_PSTR("float_array"), it, 4);
1460 }
1461 for (const auto &it : this->string_array) {
1462 dump_field(out, ESPHOME_PSTR("string_array"), it, 4);
1463 }
1464 return out.c_str();
1465}
1467 MessageDumpHelper helper(out, ESPHOME_PSTR("ExecuteServiceRequest"));
1468 dump_field(out, ESPHOME_PSTR("key"), this->key);
1469 for (const auto &it : this->args) {
1470 out.append(4, ' ').append_p(ESPHOME_PSTR("args")).append(": ");
1471 it.dump_to(out);
1472 out.append("\n");
1473 }
1474#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1475 dump_field(out, ESPHOME_PSTR("call_id"), this->call_id);
1476#endif
1477#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1478 dump_field(out, ESPHOME_PSTR("return_response"), this->return_response);
1479#endif
1480 return out.c_str();
1481}
1482#endif
1483#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1485 MessageDumpHelper helper(out, ESPHOME_PSTR("ExecuteServiceResponse"));
1486 dump_field(out, ESPHOME_PSTR("call_id"), this->call_id);
1487 dump_field(out, ESPHOME_PSTR("success"), this->success);
1488 dump_field(out, ESPHOME_PSTR("error_message"), this->error_message);
1489#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES_JSON
1490 dump_bytes_field(out, ESPHOME_PSTR("response_data"), this->response_data, this->response_data_len);
1491#endif
1492 return out.c_str();
1493}
1494#endif
1495#ifdef USE_CAMERA
1497 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesCameraResponse"));
1498 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1499 dump_field(out, ESPHOME_PSTR("key"), this->key);
1500 dump_field(out, ESPHOME_PSTR("name"), this->name);
1501 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1502#ifdef USE_ENTITY_ICON
1503 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
1504#endif
1505 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1506#ifdef USE_DEVICES
1507 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1508#endif
1509 return out.c_str();
1510}
1512 MessageDumpHelper helper(out, ESPHOME_PSTR("CameraImageResponse"));
1513 dump_field(out, ESPHOME_PSTR("key"), this->key);
1514 dump_bytes_field(out, ESPHOME_PSTR("data"), this->data_ptr_, this->data_len_);
1515 dump_field(out, ESPHOME_PSTR("done"), this->done);
1516#ifdef USE_DEVICES
1517 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1518#endif
1519 return out.c_str();
1520}
1522 MessageDumpHelper helper(out, ESPHOME_PSTR("CameraImageRequest"));
1523 dump_field(out, ESPHOME_PSTR("single"), this->single);
1524 dump_field(out, ESPHOME_PSTR("stream"), this->stream);
1525 return out.c_str();
1526}
1527#endif
1528#ifdef USE_CLIMATE
1530 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesClimateResponse"));
1531 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1532 dump_field(out, ESPHOME_PSTR("key"), this->key);
1533 dump_field(out, ESPHOME_PSTR("name"), this->name);
1534 dump_field(out, ESPHOME_PSTR("supports_current_temperature"), this->supports_current_temperature);
1535 dump_field(out, ESPHOME_PSTR("supports_two_point_target_temperature"), this->supports_two_point_target_temperature);
1536 for (const auto &it : *this->supported_modes) {
1537 dump_field(out, ESPHOME_PSTR("supported_modes"), static_cast<enums::ClimateMode>(it), 4);
1538 }
1539 dump_field(out, ESPHOME_PSTR("visual_min_temperature"), this->visual_min_temperature);
1540 dump_field(out, ESPHOME_PSTR("visual_max_temperature"), this->visual_max_temperature);
1541 dump_field(out, ESPHOME_PSTR("visual_target_temperature_step"), this->visual_target_temperature_step);
1542 dump_field(out, ESPHOME_PSTR("supports_action"), this->supports_action);
1543 for (const auto &it : *this->supported_fan_modes) {
1544 dump_field(out, ESPHOME_PSTR("supported_fan_modes"), static_cast<enums::ClimateFanMode>(it), 4);
1545 }
1546 for (const auto &it : *this->supported_swing_modes) {
1547 dump_field(out, ESPHOME_PSTR("supported_swing_modes"), static_cast<enums::ClimateSwingMode>(it), 4);
1548 }
1549 for (const auto &it : *this->supported_custom_fan_modes) {
1550 dump_field(out, ESPHOME_PSTR("supported_custom_fan_modes"), it, 4);
1551 }
1552 for (const auto &it : *this->supported_presets) {
1553 dump_field(out, ESPHOME_PSTR("supported_presets"), static_cast<enums::ClimatePreset>(it), 4);
1554 }
1555 for (const auto &it : *this->supported_custom_presets) {
1556 dump_field(out, ESPHOME_PSTR("supported_custom_presets"), it, 4);
1557 }
1558 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1559#ifdef USE_ENTITY_ICON
1560 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
1561#endif
1562 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1563 dump_field(out, ESPHOME_PSTR("visual_current_temperature_step"), this->visual_current_temperature_step);
1564 dump_field(out, ESPHOME_PSTR("supports_current_humidity"), this->supports_current_humidity);
1565 dump_field(out, ESPHOME_PSTR("supports_target_humidity"), this->supports_target_humidity);
1566 dump_field(out, ESPHOME_PSTR("visual_min_humidity"), this->visual_min_humidity);
1567 dump_field(out, ESPHOME_PSTR("visual_max_humidity"), this->visual_max_humidity);
1568#ifdef USE_DEVICES
1569 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1570#endif
1571 dump_field(out, ESPHOME_PSTR("feature_flags"), this->feature_flags);
1572 dump_field(out, ESPHOME_PSTR("temperature_unit"), static_cast<enums::TemperatureUnit>(this->temperature_unit));
1573 return out.c_str();
1574}
1576 MessageDumpHelper helper(out, ESPHOME_PSTR("ClimateStateResponse"));
1577 dump_field(out, ESPHOME_PSTR("key"), this->key);
1578 dump_field(out, ESPHOME_PSTR("mode"), static_cast<enums::ClimateMode>(this->mode));
1579 dump_field(out, ESPHOME_PSTR("current_temperature"), this->current_temperature);
1580 dump_field(out, ESPHOME_PSTR("target_temperature"), this->target_temperature);
1581 dump_field(out, ESPHOME_PSTR("target_temperature_low"), this->target_temperature_low);
1582 dump_field(out, ESPHOME_PSTR("target_temperature_high"), this->target_temperature_high);
1583 dump_field(out, ESPHOME_PSTR("action"), static_cast<enums::ClimateAction>(this->action));
1584 dump_field(out, ESPHOME_PSTR("fan_mode"), static_cast<enums::ClimateFanMode>(this->fan_mode));
1585 dump_field(out, ESPHOME_PSTR("swing_mode"), static_cast<enums::ClimateSwingMode>(this->swing_mode));
1586 dump_field(out, ESPHOME_PSTR("custom_fan_mode"), this->custom_fan_mode);
1587 dump_field(out, ESPHOME_PSTR("preset"), static_cast<enums::ClimatePreset>(this->preset));
1588 dump_field(out, ESPHOME_PSTR("custom_preset"), this->custom_preset);
1589 dump_field(out, ESPHOME_PSTR("current_humidity"), this->current_humidity);
1590 dump_field(out, ESPHOME_PSTR("target_humidity"), this->target_humidity);
1591#ifdef USE_DEVICES
1592 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1593#endif
1594 return out.c_str();
1595}
1597 MessageDumpHelper helper(out, ESPHOME_PSTR("ClimateCommandRequest"));
1598 dump_field(out, ESPHOME_PSTR("key"), this->key);
1599 dump_field(out, ESPHOME_PSTR("has_mode"), this->has_mode);
1600 dump_field(out, ESPHOME_PSTR("mode"), static_cast<enums::ClimateMode>(this->mode));
1601 dump_field(out, ESPHOME_PSTR("has_target_temperature"), this->has_target_temperature);
1602 dump_field(out, ESPHOME_PSTR("target_temperature"), this->target_temperature);
1603 dump_field(out, ESPHOME_PSTR("has_target_temperature_low"), this->has_target_temperature_low);
1604 dump_field(out, ESPHOME_PSTR("target_temperature_low"), this->target_temperature_low);
1605 dump_field(out, ESPHOME_PSTR("has_target_temperature_high"), this->has_target_temperature_high);
1606 dump_field(out, ESPHOME_PSTR("target_temperature_high"), this->target_temperature_high);
1607 dump_field(out, ESPHOME_PSTR("has_fan_mode"), this->has_fan_mode);
1608 dump_field(out, ESPHOME_PSTR("fan_mode"), static_cast<enums::ClimateFanMode>(this->fan_mode));
1609 dump_field(out, ESPHOME_PSTR("has_swing_mode"), this->has_swing_mode);
1610 dump_field(out, ESPHOME_PSTR("swing_mode"), static_cast<enums::ClimateSwingMode>(this->swing_mode));
1611 dump_field(out, ESPHOME_PSTR("has_custom_fan_mode"), this->has_custom_fan_mode);
1612 dump_field(out, ESPHOME_PSTR("custom_fan_mode"), this->custom_fan_mode);
1613 dump_field(out, ESPHOME_PSTR("has_preset"), this->has_preset);
1614 dump_field(out, ESPHOME_PSTR("preset"), static_cast<enums::ClimatePreset>(this->preset));
1615 dump_field(out, ESPHOME_PSTR("has_custom_preset"), this->has_custom_preset);
1616 dump_field(out, ESPHOME_PSTR("custom_preset"), this->custom_preset);
1617 dump_field(out, ESPHOME_PSTR("has_target_humidity"), this->has_target_humidity);
1618 dump_field(out, ESPHOME_PSTR("target_humidity"), this->target_humidity);
1619#ifdef USE_DEVICES
1620 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1621#endif
1622 return out.c_str();
1623}
1624#endif
1625#ifdef USE_WATER_HEATER
1627 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesWaterHeaterResponse"));
1628 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1629 dump_field(out, ESPHOME_PSTR("key"), this->key);
1630 dump_field(out, ESPHOME_PSTR("name"), this->name);
1631#ifdef USE_ENTITY_ICON
1632 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
1633#endif
1634 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1635 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1636#ifdef USE_DEVICES
1637 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1638#endif
1639 dump_field(out, ESPHOME_PSTR("min_temperature"), this->min_temperature);
1640 dump_field(out, ESPHOME_PSTR("max_temperature"), this->max_temperature);
1641 dump_field(out, ESPHOME_PSTR("target_temperature_step"), this->target_temperature_step);
1642 for (const auto &it : *this->supported_modes) {
1643 dump_field(out, ESPHOME_PSTR("supported_modes"), static_cast<enums::WaterHeaterMode>(it), 4);
1644 }
1645 dump_field(out, ESPHOME_PSTR("supported_features"), this->supported_features);
1646 dump_field(out, ESPHOME_PSTR("temperature_unit"), static_cast<enums::TemperatureUnit>(this->temperature_unit));
1647 return out.c_str();
1648}
1650 MessageDumpHelper helper(out, ESPHOME_PSTR("WaterHeaterStateResponse"));
1651 dump_field(out, ESPHOME_PSTR("key"), this->key);
1652 dump_field(out, ESPHOME_PSTR("current_temperature"), this->current_temperature);
1653 dump_field(out, ESPHOME_PSTR("target_temperature"), this->target_temperature);
1654 dump_field(out, ESPHOME_PSTR("mode"), static_cast<enums::WaterHeaterMode>(this->mode));
1655#ifdef USE_DEVICES
1656 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1657#endif
1658 dump_field(out, ESPHOME_PSTR("state"), this->state);
1659 dump_field(out, ESPHOME_PSTR("target_temperature_low"), this->target_temperature_low);
1660 dump_field(out, ESPHOME_PSTR("target_temperature_high"), this->target_temperature_high);
1661 return out.c_str();
1662}
1664 MessageDumpHelper helper(out, ESPHOME_PSTR("WaterHeaterCommandRequest"));
1665 dump_field(out, ESPHOME_PSTR("key"), this->key);
1666 dump_field(out, ESPHOME_PSTR("has_fields"), this->has_fields);
1667 dump_field(out, ESPHOME_PSTR("mode"), static_cast<enums::WaterHeaterMode>(this->mode));
1668 dump_field(out, ESPHOME_PSTR("target_temperature"), this->target_temperature);
1669#ifdef USE_DEVICES
1670 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1671#endif
1672 dump_field(out, ESPHOME_PSTR("state"), this->state);
1673 dump_field(out, ESPHOME_PSTR("target_temperature_low"), this->target_temperature_low);
1674 dump_field(out, ESPHOME_PSTR("target_temperature_high"), this->target_temperature_high);
1675 return out.c_str();
1676}
1677#endif
1678#ifdef USE_NUMBER
1680 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesNumberResponse"));
1681 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1682 dump_field(out, ESPHOME_PSTR("key"), this->key);
1683 dump_field(out, ESPHOME_PSTR("name"), this->name);
1684#ifdef USE_ENTITY_ICON
1685 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
1686#endif
1687 dump_field(out, ESPHOME_PSTR("min_value"), this->min_value);
1688 dump_field(out, ESPHOME_PSTR("max_value"), this->max_value);
1689 dump_field(out, ESPHOME_PSTR("step"), this->step);
1690 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1691 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1692 dump_field(out, ESPHOME_PSTR("unit_of_measurement"), this->unit_of_measurement);
1693 dump_field(out, ESPHOME_PSTR("mode"), static_cast<enums::NumberMode>(this->mode));
1694 dump_field(out, ESPHOME_PSTR("device_class"), this->device_class);
1695#ifdef USE_DEVICES
1696 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1697#endif
1698 return out.c_str();
1699}
1701 MessageDumpHelper helper(out, ESPHOME_PSTR("NumberStateResponse"));
1702 dump_field(out, ESPHOME_PSTR("key"), this->key);
1703 dump_field(out, ESPHOME_PSTR("state"), this->state);
1704 dump_field(out, ESPHOME_PSTR("missing_state"), this->missing_state);
1705#ifdef USE_DEVICES
1706 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1707#endif
1708 return out.c_str();
1709}
1711 MessageDumpHelper helper(out, ESPHOME_PSTR("NumberCommandRequest"));
1712 dump_field(out, ESPHOME_PSTR("key"), this->key);
1713 dump_field(out, ESPHOME_PSTR("state"), this->state);
1714#ifdef USE_DEVICES
1715 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1716#endif
1717 return out.c_str();
1718}
1719#endif
1720#ifdef USE_SELECT
1722 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesSelectResponse"));
1723 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1724 dump_field(out, ESPHOME_PSTR("key"), this->key);
1725 dump_field(out, ESPHOME_PSTR("name"), this->name);
1726#ifdef USE_ENTITY_ICON
1727 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
1728#endif
1729 for (const auto &it : *this->options) {
1730 dump_field(out, ESPHOME_PSTR("options"), it, 4);
1731 }
1732 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1733 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1734#ifdef USE_DEVICES
1735 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1736#endif
1737 return out.c_str();
1738}
1740 MessageDumpHelper helper(out, ESPHOME_PSTR("SelectStateResponse"));
1741 dump_field(out, ESPHOME_PSTR("key"), this->key);
1742 dump_field(out, ESPHOME_PSTR("state"), this->state);
1743 dump_field(out, ESPHOME_PSTR("missing_state"), this->missing_state);
1744#ifdef USE_DEVICES
1745 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1746#endif
1747 return out.c_str();
1748}
1750 MessageDumpHelper helper(out, ESPHOME_PSTR("SelectCommandRequest"));
1751 dump_field(out, ESPHOME_PSTR("key"), this->key);
1752 dump_field(out, ESPHOME_PSTR("state"), this->state);
1753#ifdef USE_DEVICES
1754 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1755#endif
1756 return out.c_str();
1757}
1758#endif
1759#ifdef USE_SIREN
1761 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesSirenResponse"));
1762 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1763 dump_field(out, ESPHOME_PSTR("key"), this->key);
1764 dump_field(out, ESPHOME_PSTR("name"), this->name);
1765#ifdef USE_ENTITY_ICON
1766 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
1767#endif
1768 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1769 for (const auto &it : *this->tones) {
1770 dump_field(out, ESPHOME_PSTR("tones"), it, 4);
1771 }
1772 dump_field(out, ESPHOME_PSTR("supports_duration"), this->supports_duration);
1773 dump_field(out, ESPHOME_PSTR("supports_volume"), this->supports_volume);
1774 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1775#ifdef USE_DEVICES
1776 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1777#endif
1778 return out.c_str();
1779}
1781 MessageDumpHelper helper(out, ESPHOME_PSTR("SirenStateResponse"));
1782 dump_field(out, ESPHOME_PSTR("key"), this->key);
1783 dump_field(out, ESPHOME_PSTR("state"), this->state);
1784#ifdef USE_DEVICES
1785 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1786#endif
1787 return out.c_str();
1788}
1790 MessageDumpHelper helper(out, ESPHOME_PSTR("SirenCommandRequest"));
1791 dump_field(out, ESPHOME_PSTR("key"), this->key);
1792 dump_field(out, ESPHOME_PSTR("has_state"), this->has_state);
1793 dump_field(out, ESPHOME_PSTR("state"), this->state);
1794 dump_field(out, ESPHOME_PSTR("has_tone"), this->has_tone);
1795 dump_field(out, ESPHOME_PSTR("tone"), this->tone);
1796 dump_field(out, ESPHOME_PSTR("has_duration"), this->has_duration);
1797 dump_field(out, ESPHOME_PSTR("duration"), this->duration);
1798 dump_field(out, ESPHOME_PSTR("has_volume"), this->has_volume);
1799 dump_field(out, ESPHOME_PSTR("volume"), this->volume);
1800#ifdef USE_DEVICES
1801 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1802#endif
1803 return out.c_str();
1804}
1805#endif
1806#ifdef USE_LOCK
1808 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesLockResponse"));
1809 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1810 dump_field(out, ESPHOME_PSTR("key"), this->key);
1811 dump_field(out, ESPHOME_PSTR("name"), this->name);
1812#ifdef USE_ENTITY_ICON
1813 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
1814#endif
1815 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1816 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1817 dump_field(out, ESPHOME_PSTR("assumed_state"), this->assumed_state);
1818 dump_field(out, ESPHOME_PSTR("supports_open"), this->supports_open);
1819 dump_field(out, ESPHOME_PSTR("requires_code"), this->requires_code);
1820 dump_field(out, ESPHOME_PSTR("code_format"), this->code_format);
1821#ifdef USE_DEVICES
1822 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1823#endif
1824 return out.c_str();
1825}
1827 MessageDumpHelper helper(out, ESPHOME_PSTR("LockStateResponse"));
1828 dump_field(out, ESPHOME_PSTR("key"), this->key);
1829 dump_field(out, ESPHOME_PSTR("state"), static_cast<enums::LockState>(this->state));
1830#ifdef USE_DEVICES
1831 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1832#endif
1833 return out.c_str();
1834}
1836 MessageDumpHelper helper(out, ESPHOME_PSTR("LockCommandRequest"));
1837 dump_field(out, ESPHOME_PSTR("key"), this->key);
1838 dump_field(out, ESPHOME_PSTR("command"), static_cast<enums::LockCommand>(this->command));
1839 dump_field(out, ESPHOME_PSTR("has_code"), this->has_code);
1840 dump_field(out, ESPHOME_PSTR("code"), this->code);
1841#ifdef USE_DEVICES
1842 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1843#endif
1844 return out.c_str();
1845}
1846#endif
1847#ifdef USE_BUTTON
1849 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesButtonResponse"));
1850 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1851 dump_field(out, ESPHOME_PSTR("key"), this->key);
1852 dump_field(out, ESPHOME_PSTR("name"), this->name);
1853#ifdef USE_ENTITY_ICON
1854 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
1855#endif
1856 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1857 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1858 dump_field(out, ESPHOME_PSTR("device_class"), this->device_class);
1859#ifdef USE_DEVICES
1860 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1861#endif
1862 return out.c_str();
1863}
1865 MessageDumpHelper helper(out, ESPHOME_PSTR("ButtonCommandRequest"));
1866 dump_field(out, ESPHOME_PSTR("key"), this->key);
1867#ifdef USE_DEVICES
1868 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1869#endif
1870 return out.c_str();
1871}
1872#endif
1873#ifdef USE_MEDIA_PLAYER
1875 MessageDumpHelper helper(out, ESPHOME_PSTR("MediaPlayerSupportedFormat"));
1876 dump_field(out, ESPHOME_PSTR("format"), this->format);
1877 dump_field(out, ESPHOME_PSTR("sample_rate"), this->sample_rate);
1878 dump_field(out, ESPHOME_PSTR("num_channels"), this->num_channels);
1879 dump_field(out, ESPHOME_PSTR("purpose"), static_cast<enums::MediaPlayerFormatPurpose>(this->purpose));
1880 dump_field(out, ESPHOME_PSTR("sample_bytes"), this->sample_bytes);
1881 return out.c_str();
1882}
1884 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesMediaPlayerResponse"));
1885 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1886 dump_field(out, ESPHOME_PSTR("key"), this->key);
1887 dump_field(out, ESPHOME_PSTR("name"), this->name);
1888#ifdef USE_ENTITY_ICON
1889 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
1890#endif
1891 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1892 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1893 dump_field(out, ESPHOME_PSTR("supports_pause"), this->supports_pause);
1894 for (const auto &it : this->supported_formats) {
1895 out.append(4, ' ').append_p(ESPHOME_PSTR("supported_formats")).append(": ");
1896 it.dump_to(out);
1897 out.append("\n");
1898 }
1899#ifdef USE_DEVICES
1900 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1901#endif
1902 dump_field(out, ESPHOME_PSTR("feature_flags"), this->feature_flags);
1903 return out.c_str();
1904}
1906 MessageDumpHelper helper(out, ESPHOME_PSTR("MediaPlayerStateResponse"));
1907 dump_field(out, ESPHOME_PSTR("key"), this->key);
1908 dump_field(out, ESPHOME_PSTR("state"), static_cast<enums::MediaPlayerState>(this->state));
1909 dump_field(out, ESPHOME_PSTR("volume"), this->volume);
1910 dump_field(out, ESPHOME_PSTR("muted"), this->muted);
1911#ifdef USE_DEVICES
1912 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1913#endif
1914 return out.c_str();
1915}
1917 MessageDumpHelper helper(out, ESPHOME_PSTR("MediaPlayerCommandRequest"));
1918 dump_field(out, ESPHOME_PSTR("key"), this->key);
1919 dump_field(out, ESPHOME_PSTR("has_command"), this->has_command);
1920 dump_field(out, ESPHOME_PSTR("command"), static_cast<enums::MediaPlayerCommand>(this->command));
1921 dump_field(out, ESPHOME_PSTR("has_volume"), this->has_volume);
1922 dump_field(out, ESPHOME_PSTR("volume"), this->volume);
1923 dump_field(out, ESPHOME_PSTR("has_media_url"), this->has_media_url);
1924 dump_field(out, ESPHOME_PSTR("media_url"), this->media_url);
1925 dump_field(out, ESPHOME_PSTR("has_announcement"), this->has_announcement);
1926 dump_field(out, ESPHOME_PSTR("announcement"), this->announcement);
1927#ifdef USE_DEVICES
1928 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1929#endif
1930 return out.c_str();
1931}
1932#endif
1933#ifdef USE_BLUETOOTH_PROXY
1935 MessageDumpHelper helper(out, ESPHOME_PSTR("SubscribeBluetoothLEAdvertisementsRequest"));
1936 dump_field(out, ESPHOME_PSTR("flags"), this->flags);
1937 return out.c_str();
1938}
1940 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothLERawAdvertisement"));
1941 dump_field(out, ESPHOME_PSTR("address"), this->address);
1942 dump_field(out, ESPHOME_PSTR("rssi"), this->rssi);
1943 dump_field(out, ESPHOME_PSTR("address_type"), this->address_type);
1944 dump_bytes_field(out, ESPHOME_PSTR("data"), this->data, this->data_len);
1945 return out.c_str();
1946}
1948 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothLERawAdvertisementsResponse"));
1949 for (uint16_t i = 0; i < this->advertisements_len; i++) {
1950 out.append(4, ' ').append_p(ESPHOME_PSTR("advertisements")).append(": ");
1951 this->advertisements[i].dump_to(out);
1952 out.append("\n");
1953 }
1954 return out.c_str();
1955}
1957 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothDeviceRequest"));
1958 dump_field(out, ESPHOME_PSTR("address"), this->address);
1959 dump_field(out, ESPHOME_PSTR("request_type"), static_cast<enums::BluetoothDeviceRequestType>(this->request_type));
1960 dump_field(out, ESPHOME_PSTR("has_address_type"), this->has_address_type);
1961 dump_field(out, ESPHOME_PSTR("address_type"), this->address_type);
1962 return out.c_str();
1963}
1965 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothDeviceConnectionResponse"));
1966 dump_field(out, ESPHOME_PSTR("address"), this->address);
1967 dump_field(out, ESPHOME_PSTR("connected"), this->connected);
1968 dump_field(out, ESPHOME_PSTR("mtu"), this->mtu);
1969 dump_field(out, ESPHOME_PSTR("error"), this->error);
1970 return out.c_str();
1971}
1973 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTGetServicesRequest"));
1974 dump_field(out, ESPHOME_PSTR("address"), this->address);
1975 return out.c_str();
1976}
1978 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTDescriptor"));
1979 for (const auto &it : this->uuid) {
1980 dump_field(out, ESPHOME_PSTR("uuid"), it, 4);
1981 }
1982 dump_field(out, ESPHOME_PSTR("handle"), this->handle);
1983 dump_field(out, ESPHOME_PSTR("short_uuid"), this->short_uuid);
1984 return out.c_str();
1985}
1987 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTCharacteristic"));
1988 for (const auto &it : this->uuid) {
1989 dump_field(out, ESPHOME_PSTR("uuid"), it, 4);
1990 }
1991 dump_field(out, ESPHOME_PSTR("handle"), this->handle);
1992 dump_field(out, ESPHOME_PSTR("properties"), this->properties);
1993 for (const auto &it : this->descriptors) {
1994 out.append(4, ' ').append_p(ESPHOME_PSTR("descriptors")).append(": ");
1995 it.dump_to(out);
1996 out.append("\n");
1997 }
1998 dump_field(out, ESPHOME_PSTR("short_uuid"), this->short_uuid);
1999 return out.c_str();
2000}
2002 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTService"));
2003 for (const auto &it : this->uuid) {
2004 dump_field(out, ESPHOME_PSTR("uuid"), it, 4);
2005 }
2006 dump_field(out, ESPHOME_PSTR("handle"), this->handle);
2007 for (const auto &it : this->characteristics) {
2008 out.append(4, ' ').append_p(ESPHOME_PSTR("characteristics")).append(": ");
2009 it.dump_to(out);
2010 out.append("\n");
2011 }
2012 dump_field(out, ESPHOME_PSTR("short_uuid"), this->short_uuid);
2013 return out.c_str();
2014}
2016 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTGetServicesResponse"));
2017 dump_field(out, ESPHOME_PSTR("address"), this->address);
2018 for (const auto &it : this->services) {
2019 out.append(4, ' ').append_p(ESPHOME_PSTR("services")).append(": ");
2020 it.dump_to(out);
2021 out.append("\n");
2022 }
2023 return out.c_str();
2024}
2026 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTGetServicesDoneResponse"));
2027 dump_field(out, ESPHOME_PSTR("address"), this->address);
2028 return out.c_str();
2029}
2031 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTReadRequest"));
2032 dump_field(out, ESPHOME_PSTR("address"), this->address);
2033 dump_field(out, ESPHOME_PSTR("handle"), this->handle);
2034 return out.c_str();
2035}
2037 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTReadResponse"));
2038 dump_field(out, ESPHOME_PSTR("address"), this->address);
2039 dump_field(out, ESPHOME_PSTR("handle"), this->handle);
2040 dump_bytes_field(out, ESPHOME_PSTR("data"), this->data_ptr_, this->data_len_);
2041 return out.c_str();
2042}
2044 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTWriteRequest"));
2045 dump_field(out, ESPHOME_PSTR("address"), this->address);
2046 dump_field(out, ESPHOME_PSTR("handle"), this->handle);
2047 dump_field(out, ESPHOME_PSTR("response"), this->response);
2048 dump_bytes_field(out, ESPHOME_PSTR("data"), this->data, this->data_len);
2049 return out.c_str();
2050}
2052 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTReadDescriptorRequest"));
2053 dump_field(out, ESPHOME_PSTR("address"), this->address);
2054 dump_field(out, ESPHOME_PSTR("handle"), this->handle);
2055 return out.c_str();
2056}
2058 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTWriteDescriptorRequest"));
2059 dump_field(out, ESPHOME_PSTR("address"), this->address);
2060 dump_field(out, ESPHOME_PSTR("handle"), this->handle);
2061 dump_bytes_field(out, ESPHOME_PSTR("data"), this->data, this->data_len);
2062 return out.c_str();
2063}
2065 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTNotifyRequest"));
2066 dump_field(out, ESPHOME_PSTR("address"), this->address);
2067 dump_field(out, ESPHOME_PSTR("handle"), this->handle);
2068 dump_field(out, ESPHOME_PSTR("enable"), this->enable);
2069 return out.c_str();
2070}
2072 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTNotifyDataResponse"));
2073 dump_field(out, ESPHOME_PSTR("address"), this->address);
2074 dump_field(out, ESPHOME_PSTR("handle"), this->handle);
2075 dump_bytes_field(out, ESPHOME_PSTR("data"), this->data_ptr_, this->data_len_);
2076 return out.c_str();
2077}
2079 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothConnectionsFreeResponse"));
2080 dump_field(out, ESPHOME_PSTR("free"), this->free);
2081 dump_field(out, ESPHOME_PSTR("limit"), this->limit);
2082 for (const auto &it : this->allocated) {
2083 dump_field(out, ESPHOME_PSTR("allocated"), it, 4);
2084 }
2085 return out.c_str();
2086}
2088 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTErrorResponse"));
2089 dump_field(out, ESPHOME_PSTR("address"), this->address);
2090 dump_field(out, ESPHOME_PSTR("handle"), this->handle);
2091 dump_field(out, ESPHOME_PSTR("error"), this->error);
2092 return out.c_str();
2093}
2095 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTWriteResponse"));
2096 dump_field(out, ESPHOME_PSTR("address"), this->address);
2097 dump_field(out, ESPHOME_PSTR("handle"), this->handle);
2098 return out.c_str();
2099}
2101 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTNotifyResponse"));
2102 dump_field(out, ESPHOME_PSTR("address"), this->address);
2103 dump_field(out, ESPHOME_PSTR("handle"), this->handle);
2104 return out.c_str();
2105}
2107 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothDevicePairingResponse"));
2108 dump_field(out, ESPHOME_PSTR("address"), this->address);
2109 dump_field(out, ESPHOME_PSTR("paired"), this->paired);
2110 dump_field(out, ESPHOME_PSTR("error"), this->error);
2111 return out.c_str();
2112}
2114 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothDeviceUnpairingResponse"));
2115 dump_field(out, ESPHOME_PSTR("address"), this->address);
2116 dump_field(out, ESPHOME_PSTR("success"), this->success);
2117 dump_field(out, ESPHOME_PSTR("error"), this->error);
2118 return out.c_str();
2119}
2121 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothDeviceClearCacheResponse"));
2122 dump_field(out, ESPHOME_PSTR("address"), this->address);
2123 dump_field(out, ESPHOME_PSTR("success"), this->success);
2124 dump_field(out, ESPHOME_PSTR("error"), this->error);
2125 return out.c_str();
2126}
2128 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothScannerStateResponse"));
2129 dump_field(out, ESPHOME_PSTR("state"), static_cast<enums::BluetoothScannerState>(this->state));
2130 dump_field(out, ESPHOME_PSTR("mode"), static_cast<enums::BluetoothScannerMode>(this->mode));
2131 dump_field(out, ESPHOME_PSTR("configured_mode"), static_cast<enums::BluetoothScannerMode>(this->configured_mode));
2132 return out.c_str();
2133}
2135 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothScannerSetModeRequest"));
2136 dump_field(out, ESPHOME_PSTR("mode"), static_cast<enums::BluetoothScannerMode>(this->mode));
2137 return out.c_str();
2138}
2139#endif
2140#ifdef USE_VOICE_ASSISTANT
2142 MessageDumpHelper helper(out, ESPHOME_PSTR("SubscribeVoiceAssistantRequest"));
2143 dump_field(out, ESPHOME_PSTR("subscribe"), this->subscribe);
2144 dump_field(out, ESPHOME_PSTR("flags"), this->flags);
2145 return out.c_str();
2146}
2148 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantAudioSettings"));
2149 dump_field(out, ESPHOME_PSTR("noise_suppression_level"), this->noise_suppression_level);
2150 dump_field(out, ESPHOME_PSTR("auto_gain"), this->auto_gain);
2151 dump_field(out, ESPHOME_PSTR("volume_multiplier"), this->volume_multiplier);
2152 return out.c_str();
2153}
2155 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantRequest"));
2156 dump_field(out, ESPHOME_PSTR("start"), this->start);
2157 dump_field(out, ESPHOME_PSTR("conversation_id"), this->conversation_id);
2158 dump_field(out, ESPHOME_PSTR("flags"), this->flags);
2159 out.append(2, ' ').append_p(ESPHOME_PSTR("audio_settings")).append(": ");
2160 this->audio_settings.dump_to(out);
2161 out.append("\n");
2162 dump_field(out, ESPHOME_PSTR("wake_word_phrase"), this->wake_word_phrase);
2163 return out.c_str();
2164}
2166 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantResponse"));
2167 dump_field(out, ESPHOME_PSTR("port"), this->port);
2168 dump_field(out, ESPHOME_PSTR("error"), this->error);
2169 return out.c_str();
2170}
2172 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantEventData"));
2173 dump_field(out, ESPHOME_PSTR("name"), this->name);
2174 dump_field(out, ESPHOME_PSTR("value"), this->value);
2175 return out.c_str();
2176}
2178 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantEventResponse"));
2179 dump_field(out, ESPHOME_PSTR("event_type"), static_cast<enums::VoiceAssistantEvent>(this->event_type));
2180 for (const auto &it : this->data) {
2181 out.append(4, ' ').append_p(ESPHOME_PSTR("data")).append(": ");
2182 it.dump_to(out);
2183 out.append("\n");
2184 }
2185 return out.c_str();
2186}
2188 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantAudio"));
2189 dump_bytes_field(out, ESPHOME_PSTR("data"), this->data, this->data_len);
2190 dump_field(out, ESPHOME_PSTR("end"), this->end);
2191 dump_bytes_field(out, ESPHOME_PSTR("data2"), this->data2, this->data2_len);
2192 return out.c_str();
2193}
2195 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantTimerEventResponse"));
2196 dump_field(out, ESPHOME_PSTR("event_type"), static_cast<enums::VoiceAssistantTimerEvent>(this->event_type));
2197 dump_field(out, ESPHOME_PSTR("timer_id"), this->timer_id);
2198 dump_field(out, ESPHOME_PSTR("name"), this->name);
2199 dump_field(out, ESPHOME_PSTR("total_seconds"), this->total_seconds);
2200 dump_field(out, ESPHOME_PSTR("seconds_left"), this->seconds_left);
2201 dump_field(out, ESPHOME_PSTR("is_active"), this->is_active);
2202 return out.c_str();
2203}
2205 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantAnnounceRequest"));
2206 dump_field(out, ESPHOME_PSTR("media_id"), this->media_id);
2207 dump_field(out, ESPHOME_PSTR("text"), this->text);
2208 dump_field(out, ESPHOME_PSTR("preannounce_media_id"), this->preannounce_media_id);
2209 dump_field(out, ESPHOME_PSTR("start_conversation"), this->start_conversation);
2210 return out.c_str();
2211}
2213 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantAnnounceFinished"));
2214 dump_field(out, ESPHOME_PSTR("success"), this->success);
2215 return out.c_str();
2216}
2218 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantWakeWord"));
2219 dump_field(out, ESPHOME_PSTR("id"), this->id);
2220 dump_field(out, ESPHOME_PSTR("wake_word"), this->wake_word);
2221 for (const auto &it : this->trained_languages) {
2222 dump_field(out, ESPHOME_PSTR("trained_languages"), it, 4);
2223 }
2224 return out.c_str();
2225}
2227 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantExternalWakeWord"));
2228 dump_field(out, ESPHOME_PSTR("id"), this->id);
2229 dump_field(out, ESPHOME_PSTR("wake_word"), this->wake_word);
2230 for (const auto &it : this->trained_languages) {
2231 dump_field(out, ESPHOME_PSTR("trained_languages"), it, 4);
2232 }
2233 dump_field(out, ESPHOME_PSTR("model_type"), this->model_type);
2234 dump_field(out, ESPHOME_PSTR("model_size"), this->model_size);
2235 dump_field(out, ESPHOME_PSTR("model_hash"), this->model_hash);
2236 dump_field(out, ESPHOME_PSTR("url"), this->url);
2237 return out.c_str();
2238}
2240 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantConfigurationRequest"));
2241 for (const auto &it : this->external_wake_words) {
2242 out.append(4, ' ').append_p(ESPHOME_PSTR("external_wake_words")).append(": ");
2243 it.dump_to(out);
2244 out.append("\n");
2245 }
2246 return out.c_str();
2247}
2249 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantConfigurationResponse"));
2250 for (const auto &it : this->available_wake_words) {
2251 out.append(4, ' ').append_p(ESPHOME_PSTR("available_wake_words")).append(": ");
2252 it.dump_to(out);
2253 out.append("\n");
2254 }
2255 for (const auto &it : *this->active_wake_words) {
2256 dump_field(out, ESPHOME_PSTR("active_wake_words"), it, 4);
2257 }
2258 dump_field(out, ESPHOME_PSTR("max_active_wake_words"), this->max_active_wake_words);
2259 return out.c_str();
2260}
2262 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantSetConfiguration"));
2263 for (const auto &it : this->active_wake_words) {
2264 dump_field(out, ESPHOME_PSTR("active_wake_words"), it, 4);
2265 }
2266 return out.c_str();
2267}
2268#endif
2269#ifdef USE_ALARM_CONTROL_PANEL
2271 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesAlarmControlPanelResponse"));
2272 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
2273 dump_field(out, ESPHOME_PSTR("key"), this->key);
2274 dump_field(out, ESPHOME_PSTR("name"), this->name);
2275#ifdef USE_ENTITY_ICON
2276 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
2277#endif
2278 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
2279 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
2280 dump_field(out, ESPHOME_PSTR("supported_features"), this->supported_features);
2281 dump_field(out, ESPHOME_PSTR("requires_code"), this->requires_code);
2282 dump_field(out, ESPHOME_PSTR("requires_code_to_arm"), this->requires_code_to_arm);
2283#ifdef USE_DEVICES
2284 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2285#endif
2286 return out.c_str();
2287}
2289 MessageDumpHelper helper(out, ESPHOME_PSTR("AlarmControlPanelStateResponse"));
2290 dump_field(out, ESPHOME_PSTR("key"), this->key);
2291 dump_field(out, ESPHOME_PSTR("state"), static_cast<enums::AlarmControlPanelState>(this->state));
2292#ifdef USE_DEVICES
2293 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2294#endif
2295 return out.c_str();
2296}
2298 MessageDumpHelper helper(out, ESPHOME_PSTR("AlarmControlPanelCommandRequest"));
2299 dump_field(out, ESPHOME_PSTR("key"), this->key);
2300 dump_field(out, ESPHOME_PSTR("command"), static_cast<enums::AlarmControlPanelStateCommand>(this->command));
2301 dump_field(out, ESPHOME_PSTR("code"), this->code);
2302#ifdef USE_DEVICES
2303 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2304#endif
2305 return out.c_str();
2306}
2307#endif
2308#ifdef USE_TEXT
2310 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesTextResponse"));
2311 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
2312 dump_field(out, ESPHOME_PSTR("key"), this->key);
2313 dump_field(out, ESPHOME_PSTR("name"), this->name);
2314#ifdef USE_ENTITY_ICON
2315 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
2316#endif
2317 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
2318 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
2319 dump_field(out, ESPHOME_PSTR("min_length"), this->min_length);
2320 dump_field(out, ESPHOME_PSTR("max_length"), this->max_length);
2321 dump_field(out, ESPHOME_PSTR("pattern"), this->pattern);
2322 dump_field(out, ESPHOME_PSTR("mode"), static_cast<enums::TextMode>(this->mode));
2323#ifdef USE_DEVICES
2324 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2325#endif
2326 return out.c_str();
2327}
2329 MessageDumpHelper helper(out, ESPHOME_PSTR("TextStateResponse"));
2330 dump_field(out, ESPHOME_PSTR("key"), this->key);
2331 dump_field(out, ESPHOME_PSTR("state"), this->state);
2332 dump_field(out, ESPHOME_PSTR("missing_state"), this->missing_state);
2333#ifdef USE_DEVICES
2334 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2335#endif
2336 return out.c_str();
2337}
2339 MessageDumpHelper helper(out, ESPHOME_PSTR("TextCommandRequest"));
2340 dump_field(out, ESPHOME_PSTR("key"), this->key);
2341 dump_field(out, ESPHOME_PSTR("state"), this->state);
2342#ifdef USE_DEVICES
2343 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2344#endif
2345 return out.c_str();
2346}
2347#endif
2348#ifdef USE_DATETIME_DATE
2350 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesDateResponse"));
2351 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
2352 dump_field(out, ESPHOME_PSTR("key"), this->key);
2353 dump_field(out, ESPHOME_PSTR("name"), this->name);
2354#ifdef USE_ENTITY_ICON
2355 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
2356#endif
2357 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
2358 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
2359#ifdef USE_DEVICES
2360 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2361#endif
2362 return out.c_str();
2363}
2365 MessageDumpHelper helper(out, ESPHOME_PSTR("DateStateResponse"));
2366 dump_field(out, ESPHOME_PSTR("key"), this->key);
2367 dump_field(out, ESPHOME_PSTR("missing_state"), this->missing_state);
2368 dump_field(out, ESPHOME_PSTR("year"), this->year);
2369 dump_field(out, ESPHOME_PSTR("month"), this->month);
2370 dump_field(out, ESPHOME_PSTR("day"), this->day);
2371#ifdef USE_DEVICES
2372 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2373#endif
2374 return out.c_str();
2375}
2377 MessageDumpHelper helper(out, ESPHOME_PSTR("DateCommandRequest"));
2378 dump_field(out, ESPHOME_PSTR("key"), this->key);
2379 dump_field(out, ESPHOME_PSTR("year"), this->year);
2380 dump_field(out, ESPHOME_PSTR("month"), this->month);
2381 dump_field(out, ESPHOME_PSTR("day"), this->day);
2382#ifdef USE_DEVICES
2383 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2384#endif
2385 return out.c_str();
2386}
2387#endif
2388#ifdef USE_DATETIME_TIME
2390 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesTimeResponse"));
2391 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
2392 dump_field(out, ESPHOME_PSTR("key"), this->key);
2393 dump_field(out, ESPHOME_PSTR("name"), this->name);
2394#ifdef USE_ENTITY_ICON
2395 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
2396#endif
2397 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
2398 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
2399#ifdef USE_DEVICES
2400 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2401#endif
2402 return out.c_str();
2403}
2405 MessageDumpHelper helper(out, ESPHOME_PSTR("TimeStateResponse"));
2406 dump_field(out, ESPHOME_PSTR("key"), this->key);
2407 dump_field(out, ESPHOME_PSTR("missing_state"), this->missing_state);
2408 dump_field(out, ESPHOME_PSTR("hour"), this->hour);
2409 dump_field(out, ESPHOME_PSTR("minute"), this->minute);
2410 dump_field(out, ESPHOME_PSTR("second"), this->second);
2411#ifdef USE_DEVICES
2412 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2413#endif
2414 return out.c_str();
2415}
2417 MessageDumpHelper helper(out, ESPHOME_PSTR("TimeCommandRequest"));
2418 dump_field(out, ESPHOME_PSTR("key"), this->key);
2419 dump_field(out, ESPHOME_PSTR("hour"), this->hour);
2420 dump_field(out, ESPHOME_PSTR("minute"), this->minute);
2421 dump_field(out, ESPHOME_PSTR("second"), this->second);
2422#ifdef USE_DEVICES
2423 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2424#endif
2425 return out.c_str();
2426}
2427#endif
2428#ifdef USE_EVENT
2430 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesEventResponse"));
2431 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
2432 dump_field(out, ESPHOME_PSTR("key"), this->key);
2433 dump_field(out, ESPHOME_PSTR("name"), this->name);
2434#ifdef USE_ENTITY_ICON
2435 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
2436#endif
2437 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
2438 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
2439 dump_field(out, ESPHOME_PSTR("device_class"), this->device_class);
2440 for (const auto &it : *this->event_types) {
2441 dump_field(out, ESPHOME_PSTR("event_types"), it, 4);
2442 }
2443#ifdef USE_DEVICES
2444 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2445#endif
2446 return out.c_str();
2447}
2448const char *EventResponse::dump_to(DumpBuffer &out) const {
2449 MessageDumpHelper helper(out, ESPHOME_PSTR("EventResponse"));
2450 dump_field(out, ESPHOME_PSTR("key"), this->key);
2451 dump_field(out, ESPHOME_PSTR("event_type"), this->event_type);
2452#ifdef USE_DEVICES
2453 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2454#endif
2455 return out.c_str();
2456}
2457#endif
2458#ifdef USE_VALVE
2460 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesValveResponse"));
2461 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
2462 dump_field(out, ESPHOME_PSTR("key"), this->key);
2463 dump_field(out, ESPHOME_PSTR("name"), this->name);
2464#ifdef USE_ENTITY_ICON
2465 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
2466#endif
2467 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
2468 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
2469 dump_field(out, ESPHOME_PSTR("device_class"), this->device_class);
2470 dump_field(out, ESPHOME_PSTR("assumed_state"), this->assumed_state);
2471 dump_field(out, ESPHOME_PSTR("supports_position"), this->supports_position);
2472 dump_field(out, ESPHOME_PSTR("supports_stop"), this->supports_stop);
2473#ifdef USE_DEVICES
2474 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2475#endif
2476 return out.c_str();
2477}
2479 MessageDumpHelper helper(out, ESPHOME_PSTR("ValveStateResponse"));
2480 dump_field(out, ESPHOME_PSTR("key"), this->key);
2481 dump_field(out, ESPHOME_PSTR("position"), this->position);
2482 dump_field(out, ESPHOME_PSTR("current_operation"), static_cast<enums::ValveOperation>(this->current_operation));
2483#ifdef USE_DEVICES
2484 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2485#endif
2486 return out.c_str();
2487}
2489 MessageDumpHelper helper(out, ESPHOME_PSTR("ValveCommandRequest"));
2490 dump_field(out, ESPHOME_PSTR("key"), this->key);
2491 dump_field(out, ESPHOME_PSTR("has_position"), this->has_position);
2492 dump_field(out, ESPHOME_PSTR("position"), this->position);
2493 dump_field(out, ESPHOME_PSTR("stop"), this->stop);
2494#ifdef USE_DEVICES
2495 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2496#endif
2497 return out.c_str();
2498}
2499#endif
2500#ifdef USE_DATETIME_DATETIME
2502 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesDateTimeResponse"));
2503 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
2504 dump_field(out, ESPHOME_PSTR("key"), this->key);
2505 dump_field(out, ESPHOME_PSTR("name"), this->name);
2506#ifdef USE_ENTITY_ICON
2507 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
2508#endif
2509 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
2510 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
2511#ifdef USE_DEVICES
2512 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2513#endif
2514 return out.c_str();
2515}
2517 MessageDumpHelper helper(out, ESPHOME_PSTR("DateTimeStateResponse"));
2518 dump_field(out, ESPHOME_PSTR("key"), this->key);
2519 dump_field(out, ESPHOME_PSTR("missing_state"), this->missing_state);
2520 dump_field(out, ESPHOME_PSTR("epoch_seconds"), this->epoch_seconds);
2521#ifdef USE_DEVICES
2522 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2523#endif
2524 return out.c_str();
2525}
2527 MessageDumpHelper helper(out, ESPHOME_PSTR("DateTimeCommandRequest"));
2528 dump_field(out, ESPHOME_PSTR("key"), this->key);
2529 dump_field(out, ESPHOME_PSTR("epoch_seconds"), this->epoch_seconds);
2530#ifdef USE_DEVICES
2531 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2532#endif
2533 return out.c_str();
2534}
2535#endif
2536#ifdef USE_UPDATE
2538 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesUpdateResponse"));
2539 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
2540 dump_field(out, ESPHOME_PSTR("key"), this->key);
2541 dump_field(out, ESPHOME_PSTR("name"), this->name);
2542#ifdef USE_ENTITY_ICON
2543 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
2544#endif
2545 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
2546 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
2547 dump_field(out, ESPHOME_PSTR("device_class"), this->device_class);
2548#ifdef USE_DEVICES
2549 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2550#endif
2551 return out.c_str();
2552}
2554 MessageDumpHelper helper(out, ESPHOME_PSTR("UpdateStateResponse"));
2555 dump_field(out, ESPHOME_PSTR("key"), this->key);
2556 dump_field(out, ESPHOME_PSTR("missing_state"), this->missing_state);
2557 dump_field(out, ESPHOME_PSTR("in_progress"), this->in_progress);
2558 dump_field(out, ESPHOME_PSTR("has_progress"), this->has_progress);
2559 dump_field(out, ESPHOME_PSTR("progress"), this->progress);
2560 dump_field(out, ESPHOME_PSTR("current_version"), this->current_version);
2561 dump_field(out, ESPHOME_PSTR("latest_version"), this->latest_version);
2562 dump_field(out, ESPHOME_PSTR("title"), this->title);
2563 dump_field(out, ESPHOME_PSTR("release_summary"), this->release_summary);
2564 dump_field(out, ESPHOME_PSTR("release_url"), this->release_url);
2565#ifdef USE_DEVICES
2566 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2567#endif
2568 return out.c_str();
2569}
2571 MessageDumpHelper helper(out, ESPHOME_PSTR("UpdateCommandRequest"));
2572 dump_field(out, ESPHOME_PSTR("key"), this->key);
2573 dump_field(out, ESPHOME_PSTR("command"), static_cast<enums::UpdateCommand>(this->command));
2574#ifdef USE_DEVICES
2575 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2576#endif
2577 return out.c_str();
2578}
2579#endif
2580#ifdef USE_ZWAVE_PROXY
2581const char *ZWaveProxyFrame::dump_to(DumpBuffer &out) const {
2582 MessageDumpHelper helper(out, ESPHOME_PSTR("ZWaveProxyFrame"));
2583 dump_bytes_field(out, ESPHOME_PSTR("data"), this->data, this->data_len);
2584 return out.c_str();
2585}
2587 MessageDumpHelper helper(out, ESPHOME_PSTR("ZWaveProxyRequest"));
2588 dump_field(out, ESPHOME_PSTR("type"), static_cast<enums::ZWaveProxyRequestType>(this->type));
2589 dump_bytes_field(out, ESPHOME_PSTR("data"), this->data, this->data_len);
2590 return out.c_str();
2591}
2592#endif
2593#ifdef USE_INFRARED
2595 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesInfraredResponse"));
2596 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
2597 dump_field(out, ESPHOME_PSTR("key"), this->key);
2598 dump_field(out, ESPHOME_PSTR("name"), this->name);
2599#ifdef USE_ENTITY_ICON
2600 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
2601#endif
2602 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
2603 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
2604#ifdef USE_DEVICES
2605 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2606#endif
2607 dump_field(out, ESPHOME_PSTR("capabilities"), this->capabilities);
2608 dump_field(out, ESPHOME_PSTR("receiver_frequency"), this->receiver_frequency);
2609 return out.c_str();
2610}
2611#endif
2612#if defined(USE_IR_RF) || defined(USE_RADIO_FREQUENCY)
2614 MessageDumpHelper helper(out, ESPHOME_PSTR("InfraredRFTransmitRawTimingsRequest"));
2615#ifdef USE_DEVICES
2616 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2617#endif
2618 dump_field(out, ESPHOME_PSTR("key"), this->key);
2619 dump_field(out, ESPHOME_PSTR("carrier_frequency"), this->carrier_frequency);
2620 dump_field(out, ESPHOME_PSTR("repeat_count"), this->repeat_count);
2621 out.append(2, ' ').append_p(ESPHOME_PSTR("timings")).append(": ");
2622 out.append_p(ESPHOME_PSTR("packed buffer ["));
2623 append_uint(out, this->timings_count_);
2624 out.append_p(ESPHOME_PSTR(" values, "));
2625 append_uint(out, this->timings_length_);
2626 out.append_p(ESPHOME_PSTR(" bytes]\n"));
2627 dump_field(out, ESPHOME_PSTR("modulation"), this->modulation);
2628 return out.c_str();
2629}
2631 MessageDumpHelper helper(out, ESPHOME_PSTR("InfraredRFReceiveEvent"));
2632#ifdef USE_DEVICES
2633 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2634#endif
2635 dump_field(out, ESPHOME_PSTR("key"), this->key);
2636 for (const auto &it : *this->timings) {
2637 dump_field(out, ESPHOME_PSTR("timings"), it, 4);
2638 }
2639 return out.c_str();
2640}
2641#endif
2642#ifdef USE_RADIO_FREQUENCY
2644 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesRadioFrequencyResponse"));
2645 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
2646 dump_field(out, ESPHOME_PSTR("key"), this->key);
2647 dump_field(out, ESPHOME_PSTR("name"), this->name);
2648#ifdef USE_ENTITY_ICON
2649 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
2650#endif
2651 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
2652 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
2653#ifdef USE_DEVICES
2654 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2655#endif
2656 dump_field(out, ESPHOME_PSTR("capabilities"), this->capabilities);
2657 dump_field(out, ESPHOME_PSTR("frequency_min"), this->frequency_min);
2658 dump_field(out, ESPHOME_PSTR("frequency_max"), this->frequency_max);
2659 dump_field(out, ESPHOME_PSTR("supported_modulations"), this->supported_modulations);
2660 return out.c_str();
2661}
2662#endif
2663#ifdef USE_SERIAL_PROXY
2665 MessageDumpHelper helper(out, ESPHOME_PSTR("SerialProxyConfigureRequest"));
2666 dump_field(out, ESPHOME_PSTR("instance"), this->instance);
2667 dump_field(out, ESPHOME_PSTR("baudrate"), this->baudrate);
2668 dump_field(out, ESPHOME_PSTR("flow_control"), this->flow_control);
2669 dump_field(out, ESPHOME_PSTR("parity"), static_cast<enums::SerialProxyParity>(this->parity));
2670 dump_field(out, ESPHOME_PSTR("stop_bits"), this->stop_bits);
2671 dump_field(out, ESPHOME_PSTR("data_size"), this->data_size);
2672 return out.c_str();
2673}
2675 MessageDumpHelper helper(out, ESPHOME_PSTR("SerialProxyDataReceived"));
2676 dump_field(out, ESPHOME_PSTR("instance"), this->instance);
2677 dump_bytes_field(out, ESPHOME_PSTR("data"), this->data_ptr_, this->data_len_);
2678 return out.c_str();
2679}
2681 MessageDumpHelper helper(out, ESPHOME_PSTR("SerialProxyWriteRequest"));
2682 dump_field(out, ESPHOME_PSTR("instance"), this->instance);
2683 dump_bytes_field(out, ESPHOME_PSTR("data"), this->data, this->data_len);
2684 return out.c_str();
2685}
2687 MessageDumpHelper helper(out, ESPHOME_PSTR("SerialProxySetModemPinsRequest"));
2688 dump_field(out, ESPHOME_PSTR("instance"), this->instance);
2689 dump_field(out, ESPHOME_PSTR("line_states"), this->line_states);
2690 return out.c_str();
2691}
2693 MessageDumpHelper helper(out, ESPHOME_PSTR("SerialProxyGetModemPinsRequest"));
2694 dump_field(out, ESPHOME_PSTR("instance"), this->instance);
2695 return out.c_str();
2696}
2698 MessageDumpHelper helper(out, ESPHOME_PSTR("SerialProxyGetModemPinsResponse"));
2699 dump_field(out, ESPHOME_PSTR("instance"), this->instance);
2700 dump_field(out, ESPHOME_PSTR("line_states"), this->line_states);
2701 return out.c_str();
2702}
2704 MessageDumpHelper helper(out, ESPHOME_PSTR("SerialProxyRequest"));
2705 dump_field(out, ESPHOME_PSTR("instance"), this->instance);
2706 dump_field(out, ESPHOME_PSTR("type"), static_cast<enums::SerialProxyRequestType>(this->type));
2707 return out.c_str();
2708}
2710 MessageDumpHelper helper(out, ESPHOME_PSTR("SerialProxyRequestResponse"));
2711 dump_field(out, ESPHOME_PSTR("instance"), this->instance);
2712 dump_field(out, ESPHOME_PSTR("type"), static_cast<enums::SerialProxyRequestType>(this->type));
2713 dump_field(out, ESPHOME_PSTR("status"), static_cast<enums::SerialProxyStatus>(this->status));
2714 dump_field(out, ESPHOME_PSTR("error_message"), this->error_message);
2715 return out.c_str();
2716}
2717#endif
2718#ifdef USE_BLUETOOTH_PROXY
2720 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothSetConnectionParamsRequest"));
2721 dump_field(out, ESPHOME_PSTR("address"), this->address);
2722 dump_field(out, ESPHOME_PSTR("min_interval"), this->min_interval);
2723 dump_field(out, ESPHOME_PSTR("max_interval"), this->max_interval);
2724 dump_field(out, ESPHOME_PSTR("latency"), this->latency);
2725 dump_field(out, ESPHOME_PSTR("timeout"), this->timeout);
2726 return out.c_str();
2727}
2729 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothSetConnectionParamsResponse"));
2730 dump_field(out, ESPHOME_PSTR("address"), this->address);
2731 dump_field(out, ESPHOME_PSTR("error"), this->error);
2732 return out.c_str();
2733}
2734#endif
2735
2736} // namespace esphome::api
2737
2738#endif // HAS_PROTO_MESSAGE_DUMP
StringRef is a reference to a string owned by something else.
Definition string_ref.h:26
constexpr const char * c_str() const
Definition string_ref.h:73
constexpr bool empty() const
Definition string_ref.h:76
constexpr size_type size() const
Definition string_ref.h:74
const char * dump_to(DumpBuffer &out) const override
enums::AlarmControlPanelStateCommand command
Definition api_pb2.h:2646
const char * dump_to(DumpBuffer &out) const override
enums::AlarmControlPanelState state
Definition api_pb2.h:2630
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
std::array< uint64_t, BLUETOOTH_PROXY_MAX_CONNECTIONS > allocated
Definition api_pb2.h:2204
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
enums::BluetoothDeviceRequestType request_type
Definition api_pb2.h:1942
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
FixedVector< BluetoothGATTDescriptor > descriptors
Definition api_pb2.h:2004
const char * dump_to(DumpBuffer &out) const override
std::array< uint64_t, 2 > uuid
Definition api_pb2.h:2001
std::array< uint64_t, 2 > uuid
Definition api_pb2.h:1988
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
std::vector< BluetoothGATTService > services
Definition api_pb2.h:2036
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
FixedVector< BluetoothGATTCharacteristic > characteristics
Definition api_pb2.h:2018
const char * dump_to(DumpBuffer &out) const override
std::array< uint64_t, 2 > uuid
Definition api_pb2.h:2016
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
std::array< BluetoothLERawAdvertisement, BLUETOOTH_PROXY_ADVERTISEMENT_BATCH_SIZE > advertisements
Definition api_pb2.h:1924
const char * dump_to(DumpBuffer &out) const override
enums::BluetoothScannerMode mode
Definition api_pb2.h:2344
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
enums::BluetoothScannerMode mode
Definition api_pb2.h:2327
enums::BluetoothScannerState state
Definition api_pb2.h:2326
enums::BluetoothScannerMode configured_mode
Definition api_pb2.h:2328
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
enums::ClimateSwingMode swing_mode
Definition api_pb2.h:1470
enums::ClimateFanMode fan_mode
Definition api_pb2.h:1468
enums::ClimatePreset preset
Definition api_pb2.h:1474
enums::ClimateFanMode fan_mode
Definition api_pb2.h:1437
enums::ClimateSwingMode swing_mode
Definition api_pb2.h:1438
const char * dump_to(DumpBuffer &out) const override
enums::ClimateAction action
Definition api_pb2.h:1436
enums::ClimatePreset preset
Definition api_pb2.h:1440
const char * dump_to(DumpBuffer &out) const override
enums::CoverOperation current_operation
Definition api_pb2.h:682
const char * dump_to(DumpBuffer &out) const override
enums::DSTRuleType type
Definition api_pb2.h:1188
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
std::array< AreaInfo, ESPHOME_AREA_COUNT > areas
Definition api_pb2.h:578
std::array< SerialProxyInfo, SERIAL_PROXY_COUNT > serial_proxies
Definition api_pb2.h:590
std::array< DeviceInfo, ESPHOME_DEVICE_COUNT > devices
Definition api_pb2.h:575
const char * dump_to(DumpBuffer &out) const override
enums::DisconnectReason reason
Definition api_pb2.h:441
const char * dump_to(DumpBuffer &out) const override
Fixed-size buffer for message dumps - avoids heap allocation.
Definition proto.h:543
const char * c_str() const
Definition proto.h:591
void append_p_esp8266(const char *str)
Out-of-line ESP8266 PROGMEM append to avoid inlining strlen_P/memcpy_P at every call site.
DumpBuffer & append_p(const char *str)
Append a PROGMEM string (flash-safe on ESP8266, regular append on other platforms)
Definition proto.h:575
static constexpr size_t CAPACITY
Definition proto.h:546
DumpBuffer & append(const char *str)
Definition proto.h:550
const char * dump_to(DumpBuffer &out) const override
FixedVector< float > float_array
Definition api_pb2.h:1272
FixedVector< std::string > string_array
Definition api_pb2.h:1273
FixedVector< int32_t > int_array
Definition api_pb2.h:1271
const char * dump_to(DumpBuffer &out) const override
FixedVector< ExecuteServiceArgument > args
Definition api_pb2.h:1292
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
enums::FanDirection direction
Definition api_pb2.h:765
enums::FanDirection direction
Definition api_pb2.h:742
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
ParsedTimezone parsed_timezone
Definition api_pb2.h:1222
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
FixedVector< HomeassistantServiceMap > variables
Definition api_pb2.h:1090
FixedVector< HomeassistantServiceMap > data_template
Definition api_pb2.h:1089
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
enums::EntityCategory entity_category
Definition api_pb2.h:367
const std::vector< int32_t > * timings
Definition api_pb2.h:3117
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
enums::ColorMode color_mode
Definition api_pb2.h:809
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const std::vector< const char * > * supported_custom_presets
Definition api_pb2.h:1408
const climate::ClimateSwingModeMask * supported_swing_modes
Definition api_pb2.h:1405
enums::TemperatureUnit temperature_unit
Definition api_pb2.h:1415
const std::vector< const char * > * supported_custom_fan_modes
Definition api_pb2.h:1406
const climate::ClimatePresetMask * supported_presets
Definition api_pb2.h:1407
const climate::ClimateFanModeMask * supported_fan_modes
Definition api_pb2.h:1404
const char * dump_to(DumpBuffer &out) const override
const climate::ClimateModeMask * supported_modes
Definition api_pb2.h:1399
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const FixedVector< const char * > * event_types
Definition api_pb2.h:2830
const char * dump_to(DumpBuffer &out) const override
const std::vector< const char * > * supported_preset_modes
Definition api_pb2.h:724
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const FixedVector< const char * > * effects
Definition api_pb2.h:791
const light::ColorModeMask * supported_color_modes
Definition api_pb2.h:788
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
std::vector< MediaPlayerSupportedFormat > supported_formats
Definition api_pb2.h:1835
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const FixedVector< const char * > * options
Definition api_pb2.h:1618
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
enums::SensorStateClass state_class
Definition api_pb2.h:882
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
enums::SupportsResponseType supports_response
Definition api_pb2.h:1254
FixedVector< ListEntitiesServicesArgument > args
Definition api_pb2.h:1253
const char * dump_to(DumpBuffer &out) const override
const FixedVector< const char * > * tones
Definition api_pb2.h:1670
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const water_heater::WaterHeaterModeMask * supported_modes
Definition api_pb2.h:1500
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
enums::LockCommand command
Definition api_pb2.h:1765
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
enums::MediaPlayerCommand command
Definition api_pb2.h:1871
enums::MediaPlayerState state
Definition api_pb2.h:1852
const char * dump_to(DumpBuffer &out) const override
enums::MediaPlayerFormatPurpose purpose
Definition api_pb2.h:1817
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
enums::SerialProxyParity parity
Definition api_pb2.h:3159
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
enums::SerialProxyPortType port_type
Definition api_pb2.h:523
const char * dump_to(DumpBuffer &out) const override
enums::SerialProxyRequestType type
Definition api_pb2.h:3265
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
enums::SerialProxyRequestType type
Definition api_pb2.h:3281
enums::SerialProxyStatus status
Definition api_pb2.h:3282
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
enums::UpdateCommand command
Definition api_pb2.h:3010
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
enums::ValveOperation current_operation
Definition api_pb2.h:2884
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
std::vector< VoiceAssistantExternalWakeWord > external_wake_words
Definition api_pb2.h:2562
std::vector< VoiceAssistantWakeWord > available_wake_words
Definition api_pb2.h:2577
const std::vector< std::string > * active_wake_words
Definition api_pb2.h:2578
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
enums::VoiceAssistantEvent event_type
Definition api_pb2.h:2437
const char * dump_to(DumpBuffer &out) const override
std::vector< std::string > trained_languages
Definition api_pb2.h:2542
const char * dump_to(DumpBuffer &out) const override
VoiceAssistantAudioSettings audio_settings
Definition api_pb2.h:2393
const char * dump_to(DumpBuffer &out) const override
std::vector< std::string > active_wake_words
Definition api_pb2.h:2595
const char * dump_to(DumpBuffer &out) const override
enums::VoiceAssistantTimerEvent event_type
Definition api_pb2.h:2476
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
std::vector< std::string > trained_languages
Definition api_pb2.h:2529
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
enums::ZWaveProxyRequestType type
Definition api_pb2.h:3046
const char * dump_to(DumpBuffer &out) const override
@ MEDIA_PLAYER_STATE_ANNOUNCING
Definition api_pb2.h:203
@ ALARM_STATE_ARMED_CUSTOM_BYPASS
Definition api_pb2.h:293
@ SERVICE_ARG_TYPE_BOOL_ARRAY
Definition api_pb2.h:87
@ SERVICE_ARG_TYPE_STRING_ARRAY
Definition api_pb2.h:90
@ SERVICE_ARG_TYPE_FLOAT_ARRAY
Definition api_pb2.h:89
@ SERIAL_PROXY_PORT_TYPE_RS232
Definition api_pb2.h:20
@ SERIAL_PROXY_PORT_TYPE_RS485
Definition api_pb2.h:21
@ VOICE_ASSISTANT_REQUEST_USE_WAKE_WORD
Definition api_pb2.h:258
@ VOICE_ASSISTANT_REQUEST_USE_VAD
Definition api_pb2.h:257
@ WATER_HEATER_MODE_PERFORMANCE
Definition api_pb2.h:157
@ WATER_HEATER_MODE_HIGH_DEMAND
Definition api_pb2.h:158
@ SERIAL_PROXY_REQUEST_TYPE_UNSUBSCRIBE
Definition api_pb2.h:344
@ SERIAL_PROXY_REQUEST_TYPE_FLUSH
Definition api_pb2.h:345
@ SERIAL_PROXY_REQUEST_TYPE_SUBSCRIBE
Definition api_pb2.h:343
@ MEDIA_PLAYER_FORMAT_PURPOSE_ANNOUNCEMENT
Definition api_pb2.h:225
@ MEDIA_PLAYER_FORMAT_PURPOSE_DEFAULT
Definition api_pb2.h:224
@ COLOR_MODE_LEGACY_BRIGHTNESS
Definition api_pb2.h:45
@ COLOR_MODE_RGB_COLOR_TEMPERATURE
Definition api_pb2.h:52
@ COLOR_MODE_COLOR_TEMPERATURE
Definition api_pb2.h:48
@ COLOR_MODE_RGB_COLD_WARM_WHITE
Definition api_pb2.h:53
@ VOICE_ASSISTANT_TIMER_UPDATED
Definition api_pb2.h:281
@ VOICE_ASSISTANT_TIMER_STARTED
Definition api_pb2.h:280
@ VOICE_ASSISTANT_TIMER_FINISHED
Definition api_pb2.h:283
@ VOICE_ASSISTANT_TIMER_CANCELLED
Definition api_pb2.h:282
@ MEDIA_PLAYER_COMMAND_REPEAT_ONE
Definition api_pb2.h:217
@ MEDIA_PLAYER_COMMAND_REPEAT_OFF
Definition api_pb2.h:218
@ MEDIA_PLAYER_COMMAND_VOLUME_DOWN
Definition api_pb2.h:215
@ MEDIA_PLAYER_COMMAND_VOLUME_UP
Definition api_pb2.h:214
@ MEDIA_PLAYER_COMMAND_TURN_OFF
Definition api_pb2.h:221
@ MEDIA_PLAYER_COMMAND_CLEAR_PLAYLIST
Definition api_pb2.h:219
@ VOICE_ASSISTANT_WAKE_WORD_START
Definition api_pb2.h:271
@ VOICE_ASSISTANT_TTS_STREAM_END
Definition api_pb2.h:276
@ VOICE_ASSISTANT_STT_VAD_START
Definition api_pb2.h:273
@ VOICE_ASSISTANT_INTENT_PROGRESS
Definition api_pb2.h:277
@ VOICE_ASSISTANT_TTS_STREAM_START
Definition api_pb2.h:275
@ VOICE_ASSISTANT_WAKE_WORD_END
Definition api_pb2.h:272
@ SERIAL_PROXY_STATUS_ASSUMED_SUCCESS
Definition api_pb2.h:349
@ SERIAL_PROXY_STATUS_NOT_SUPPORTED
Definition api_pb2.h:352
@ DISCONNECT_REASON_PROVISIONING_CLOSED
Definition api_pb2.h:16
@ DISCONNECT_REASON_UNSPECIFIED
Definition api_pb2.h:15
@ BLUETOOTH_DEVICE_REQUEST_TYPE_UNPAIR
Definition api_pb2.h:233
@ BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT_V3_WITH_CACHE
Definition api_pb2.h:234
@ BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT
Definition api_pb2.h:230
@ BLUETOOTH_DEVICE_REQUEST_TYPE_PAIR
Definition api_pb2.h:232
@ BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT_V3_WITHOUT_CACHE
Definition api_pb2.h:235
@ BLUETOOTH_DEVICE_REQUEST_TYPE_CLEAR_CACHE
Definition api_pb2.h:236
@ BLUETOOTH_DEVICE_REQUEST_TYPE_DISCONNECT
Definition api_pb2.h:231
@ BLUETOOTH_SCANNER_MODE_PASSIVE
Definition api_pb2.h:247
@ BLUETOOTH_SCANNER_MODE_ACTIVE
Definition api_pb2.h:248
@ BLUETOOTH_SCANNER_STATE_STOPPED
Definition api_pb2.h:244
@ BLUETOOTH_SCANNER_STATE_STARTING
Definition api_pb2.h:240
@ BLUETOOTH_SCANNER_STATE_STOPPING
Definition api_pb2.h:243
@ BLUETOOTH_SCANNER_STATE_RUNNING
Definition api_pb2.h:241
@ BLUETOOTH_SCANNER_STATE_FAILED
Definition api_pb2.h:242
@ DST_RULE_TYPE_MONTH_WEEK_DAY
Definition api_pb2.h:77
@ DST_RULE_TYPE_JULIAN_NO_LEAP
Definition api_pb2.h:78
@ WATER_HEATER_COMMAND_HAS_ON_STATE
Definition api_pb2.h:170
@ WATER_HEATER_COMMAND_HAS_NONE
Definition api_pb2.h:164
@ WATER_HEATER_COMMAND_HAS_STATE
Definition api_pb2.h:167
@ WATER_HEATER_COMMAND_HAS_AWAY_STATE
Definition api_pb2.h:171
@ WATER_HEATER_COMMAND_HAS_TARGET_TEMPERATURE_LOW
Definition api_pb2.h:168
@ WATER_HEATER_COMMAND_HAS_TARGET_TEMPERATURE
Definition api_pb2.h:166
@ WATER_HEATER_COMMAND_HAS_MODE
Definition api_pb2.h:165
@ WATER_HEATER_COMMAND_HAS_TARGET_TEMPERATURE_HIGH
Definition api_pb2.h:169
@ ZWAVE_PROXY_REQUEST_TYPE_SUBSCRIBE
Definition api_pb2.h:331
@ ZWAVE_PROXY_REQUEST_TYPE_UNSUBSCRIBE
Definition api_pb2.h:332
@ ZWAVE_PROXY_REQUEST_TYPE_HOME_ID_CHANGE
Definition api_pb2.h:333
@ ALARM_CONTROL_PANEL_ARM_NIGHT
Definition api_pb2.h:303
@ ALARM_CONTROL_PANEL_ARM_CUSTOM_BYPASS
Definition api_pb2.h:305
@ ALARM_CONTROL_PANEL_ARM_VACATION
Definition api_pb2.h:304
@ VOICE_ASSISTANT_SUBSCRIBE_API_AUDIO
Definition api_pb2.h:253
@ VOICE_ASSISTANT_SUBSCRIBE_NONE
Definition api_pb2.h:252
@ STATE_CLASS_TOTAL_INCREASING
Definition api_pb2.h:60
@ STATE_CLASS_MEASUREMENT_ANGLE
Definition api_pb2.h:62
const char * proto_enum_to_string< enums::AlarmControlPanelState >(enums::AlarmControlPanelState value)
const char * proto_enum_to_string< enums::TemperatureUnit >(enums::TemperatureUnit value)
const char * proto_enum_to_string< enums::VoiceAssistantEvent >(enums::VoiceAssistantEvent value)
const char * proto_enum_to_string< enums::MediaPlayerState >(enums::MediaPlayerState value)
const char * proto_enum_to_string(T value)
const char * proto_enum_to_string< enums::SerialProxyParity >(enums::SerialProxyParity value)
const char * proto_enum_to_string< enums::NumberMode >(enums::NumberMode value)
const char * proto_enum_to_string< enums::ServiceArgType >(enums::ServiceArgType value)
const char * proto_enum_to_string< enums::BluetoothScannerMode >(enums::BluetoothScannerMode value)
const char * proto_enum_to_string< enums::BluetoothScannerState >(enums::BluetoothScannerState value)
const char * proto_enum_to_string< enums::VoiceAssistantSubscribeFlag >(enums::VoiceAssistantSubscribeFlag value)
const char * proto_enum_to_string< enums::ColorMode >(enums::ColorMode value)
const char * proto_enum_to_string< enums::WaterHeaterCommandHasField >(enums::WaterHeaterCommandHasField value)
const char * proto_enum_to_string< enums::LogLevel >(enums::LogLevel value)
const char * proto_enum_to_string< enums::TextMode >(enums::TextMode value)
const char * proto_enum_to_string< enums::LockState >(enums::LockState value)
const char * proto_enum_to_string< enums::ClimateAction >(enums::ClimateAction value)
const char * proto_enum_to_string< enums::SerialProxyPortType >(enums::SerialProxyPortType value)
const char * proto_enum_to_string< enums::FanDirection >(enums::FanDirection value)
const char * proto_enum_to_string< enums::CoverOperation >(enums::CoverOperation value)
const char * proto_enum_to_string< enums::VoiceAssistantRequestFlag >(enums::VoiceAssistantRequestFlag value)
const char * proto_enum_to_string< enums::BluetoothDeviceRequestType >(enums::BluetoothDeviceRequestType value)
const char * proto_enum_to_string< enums::VoiceAssistantTimerEvent >(enums::VoiceAssistantTimerEvent value)
const char * proto_enum_to_string< enums::AlarmControlPanelStateCommand >(enums::AlarmControlPanelStateCommand value)
const char * proto_enum_to_string< enums::ClimatePreset >(enums::ClimatePreset value)
const char * proto_enum_to_string< enums::MediaPlayerFormatPurpose >(enums::MediaPlayerFormatPurpose value)
const char * proto_enum_to_string< enums::ClimateMode >(enums::ClimateMode value)
const char * proto_enum_to_string< enums::WaterHeaterMode >(enums::WaterHeaterMode value)
const char * proto_enum_to_string< enums::MediaPlayerCommand >(enums::MediaPlayerCommand value)
const char * proto_enum_to_string< enums::DisconnectReason >(enums::DisconnectReason value)
const char * proto_enum_to_string< enums::LockCommand >(enums::LockCommand value)
const char * proto_enum_to_string< enums::ZWaveProxyRequestType >(enums::ZWaveProxyRequestType value)
const char * proto_enum_to_string< enums::ValveOperation >(enums::ValveOperation value)
const char * proto_enum_to_string< enums::UpdateCommand >(enums::UpdateCommand value)
const char * proto_enum_to_string< enums::SerialProxyRequestType >(enums::SerialProxyRequestType value)
const char * proto_enum_to_string< enums::SupportsResponseType >(enums::SupportsResponseType value)
const char * proto_enum_to_string< enums::ClimateFanMode >(enums::ClimateFanMode value)
const char * proto_enum_to_string< enums::SerialProxyStatus >(enums::SerialProxyStatus value)
const char * proto_enum_to_string< enums::DSTRuleType >(enums::DSTRuleType value)
const char * proto_enum_to_string< enums::ClimateSwingMode >(enums::ClimateSwingMode value)
const char * proto_enum_to_string< enums::EntityCategory >(enums::EntityCategory value)
const char * proto_enum_to_string< enums::SensorStateClass >(enums::SensorStateClass value)
const void size_t len
Definition hal.h:64
char * format_hex_pretty_to(char *buffer, size_t buffer_size, const uint8_t *data, size_t length, char separator)
Format byte array as uppercase hex to buffer (base implementation).
Definition helpers.cpp:340
constexpr size_t format_hex_pretty_size(size_t byte_count)
Calculate buffer size needed for format_hex_pretty_to with separator: "XX:XX:...:XX\0".
Definition helpers.h:1400
static void uint32_t