ESPHome 2026.10.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_CONNECTIONS
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}
609#endif
610#ifdef USE_BLUETOOTH_PROXY
612 switch (value) {
614 return ESPHOME_PSTR("BLUETOOTH_SCANNER_STATE_IDLE");
616 return ESPHOME_PSTR("BLUETOOTH_SCANNER_STATE_STARTING");
618 return ESPHOME_PSTR("BLUETOOTH_SCANNER_STATE_RUNNING");
620 return ESPHOME_PSTR("BLUETOOTH_SCANNER_STATE_FAILED");
622 return ESPHOME_PSTR("BLUETOOTH_SCANNER_STATE_STOPPING");
624 return ESPHOME_PSTR("BLUETOOTH_SCANNER_STATE_STOPPED");
625 default:
626 return ESPHOME_PSTR("UNKNOWN");
627 }
628}
630 switch (value) {
632 return ESPHOME_PSTR("BLUETOOTH_SCANNER_MODE_PASSIVE");
634 return ESPHOME_PSTR("BLUETOOTH_SCANNER_MODE_ACTIVE");
635 default:
636 return ESPHOME_PSTR("UNKNOWN");
637 }
638}
639#endif
640template<>
642 switch (value) {
644 return ESPHOME_PSTR("VOICE_ASSISTANT_SUBSCRIBE_NONE");
646 return ESPHOME_PSTR("VOICE_ASSISTANT_SUBSCRIBE_API_AUDIO");
647 default:
648 return ESPHOME_PSTR("UNKNOWN");
649 }
650}
652 switch (value) {
654 return ESPHOME_PSTR("VOICE_ASSISTANT_REQUEST_NONE");
656 return ESPHOME_PSTR("VOICE_ASSISTANT_REQUEST_USE_VAD");
658 return ESPHOME_PSTR("VOICE_ASSISTANT_REQUEST_USE_WAKE_WORD");
659 default:
660 return ESPHOME_PSTR("UNKNOWN");
661 }
662}
663#ifdef USE_VOICE_ASSISTANT
665 switch (value) {
667 return ESPHOME_PSTR("VOICE_ASSISTANT_ERROR");
669 return ESPHOME_PSTR("VOICE_ASSISTANT_RUN_START");
671 return ESPHOME_PSTR("VOICE_ASSISTANT_RUN_END");
673 return ESPHOME_PSTR("VOICE_ASSISTANT_STT_START");
675 return ESPHOME_PSTR("VOICE_ASSISTANT_STT_END");
677 return ESPHOME_PSTR("VOICE_ASSISTANT_INTENT_START");
679 return ESPHOME_PSTR("VOICE_ASSISTANT_INTENT_END");
681 return ESPHOME_PSTR("VOICE_ASSISTANT_TTS_START");
683 return ESPHOME_PSTR("VOICE_ASSISTANT_TTS_END");
685 return ESPHOME_PSTR("VOICE_ASSISTANT_WAKE_WORD_START");
687 return ESPHOME_PSTR("VOICE_ASSISTANT_WAKE_WORD_END");
689 return ESPHOME_PSTR("VOICE_ASSISTANT_STT_VAD_START");
691 return ESPHOME_PSTR("VOICE_ASSISTANT_STT_VAD_END");
693 return ESPHOME_PSTR("VOICE_ASSISTANT_TTS_STREAM_START");
695 return ESPHOME_PSTR("VOICE_ASSISTANT_TTS_STREAM_END");
697 return ESPHOME_PSTR("VOICE_ASSISTANT_INTENT_PROGRESS");
698 default:
699 return ESPHOME_PSTR("UNKNOWN");
700 }
701}
703 switch (value) {
705 return ESPHOME_PSTR("VOICE_ASSISTANT_TIMER_STARTED");
707 return ESPHOME_PSTR("VOICE_ASSISTANT_TIMER_UPDATED");
709 return ESPHOME_PSTR("VOICE_ASSISTANT_TIMER_CANCELLED");
711 return ESPHOME_PSTR("VOICE_ASSISTANT_TIMER_FINISHED");
712 default:
713 return ESPHOME_PSTR("UNKNOWN");
714 }
715}
716#endif
717#ifdef USE_ALARM_CONTROL_PANEL
719 switch (value) {
721 return ESPHOME_PSTR("ALARM_STATE_DISARMED");
723 return ESPHOME_PSTR("ALARM_STATE_ARMED_HOME");
725 return ESPHOME_PSTR("ALARM_STATE_ARMED_AWAY");
727 return ESPHOME_PSTR("ALARM_STATE_ARMED_NIGHT");
729 return ESPHOME_PSTR("ALARM_STATE_ARMED_VACATION");
731 return ESPHOME_PSTR("ALARM_STATE_ARMED_CUSTOM_BYPASS");
733 return ESPHOME_PSTR("ALARM_STATE_PENDING");
735 return ESPHOME_PSTR("ALARM_STATE_ARMING");
737 return ESPHOME_PSTR("ALARM_STATE_DISARMING");
739 return ESPHOME_PSTR("ALARM_STATE_TRIGGERED");
740 default:
741 return ESPHOME_PSTR("UNKNOWN");
742 }
743}
744template<>
746 switch (value) {
748 return ESPHOME_PSTR("ALARM_CONTROL_PANEL_DISARM");
750 return ESPHOME_PSTR("ALARM_CONTROL_PANEL_ARM_AWAY");
752 return ESPHOME_PSTR("ALARM_CONTROL_PANEL_ARM_HOME");
754 return ESPHOME_PSTR("ALARM_CONTROL_PANEL_ARM_NIGHT");
756 return ESPHOME_PSTR("ALARM_CONTROL_PANEL_ARM_VACATION");
758 return ESPHOME_PSTR("ALARM_CONTROL_PANEL_ARM_CUSTOM_BYPASS");
760 return ESPHOME_PSTR("ALARM_CONTROL_PANEL_TRIGGER");
761 default:
762 return ESPHOME_PSTR("UNKNOWN");
763 }
764}
765#endif
766#ifdef USE_TEXT
768 switch (value) {
770 return ESPHOME_PSTR("TEXT_MODE_TEXT");
772 return ESPHOME_PSTR("TEXT_MODE_PASSWORD");
773 default:
774 return ESPHOME_PSTR("UNKNOWN");
775 }
776}
777#endif
778#ifdef USE_VALVE
780 switch (value) {
782 return ESPHOME_PSTR("VALVE_OPERATION_IDLE");
784 return ESPHOME_PSTR("VALVE_OPERATION_IS_OPENING");
786 return ESPHOME_PSTR("VALVE_OPERATION_IS_CLOSING");
787 default:
788 return ESPHOME_PSTR("UNKNOWN");
789 }
790}
791#endif
792#ifdef USE_UPDATE
794 switch (value) {
796 return ESPHOME_PSTR("UPDATE_COMMAND_NONE");
798 return ESPHOME_PSTR("UPDATE_COMMAND_UPDATE");
800 return ESPHOME_PSTR("UPDATE_COMMAND_CHECK");
801 default:
802 return ESPHOME_PSTR("UNKNOWN");
803 }
804}
805#endif
806#ifdef USE_ZWAVE_PROXY
808 switch (value) {
810 return ESPHOME_PSTR("ZWAVE_PROXY_REQUEST_TYPE_SUBSCRIBE");
812 return ESPHOME_PSTR("ZWAVE_PROXY_REQUEST_TYPE_UNSUBSCRIBE");
814 return ESPHOME_PSTR("ZWAVE_PROXY_REQUEST_TYPE_HOME_ID_CHANGE");
815 default:
816 return ESPHOME_PSTR("UNKNOWN");
817 }
818}
820 switch (value) {
822 return ESPHOME_PSTR("ZWAVE_PROXY_STATUS_OK");
824 return ESPHOME_PSTR("ZWAVE_PROXY_STATUS_IN_USE");
826 return ESPHOME_PSTR("ZWAVE_PROXY_STATUS_NOT_SUPPORTED");
827 default:
828 return ESPHOME_PSTR("UNKNOWN");
829 }
830}
831#endif
832#ifdef USE_SERIAL_PROXY
834 switch (value) {
836 return ESPHOME_PSTR("SERIAL_PROXY_PARITY_NONE");
838 return ESPHOME_PSTR("SERIAL_PROXY_PARITY_EVEN");
840 return ESPHOME_PSTR("SERIAL_PROXY_PARITY_ODD");
841 default:
842 return ESPHOME_PSTR("UNKNOWN");
843 }
844}
846 switch (value) {
848 return ESPHOME_PSTR("SERIAL_PROXY_REQUEST_TYPE_SUBSCRIBE");
850 return ESPHOME_PSTR("SERIAL_PROXY_REQUEST_TYPE_UNSUBSCRIBE");
852 return ESPHOME_PSTR("SERIAL_PROXY_REQUEST_TYPE_FLUSH");
854 return ESPHOME_PSTR("SERIAL_PROXY_REQUEST_TYPE_CONFIGURE");
856 return ESPHOME_PSTR("SERIAL_PROXY_REQUEST_TYPE_SET_MODEM_PINS");
857 default:
858 return ESPHOME_PSTR("UNKNOWN");
859 }
860}
862 switch (value) {
864 return ESPHOME_PSTR("SERIAL_PROXY_STATUS_OK");
866 return ESPHOME_PSTR("SERIAL_PROXY_STATUS_ASSUMED_SUCCESS");
868 return ESPHOME_PSTR("SERIAL_PROXY_STATUS_ERROR");
870 return ESPHOME_PSTR("SERIAL_PROXY_STATUS_TIMEOUT");
872 return ESPHOME_PSTR("SERIAL_PROXY_STATUS_NOT_SUPPORTED");
874 return ESPHOME_PSTR("SERIAL_PROXY_STATUS_PORT_IN_USE");
876 return ESPHOME_PSTR("SERIAL_PROXY_STATUS_INVALID_ARGUMENT");
877 default:
878 return ESPHOME_PSTR("UNKNOWN");
879 }
880}
881#endif
882
883const char *HelloRequest::dump_to(DumpBuffer &out) const {
884 MessageDumpHelper helper(out, ESPHOME_PSTR("HelloRequest"));
885 dump_field(out, ESPHOME_PSTR("client_info"), this->client_info);
886 dump_field(out, ESPHOME_PSTR("api_version_major"), this->api_version_major);
887 dump_field(out, ESPHOME_PSTR("api_version_minor"), this->api_version_minor);
888 return out.c_str();
889}
890const char *HelloResponse::dump_to(DumpBuffer &out) const {
891 MessageDumpHelper helper(out, ESPHOME_PSTR("HelloResponse"));
892 dump_field(out, ESPHOME_PSTR("api_version_major"), this->api_version_major);
893 dump_field(out, ESPHOME_PSTR("api_version_minor"), this->api_version_minor);
894 dump_field(out, ESPHOME_PSTR("server_info"), this->server_info);
895 dump_field(out, ESPHOME_PSTR("name"), this->name);
896 return out.c_str();
897}
898const char *DisconnectRequest::dump_to(DumpBuffer &out) const {
899 MessageDumpHelper helper(out, ESPHOME_PSTR("DisconnectRequest"));
900 dump_field(out, ESPHOME_PSTR("reason"), static_cast<enums::DisconnectReason>(this->reason));
901 return out.c_str();
902}
904 out.append_p(ESPHOME_PSTR("DisconnectResponse {}"));
905 return out.c_str();
906}
907const char *PingRequest::dump_to(DumpBuffer &out) const {
908 out.append_p(ESPHOME_PSTR("PingRequest {}"));
909 return out.c_str();
910}
911const char *PingResponse::dump_to(DumpBuffer &out) const {
912 out.append_p(ESPHOME_PSTR("PingResponse {}"));
913 return out.c_str();
914}
915#ifdef USE_AREAS
916const char *AreaInfo::dump_to(DumpBuffer &out) const {
917 MessageDumpHelper helper(out, ESPHOME_PSTR("AreaInfo"));
918 dump_field(out, ESPHOME_PSTR("area_id"), this->area_id);
919 dump_field(out, ESPHOME_PSTR("name"), this->name);
920 return out.c_str();
921}
922#endif
923#ifdef USE_DEVICES
924const char *DeviceInfo::dump_to(DumpBuffer &out) const {
925 MessageDumpHelper helper(out, ESPHOME_PSTR("DeviceInfo"));
926 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
927 dump_field(out, ESPHOME_PSTR("name"), this->name);
928 dump_field(out, ESPHOME_PSTR("area_id"), this->area_id);
929 return out.c_str();
930}
931#endif
932#ifdef USE_SERIAL_PROXY
933const char *SerialProxyInfo::dump_to(DumpBuffer &out) const {
934 MessageDumpHelper helper(out, ESPHOME_PSTR("SerialProxyInfo"));
935 dump_field(out, ESPHOME_PSTR("name"), this->name);
936 dump_field(out, ESPHOME_PSTR("port_type"), static_cast<enums::SerialProxyPortType>(this->port_type));
937 dump_field(out, ESPHOME_PSTR("configured_line_states"), this->configured_line_states);
938 return out.c_str();
939}
940#endif
942 MessageDumpHelper helper(out, ESPHOME_PSTR("DeviceInfoResponse"));
943 dump_field(out, ESPHOME_PSTR("name"), this->name);
944 dump_field(out, ESPHOME_PSTR("mac_address"), this->mac_address);
945 dump_field(out, ESPHOME_PSTR("esphome_version"), this->esphome_version);
946 dump_field(out, ESPHOME_PSTR("compilation_time"), this->compilation_time);
947 dump_field(out, ESPHOME_PSTR("model"), this->model);
948#ifdef USE_DEEP_SLEEP
949 dump_field(out, ESPHOME_PSTR("has_deep_sleep"), this->has_deep_sleep);
950#endif
951#ifdef ESPHOME_PROJECT_NAME
952 dump_field(out, ESPHOME_PSTR("project_name"), this->project_name);
953#endif
954#ifdef ESPHOME_PROJECT_NAME
955 dump_field(out, ESPHOME_PSTR("project_version"), this->project_version);
956#endif
957#ifdef USE_WEBSERVER
958 dump_field(out, ESPHOME_PSTR("webserver_port"), this->webserver_port);
959#endif
960#ifdef USE_BLUETOOTH_PROXY
961 dump_field(out, ESPHOME_PSTR("bluetooth_proxy_feature_flags"), this->bluetooth_proxy_feature_flags);
962#endif
963 dump_field(out, ESPHOME_PSTR("manufacturer"), this->manufacturer);
964 dump_field(out, ESPHOME_PSTR("friendly_name"), this->friendly_name);
965#ifdef USE_VOICE_ASSISTANT
966 dump_field(out, ESPHOME_PSTR("voice_assistant_feature_flags"), this->voice_assistant_feature_flags);
967#endif
968#ifdef USE_AREAS
969 dump_field(out, ESPHOME_PSTR("suggested_area"), this->suggested_area);
970#endif
971#ifdef USE_BLUETOOTH_PROXY
972 dump_field(out, ESPHOME_PSTR("bluetooth_mac_address"), this->bluetooth_mac_address);
973#endif
974#ifdef USE_API_NOISE
975 dump_field(out, ESPHOME_PSTR("api_encryption_supported"), this->api_encryption_supported);
976#endif
977#ifdef USE_DEVICES
978 for (const auto &it : this->devices) {
979 out.append(4, ' ').append_p(ESPHOME_PSTR("devices")).append(": ");
980 it.dump_to(out);
981 out.append("\n");
982 }
983#endif
984#ifdef USE_AREAS
985 for (const auto &it : this->areas) {
986 out.append(4, ' ').append_p(ESPHOME_PSTR("areas")).append(": ");
987 it.dump_to(out);
988 out.append("\n");
989 }
990#endif
991#ifdef USE_AREAS
992 out.append(2, ' ').append_p(ESPHOME_PSTR("area")).append(": ");
993 this->area.dump_to(out);
994 out.append("\n");
995#endif
996#ifdef USE_ZWAVE_PROXY
997 dump_field(out, ESPHOME_PSTR("zwave_proxy_feature_flags"), this->zwave_proxy_feature_flags);
998#endif
999#ifdef USE_ZWAVE_PROXY
1000 dump_field(out, ESPHOME_PSTR("zwave_home_id"), this->zwave_home_id);
1001#endif
1002#ifdef USE_SERIAL_PROXY
1003 for (const auto &it : this->serial_proxies) {
1004 out.append(4, ' ').append_p(ESPHOME_PSTR("serial_proxies")).append(": ");
1005 it.dump_to(out);
1006 out.append("\n");
1007 }
1008#endif
1009#ifdef USE_API_NOISE
1010 dump_field(out, ESPHOME_PSTR("api_encryption_provisionable"), this->api_encryption_provisionable);
1011#endif
1012 return out.c_str();
1013}
1014#ifdef USE_BLUETOOTH_PROXY
1016 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothProxyCapabilities"));
1017 dump_field(out, ESPHOME_PSTR("feature_flags"), this->feature_flags);
1018 dump_field(out, ESPHOME_PSTR("mac_address"), this->mac_address);
1019 return out.c_str();
1020}
1021#endif
1022#ifdef USE_VOICE_ASSISTANT
1024 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantCapabilities"));
1025 dump_field(out, ESPHOME_PSTR("feature_flags"), this->feature_flags);
1026 return out.c_str();
1027}
1028#endif
1029#ifdef USE_ZWAVE_PROXY
1031 MessageDumpHelper helper(out, ESPHOME_PSTR("ZWaveProxyCapabilities"));
1032 dump_field(out, ESPHOME_PSTR("feature_flags"), this->feature_flags);
1033 dump_field(out, ESPHOME_PSTR("home_id"), this->home_id);
1034 return out.c_str();
1035}
1036#endif
1038 MessageDumpHelper helper(out, ESPHOME_PSTR("DeviceCapabilitiesResponse"));
1039#ifdef USE_BLUETOOTH_PROXY
1040 out.append(2, ' ').append_p(ESPHOME_PSTR("bluetooth_proxy")).append(": ");
1041 this->bluetooth_proxy.dump_to(out);
1042 out.append("\n");
1043#endif
1044#ifdef USE_VOICE_ASSISTANT
1045 out.append(2, ' ').append_p(ESPHOME_PSTR("voice_assistant")).append(": ");
1046 this->voice_assistant.dump_to(out);
1047 out.append("\n");
1048#endif
1049#ifdef USE_ZWAVE_PROXY
1050 out.append(2, ' ').append_p(ESPHOME_PSTR("zwave_proxy")).append(": ");
1051 this->zwave_proxy.dump_to(out);
1052 out.append("\n");
1053#endif
1054#ifdef USE_SERIAL_PROXY
1055 for (const auto &it : this->serial_proxies) {
1056 out.append(4, ' ').append_p(ESPHOME_PSTR("serial_proxies")).append(": ");
1057 it.dump_to(out);
1058 out.append("\n");
1059 }
1060#endif
1061 return out.c_str();
1062}
1064 out.append_p(ESPHOME_PSTR("ListEntitiesDoneResponse {}"));
1065 return out.c_str();
1066}
1067#ifdef USE_BINARY_SENSOR
1069 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesBinarySensorResponse"));
1070 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1071 dump_field(out, ESPHOME_PSTR("key"), this->key);
1072 dump_field(out, ESPHOME_PSTR("name"), this->name);
1073 dump_field(out, ESPHOME_PSTR("device_class"), this->device_class);
1074 dump_field(out, ESPHOME_PSTR("is_status_binary_sensor"), this->is_status_binary_sensor);
1075 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1076#ifdef USE_ENTITY_ICON
1077 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
1078#endif
1079 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1080#ifdef USE_DEVICES
1081 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1082#endif
1083 return out.c_str();
1084}
1086 MessageDumpHelper helper(out, ESPHOME_PSTR("BinarySensorStateResponse"));
1087 dump_field(out, ESPHOME_PSTR("key"), this->key);
1088 dump_field(out, ESPHOME_PSTR("state"), this->state);
1089 dump_field(out, ESPHOME_PSTR("missing_state"), this->missing_state);
1090#ifdef USE_DEVICES
1091 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1092#endif
1093 return out.c_str();
1094}
1095#endif
1096#ifdef USE_COVER
1098 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesCoverResponse"));
1099 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1100 dump_field(out, ESPHOME_PSTR("key"), this->key);
1101 dump_field(out, ESPHOME_PSTR("name"), this->name);
1102 dump_field(out, ESPHOME_PSTR("assumed_state"), this->assumed_state);
1103 dump_field(out, ESPHOME_PSTR("supports_position"), this->supports_position);
1104 dump_field(out, ESPHOME_PSTR("supports_tilt"), this->supports_tilt);
1105 dump_field(out, ESPHOME_PSTR("device_class"), this->device_class);
1106 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1107#ifdef USE_ENTITY_ICON
1108 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
1109#endif
1110 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1111 dump_field(out, ESPHOME_PSTR("supports_stop"), this->supports_stop);
1112#ifdef USE_DEVICES
1113 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1114#endif
1115 return out.c_str();
1116}
1118 MessageDumpHelper helper(out, ESPHOME_PSTR("CoverStateResponse"));
1119 dump_field(out, ESPHOME_PSTR("key"), this->key);
1120 dump_field(out, ESPHOME_PSTR("position"), this->position);
1121 dump_field(out, ESPHOME_PSTR("tilt"), this->tilt);
1122 dump_field(out, ESPHOME_PSTR("current_operation"), static_cast<enums::CoverOperation>(this->current_operation));
1123#ifdef USE_DEVICES
1124 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1125#endif
1126 return out.c_str();
1127}
1129 MessageDumpHelper helper(out, ESPHOME_PSTR("CoverCommandRequest"));
1130 dump_field(out, ESPHOME_PSTR("key"), this->key);
1131 dump_field(out, ESPHOME_PSTR("has_position"), this->has_position);
1132 dump_field(out, ESPHOME_PSTR("position"), this->position);
1133 dump_field(out, ESPHOME_PSTR("has_tilt"), this->has_tilt);
1134 dump_field(out, ESPHOME_PSTR("tilt"), this->tilt);
1135 dump_field(out, ESPHOME_PSTR("stop"), this->stop);
1136#ifdef USE_DEVICES
1137 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1138#endif
1139 return out.c_str();
1140}
1141#endif
1142#ifdef USE_FAN
1144 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesFanResponse"));
1145 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1146 dump_field(out, ESPHOME_PSTR("key"), this->key);
1147 dump_field(out, ESPHOME_PSTR("name"), this->name);
1148 dump_field(out, ESPHOME_PSTR("supports_oscillation"), this->supports_oscillation);
1149 dump_field(out, ESPHOME_PSTR("supports_speed"), this->supports_speed);
1150 dump_field(out, ESPHOME_PSTR("supports_direction"), this->supports_direction);
1151 dump_field(out, ESPHOME_PSTR("supported_speed_count"), this->supported_speed_count);
1152 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1153#ifdef USE_ENTITY_ICON
1154 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
1155#endif
1156 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1157 for (const auto &it : *this->supported_preset_modes) {
1158 dump_field(out, ESPHOME_PSTR("supported_preset_modes"), it, 4);
1159 }
1160#ifdef USE_DEVICES
1161 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1162#endif
1163 return out.c_str();
1164}
1165const char *FanStateResponse::dump_to(DumpBuffer &out) const {
1166 MessageDumpHelper helper(out, ESPHOME_PSTR("FanStateResponse"));
1167 dump_field(out, ESPHOME_PSTR("key"), this->key);
1168 dump_field(out, ESPHOME_PSTR("state"), this->state);
1169 dump_field(out, ESPHOME_PSTR("oscillating"), this->oscillating);
1170 dump_field(out, ESPHOME_PSTR("direction"), static_cast<enums::FanDirection>(this->direction));
1171 dump_field(out, ESPHOME_PSTR("speed_level"), this->speed_level);
1172 dump_field(out, ESPHOME_PSTR("preset_mode"), this->preset_mode);
1173#ifdef USE_DEVICES
1174 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1175#endif
1176 return out.c_str();
1177}
1179 MessageDumpHelper helper(out, ESPHOME_PSTR("FanCommandRequest"));
1180 dump_field(out, ESPHOME_PSTR("key"), this->key);
1181 dump_field(out, ESPHOME_PSTR("has_state"), this->has_state);
1182 dump_field(out, ESPHOME_PSTR("state"), this->state);
1183 dump_field(out, ESPHOME_PSTR("has_oscillating"), this->has_oscillating);
1184 dump_field(out, ESPHOME_PSTR("oscillating"), this->oscillating);
1185 dump_field(out, ESPHOME_PSTR("has_direction"), this->has_direction);
1186 dump_field(out, ESPHOME_PSTR("direction"), static_cast<enums::FanDirection>(this->direction));
1187 dump_field(out, ESPHOME_PSTR("has_speed_level"), this->has_speed_level);
1188 dump_field(out, ESPHOME_PSTR("speed_level"), this->speed_level);
1189 dump_field(out, ESPHOME_PSTR("has_preset_mode"), this->has_preset_mode);
1190 dump_field(out, ESPHOME_PSTR("preset_mode"), this->preset_mode);
1191#ifdef USE_DEVICES
1192 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1193#endif
1194 return out.c_str();
1195}
1196#endif
1197#ifdef USE_LIGHT
1199 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesLightResponse"));
1200 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1201 dump_field(out, ESPHOME_PSTR("key"), this->key);
1202 dump_field(out, ESPHOME_PSTR("name"), this->name);
1203 for (const auto &it : *this->supported_color_modes) {
1204 dump_field(out, ESPHOME_PSTR("supported_color_modes"), static_cast<enums::ColorMode>(it), 4);
1205 }
1206 dump_field(out, ESPHOME_PSTR("min_mireds"), this->min_mireds);
1207 dump_field(out, ESPHOME_PSTR("max_mireds"), this->max_mireds);
1208 for (const auto &it : *this->effects) {
1209 dump_field(out, ESPHOME_PSTR("effects"), it, 4);
1210 }
1211 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1212#ifdef USE_ENTITY_ICON
1213 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
1214#endif
1215 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1216#ifdef USE_DEVICES
1217 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1218#endif
1219 return out.c_str();
1220}
1222 MessageDumpHelper helper(out, ESPHOME_PSTR("LightStateResponse"));
1223 dump_field(out, ESPHOME_PSTR("key"), this->key);
1224 dump_field(out, ESPHOME_PSTR("state"), this->state);
1225 dump_field(out, ESPHOME_PSTR("brightness"), this->brightness);
1226 dump_field(out, ESPHOME_PSTR("color_mode"), static_cast<enums::ColorMode>(this->color_mode));
1227 dump_field(out, ESPHOME_PSTR("color_brightness"), this->color_brightness);
1228 dump_field(out, ESPHOME_PSTR("red"), this->red);
1229 dump_field(out, ESPHOME_PSTR("green"), this->green);
1230 dump_field(out, ESPHOME_PSTR("blue"), this->blue);
1231 dump_field(out, ESPHOME_PSTR("white"), this->white);
1232 dump_field(out, ESPHOME_PSTR("color_temperature"), this->color_temperature);
1233 dump_field(out, ESPHOME_PSTR("cold_white"), this->cold_white);
1234 dump_field(out, ESPHOME_PSTR("warm_white"), this->warm_white);
1235 dump_field(out, ESPHOME_PSTR("effect"), this->effect);
1236#ifdef USE_DEVICES
1237 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1238#endif
1239 return out.c_str();
1240}
1242 MessageDumpHelper helper(out, ESPHOME_PSTR("LightCommandRequest"));
1243 dump_field(out, ESPHOME_PSTR("key"), this->key);
1244 dump_field(out, ESPHOME_PSTR("has_state"), this->has_state);
1245 dump_field(out, ESPHOME_PSTR("state"), this->state);
1246 dump_field(out, ESPHOME_PSTR("has_brightness"), this->has_brightness);
1247 dump_field(out, ESPHOME_PSTR("brightness"), this->brightness);
1248 dump_field(out, ESPHOME_PSTR("has_color_mode"), this->has_color_mode);
1249 dump_field(out, ESPHOME_PSTR("color_mode"), static_cast<enums::ColorMode>(this->color_mode));
1250 dump_field(out, ESPHOME_PSTR("has_color_brightness"), this->has_color_brightness);
1251 dump_field(out, ESPHOME_PSTR("color_brightness"), this->color_brightness);
1252 dump_field(out, ESPHOME_PSTR("has_rgb"), this->has_rgb);
1253 dump_field(out, ESPHOME_PSTR("red"), this->red);
1254 dump_field(out, ESPHOME_PSTR("green"), this->green);
1255 dump_field(out, ESPHOME_PSTR("blue"), this->blue);
1256 dump_field(out, ESPHOME_PSTR("has_white"), this->has_white);
1257 dump_field(out, ESPHOME_PSTR("white"), this->white);
1258 dump_field(out, ESPHOME_PSTR("has_color_temperature"), this->has_color_temperature);
1259 dump_field(out, ESPHOME_PSTR("color_temperature"), this->color_temperature);
1260 dump_field(out, ESPHOME_PSTR("has_cold_white"), this->has_cold_white);
1261 dump_field(out, ESPHOME_PSTR("cold_white"), this->cold_white);
1262 dump_field(out, ESPHOME_PSTR("has_warm_white"), this->has_warm_white);
1263 dump_field(out, ESPHOME_PSTR("warm_white"), this->warm_white);
1264 dump_field(out, ESPHOME_PSTR("has_transition_length"), this->has_transition_length);
1265 dump_field(out, ESPHOME_PSTR("transition_length"), this->transition_length);
1266 dump_field(out, ESPHOME_PSTR("has_flash_length"), this->has_flash_length);
1267 dump_field(out, ESPHOME_PSTR("flash_length"), this->flash_length);
1268 dump_field(out, ESPHOME_PSTR("has_effect"), this->has_effect);
1269 dump_field(out, ESPHOME_PSTR("effect"), this->effect);
1270#ifdef USE_DEVICES
1271 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1272#endif
1273 return out.c_str();
1274}
1275#endif
1276#ifdef USE_SENSOR
1278 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesSensorResponse"));
1279 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1280 dump_field(out, ESPHOME_PSTR("key"), this->key);
1281 dump_field(out, ESPHOME_PSTR("name"), this->name);
1282#ifdef USE_ENTITY_ICON
1283 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
1284#endif
1285 dump_field(out, ESPHOME_PSTR("unit_of_measurement"), this->unit_of_measurement);
1286 dump_field(out, ESPHOME_PSTR("accuracy_decimals"), this->accuracy_decimals);
1287 dump_field(out, ESPHOME_PSTR("force_update"), this->force_update);
1288 dump_field(out, ESPHOME_PSTR("device_class"), this->device_class);
1289 dump_field(out, ESPHOME_PSTR("state_class"), static_cast<enums::SensorStateClass>(this->state_class));
1290 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1291 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1292#ifdef USE_DEVICES
1293 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1294#endif
1295 return out.c_str();
1296}
1298 MessageDumpHelper helper(out, ESPHOME_PSTR("SensorStateResponse"));
1299 dump_field(out, ESPHOME_PSTR("key"), this->key);
1300 dump_field(out, ESPHOME_PSTR("state"), this->state);
1301 dump_field(out, ESPHOME_PSTR("missing_state"), this->missing_state);
1302#ifdef USE_DEVICES
1303 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1304#endif
1305 return out.c_str();
1306}
1307#endif
1308#ifdef USE_SWITCH
1310 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesSwitchResponse"));
1311 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1312 dump_field(out, ESPHOME_PSTR("key"), this->key);
1313 dump_field(out, ESPHOME_PSTR("name"), this->name);
1314#ifdef USE_ENTITY_ICON
1315 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
1316#endif
1317 dump_field(out, ESPHOME_PSTR("assumed_state"), this->assumed_state);
1318 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1319 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1320 dump_field(out, ESPHOME_PSTR("device_class"), this->device_class);
1321#ifdef USE_DEVICES
1322 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1323#endif
1324 return out.c_str();
1325}
1327 MessageDumpHelper helper(out, ESPHOME_PSTR("SwitchStateResponse"));
1328 dump_field(out, ESPHOME_PSTR("key"), this->key);
1329 dump_field(out, ESPHOME_PSTR("state"), this->state);
1330#ifdef USE_DEVICES
1331 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1332#endif
1333 return out.c_str();
1334}
1336 MessageDumpHelper helper(out, ESPHOME_PSTR("SwitchCommandRequest"));
1337 dump_field(out, ESPHOME_PSTR("key"), this->key);
1338 dump_field(out, ESPHOME_PSTR("state"), this->state);
1339#ifdef USE_DEVICES
1340 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1341#endif
1342 return out.c_str();
1343}
1344#endif
1345#ifdef USE_TEXT_SENSOR
1347 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesTextSensorResponse"));
1348 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1349 dump_field(out, ESPHOME_PSTR("key"), this->key);
1350 dump_field(out, ESPHOME_PSTR("name"), this->name);
1351#ifdef USE_ENTITY_ICON
1352 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
1353#endif
1354 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1355 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1356 dump_field(out, ESPHOME_PSTR("device_class"), this->device_class);
1357#ifdef USE_DEVICES
1358 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1359#endif
1360 return out.c_str();
1361}
1363 MessageDumpHelper helper(out, ESPHOME_PSTR("TextSensorStateResponse"));
1364 dump_field(out, ESPHOME_PSTR("key"), this->key);
1365 dump_field(out, ESPHOME_PSTR("state"), this->state);
1366 dump_field(out, ESPHOME_PSTR("missing_state"), this->missing_state);
1367#ifdef USE_DEVICES
1368 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1369#endif
1370 return out.c_str();
1371}
1372#endif
1374 MessageDumpHelper helper(out, ESPHOME_PSTR("SubscribeLogsRequest"));
1375 dump_field(out, ESPHOME_PSTR("level"), static_cast<enums::LogLevel>(this->level));
1376 dump_field(out, ESPHOME_PSTR("dump_config"), this->dump_config);
1377 return out.c_str();
1378}
1380 MessageDumpHelper helper(out, ESPHOME_PSTR("SubscribeLogsResponse"));
1381 dump_field(out, ESPHOME_PSTR("level"), static_cast<enums::LogLevel>(this->level));
1382 dump_bytes_field(out, ESPHOME_PSTR("message"), this->message_ptr_, this->message_len_);
1383 return out.c_str();
1384}
1385#ifdef USE_API_NOISE
1387 MessageDumpHelper helper(out, ESPHOME_PSTR("NoiseEncryptionSetKeyRequest"));
1388 dump_bytes_field(out, ESPHOME_PSTR("key"), this->key, this->key_len);
1389 return out.c_str();
1390}
1392 MessageDumpHelper helper(out, ESPHOME_PSTR("NoiseEncryptionSetKeyResponse"));
1393 dump_field(out, ESPHOME_PSTR("success"), this->success);
1394 return out.c_str();
1395}
1396#endif
1397#ifdef USE_API_HOMEASSISTANT_SERVICES
1399 MessageDumpHelper helper(out, ESPHOME_PSTR("HomeassistantServiceMap"));
1400 dump_field(out, ESPHOME_PSTR("key"), this->key);
1401 dump_field(out, ESPHOME_PSTR("value"), this->value);
1402 return out.c_str();
1403}
1405 MessageDumpHelper helper(out, ESPHOME_PSTR("HomeassistantActionRequest"));
1406 dump_field(out, ESPHOME_PSTR("service"), this->service);
1407 for (const auto &it : this->data) {
1408 out.append(4, ' ').append_p(ESPHOME_PSTR("data")).append(": ");
1409 it.dump_to(out);
1410 out.append("\n");
1411 }
1412 for (const auto &it : this->data_template) {
1413 out.append(4, ' ').append_p(ESPHOME_PSTR("data_template")).append(": ");
1414 it.dump_to(out);
1415 out.append("\n");
1416 }
1417 for (const auto &it : this->variables) {
1418 out.append(4, ' ').append_p(ESPHOME_PSTR("variables")).append(": ");
1419 it.dump_to(out);
1420 out.append("\n");
1421 }
1422 dump_field(out, ESPHOME_PSTR("is_event"), this->is_event);
1423#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES
1424 dump_field(out, ESPHOME_PSTR("call_id"), this->call_id);
1425#endif
1426#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1427 dump_field(out, ESPHOME_PSTR("wants_response"), this->wants_response);
1428#endif
1429#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1430 dump_field(out, ESPHOME_PSTR("response_template"), this->response_template);
1431#endif
1432 return out.c_str();
1433}
1434#endif
1435#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES
1437 MessageDumpHelper helper(out, ESPHOME_PSTR("HomeassistantActionResponse"));
1438 dump_field(out, ESPHOME_PSTR("call_id"), this->call_id);
1439 dump_field(out, ESPHOME_PSTR("success"), this->success);
1440 dump_field(out, ESPHOME_PSTR("error_message"), this->error_message);
1441#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1442 dump_bytes_field(out, ESPHOME_PSTR("response_data"), this->response_data, this->response_data_len);
1443#endif
1444 return out.c_str();
1445}
1446#endif
1447#ifdef USE_API_HOMEASSISTANT_STATES
1449 MessageDumpHelper helper(out, ESPHOME_PSTR("SubscribeHomeAssistantStateResponse"));
1450 dump_field(out, ESPHOME_PSTR("entity_id"), this->entity_id);
1451 dump_field(out, ESPHOME_PSTR("attribute"), this->attribute);
1452 dump_field(out, ESPHOME_PSTR("once"), this->once);
1453 return out.c_str();
1454}
1456 MessageDumpHelper helper(out, ESPHOME_PSTR("HomeAssistantStateResponse"));
1457 dump_field(out, ESPHOME_PSTR("entity_id"), this->entity_id);
1458 dump_field(out, ESPHOME_PSTR("state"), this->state);
1459 dump_field(out, ESPHOME_PSTR("attribute"), this->attribute);
1460 return out.c_str();
1461}
1462#endif
1463const char *GetTimeRequest::dump_to(DumpBuffer &out) const {
1464 out.append_p(ESPHOME_PSTR("GetTimeRequest {}"));
1465 return out.c_str();
1466}
1467const char *DSTRule::dump_to(DumpBuffer &out) const {
1468 MessageDumpHelper helper(out, ESPHOME_PSTR("DSTRule"));
1469 dump_field(out, ESPHOME_PSTR("time_seconds"), this->time_seconds);
1470 dump_field(out, ESPHOME_PSTR("day"), this->day);
1471 dump_field(out, ESPHOME_PSTR("type"), static_cast<enums::DSTRuleType>(this->type));
1472 dump_field(out, ESPHOME_PSTR("month"), this->month);
1473 dump_field(out, ESPHOME_PSTR("week"), this->week);
1474 dump_field(out, ESPHOME_PSTR("day_of_week"), this->day_of_week);
1475 return out.c_str();
1476}
1477const char *ParsedTimezone::dump_to(DumpBuffer &out) const {
1478 MessageDumpHelper helper(out, ESPHOME_PSTR("ParsedTimezone"));
1479 dump_field(out, ESPHOME_PSTR("std_offset_seconds"), this->std_offset_seconds);
1480 dump_field(out, ESPHOME_PSTR("dst_offset_seconds"), this->dst_offset_seconds);
1481 out.append(2, ' ').append_p(ESPHOME_PSTR("dst_start")).append(": ");
1482 this->dst_start.dump_to(out);
1483 out.append("\n");
1484 out.append(2, ' ').append_p(ESPHOME_PSTR("dst_end")).append(": ");
1485 this->dst_end.dump_to(out);
1486 out.append("\n");
1487 return out.c_str();
1488}
1489const char *GetTimeResponse::dump_to(DumpBuffer &out) const {
1490 MessageDumpHelper helper(out, ESPHOME_PSTR("GetTimeResponse"));
1491 dump_field(out, ESPHOME_PSTR("epoch_seconds"), this->epoch_seconds);
1492 dump_field(out, ESPHOME_PSTR("has_parsed_timezone"), this->has_parsed_timezone);
1493 out.append(2, ' ').append_p(ESPHOME_PSTR("parsed_timezone")).append(": ");
1494 this->parsed_timezone.dump_to(out);
1495 out.append("\n");
1496 return out.c_str();
1497}
1498#ifdef USE_API_USER_DEFINED_ACTIONS
1500 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesServicesArgument"));
1501 dump_field(out, ESPHOME_PSTR("name"), this->name);
1502 dump_field(out, ESPHOME_PSTR("type"), static_cast<enums::ServiceArgType>(this->type));
1503#ifdef USE_API_USER_DEFINED_ACTION_METADATA
1504 dump_field(out, ESPHOME_PSTR("description"), this->description);
1505#endif
1506#ifdef USE_API_USER_DEFINED_ACTION_METADATA
1507 dump_field(out, ESPHOME_PSTR("example"), this->example);
1508#endif
1509 return out.c_str();
1510}
1512 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesServicesResponse"));
1513 dump_field(out, ESPHOME_PSTR("name"), this->name);
1514 dump_field(out, ESPHOME_PSTR("key"), this->key);
1515 for (const auto &it : this->args) {
1516 out.append(4, ' ').append_p(ESPHOME_PSTR("args")).append(": ");
1517 it.dump_to(out);
1518 out.append("\n");
1519 }
1520 dump_field(out, ESPHOME_PSTR("supports_response"), static_cast<enums::SupportsResponseType>(this->supports_response));
1521#ifdef USE_API_USER_DEFINED_ACTION_METADATA
1522 dump_field(out, ESPHOME_PSTR("description"), this->description);
1523#endif
1524 return out.c_str();
1525}
1527 MessageDumpHelper helper(out, ESPHOME_PSTR("ExecuteServiceArgument"));
1528 dump_field(out, ESPHOME_PSTR("bool_"), this->bool_);
1529 dump_field(out, ESPHOME_PSTR("legacy_int"), this->legacy_int);
1530 dump_field(out, ESPHOME_PSTR("float_"), this->float_);
1531 dump_field(out, ESPHOME_PSTR("string_"), this->string_);
1532 dump_field(out, ESPHOME_PSTR("int_"), this->int_);
1533 for (const auto it : this->bool_array) {
1534 dump_field(out, ESPHOME_PSTR("bool_array"), static_cast<bool>(it), 4);
1535 }
1536 for (const auto &it : this->int_array) {
1537 dump_field(out, ESPHOME_PSTR("int_array"), it, 4);
1538 }
1539 for (const auto &it : this->float_array) {
1540 dump_field(out, ESPHOME_PSTR("float_array"), it, 4);
1541 }
1542 for (const auto &it : this->string_array) {
1543 dump_field(out, ESPHOME_PSTR("string_array"), it, 4);
1544 }
1545 return out.c_str();
1546}
1548 MessageDumpHelper helper(out, ESPHOME_PSTR("ExecuteServiceRequest"));
1549 dump_field(out, ESPHOME_PSTR("key"), this->key);
1550 for (const auto &it : this->args) {
1551 out.append(4, ' ').append_p(ESPHOME_PSTR("args")).append(": ");
1552 it.dump_to(out);
1553 out.append("\n");
1554 }
1555#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1556 dump_field(out, ESPHOME_PSTR("call_id"), this->call_id);
1557#endif
1558#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1559 dump_field(out, ESPHOME_PSTR("return_response"), this->return_response);
1560#endif
1561 return out.c_str();
1562}
1563#endif
1564#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1566 MessageDumpHelper helper(out, ESPHOME_PSTR("ExecuteServiceResponse"));
1567 dump_field(out, ESPHOME_PSTR("call_id"), this->call_id);
1568 dump_field(out, ESPHOME_PSTR("success"), this->success);
1569 dump_field(out, ESPHOME_PSTR("error_message"), this->error_message);
1570#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES_JSON
1571 dump_bytes_field(out, ESPHOME_PSTR("response_data"), this->response_data, this->response_data_len);
1572#endif
1573 return out.c_str();
1574}
1575#endif
1576#ifdef USE_CAMERA
1578 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesCameraResponse"));
1579 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1580 dump_field(out, ESPHOME_PSTR("key"), this->key);
1581 dump_field(out, ESPHOME_PSTR("name"), this->name);
1582 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1583#ifdef USE_ENTITY_ICON
1584 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
1585#endif
1586 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1587#ifdef USE_DEVICES
1588 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1589#endif
1590 return out.c_str();
1591}
1593 MessageDumpHelper helper(out, ESPHOME_PSTR("CameraImageResponse"));
1594 dump_field(out, ESPHOME_PSTR("key"), this->key);
1595 dump_bytes_field(out, ESPHOME_PSTR("data"), this->data_ptr_, this->data_len_);
1596 dump_field(out, ESPHOME_PSTR("done"), this->done);
1597#ifdef USE_DEVICES
1598 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1599#endif
1600 return out.c_str();
1601}
1603 MessageDumpHelper helper(out, ESPHOME_PSTR("CameraImageRequest"));
1604 dump_field(out, ESPHOME_PSTR("single"), this->single);
1605 dump_field(out, ESPHOME_PSTR("stream"), this->stream);
1606 return out.c_str();
1607}
1608#endif
1609#ifdef USE_CLIMATE
1611 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesClimateResponse"));
1612 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1613 dump_field(out, ESPHOME_PSTR("key"), this->key);
1614 dump_field(out, ESPHOME_PSTR("name"), this->name);
1615 dump_field(out, ESPHOME_PSTR("supports_current_temperature"), this->supports_current_temperature);
1616 dump_field(out, ESPHOME_PSTR("supports_two_point_target_temperature"), this->supports_two_point_target_temperature);
1617 for (const auto &it : *this->supported_modes) {
1618 dump_field(out, ESPHOME_PSTR("supported_modes"), static_cast<enums::ClimateMode>(it), 4);
1619 }
1620 dump_field(out, ESPHOME_PSTR("visual_min_temperature"), this->visual_min_temperature);
1621 dump_field(out, ESPHOME_PSTR("visual_max_temperature"), this->visual_max_temperature);
1622 dump_field(out, ESPHOME_PSTR("visual_target_temperature_step"), this->visual_target_temperature_step);
1623 dump_field(out, ESPHOME_PSTR("supports_action"), this->supports_action);
1624 for (const auto &it : *this->supported_fan_modes) {
1625 dump_field(out, ESPHOME_PSTR("supported_fan_modes"), static_cast<enums::ClimateFanMode>(it), 4);
1626 }
1627 for (const auto &it : *this->supported_swing_modes) {
1628 dump_field(out, ESPHOME_PSTR("supported_swing_modes"), static_cast<enums::ClimateSwingMode>(it), 4);
1629 }
1630 for (const auto &it : *this->supported_custom_fan_modes) {
1631 dump_field(out, ESPHOME_PSTR("supported_custom_fan_modes"), it, 4);
1632 }
1633 for (const auto &it : *this->supported_presets) {
1634 dump_field(out, ESPHOME_PSTR("supported_presets"), static_cast<enums::ClimatePreset>(it), 4);
1635 }
1636 for (const auto &it : *this->supported_custom_presets) {
1637 dump_field(out, ESPHOME_PSTR("supported_custom_presets"), it, 4);
1638 }
1639 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1640#ifdef USE_ENTITY_ICON
1641 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
1642#endif
1643 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1644 dump_field(out, ESPHOME_PSTR("visual_current_temperature_step"), this->visual_current_temperature_step);
1645 dump_field(out, ESPHOME_PSTR("supports_current_humidity"), this->supports_current_humidity);
1646 dump_field(out, ESPHOME_PSTR("supports_target_humidity"), this->supports_target_humidity);
1647 dump_field(out, ESPHOME_PSTR("visual_min_humidity"), this->visual_min_humidity);
1648 dump_field(out, ESPHOME_PSTR("visual_max_humidity"), this->visual_max_humidity);
1649#ifdef USE_DEVICES
1650 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1651#endif
1652 dump_field(out, ESPHOME_PSTR("feature_flags"), this->feature_flags);
1653 dump_field(out, ESPHOME_PSTR("temperature_unit"), static_cast<enums::TemperatureUnit>(this->temperature_unit));
1654 return out.c_str();
1655}
1657 MessageDumpHelper helper(out, ESPHOME_PSTR("ClimateStateResponse"));
1658 dump_field(out, ESPHOME_PSTR("key"), this->key);
1659 dump_field(out, ESPHOME_PSTR("mode"), static_cast<enums::ClimateMode>(this->mode));
1660 dump_field(out, ESPHOME_PSTR("current_temperature"), this->current_temperature);
1661 dump_field(out, ESPHOME_PSTR("target_temperature"), this->target_temperature);
1662 dump_field(out, ESPHOME_PSTR("target_temperature_low"), this->target_temperature_low);
1663 dump_field(out, ESPHOME_PSTR("target_temperature_high"), this->target_temperature_high);
1664 dump_field(out, ESPHOME_PSTR("action"), static_cast<enums::ClimateAction>(this->action));
1665 dump_field(out, ESPHOME_PSTR("fan_mode"), static_cast<enums::ClimateFanMode>(this->fan_mode));
1666 dump_field(out, ESPHOME_PSTR("swing_mode"), static_cast<enums::ClimateSwingMode>(this->swing_mode));
1667 dump_field(out, ESPHOME_PSTR("custom_fan_mode"), this->custom_fan_mode);
1668 dump_field(out, ESPHOME_PSTR("preset"), static_cast<enums::ClimatePreset>(this->preset));
1669 dump_field(out, ESPHOME_PSTR("custom_preset"), this->custom_preset);
1670 dump_field(out, ESPHOME_PSTR("current_humidity"), this->current_humidity);
1671 dump_field(out, ESPHOME_PSTR("target_humidity"), this->target_humidity);
1672#ifdef USE_DEVICES
1673 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1674#endif
1675 return out.c_str();
1676}
1678 MessageDumpHelper helper(out, ESPHOME_PSTR("ClimateCommandRequest"));
1679 dump_field(out, ESPHOME_PSTR("key"), this->key);
1680 dump_field(out, ESPHOME_PSTR("has_mode"), this->has_mode);
1681 dump_field(out, ESPHOME_PSTR("mode"), static_cast<enums::ClimateMode>(this->mode));
1682 dump_field(out, ESPHOME_PSTR("has_target_temperature"), this->has_target_temperature);
1683 dump_field(out, ESPHOME_PSTR("target_temperature"), this->target_temperature);
1684 dump_field(out, ESPHOME_PSTR("has_target_temperature_low"), this->has_target_temperature_low);
1685 dump_field(out, ESPHOME_PSTR("target_temperature_low"), this->target_temperature_low);
1686 dump_field(out, ESPHOME_PSTR("has_target_temperature_high"), this->has_target_temperature_high);
1687 dump_field(out, ESPHOME_PSTR("target_temperature_high"), this->target_temperature_high);
1688 dump_field(out, ESPHOME_PSTR("has_fan_mode"), this->has_fan_mode);
1689 dump_field(out, ESPHOME_PSTR("fan_mode"), static_cast<enums::ClimateFanMode>(this->fan_mode));
1690 dump_field(out, ESPHOME_PSTR("has_swing_mode"), this->has_swing_mode);
1691 dump_field(out, ESPHOME_PSTR("swing_mode"), static_cast<enums::ClimateSwingMode>(this->swing_mode));
1692 dump_field(out, ESPHOME_PSTR("has_custom_fan_mode"), this->has_custom_fan_mode);
1693 dump_field(out, ESPHOME_PSTR("custom_fan_mode"), this->custom_fan_mode);
1694 dump_field(out, ESPHOME_PSTR("has_preset"), this->has_preset);
1695 dump_field(out, ESPHOME_PSTR("preset"), static_cast<enums::ClimatePreset>(this->preset));
1696 dump_field(out, ESPHOME_PSTR("has_custom_preset"), this->has_custom_preset);
1697 dump_field(out, ESPHOME_PSTR("custom_preset"), this->custom_preset);
1698 dump_field(out, ESPHOME_PSTR("has_target_humidity"), this->has_target_humidity);
1699 dump_field(out, ESPHOME_PSTR("target_humidity"), this->target_humidity);
1700#ifdef USE_DEVICES
1701 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1702#endif
1703 return out.c_str();
1704}
1705#endif
1706#ifdef USE_WATER_HEATER
1708 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesWaterHeaterResponse"));
1709 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1710 dump_field(out, ESPHOME_PSTR("key"), this->key);
1711 dump_field(out, ESPHOME_PSTR("name"), this->name);
1712#ifdef USE_ENTITY_ICON
1713 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
1714#endif
1715 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1716 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1717#ifdef USE_DEVICES
1718 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1719#endif
1720 dump_field(out, ESPHOME_PSTR("min_temperature"), this->min_temperature);
1721 dump_field(out, ESPHOME_PSTR("max_temperature"), this->max_temperature);
1722 dump_field(out, ESPHOME_PSTR("target_temperature_step"), this->target_temperature_step);
1723 for (const auto &it : *this->supported_modes) {
1724 dump_field(out, ESPHOME_PSTR("supported_modes"), static_cast<enums::WaterHeaterMode>(it), 4);
1725 }
1726 dump_field(out, ESPHOME_PSTR("supported_features"), this->supported_features);
1727 dump_field(out, ESPHOME_PSTR("temperature_unit"), static_cast<enums::TemperatureUnit>(this->temperature_unit));
1728 return out.c_str();
1729}
1731 MessageDumpHelper helper(out, ESPHOME_PSTR("WaterHeaterStateResponse"));
1732 dump_field(out, ESPHOME_PSTR("key"), this->key);
1733 dump_field(out, ESPHOME_PSTR("current_temperature"), this->current_temperature);
1734 dump_field(out, ESPHOME_PSTR("target_temperature"), this->target_temperature);
1735 dump_field(out, ESPHOME_PSTR("mode"), static_cast<enums::WaterHeaterMode>(this->mode));
1736#ifdef USE_DEVICES
1737 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1738#endif
1739 dump_field(out, ESPHOME_PSTR("state"), this->state);
1740 dump_field(out, ESPHOME_PSTR("target_temperature_low"), this->target_temperature_low);
1741 dump_field(out, ESPHOME_PSTR("target_temperature_high"), this->target_temperature_high);
1742 return out.c_str();
1743}
1745 MessageDumpHelper helper(out, ESPHOME_PSTR("WaterHeaterCommandRequest"));
1746 dump_field(out, ESPHOME_PSTR("key"), this->key);
1747 dump_field(out, ESPHOME_PSTR("has_fields"), this->has_fields);
1748 dump_field(out, ESPHOME_PSTR("mode"), static_cast<enums::WaterHeaterMode>(this->mode));
1749 dump_field(out, ESPHOME_PSTR("target_temperature"), this->target_temperature);
1750#ifdef USE_DEVICES
1751 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1752#endif
1753 dump_field(out, ESPHOME_PSTR("state"), this->state);
1754 dump_field(out, ESPHOME_PSTR("target_temperature_low"), this->target_temperature_low);
1755 dump_field(out, ESPHOME_PSTR("target_temperature_high"), this->target_temperature_high);
1756 return out.c_str();
1757}
1758#endif
1759#ifdef USE_NUMBER
1761 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesNumberResponse"));
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("min_value"), this->min_value);
1769 dump_field(out, ESPHOME_PSTR("max_value"), this->max_value);
1770 dump_field(out, ESPHOME_PSTR("step"), this->step);
1771 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1772 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1773 dump_field(out, ESPHOME_PSTR("unit_of_measurement"), this->unit_of_measurement);
1774 dump_field(out, ESPHOME_PSTR("mode"), static_cast<enums::NumberMode>(this->mode));
1775 dump_field(out, ESPHOME_PSTR("device_class"), this->device_class);
1776#ifdef USE_DEVICES
1777 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1778#endif
1779 return out.c_str();
1780}
1782 MessageDumpHelper helper(out, ESPHOME_PSTR("NumberStateResponse"));
1783 dump_field(out, ESPHOME_PSTR("key"), this->key);
1784 dump_field(out, ESPHOME_PSTR("state"), this->state);
1785 dump_field(out, ESPHOME_PSTR("missing_state"), this->missing_state);
1786#ifdef USE_DEVICES
1787 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1788#endif
1789 return out.c_str();
1790}
1792 MessageDumpHelper helper(out, ESPHOME_PSTR("NumberCommandRequest"));
1793 dump_field(out, ESPHOME_PSTR("key"), this->key);
1794 dump_field(out, ESPHOME_PSTR("state"), this->state);
1795#ifdef USE_DEVICES
1796 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1797#endif
1798 return out.c_str();
1799}
1800#endif
1801#ifdef USE_SELECT
1803 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesSelectResponse"));
1804 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1805 dump_field(out, ESPHOME_PSTR("key"), this->key);
1806 dump_field(out, ESPHOME_PSTR("name"), this->name);
1807#ifdef USE_ENTITY_ICON
1808 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
1809#endif
1810 for (const auto &it : *this->options) {
1811 dump_field(out, ESPHOME_PSTR("options"), it, 4);
1812 }
1813 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1814 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1815#ifdef USE_DEVICES
1816 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1817#endif
1818 return out.c_str();
1819}
1821 MessageDumpHelper helper(out, ESPHOME_PSTR("SelectStateResponse"));
1822 dump_field(out, ESPHOME_PSTR("key"), this->key);
1823 dump_field(out, ESPHOME_PSTR("state"), this->state);
1824 dump_field(out, ESPHOME_PSTR("missing_state"), this->missing_state);
1825#ifdef USE_DEVICES
1826 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1827#endif
1828 return out.c_str();
1829}
1831 MessageDumpHelper helper(out, ESPHOME_PSTR("SelectCommandRequest"));
1832 dump_field(out, ESPHOME_PSTR("key"), this->key);
1833 dump_field(out, ESPHOME_PSTR("state"), this->state);
1834#ifdef USE_DEVICES
1835 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1836#endif
1837 return out.c_str();
1838}
1839#endif
1840#ifdef USE_SIREN
1842 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesSirenResponse"));
1843 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1844 dump_field(out, ESPHOME_PSTR("key"), this->key);
1845 dump_field(out, ESPHOME_PSTR("name"), this->name);
1846#ifdef USE_ENTITY_ICON
1847 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
1848#endif
1849 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1850 for (const auto &it : *this->tones) {
1851 dump_field(out, ESPHOME_PSTR("tones"), it, 4);
1852 }
1853 dump_field(out, ESPHOME_PSTR("supports_duration"), this->supports_duration);
1854 dump_field(out, ESPHOME_PSTR("supports_volume"), this->supports_volume);
1855 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1856#ifdef USE_DEVICES
1857 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1858#endif
1859 return out.c_str();
1860}
1862 MessageDumpHelper helper(out, ESPHOME_PSTR("SirenStateResponse"));
1863 dump_field(out, ESPHOME_PSTR("key"), this->key);
1864 dump_field(out, ESPHOME_PSTR("state"), this->state);
1865#ifdef USE_DEVICES
1866 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1867#endif
1868 return out.c_str();
1869}
1871 MessageDumpHelper helper(out, ESPHOME_PSTR("SirenCommandRequest"));
1872 dump_field(out, ESPHOME_PSTR("key"), this->key);
1873 dump_field(out, ESPHOME_PSTR("has_state"), this->has_state);
1874 dump_field(out, ESPHOME_PSTR("state"), this->state);
1875 dump_field(out, ESPHOME_PSTR("has_tone"), this->has_tone);
1876 dump_field(out, ESPHOME_PSTR("tone"), this->tone);
1877 dump_field(out, ESPHOME_PSTR("has_duration"), this->has_duration);
1878 dump_field(out, ESPHOME_PSTR("duration"), this->duration);
1879 dump_field(out, ESPHOME_PSTR("has_volume"), this->has_volume);
1880 dump_field(out, ESPHOME_PSTR("volume"), this->volume);
1881#ifdef USE_DEVICES
1882 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1883#endif
1884 return out.c_str();
1885}
1886#endif
1887#ifdef USE_LOCK
1889 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesLockResponse"));
1890 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1891 dump_field(out, ESPHOME_PSTR("key"), this->key);
1892 dump_field(out, ESPHOME_PSTR("name"), this->name);
1893#ifdef USE_ENTITY_ICON
1894 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
1895#endif
1896 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1897 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1898 dump_field(out, ESPHOME_PSTR("assumed_state"), this->assumed_state);
1899 dump_field(out, ESPHOME_PSTR("supports_open"), this->supports_open);
1900 dump_field(out, ESPHOME_PSTR("requires_code"), this->requires_code);
1901 dump_field(out, ESPHOME_PSTR("code_format"), this->code_format);
1902#ifdef USE_DEVICES
1903 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1904#endif
1905 return out.c_str();
1906}
1908 MessageDumpHelper helper(out, ESPHOME_PSTR("LockStateResponse"));
1909 dump_field(out, ESPHOME_PSTR("key"), this->key);
1910 dump_field(out, ESPHOME_PSTR("state"), static_cast<enums::LockState>(this->state));
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("LockCommandRequest"));
1918 dump_field(out, ESPHOME_PSTR("key"), this->key);
1919 dump_field(out, ESPHOME_PSTR("command"), static_cast<enums::LockCommand>(this->command));
1920 dump_field(out, ESPHOME_PSTR("has_code"), this->has_code);
1921 dump_field(out, ESPHOME_PSTR("code"), this->code);
1922#ifdef USE_DEVICES
1923 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1924#endif
1925 return out.c_str();
1926}
1927#endif
1928#ifdef USE_BUTTON
1930 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesButtonResponse"));
1931 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1932 dump_field(out, ESPHOME_PSTR("key"), this->key);
1933 dump_field(out, ESPHOME_PSTR("name"), this->name);
1934#ifdef USE_ENTITY_ICON
1935 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
1936#endif
1937 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1938 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1939 dump_field(out, ESPHOME_PSTR("device_class"), this->device_class);
1940#ifdef USE_DEVICES
1941 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1942#endif
1943 return out.c_str();
1944}
1946 MessageDumpHelper helper(out, ESPHOME_PSTR("ButtonCommandRequest"));
1947 dump_field(out, ESPHOME_PSTR("key"), this->key);
1948#ifdef USE_DEVICES
1949 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1950#endif
1951 return out.c_str();
1952}
1953#endif
1954#ifdef USE_MEDIA_PLAYER
1956 MessageDumpHelper helper(out, ESPHOME_PSTR("MediaPlayerSupportedFormat"));
1957 dump_field(out, ESPHOME_PSTR("format"), this->format);
1958 dump_field(out, ESPHOME_PSTR("sample_rate"), this->sample_rate);
1959 dump_field(out, ESPHOME_PSTR("num_channels"), this->num_channels);
1960 dump_field(out, ESPHOME_PSTR("purpose"), static_cast<enums::MediaPlayerFormatPurpose>(this->purpose));
1961 dump_field(out, ESPHOME_PSTR("sample_bytes"), this->sample_bytes);
1962 return out.c_str();
1963}
1965 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesMediaPlayerResponse"));
1966 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1967 dump_field(out, ESPHOME_PSTR("key"), this->key);
1968 dump_field(out, ESPHOME_PSTR("name"), this->name);
1969#ifdef USE_ENTITY_ICON
1970 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
1971#endif
1972 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1973 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1974 for (const auto &it : this->supported_formats) {
1975 out.append(4, ' ').append_p(ESPHOME_PSTR("supported_formats")).append(": ");
1976 it.dump_to(out);
1977 out.append("\n");
1978 }
1979#ifdef USE_DEVICES
1980 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1981#endif
1982 dump_field(out, ESPHOME_PSTR("feature_flags"), this->feature_flags);
1983 return out.c_str();
1984}
1986 MessageDumpHelper helper(out, ESPHOME_PSTR("MediaPlayerStateResponse"));
1987 dump_field(out, ESPHOME_PSTR("key"), this->key);
1988 dump_field(out, ESPHOME_PSTR("state"), static_cast<enums::MediaPlayerState>(this->state));
1989 dump_field(out, ESPHOME_PSTR("volume"), this->volume);
1990 dump_field(out, ESPHOME_PSTR("muted"), this->muted);
1991#ifdef USE_DEVICES
1992 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1993#endif
1994 return out.c_str();
1995}
1997 MessageDumpHelper helper(out, ESPHOME_PSTR("MediaPlayerCommandRequest"));
1998 dump_field(out, ESPHOME_PSTR("key"), this->key);
1999 dump_field(out, ESPHOME_PSTR("has_command"), this->has_command);
2000 dump_field(out, ESPHOME_PSTR("command"), static_cast<enums::MediaPlayerCommand>(this->command));
2001 dump_field(out, ESPHOME_PSTR("has_volume"), this->has_volume);
2002 dump_field(out, ESPHOME_PSTR("volume"), this->volume);
2003 dump_field(out, ESPHOME_PSTR("has_media_url"), this->has_media_url);
2004 dump_field(out, ESPHOME_PSTR("media_url"), this->media_url);
2005 dump_field(out, ESPHOME_PSTR("has_announcement"), this->has_announcement);
2006 dump_field(out, ESPHOME_PSTR("announcement"), this->announcement);
2007#ifdef USE_DEVICES
2008 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2009#endif
2010 return out.c_str();
2011}
2012#endif
2013#ifdef USE_BLUETOOTH_PROXY
2015 MessageDumpHelper helper(out, ESPHOME_PSTR("SubscribeBluetoothLEAdvertisementsRequest"));
2016 dump_field(out, ESPHOME_PSTR("flags"), this->flags);
2017 return out.c_str();
2018}
2020 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothLERawAdvertisement"));
2021 dump_field(out, ESPHOME_PSTR("address"), this->address);
2022 dump_field(out, ESPHOME_PSTR("rssi"), this->rssi);
2023 dump_field(out, ESPHOME_PSTR("address_type"), this->address_type);
2024 dump_bytes_field(out, ESPHOME_PSTR("data"), this->data, this->data_len);
2025 return out.c_str();
2026}
2028 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothLERawAdvertisementsResponse"));
2029 for (uint16_t i = 0; i < this->advertisements_len; i++) {
2030 out.append(4, ' ').append_p(ESPHOME_PSTR("advertisements")).append(": ");
2031 this->advertisements[i].dump_to(out);
2032 out.append("\n");
2033 }
2034 return out.c_str();
2035}
2036#endif
2037#ifdef USE_BLUETOOTH_PROXY_CONNECTIONS
2039 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothDeviceRequest"));
2040 dump_field(out, ESPHOME_PSTR("address"), this->address);
2041 dump_field(out, ESPHOME_PSTR("request_type"), static_cast<enums::BluetoothDeviceRequestType>(this->request_type));
2042 dump_field(out, ESPHOME_PSTR("has_address_type"), this->has_address_type);
2043 dump_field(out, ESPHOME_PSTR("address_type"), this->address_type);
2044 return out.c_str();
2045}
2047 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothDeviceConnectionResponse"));
2048 dump_field(out, ESPHOME_PSTR("address"), this->address);
2049 dump_field(out, ESPHOME_PSTR("connected"), this->connected);
2050 dump_field(out, ESPHOME_PSTR("mtu"), this->mtu);
2051 dump_field(out, ESPHOME_PSTR("error"), this->error);
2052 return out.c_str();
2053}
2055 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTGetServicesRequest"));
2056 dump_field(out, ESPHOME_PSTR("address"), this->address);
2057 return out.c_str();
2058}
2060 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTDescriptor"));
2061 for (const auto &it : this->uuid) {
2062 dump_field(out, ESPHOME_PSTR("uuid"), it, 4);
2063 }
2064 dump_field(out, ESPHOME_PSTR("handle"), this->handle);
2065 dump_field(out, ESPHOME_PSTR("short_uuid"), this->short_uuid);
2066 return out.c_str();
2067}
2069 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTCharacteristic"));
2070 for (const auto &it : this->uuid) {
2071 dump_field(out, ESPHOME_PSTR("uuid"), it, 4);
2072 }
2073 dump_field(out, ESPHOME_PSTR("handle"), this->handle);
2074 dump_field(out, ESPHOME_PSTR("properties"), this->properties);
2075 for (const auto &it : this->descriptors) {
2076 out.append(4, ' ').append_p(ESPHOME_PSTR("descriptors")).append(": ");
2077 it.dump_to(out);
2078 out.append("\n");
2079 }
2080 dump_field(out, ESPHOME_PSTR("short_uuid"), this->short_uuid);
2081 return out.c_str();
2082}
2084 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTService"));
2085 for (const auto &it : this->uuid) {
2086 dump_field(out, ESPHOME_PSTR("uuid"), it, 4);
2087 }
2088 dump_field(out, ESPHOME_PSTR("handle"), this->handle);
2089 for (const auto &it : this->characteristics) {
2090 out.append(4, ' ').append_p(ESPHOME_PSTR("characteristics")).append(": ");
2091 it.dump_to(out);
2092 out.append("\n");
2093 }
2094 dump_field(out, ESPHOME_PSTR("short_uuid"), this->short_uuid);
2095 return out.c_str();
2096}
2098 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTGetServicesResponse"));
2099 dump_field(out, ESPHOME_PSTR("address"), this->address);
2100 for (const auto &it : this->services) {
2101 out.append(4, ' ').append_p(ESPHOME_PSTR("services")).append(": ");
2102 it.dump_to(out);
2103 out.append("\n");
2104 }
2105 return out.c_str();
2106}
2108 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTGetServicesDoneResponse"));
2109 dump_field(out, ESPHOME_PSTR("address"), this->address);
2110 return out.c_str();
2111}
2113 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTReadRequest"));
2114 dump_field(out, ESPHOME_PSTR("address"), this->address);
2115 dump_field(out, ESPHOME_PSTR("handle"), this->handle);
2116 return out.c_str();
2117}
2119 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTReadResponse"));
2120 dump_field(out, ESPHOME_PSTR("address"), this->address);
2121 dump_field(out, ESPHOME_PSTR("handle"), this->handle);
2122 dump_bytes_field(out, ESPHOME_PSTR("data"), this->data_ptr_, this->data_len_);
2123 return out.c_str();
2124}
2126 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTWriteRequest"));
2127 dump_field(out, ESPHOME_PSTR("address"), this->address);
2128 dump_field(out, ESPHOME_PSTR("handle"), this->handle);
2129 dump_field(out, ESPHOME_PSTR("response"), this->response);
2130 dump_bytes_field(out, ESPHOME_PSTR("data"), this->data, this->data_len);
2131 return out.c_str();
2132}
2134 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTReadDescriptorRequest"));
2135 dump_field(out, ESPHOME_PSTR("address"), this->address);
2136 dump_field(out, ESPHOME_PSTR("handle"), this->handle);
2137 return out.c_str();
2138}
2140 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTWriteDescriptorRequest"));
2141 dump_field(out, ESPHOME_PSTR("address"), this->address);
2142 dump_field(out, ESPHOME_PSTR("handle"), this->handle);
2143 dump_bytes_field(out, ESPHOME_PSTR("data"), this->data, this->data_len);
2144 return out.c_str();
2145}
2147 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTNotifyRequest"));
2148 dump_field(out, ESPHOME_PSTR("address"), this->address);
2149 dump_field(out, ESPHOME_PSTR("handle"), this->handle);
2150 dump_field(out, ESPHOME_PSTR("enable"), this->enable);
2151 return out.c_str();
2152}
2154 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTNotifyDataResponse"));
2155 dump_field(out, ESPHOME_PSTR("address"), this->address);
2156 dump_field(out, ESPHOME_PSTR("handle"), this->handle);
2157 dump_bytes_field(out, ESPHOME_PSTR("data"), this->data_ptr_, this->data_len_);
2158 return out.c_str();
2159}
2161 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothConnectionsFreeResponse"));
2162 dump_field(out, ESPHOME_PSTR("free"), this->free);
2163 dump_field(out, ESPHOME_PSTR("limit"), this->limit);
2164 for (const auto &it : this->allocated) {
2165 dump_field(out, ESPHOME_PSTR("allocated"), it, 4);
2166 }
2167 return out.c_str();
2168}
2170 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTErrorResponse"));
2171 dump_field(out, ESPHOME_PSTR("address"), this->address);
2172 dump_field(out, ESPHOME_PSTR("handle"), this->handle);
2173 dump_field(out, ESPHOME_PSTR("error"), this->error);
2174 return out.c_str();
2175}
2177 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTWriteResponse"));
2178 dump_field(out, ESPHOME_PSTR("address"), this->address);
2179 dump_field(out, ESPHOME_PSTR("handle"), this->handle);
2180 return out.c_str();
2181}
2183 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTNotifyResponse"));
2184 dump_field(out, ESPHOME_PSTR("address"), this->address);
2185 dump_field(out, ESPHOME_PSTR("handle"), this->handle);
2186 return out.c_str();
2187}
2189 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothDevicePairingResponse"));
2190 dump_field(out, ESPHOME_PSTR("address"), this->address);
2191 dump_field(out, ESPHOME_PSTR("paired"), this->paired);
2192 dump_field(out, ESPHOME_PSTR("error"), this->error);
2193 return out.c_str();
2194}
2196 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothDeviceUnpairingResponse"));
2197 dump_field(out, ESPHOME_PSTR("address"), this->address);
2198 dump_field(out, ESPHOME_PSTR("success"), this->success);
2199 dump_field(out, ESPHOME_PSTR("error"), this->error);
2200 return out.c_str();
2201}
2203 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothDeviceClearCacheResponse"));
2204 dump_field(out, ESPHOME_PSTR("address"), this->address);
2205 dump_field(out, ESPHOME_PSTR("success"), this->success);
2206 dump_field(out, ESPHOME_PSTR("error"), this->error);
2207 return out.c_str();
2208}
2209#endif
2210#ifdef USE_BLUETOOTH_PROXY
2212 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothScannerStateResponse"));
2213 dump_field(out, ESPHOME_PSTR("state"), static_cast<enums::BluetoothScannerState>(this->state));
2214 dump_field(out, ESPHOME_PSTR("mode"), static_cast<enums::BluetoothScannerMode>(this->mode));
2215 dump_field(out, ESPHOME_PSTR("configured_mode"), static_cast<enums::BluetoothScannerMode>(this->configured_mode));
2216 return out.c_str();
2217}
2219 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothScannerSetModeRequest"));
2220 dump_field(out, ESPHOME_PSTR("mode"), static_cast<enums::BluetoothScannerMode>(this->mode));
2221 return out.c_str();
2222}
2223#endif
2224#ifdef USE_VOICE_ASSISTANT
2226 MessageDumpHelper helper(out, ESPHOME_PSTR("SubscribeVoiceAssistantRequest"));
2227 dump_field(out, ESPHOME_PSTR("subscribe"), this->subscribe);
2228 dump_field(out, ESPHOME_PSTR("flags"), this->flags);
2229 return out.c_str();
2230}
2232 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantAudioSettings"));
2233 dump_field(out, ESPHOME_PSTR("noise_suppression_level"), this->noise_suppression_level);
2234 dump_field(out, ESPHOME_PSTR("auto_gain"), this->auto_gain);
2235 dump_field(out, ESPHOME_PSTR("volume_multiplier"), this->volume_multiplier);
2236 return out.c_str();
2237}
2239 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantRequest"));
2240 dump_field(out, ESPHOME_PSTR("start"), this->start);
2241 dump_field(out, ESPHOME_PSTR("conversation_id"), this->conversation_id);
2242 dump_field(out, ESPHOME_PSTR("flags"), this->flags);
2243 out.append(2, ' ').append_p(ESPHOME_PSTR("audio_settings")).append(": ");
2244 this->audio_settings.dump_to(out);
2245 out.append("\n");
2246 dump_field(out, ESPHOME_PSTR("wake_word_phrase"), this->wake_word_phrase);
2247 return out.c_str();
2248}
2250 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantResponse"));
2251 dump_field(out, ESPHOME_PSTR("port"), this->port);
2252 dump_field(out, ESPHOME_PSTR("error"), this->error);
2253 return out.c_str();
2254}
2256 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantEventData"));
2257 dump_field(out, ESPHOME_PSTR("name"), this->name);
2258 dump_field(out, ESPHOME_PSTR("value"), this->value);
2259 return out.c_str();
2260}
2262 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantEventResponse"));
2263 dump_field(out, ESPHOME_PSTR("event_type"), static_cast<enums::VoiceAssistantEvent>(this->event_type));
2264 for (const auto &it : this->data) {
2265 out.append(4, ' ').append_p(ESPHOME_PSTR("data")).append(": ");
2266 it.dump_to(out);
2267 out.append("\n");
2268 }
2269 return out.c_str();
2270}
2272 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantAudio"));
2273 dump_bytes_field(out, ESPHOME_PSTR("data"), this->data, this->data_len);
2274 dump_field(out, ESPHOME_PSTR("end"), this->end);
2275 dump_bytes_field(out, ESPHOME_PSTR("data2"), this->data2, this->data2_len);
2276 return out.c_str();
2277}
2279 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantTimerEventResponse"));
2280 dump_field(out, ESPHOME_PSTR("event_type"), static_cast<enums::VoiceAssistantTimerEvent>(this->event_type));
2281 dump_field(out, ESPHOME_PSTR("timer_id"), this->timer_id);
2282 dump_field(out, ESPHOME_PSTR("name"), this->name);
2283 dump_field(out, ESPHOME_PSTR("total_seconds"), this->total_seconds);
2284 dump_field(out, ESPHOME_PSTR("seconds_left"), this->seconds_left);
2285 dump_field(out, ESPHOME_PSTR("is_active"), this->is_active);
2286 return out.c_str();
2287}
2289 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantAnnounceRequest"));
2290 dump_field(out, ESPHOME_PSTR("media_id"), this->media_id);
2291 dump_field(out, ESPHOME_PSTR("text"), this->text);
2292 dump_field(out, ESPHOME_PSTR("preannounce_media_id"), this->preannounce_media_id);
2293 dump_field(out, ESPHOME_PSTR("start_conversation"), this->start_conversation);
2294 return out.c_str();
2295}
2297 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantAnnounceFinished"));
2298 dump_field(out, ESPHOME_PSTR("success"), this->success);
2299 return out.c_str();
2300}
2302 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantWakeWord"));
2303 dump_field(out, ESPHOME_PSTR("id"), this->id);
2304 dump_field(out, ESPHOME_PSTR("wake_word"), this->wake_word);
2305 for (const auto &it : this->trained_languages) {
2306 dump_field(out, ESPHOME_PSTR("trained_languages"), it, 4);
2307 }
2308 return out.c_str();
2309}
2311 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantExternalWakeWord"));
2312 dump_field(out, ESPHOME_PSTR("id"), this->id);
2313 dump_field(out, ESPHOME_PSTR("wake_word"), this->wake_word);
2314 for (const auto &it : this->trained_languages) {
2315 dump_field(out, ESPHOME_PSTR("trained_languages"), it, 4);
2316 }
2317 dump_field(out, ESPHOME_PSTR("model_type"), this->model_type);
2318 dump_field(out, ESPHOME_PSTR("model_size"), this->model_size);
2319 dump_field(out, ESPHOME_PSTR("model_hash"), this->model_hash);
2320 dump_field(out, ESPHOME_PSTR("url"), this->url);
2321 return out.c_str();
2322}
2324 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantConfigurationRequest"));
2325 for (const auto &it : this->external_wake_words) {
2326 out.append(4, ' ').append_p(ESPHOME_PSTR("external_wake_words")).append(": ");
2327 it.dump_to(out);
2328 out.append("\n");
2329 }
2330 return out.c_str();
2331}
2333 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantConfigurationResponse"));
2334 for (const auto &it : this->available_wake_words) {
2335 out.append(4, ' ').append_p(ESPHOME_PSTR("available_wake_words")).append(": ");
2336 it.dump_to(out);
2337 out.append("\n");
2338 }
2339 for (const auto &it : *this->active_wake_words) {
2340 dump_field(out, ESPHOME_PSTR("active_wake_words"), it, 4);
2341 }
2342 dump_field(out, ESPHOME_PSTR("max_active_wake_words"), this->max_active_wake_words);
2343 return out.c_str();
2344}
2346 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantSetConfiguration"));
2347 for (const auto &it : this->active_wake_words) {
2348 dump_field(out, ESPHOME_PSTR("active_wake_words"), it, 4);
2349 }
2350 return out.c_str();
2351}
2352#endif
2353#ifdef USE_ALARM_CONTROL_PANEL
2355 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesAlarmControlPanelResponse"));
2356 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
2357 dump_field(out, ESPHOME_PSTR("key"), this->key);
2358 dump_field(out, ESPHOME_PSTR("name"), this->name);
2359#ifdef USE_ENTITY_ICON
2360 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
2361#endif
2362 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
2363 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
2364 dump_field(out, ESPHOME_PSTR("supported_features"), this->supported_features);
2365 dump_field(out, ESPHOME_PSTR("requires_code"), this->requires_code);
2366 dump_field(out, ESPHOME_PSTR("requires_code_to_arm"), this->requires_code_to_arm);
2367#ifdef USE_DEVICES
2368 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2369#endif
2370 return out.c_str();
2371}
2373 MessageDumpHelper helper(out, ESPHOME_PSTR("AlarmControlPanelStateResponse"));
2374 dump_field(out, ESPHOME_PSTR("key"), this->key);
2375 dump_field(out, ESPHOME_PSTR("state"), static_cast<enums::AlarmControlPanelState>(this->state));
2376#ifdef USE_DEVICES
2377 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2378#endif
2379 return out.c_str();
2380}
2382 MessageDumpHelper helper(out, ESPHOME_PSTR("AlarmControlPanelCommandRequest"));
2383 dump_field(out, ESPHOME_PSTR("key"), this->key);
2384 dump_field(out, ESPHOME_PSTR("command"), static_cast<enums::AlarmControlPanelStateCommand>(this->command));
2385 dump_field(out, ESPHOME_PSTR("code"), this->code);
2386#ifdef USE_DEVICES
2387 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2388#endif
2389 return out.c_str();
2390}
2391#endif
2392#ifdef USE_TEXT
2394 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesTextResponse"));
2395 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
2396 dump_field(out, ESPHOME_PSTR("key"), this->key);
2397 dump_field(out, ESPHOME_PSTR("name"), this->name);
2398#ifdef USE_ENTITY_ICON
2399 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
2400#endif
2401 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
2402 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
2403 dump_field(out, ESPHOME_PSTR("min_length"), this->min_length);
2404 dump_field(out, ESPHOME_PSTR("max_length"), this->max_length);
2405 dump_field(out, ESPHOME_PSTR("pattern"), this->pattern);
2406 dump_field(out, ESPHOME_PSTR("mode"), static_cast<enums::TextMode>(this->mode));
2407#ifdef USE_DEVICES
2408 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2409#endif
2410 return out.c_str();
2411}
2413 MessageDumpHelper helper(out, ESPHOME_PSTR("TextStateResponse"));
2414 dump_field(out, ESPHOME_PSTR("key"), this->key);
2415 dump_field(out, ESPHOME_PSTR("state"), this->state);
2416 dump_field(out, ESPHOME_PSTR("missing_state"), this->missing_state);
2417#ifdef USE_DEVICES
2418 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2419#endif
2420 return out.c_str();
2421}
2423 MessageDumpHelper helper(out, ESPHOME_PSTR("TextCommandRequest"));
2424 dump_field(out, ESPHOME_PSTR("key"), this->key);
2425 dump_field(out, ESPHOME_PSTR("state"), this->state);
2426#ifdef USE_DEVICES
2427 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2428#endif
2429 return out.c_str();
2430}
2431#endif
2432#ifdef USE_DATETIME_DATE
2434 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesDateResponse"));
2435 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
2436 dump_field(out, ESPHOME_PSTR("key"), this->key);
2437 dump_field(out, ESPHOME_PSTR("name"), this->name);
2438#ifdef USE_ENTITY_ICON
2439 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
2440#endif
2441 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
2442 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
2443#ifdef USE_DEVICES
2444 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2445#endif
2446 return out.c_str();
2447}
2449 MessageDumpHelper helper(out, ESPHOME_PSTR("DateStateResponse"));
2450 dump_field(out, ESPHOME_PSTR("key"), this->key);
2451 dump_field(out, ESPHOME_PSTR("missing_state"), this->missing_state);
2452 dump_field(out, ESPHOME_PSTR("year"), this->year);
2453 dump_field(out, ESPHOME_PSTR("month"), this->month);
2454 dump_field(out, ESPHOME_PSTR("day"), this->day);
2455#ifdef USE_DEVICES
2456 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2457#endif
2458 return out.c_str();
2459}
2461 MessageDumpHelper helper(out, ESPHOME_PSTR("DateCommandRequest"));
2462 dump_field(out, ESPHOME_PSTR("key"), this->key);
2463 dump_field(out, ESPHOME_PSTR("year"), this->year);
2464 dump_field(out, ESPHOME_PSTR("month"), this->month);
2465 dump_field(out, ESPHOME_PSTR("day"), this->day);
2466#ifdef USE_DEVICES
2467 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2468#endif
2469 return out.c_str();
2470}
2471#endif
2472#ifdef USE_DATETIME_TIME
2474 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesTimeResponse"));
2475 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
2476 dump_field(out, ESPHOME_PSTR("key"), this->key);
2477 dump_field(out, ESPHOME_PSTR("name"), this->name);
2478#ifdef USE_ENTITY_ICON
2479 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
2480#endif
2481 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
2482 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
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("TimeStateResponse"));
2490 dump_field(out, ESPHOME_PSTR("key"), this->key);
2491 dump_field(out, ESPHOME_PSTR("missing_state"), this->missing_state);
2492 dump_field(out, ESPHOME_PSTR("hour"), this->hour);
2493 dump_field(out, ESPHOME_PSTR("minute"), this->minute);
2494 dump_field(out, ESPHOME_PSTR("second"), this->second);
2495#ifdef USE_DEVICES
2496 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2497#endif
2498 return out.c_str();
2499}
2501 MessageDumpHelper helper(out, ESPHOME_PSTR("TimeCommandRequest"));
2502 dump_field(out, ESPHOME_PSTR("key"), this->key);
2503 dump_field(out, ESPHOME_PSTR("hour"), this->hour);
2504 dump_field(out, ESPHOME_PSTR("minute"), this->minute);
2505 dump_field(out, ESPHOME_PSTR("second"), this->second);
2506#ifdef USE_DEVICES
2507 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2508#endif
2509 return out.c_str();
2510}
2511#endif
2512#ifdef USE_EVENT
2514 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesEventResponse"));
2515 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
2516 dump_field(out, ESPHOME_PSTR("key"), this->key);
2517 dump_field(out, ESPHOME_PSTR("name"), this->name);
2518#ifdef USE_ENTITY_ICON
2519 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
2520#endif
2521 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
2522 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
2523 dump_field(out, ESPHOME_PSTR("device_class"), this->device_class);
2524 for (const auto &it : *this->event_types) {
2525 dump_field(out, ESPHOME_PSTR("event_types"), it, 4);
2526 }
2527#ifdef USE_DEVICES
2528 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2529#endif
2530 return out.c_str();
2531}
2532const char *EventResponse::dump_to(DumpBuffer &out) const {
2533 MessageDumpHelper helper(out, ESPHOME_PSTR("EventResponse"));
2534 dump_field(out, ESPHOME_PSTR("key"), this->key);
2535 dump_field(out, ESPHOME_PSTR("event_type"), this->event_type);
2536#ifdef USE_DEVICES
2537 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2538#endif
2539 return out.c_str();
2540}
2541#endif
2542#ifdef USE_VALVE
2544 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesValveResponse"));
2545 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
2546 dump_field(out, ESPHOME_PSTR("key"), this->key);
2547 dump_field(out, ESPHOME_PSTR("name"), this->name);
2548#ifdef USE_ENTITY_ICON
2549 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
2550#endif
2551 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
2552 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
2553 dump_field(out, ESPHOME_PSTR("device_class"), this->device_class);
2554 dump_field(out, ESPHOME_PSTR("assumed_state"), this->assumed_state);
2555 dump_field(out, ESPHOME_PSTR("supports_position"), this->supports_position);
2556 dump_field(out, ESPHOME_PSTR("supports_stop"), this->supports_stop);
2557#ifdef USE_DEVICES
2558 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2559#endif
2560 return out.c_str();
2561}
2563 MessageDumpHelper helper(out, ESPHOME_PSTR("ValveStateResponse"));
2564 dump_field(out, ESPHOME_PSTR("key"), this->key);
2565 dump_field(out, ESPHOME_PSTR("position"), this->position);
2566 dump_field(out, ESPHOME_PSTR("current_operation"), static_cast<enums::ValveOperation>(this->current_operation));
2567#ifdef USE_DEVICES
2568 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2569#endif
2570 return out.c_str();
2571}
2573 MessageDumpHelper helper(out, ESPHOME_PSTR("ValveCommandRequest"));
2574 dump_field(out, ESPHOME_PSTR("key"), this->key);
2575 dump_field(out, ESPHOME_PSTR("has_position"), this->has_position);
2576 dump_field(out, ESPHOME_PSTR("position"), this->position);
2577 dump_field(out, ESPHOME_PSTR("stop"), this->stop);
2578#ifdef USE_DEVICES
2579 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2580#endif
2581 return out.c_str();
2582}
2583#endif
2584#ifdef USE_DATETIME_DATETIME
2586 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesDateTimeResponse"));
2587 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
2588 dump_field(out, ESPHOME_PSTR("key"), this->key);
2589 dump_field(out, ESPHOME_PSTR("name"), this->name);
2590#ifdef USE_ENTITY_ICON
2591 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
2592#endif
2593 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
2594 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
2595#ifdef USE_DEVICES
2596 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2597#endif
2598 return out.c_str();
2599}
2601 MessageDumpHelper helper(out, ESPHOME_PSTR("DateTimeStateResponse"));
2602 dump_field(out, ESPHOME_PSTR("key"), this->key);
2603 dump_field(out, ESPHOME_PSTR("missing_state"), this->missing_state);
2604 dump_field(out, ESPHOME_PSTR("epoch_seconds"), this->epoch_seconds);
2605#ifdef USE_DEVICES
2606 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2607#endif
2608 return out.c_str();
2609}
2611 MessageDumpHelper helper(out, ESPHOME_PSTR("DateTimeCommandRequest"));
2612 dump_field(out, ESPHOME_PSTR("key"), this->key);
2613 dump_field(out, ESPHOME_PSTR("epoch_seconds"), this->epoch_seconds);
2614#ifdef USE_DEVICES
2615 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2616#endif
2617 return out.c_str();
2618}
2619#endif
2620#ifdef USE_UPDATE
2622 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesUpdateResponse"));
2623 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
2624 dump_field(out, ESPHOME_PSTR("key"), this->key);
2625 dump_field(out, ESPHOME_PSTR("name"), this->name);
2626#ifdef USE_ENTITY_ICON
2627 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
2628#endif
2629 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
2630 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
2631 dump_field(out, ESPHOME_PSTR("device_class"), this->device_class);
2632#ifdef USE_DEVICES
2633 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2634#endif
2635 return out.c_str();
2636}
2638 MessageDumpHelper helper(out, ESPHOME_PSTR("UpdateStateResponse"));
2639 dump_field(out, ESPHOME_PSTR("key"), this->key);
2640 dump_field(out, ESPHOME_PSTR("missing_state"), this->missing_state);
2641 dump_field(out, ESPHOME_PSTR("in_progress"), this->in_progress);
2642 dump_field(out, ESPHOME_PSTR("has_progress"), this->has_progress);
2643 dump_field(out, ESPHOME_PSTR("progress"), this->progress);
2644 dump_field(out, ESPHOME_PSTR("current_version"), this->current_version);
2645 dump_field(out, ESPHOME_PSTR("latest_version"), this->latest_version);
2646 dump_field(out, ESPHOME_PSTR("title"), this->title);
2647 dump_field(out, ESPHOME_PSTR("release_summary"), this->release_summary);
2648 dump_field(out, ESPHOME_PSTR("release_url"), this->release_url);
2649#ifdef USE_DEVICES
2650 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2651#endif
2652 return out.c_str();
2653}
2655 MessageDumpHelper helper(out, ESPHOME_PSTR("UpdateCommandRequest"));
2656 dump_field(out, ESPHOME_PSTR("key"), this->key);
2657 dump_field(out, ESPHOME_PSTR("command"), static_cast<enums::UpdateCommand>(this->command));
2658#ifdef USE_DEVICES
2659 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2660#endif
2661 return out.c_str();
2662}
2663#endif
2664#ifdef USE_ZWAVE_PROXY
2665const char *ZWaveProxyFrame::dump_to(DumpBuffer &out) const {
2666 MessageDumpHelper helper(out, ESPHOME_PSTR("ZWaveProxyFrame"));
2667 dump_bytes_field(out, ESPHOME_PSTR("data"), this->data, this->data_len);
2668 return out.c_str();
2669}
2671 MessageDumpHelper helper(out, ESPHOME_PSTR("ZWaveProxyRequest"));
2672 dump_field(out, ESPHOME_PSTR("type"), static_cast<enums::ZWaveProxyRequestType>(this->type));
2673 dump_bytes_field(out, ESPHOME_PSTR("data"), this->data, this->data_len);
2674 return out.c_str();
2675}
2677 MessageDumpHelper helper(out, ESPHOME_PSTR("ZWaveProxyRequestResponse"));
2678 dump_field(out, ESPHOME_PSTR("type"), static_cast<enums::ZWaveProxyRequestType>(this->type));
2679 dump_field(out, ESPHOME_PSTR("status"), static_cast<enums::ZWaveProxyStatus>(this->status));
2680 return out.c_str();
2681}
2682#endif
2683#ifdef USE_INFRARED
2685 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesInfraredResponse"));
2686 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
2687 dump_field(out, ESPHOME_PSTR("key"), this->key);
2688 dump_field(out, ESPHOME_PSTR("name"), this->name);
2689#ifdef USE_ENTITY_ICON
2690 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
2691#endif
2692 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
2693 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
2694#ifdef USE_DEVICES
2695 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2696#endif
2697 dump_field(out, ESPHOME_PSTR("capabilities"), this->capabilities);
2698 dump_field(out, ESPHOME_PSTR("receiver_frequency"), this->receiver_frequency);
2699 return out.c_str();
2700}
2701#endif
2702#if defined(USE_IR_RF) || defined(USE_RADIO_FREQUENCY)
2704 MessageDumpHelper helper(out, ESPHOME_PSTR("InfraredRFTransmitRawTimingsRequest"));
2705#ifdef USE_DEVICES
2706 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2707#endif
2708 dump_field(out, ESPHOME_PSTR("key"), this->key);
2709 dump_field(out, ESPHOME_PSTR("carrier_frequency"), this->carrier_frequency);
2710 dump_field(out, ESPHOME_PSTR("repeat_count"), this->repeat_count);
2711 out.append(2, ' ').append_p(ESPHOME_PSTR("timings")).append(": ");
2712 out.append_p(ESPHOME_PSTR("packed buffer ["));
2713 append_uint(out, this->timings_count_);
2714 out.append_p(ESPHOME_PSTR(" values, "));
2715 append_uint(out, this->timings_length_);
2716 out.append_p(ESPHOME_PSTR(" bytes]\n"));
2717 dump_field(out, ESPHOME_PSTR("modulation"), this->modulation);
2718 return out.c_str();
2719}
2721 MessageDumpHelper helper(out, ESPHOME_PSTR("InfraredRFReceiveEvent"));
2722#ifdef USE_DEVICES
2723 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2724#endif
2725 dump_field(out, ESPHOME_PSTR("key"), this->key);
2726 for (const auto &it : *this->timings) {
2727 dump_field(out, ESPHOME_PSTR("timings"), it, 4);
2728 }
2729 return out.c_str();
2730}
2731#endif
2732#ifdef USE_RADIO_FREQUENCY
2734 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesRadioFrequencyResponse"));
2735 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
2736 dump_field(out, ESPHOME_PSTR("key"), this->key);
2737 dump_field(out, ESPHOME_PSTR("name"), this->name);
2738#ifdef USE_ENTITY_ICON
2739 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
2740#endif
2741 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
2742 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
2743#ifdef USE_DEVICES
2744 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2745#endif
2746 dump_field(out, ESPHOME_PSTR("capabilities"), this->capabilities);
2747 dump_field(out, ESPHOME_PSTR("frequency_min"), this->frequency_min);
2748 dump_field(out, ESPHOME_PSTR("frequency_max"), this->frequency_max);
2749 dump_field(out, ESPHOME_PSTR("supported_modulations"), this->supported_modulations);
2750 return out.c_str();
2751}
2752#endif
2753#ifdef USE_SERIAL_PROXY
2755 MessageDumpHelper helper(out, ESPHOME_PSTR("SerialProxyConfigureRequest"));
2756 dump_field(out, ESPHOME_PSTR("instance"), this->instance);
2757 dump_field(out, ESPHOME_PSTR("baudrate"), this->baudrate);
2758 dump_field(out, ESPHOME_PSTR("flow_control"), this->flow_control);
2759 dump_field(out, ESPHOME_PSTR("parity"), static_cast<enums::SerialProxyParity>(this->parity));
2760 dump_field(out, ESPHOME_PSTR("stop_bits"), this->stop_bits);
2761 dump_field(out, ESPHOME_PSTR("data_size"), this->data_size);
2762 return out.c_str();
2763}
2765 MessageDumpHelper helper(out, ESPHOME_PSTR("SerialProxyDataReceived"));
2766 dump_field(out, ESPHOME_PSTR("instance"), this->instance);
2767 dump_bytes_field(out, ESPHOME_PSTR("data"), this->data_ptr_, this->data_len_);
2768 return out.c_str();
2769}
2771 MessageDumpHelper helper(out, ESPHOME_PSTR("SerialProxyWriteRequest"));
2772 dump_field(out, ESPHOME_PSTR("instance"), this->instance);
2773 dump_bytes_field(out, ESPHOME_PSTR("data"), this->data, this->data_len);
2774 return out.c_str();
2775}
2777 MessageDumpHelper helper(out, ESPHOME_PSTR("SerialProxySetModemPinsRequest"));
2778 dump_field(out, ESPHOME_PSTR("instance"), this->instance);
2779 dump_field(out, ESPHOME_PSTR("line_states"), this->line_states);
2780 return out.c_str();
2781}
2783 MessageDumpHelper helper(out, ESPHOME_PSTR("SerialProxyGetModemPinsRequest"));
2784 dump_field(out, ESPHOME_PSTR("instance"), this->instance);
2785 return out.c_str();
2786}
2788 MessageDumpHelper helper(out, ESPHOME_PSTR("SerialProxyGetModemPinsResponse"));
2789 dump_field(out, ESPHOME_PSTR("instance"), this->instance);
2790 dump_field(out, ESPHOME_PSTR("line_states"), this->line_states);
2791 dump_field(out, ESPHOME_PSTR("status"), static_cast<enums::SerialProxyStatus>(this->status));
2792 return out.c_str();
2793}
2795 MessageDumpHelper helper(out, ESPHOME_PSTR("SerialProxyRequest"));
2796 dump_field(out, ESPHOME_PSTR("instance"), this->instance);
2797 dump_field(out, ESPHOME_PSTR("type"), static_cast<enums::SerialProxyRequestType>(this->type));
2798 return out.c_str();
2799}
2801 MessageDumpHelper helper(out, ESPHOME_PSTR("SerialProxyRequestResponse"));
2802 dump_field(out, ESPHOME_PSTR("instance"), this->instance);
2803 dump_field(out, ESPHOME_PSTR("type"), static_cast<enums::SerialProxyRequestType>(this->type));
2804 dump_field(out, ESPHOME_PSTR("status"), static_cast<enums::SerialProxyStatus>(this->status));
2805 dump_field(out, ESPHOME_PSTR("error_message"), this->error_message);
2806 return out.c_str();
2807}
2808#endif
2809#ifdef USE_BLUETOOTH_PROXY_CONNECTIONS
2811 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothSetConnectionParamsRequest"));
2812 dump_field(out, ESPHOME_PSTR("address"), this->address);
2813 dump_field(out, ESPHOME_PSTR("min_interval"), this->min_interval);
2814 dump_field(out, ESPHOME_PSTR("max_interval"), this->max_interval);
2815 dump_field(out, ESPHOME_PSTR("latency"), this->latency);
2816 dump_field(out, ESPHOME_PSTR("timeout"), this->timeout);
2817 return out.c_str();
2818}
2820 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothSetConnectionParamsResponse"));
2821 dump_field(out, ESPHOME_PSTR("address"), this->address);
2822 dump_field(out, ESPHOME_PSTR("error"), this->error);
2823 return out.c_str();
2824}
2825#endif
2826
2827} // namespace esphome::api
2828
2829#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:2742
const char * dump_to(DumpBuffer &out) const override
enums::AlarmControlPanelState state
Definition api_pb2.h:2726
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:2298
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:2036
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
FixedVector< BluetoothGATTDescriptor > descriptors
Definition api_pb2.h:2098
const char * dump_to(DumpBuffer &out) const override
std::array< uint64_t, 2 > uuid
Definition api_pb2.h:2095
std::array< uint64_t, 2 > uuid
Definition api_pb2.h:2082
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:2130
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:2112
const char * dump_to(DumpBuffer &out) const override
std::array< uint64_t, 2 > uuid
Definition api_pb2.h:2110
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:2016
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
enums::BluetoothScannerMode mode
Definition api_pb2.h:2440
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
enums::BluetoothScannerMode mode
Definition api_pb2.h:2423
enums::BluetoothScannerState state
Definition api_pb2.h:2422
enums::BluetoothScannerMode configured_mode
Definition api_pb2.h:2424
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:1563
enums::ClimateFanMode fan_mode
Definition api_pb2.h:1561
enums::ClimatePreset preset
Definition api_pb2.h:1567
enums::ClimateFanMode fan_mode
Definition api_pb2.h:1530
enums::ClimateSwingMode swing_mode
Definition api_pb2.h:1531
const char * dump_to(DumpBuffer &out) const override
enums::ClimateAction action
Definition api_pb2.h:1529
enums::ClimatePreset preset
Definition api_pb2.h:1533
const char * dump_to(DumpBuffer &out) const override
enums::CoverOperation current_operation
Definition api_pb2.h:766
const char * dump_to(DumpBuffer &out) const override
enums::DSTRuleType type
Definition api_pb2.h:1272
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< SerialProxyInfo, SERIAL_PROXY_COUNT > serial_proxies
Definition api_pb2.h:677
VoiceAssistantCapabilities voice_assistant
Definition api_pb2.h:671
ZWaveProxyCapabilities zwave_proxy
Definition api_pb2.h:674
const char * dump_to(DumpBuffer &out) const override
BluetoothProxyCapabilities bluetooth_proxy
Definition api_pb2.h:668
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:594
std::array< SerialProxyInfo, SERIAL_PROXY_COUNT > serial_proxies
Definition api_pb2.h:606
std::array< DeviceInfo, ESPHOME_DEVICE_COUNT > devices
Definition api_pb2.h:591
const char * dump_to(DumpBuffer &out) const override
enums::DisconnectReason reason
Definition api_pb2.h:456
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:1365
FixedVector< std::string > string_array
Definition api_pb2.h:1366
FixedVector< int32_t > int_array
Definition api_pb2.h:1364
const char * dump_to(DumpBuffer &out) const override
FixedVector< ExecuteServiceArgument > args
Definition api_pb2.h:1385
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:849
enums::FanDirection direction
Definition api_pb2.h:826
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:1305
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:1174
FixedVector< HomeassistantServiceMap > data_template
Definition api_pb2.h:1173
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:382
const std::vector< int32_t > * timings
Definition api_pb2.h:3230
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:893
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:1501
const climate::ClimateSwingModeMask * supported_swing_modes
Definition api_pb2.h:1498
enums::TemperatureUnit temperature_unit
Definition api_pb2.h:1508
const std::vector< const char * > * supported_custom_fan_modes
Definition api_pb2.h:1499
const climate::ClimatePresetMask * supported_presets
Definition api_pb2.h:1500
const climate::ClimateFanModeMask * supported_fan_modes
Definition api_pb2.h:1497
const char * dump_to(DumpBuffer &out) const override
const climate::ClimateModeMask * supported_modes
Definition api_pb2.h:1492
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:2926
const char * dump_to(DumpBuffer &out) const override
const std::vector< const char * > * supported_preset_modes
Definition api_pb2.h:808
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:875
const light::ColorModeMask * supported_color_modes
Definition api_pb2.h:872
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:1927
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:1711
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
enums::SensorStateClass state_class
Definition api_pb2.h:966
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
enums::SupportsResponseType supports_response
Definition api_pb2.h:1344
FixedVector< ListEntitiesServicesArgument > args
Definition api_pb2.h:1343
const char * dump_to(DumpBuffer &out) const override
const FixedVector< const char * > * tones
Definition api_pb2.h:1763
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:1593
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
enums::LockCommand command
Definition api_pb2.h:1858
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
enums::MediaPlayerCommand command
Definition api_pb2.h:1963
enums::MediaPlayerState state
Definition api_pb2.h:1944
const char * dump_to(DumpBuffer &out) const override
enums::MediaPlayerFormatPurpose purpose
Definition api_pb2.h:1910
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:3272
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:538
const char * dump_to(DumpBuffer &out) const override
enums::SerialProxyRequestType type
Definition api_pb2.h:3379
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
enums::SerialProxyRequestType type
Definition api_pb2.h:3395
enums::SerialProxyStatus status
Definition api_pb2.h:3396
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:3106
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:2980
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::vector< VoiceAssistantExternalWakeWord > external_wake_words
Definition api_pb2.h:2658
std::vector< VoiceAssistantWakeWord > available_wake_words
Definition api_pb2.h:2673
const std::vector< std::string > * active_wake_words
Definition api_pb2.h:2674
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:2533
const char * dump_to(DumpBuffer &out) const override
std::vector< std::string > trained_languages
Definition api_pb2.h:2638
const char * dump_to(DumpBuffer &out) const override
VoiceAssistantAudioSettings audio_settings
Definition api_pb2.h:2489
const char * dump_to(DumpBuffer &out) const override
std::vector< std::string > active_wake_words
Definition api_pb2.h:2691
const char * dump_to(DumpBuffer &out) const override
enums::VoiceAssistantTimerEvent event_type
Definition api_pb2.h:2572
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:2625
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::ZWaveProxyRequestType type
Definition api_pb2.h:3142
const char * dump_to(DumpBuffer &out) const override
enums::ZWaveProxyRequestType type
Definition api_pb2.h:3162
enums::ZWaveProxyStatus status
Definition api_pb2.h:3163
const char * dump_to(DumpBuffer &out) const override
@ MEDIA_PLAYER_STATE_ANNOUNCING
Definition api_pb2.h:207
@ ALARM_STATE_ARMED_CUSTOM_BYPASS
Definition api_pb2.h:299
@ SERVICE_ARG_TYPE_BOOL_ARRAY
Definition api_pb2.h:91
@ SERVICE_ARG_TYPE_STRING_ARRAY
Definition api_pb2.h:94
@ SERVICE_ARG_TYPE_FLOAT_ARRAY
Definition api_pb2.h:93
@ SERIAL_PROXY_PORT_TYPE_RS232
Definition api_pb2.h:24
@ SERIAL_PROXY_PORT_TYPE_RS485
Definition api_pb2.h:25
@ VOICE_ASSISTANT_REQUEST_USE_WAKE_WORD
Definition api_pb2.h:264
@ VOICE_ASSISTANT_REQUEST_USE_VAD
Definition api_pb2.h:263
@ WATER_HEATER_MODE_PERFORMANCE
Definition api_pb2.h:161
@ WATER_HEATER_MODE_HIGH_DEMAND
Definition api_pb2.h:162
@ SERIAL_PROXY_REQUEST_TYPE_UNSUBSCRIBE
Definition api_pb2.h:355
@ SERIAL_PROXY_REQUEST_TYPE_SET_MODEM_PINS
Definition api_pb2.h:358
@ SERIAL_PROXY_REQUEST_TYPE_FLUSH
Definition api_pb2.h:356
@ SERIAL_PROXY_REQUEST_TYPE_CONFIGURE
Definition api_pb2.h:357
@ SERIAL_PROXY_REQUEST_TYPE_SUBSCRIBE
Definition api_pb2.h:354
@ MEDIA_PLAYER_FORMAT_PURPOSE_ANNOUNCEMENT
Definition api_pb2.h:229
@ MEDIA_PLAYER_FORMAT_PURPOSE_DEFAULT
Definition api_pb2.h:228
@ COLOR_MODE_LEGACY_BRIGHTNESS
Definition api_pb2.h:49
@ COLOR_MODE_RGB_COLOR_TEMPERATURE
Definition api_pb2.h:56
@ COLOR_MODE_COLOR_TEMPERATURE
Definition api_pb2.h:52
@ COLOR_MODE_RGB_COLD_WARM_WHITE
Definition api_pb2.h:57
@ ZWAVE_PROXY_STATUS_NOT_SUPPORTED
Definition api_pb2.h:344
@ VOICE_ASSISTANT_TIMER_UPDATED
Definition api_pb2.h:287
@ VOICE_ASSISTANT_TIMER_STARTED
Definition api_pb2.h:286
@ VOICE_ASSISTANT_TIMER_FINISHED
Definition api_pb2.h:289
@ VOICE_ASSISTANT_TIMER_CANCELLED
Definition api_pb2.h:288
@ MEDIA_PLAYER_COMMAND_REPEAT_ONE
Definition api_pb2.h:221
@ MEDIA_PLAYER_COMMAND_REPEAT_OFF
Definition api_pb2.h:222
@ MEDIA_PLAYER_COMMAND_VOLUME_DOWN
Definition api_pb2.h:219
@ MEDIA_PLAYER_COMMAND_VOLUME_UP
Definition api_pb2.h:218
@ MEDIA_PLAYER_COMMAND_TURN_OFF
Definition api_pb2.h:225
@ MEDIA_PLAYER_COMMAND_CLEAR_PLAYLIST
Definition api_pb2.h:223
@ VOICE_ASSISTANT_WAKE_WORD_START
Definition api_pb2.h:277
@ VOICE_ASSISTANT_TTS_STREAM_END
Definition api_pb2.h:282
@ VOICE_ASSISTANT_STT_VAD_START
Definition api_pb2.h:279
@ VOICE_ASSISTANT_INTENT_PROGRESS
Definition api_pb2.h:283
@ VOICE_ASSISTANT_TTS_STREAM_START
Definition api_pb2.h:281
@ VOICE_ASSISTANT_WAKE_WORD_END
Definition api_pb2.h:278
@ SERIAL_PROXY_STATUS_INVALID_ARGUMENT
Definition api_pb2.h:367
@ SERIAL_PROXY_STATUS_ASSUMED_SUCCESS
Definition api_pb2.h:362
@ SERIAL_PROXY_STATUS_PORT_IN_USE
Definition api_pb2.h:366
@ SERIAL_PROXY_STATUS_NOT_SUPPORTED
Definition api_pb2.h:365
@ DISCONNECT_REASON_PROVISIONING_CLOSED
Definition api_pb2.h:20
@ DISCONNECT_REASON_UNSPECIFIED
Definition api_pb2.h:19
@ BLUETOOTH_DEVICE_REQUEST_TYPE_UNPAIR
Definition api_pb2.h:237
@ BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT_V3_WITH_CACHE
Definition api_pb2.h:238
@ BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT
Definition api_pb2.h:234
@ BLUETOOTH_DEVICE_REQUEST_TYPE_PAIR
Definition api_pb2.h:236
@ BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT_V3_WITHOUT_CACHE
Definition api_pb2.h:239
@ BLUETOOTH_DEVICE_REQUEST_TYPE_CLEAR_CACHE
Definition api_pb2.h:240
@ BLUETOOTH_DEVICE_REQUEST_TYPE_DISCONNECT
Definition api_pb2.h:235
@ BLUETOOTH_SCANNER_MODE_PASSIVE
Definition api_pb2.h:253
@ BLUETOOTH_SCANNER_MODE_ACTIVE
Definition api_pb2.h:254
@ BLUETOOTH_SCANNER_STATE_STOPPED
Definition api_pb2.h:250
@ BLUETOOTH_SCANNER_STATE_STARTING
Definition api_pb2.h:246
@ BLUETOOTH_SCANNER_STATE_STOPPING
Definition api_pb2.h:249
@ BLUETOOTH_SCANNER_STATE_RUNNING
Definition api_pb2.h:247
@ BLUETOOTH_SCANNER_STATE_FAILED
Definition api_pb2.h:248
@ DST_RULE_TYPE_MONTH_WEEK_DAY
Definition api_pb2.h:81
@ DST_RULE_TYPE_JULIAN_NO_LEAP
Definition api_pb2.h:82
@ WATER_HEATER_COMMAND_HAS_ON_STATE
Definition api_pb2.h:174
@ WATER_HEATER_COMMAND_HAS_NONE
Definition api_pb2.h:168
@ WATER_HEATER_COMMAND_HAS_STATE
Definition api_pb2.h:171
@ WATER_HEATER_COMMAND_HAS_AWAY_STATE
Definition api_pb2.h:175
@ WATER_HEATER_COMMAND_HAS_TARGET_TEMPERATURE_LOW
Definition api_pb2.h:172
@ WATER_HEATER_COMMAND_HAS_TARGET_TEMPERATURE
Definition api_pb2.h:170
@ WATER_HEATER_COMMAND_HAS_MODE
Definition api_pb2.h:169
@ WATER_HEATER_COMMAND_HAS_TARGET_TEMPERATURE_HIGH
Definition api_pb2.h:173
@ ZWAVE_PROXY_REQUEST_TYPE_SUBSCRIBE
Definition api_pb2.h:337
@ ZWAVE_PROXY_REQUEST_TYPE_UNSUBSCRIBE
Definition api_pb2.h:338
@ ZWAVE_PROXY_REQUEST_TYPE_HOME_ID_CHANGE
Definition api_pb2.h:339
@ ALARM_CONTROL_PANEL_ARM_NIGHT
Definition api_pb2.h:309
@ ALARM_CONTROL_PANEL_ARM_CUSTOM_BYPASS
Definition api_pb2.h:311
@ ALARM_CONTROL_PANEL_ARM_VACATION
Definition api_pb2.h:310
@ VOICE_ASSISTANT_SUBSCRIBE_API_AUDIO
Definition api_pb2.h:259
@ VOICE_ASSISTANT_SUBSCRIBE_NONE
Definition api_pb2.h:258
@ STATE_CLASS_TOTAL_INCREASING
Definition api_pb2.h:64
@ STATE_CLASS_MEASUREMENT_ANGLE
Definition api_pb2.h:66
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::ZWaveProxyStatus >(enums::ZWaveProxyStatus 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:425
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:1438
static void uint32_t