ESPHome 2026.8.2
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}
819#endif
820#ifdef USE_SERIAL_PROXY
822 switch (value) {
824 return ESPHOME_PSTR("SERIAL_PROXY_PARITY_NONE");
826 return ESPHOME_PSTR("SERIAL_PROXY_PARITY_EVEN");
828 return ESPHOME_PSTR("SERIAL_PROXY_PARITY_ODD");
829 default:
830 return ESPHOME_PSTR("UNKNOWN");
831 }
832}
834 switch (value) {
836 return ESPHOME_PSTR("SERIAL_PROXY_REQUEST_TYPE_SUBSCRIBE");
838 return ESPHOME_PSTR("SERIAL_PROXY_REQUEST_TYPE_UNSUBSCRIBE");
840 return ESPHOME_PSTR("SERIAL_PROXY_REQUEST_TYPE_FLUSH");
841 default:
842 return ESPHOME_PSTR("UNKNOWN");
843 }
844}
846 switch (value) {
848 return ESPHOME_PSTR("SERIAL_PROXY_STATUS_OK");
850 return ESPHOME_PSTR("SERIAL_PROXY_STATUS_ASSUMED_SUCCESS");
852 return ESPHOME_PSTR("SERIAL_PROXY_STATUS_ERROR");
854 return ESPHOME_PSTR("SERIAL_PROXY_STATUS_TIMEOUT");
856 return ESPHOME_PSTR("SERIAL_PROXY_STATUS_NOT_SUPPORTED");
857 default:
858 return ESPHOME_PSTR("UNKNOWN");
859 }
860}
861#endif
862
863const char *HelloRequest::dump_to(DumpBuffer &out) const {
864 MessageDumpHelper helper(out, ESPHOME_PSTR("HelloRequest"));
865 dump_field(out, ESPHOME_PSTR("client_info"), this->client_info);
866 dump_field(out, ESPHOME_PSTR("api_version_major"), this->api_version_major);
867 dump_field(out, ESPHOME_PSTR("api_version_minor"), this->api_version_minor);
868 return out.c_str();
869}
870const char *HelloResponse::dump_to(DumpBuffer &out) const {
871 MessageDumpHelper helper(out, ESPHOME_PSTR("HelloResponse"));
872 dump_field(out, ESPHOME_PSTR("api_version_major"), this->api_version_major);
873 dump_field(out, ESPHOME_PSTR("api_version_minor"), this->api_version_minor);
874 dump_field(out, ESPHOME_PSTR("server_info"), this->server_info);
875 dump_field(out, ESPHOME_PSTR("name"), this->name);
876 return out.c_str();
877}
878const char *DisconnectRequest::dump_to(DumpBuffer &out) const {
879 MessageDumpHelper helper(out, ESPHOME_PSTR("DisconnectRequest"));
880 dump_field(out, ESPHOME_PSTR("reason"), static_cast<enums::DisconnectReason>(this->reason));
881 return out.c_str();
882}
884 out.append_p(ESPHOME_PSTR("DisconnectResponse {}"));
885 return out.c_str();
886}
887const char *PingRequest::dump_to(DumpBuffer &out) const {
888 out.append_p(ESPHOME_PSTR("PingRequest {}"));
889 return out.c_str();
890}
891const char *PingResponse::dump_to(DumpBuffer &out) const {
892 out.append_p(ESPHOME_PSTR("PingResponse {}"));
893 return out.c_str();
894}
895#ifdef USE_AREAS
896const char *AreaInfo::dump_to(DumpBuffer &out) const {
897 MessageDumpHelper helper(out, ESPHOME_PSTR("AreaInfo"));
898 dump_field(out, ESPHOME_PSTR("area_id"), this->area_id);
899 dump_field(out, ESPHOME_PSTR("name"), this->name);
900 return out.c_str();
901}
902#endif
903#ifdef USE_DEVICES
904const char *DeviceInfo::dump_to(DumpBuffer &out) const {
905 MessageDumpHelper helper(out, ESPHOME_PSTR("DeviceInfo"));
906 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
907 dump_field(out, ESPHOME_PSTR("name"), this->name);
908 dump_field(out, ESPHOME_PSTR("area_id"), this->area_id);
909 return out.c_str();
910}
911#endif
912#ifdef USE_SERIAL_PROXY
913const char *SerialProxyInfo::dump_to(DumpBuffer &out) const {
914 MessageDumpHelper helper(out, ESPHOME_PSTR("SerialProxyInfo"));
915 dump_field(out, ESPHOME_PSTR("name"), this->name);
916 dump_field(out, ESPHOME_PSTR("port_type"), static_cast<enums::SerialProxyPortType>(this->port_type));
917 return out.c_str();
918}
919#endif
921 MessageDumpHelper helper(out, ESPHOME_PSTR("DeviceInfoResponse"));
922 dump_field(out, ESPHOME_PSTR("name"), this->name);
923 dump_field(out, ESPHOME_PSTR("mac_address"), this->mac_address);
924 dump_field(out, ESPHOME_PSTR("esphome_version"), this->esphome_version);
925 dump_field(out, ESPHOME_PSTR("compilation_time"), this->compilation_time);
926 dump_field(out, ESPHOME_PSTR("model"), this->model);
927#ifdef USE_DEEP_SLEEP
928 dump_field(out, ESPHOME_PSTR("has_deep_sleep"), this->has_deep_sleep);
929#endif
930#ifdef ESPHOME_PROJECT_NAME
931 dump_field(out, ESPHOME_PSTR("project_name"), this->project_name);
932#endif
933#ifdef ESPHOME_PROJECT_NAME
934 dump_field(out, ESPHOME_PSTR("project_version"), this->project_version);
935#endif
936#ifdef USE_WEBSERVER
937 dump_field(out, ESPHOME_PSTR("webserver_port"), this->webserver_port);
938#endif
939#ifdef USE_BLUETOOTH_PROXY
940 dump_field(out, ESPHOME_PSTR("bluetooth_proxy_feature_flags"), this->bluetooth_proxy_feature_flags);
941#endif
942 dump_field(out, ESPHOME_PSTR("manufacturer"), this->manufacturer);
943 dump_field(out, ESPHOME_PSTR("friendly_name"), this->friendly_name);
944#ifdef USE_VOICE_ASSISTANT
945 dump_field(out, ESPHOME_PSTR("voice_assistant_feature_flags"), this->voice_assistant_feature_flags);
946#endif
947#ifdef USE_AREAS
948 dump_field(out, ESPHOME_PSTR("suggested_area"), this->suggested_area);
949#endif
950#ifdef USE_BLUETOOTH_PROXY
951 dump_field(out, ESPHOME_PSTR("bluetooth_mac_address"), this->bluetooth_mac_address);
952#endif
953#ifdef USE_API_NOISE
954 dump_field(out, ESPHOME_PSTR("api_encryption_supported"), this->api_encryption_supported);
955#endif
956#ifdef USE_DEVICES
957 for (const auto &it : this->devices) {
958 out.append(4, ' ').append_p(ESPHOME_PSTR("devices")).append(": ");
959 it.dump_to(out);
960 out.append("\n");
961 }
962#endif
963#ifdef USE_AREAS
964 for (const auto &it : this->areas) {
965 out.append(4, ' ').append_p(ESPHOME_PSTR("areas")).append(": ");
966 it.dump_to(out);
967 out.append("\n");
968 }
969#endif
970#ifdef USE_AREAS
971 out.append(2, ' ').append_p(ESPHOME_PSTR("area")).append(": ");
972 this->area.dump_to(out);
973 out.append("\n");
974#endif
975#ifdef USE_ZWAVE_PROXY
976 dump_field(out, ESPHOME_PSTR("zwave_proxy_feature_flags"), this->zwave_proxy_feature_flags);
977#endif
978#ifdef USE_ZWAVE_PROXY
979 dump_field(out, ESPHOME_PSTR("zwave_home_id"), this->zwave_home_id);
980#endif
981#ifdef USE_SERIAL_PROXY
982 for (const auto &it : this->serial_proxies) {
983 out.append(4, ' ').append_p(ESPHOME_PSTR("serial_proxies")).append(": ");
984 it.dump_to(out);
985 out.append("\n");
986 }
987#endif
988#ifdef USE_API_NOISE
989 dump_field(out, ESPHOME_PSTR("api_encryption_provisionable"), this->api_encryption_provisionable);
990#endif
991 return out.c_str();
992}
993#ifdef USE_BLUETOOTH_PROXY
995 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothProxyCapabilities"));
996 dump_field(out, ESPHOME_PSTR("feature_flags"), this->feature_flags);
997 dump_field(out, ESPHOME_PSTR("mac_address"), this->mac_address);
998 return out.c_str();
999}
1000#endif
1001#ifdef USE_VOICE_ASSISTANT
1003 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantCapabilities"));
1004 dump_field(out, ESPHOME_PSTR("feature_flags"), this->feature_flags);
1005 return out.c_str();
1006}
1007#endif
1008#ifdef USE_ZWAVE_PROXY
1010 MessageDumpHelper helper(out, ESPHOME_PSTR("ZWaveProxyCapabilities"));
1011 dump_field(out, ESPHOME_PSTR("feature_flags"), this->feature_flags);
1012 dump_field(out, ESPHOME_PSTR("home_id"), this->home_id);
1013 return out.c_str();
1014}
1015#endif
1017 MessageDumpHelper helper(out, ESPHOME_PSTR("DeviceCapabilitiesResponse"));
1018#ifdef USE_BLUETOOTH_PROXY
1019 out.append(2, ' ').append_p(ESPHOME_PSTR("bluetooth_proxy")).append(": ");
1020 this->bluetooth_proxy.dump_to(out);
1021 out.append("\n");
1022#endif
1023#ifdef USE_VOICE_ASSISTANT
1024 out.append(2, ' ').append_p(ESPHOME_PSTR("voice_assistant")).append(": ");
1025 this->voice_assistant.dump_to(out);
1026 out.append("\n");
1027#endif
1028#ifdef USE_ZWAVE_PROXY
1029 out.append(2, ' ').append_p(ESPHOME_PSTR("zwave_proxy")).append(": ");
1030 this->zwave_proxy.dump_to(out);
1031 out.append("\n");
1032#endif
1033#ifdef USE_SERIAL_PROXY
1034 for (const auto &it : this->serial_proxies) {
1035 out.append(4, ' ').append_p(ESPHOME_PSTR("serial_proxies")).append(": ");
1036 it.dump_to(out);
1037 out.append("\n");
1038 }
1039#endif
1040 return out.c_str();
1041}
1043 out.append_p(ESPHOME_PSTR("ListEntitiesDoneResponse {}"));
1044 return out.c_str();
1045}
1046#ifdef USE_BINARY_SENSOR
1048 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesBinarySensorResponse"));
1049 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1050 dump_field(out, ESPHOME_PSTR("key"), this->key);
1051 dump_field(out, ESPHOME_PSTR("name"), this->name);
1052 dump_field(out, ESPHOME_PSTR("device_class"), this->device_class);
1053 dump_field(out, ESPHOME_PSTR("is_status_binary_sensor"), this->is_status_binary_sensor);
1054 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1055#ifdef USE_ENTITY_ICON
1056 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
1057#endif
1058 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1059#ifdef USE_DEVICES
1060 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1061#endif
1062 return out.c_str();
1063}
1065 MessageDumpHelper helper(out, ESPHOME_PSTR("BinarySensorStateResponse"));
1066 dump_field(out, ESPHOME_PSTR("key"), this->key);
1067 dump_field(out, ESPHOME_PSTR("state"), this->state);
1068 dump_field(out, ESPHOME_PSTR("missing_state"), this->missing_state);
1069#ifdef USE_DEVICES
1070 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1071#endif
1072 return out.c_str();
1073}
1074#endif
1075#ifdef USE_COVER
1077 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesCoverResponse"));
1078 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1079 dump_field(out, ESPHOME_PSTR("key"), this->key);
1080 dump_field(out, ESPHOME_PSTR("name"), this->name);
1081 dump_field(out, ESPHOME_PSTR("assumed_state"), this->assumed_state);
1082 dump_field(out, ESPHOME_PSTR("supports_position"), this->supports_position);
1083 dump_field(out, ESPHOME_PSTR("supports_tilt"), this->supports_tilt);
1084 dump_field(out, ESPHOME_PSTR("device_class"), this->device_class);
1085 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1086#ifdef USE_ENTITY_ICON
1087 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
1088#endif
1089 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1090 dump_field(out, ESPHOME_PSTR("supports_stop"), this->supports_stop);
1091#ifdef USE_DEVICES
1092 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1093#endif
1094 return out.c_str();
1095}
1097 MessageDumpHelper helper(out, ESPHOME_PSTR("CoverStateResponse"));
1098 dump_field(out, ESPHOME_PSTR("key"), this->key);
1099 dump_field(out, ESPHOME_PSTR("position"), this->position);
1100 dump_field(out, ESPHOME_PSTR("tilt"), this->tilt);
1101 dump_field(out, ESPHOME_PSTR("current_operation"), static_cast<enums::CoverOperation>(this->current_operation));
1102#ifdef USE_DEVICES
1103 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1104#endif
1105 return out.c_str();
1106}
1108 MessageDumpHelper helper(out, ESPHOME_PSTR("CoverCommandRequest"));
1109 dump_field(out, ESPHOME_PSTR("key"), this->key);
1110 dump_field(out, ESPHOME_PSTR("has_position"), this->has_position);
1111 dump_field(out, ESPHOME_PSTR("position"), this->position);
1112 dump_field(out, ESPHOME_PSTR("has_tilt"), this->has_tilt);
1113 dump_field(out, ESPHOME_PSTR("tilt"), this->tilt);
1114 dump_field(out, ESPHOME_PSTR("stop"), this->stop);
1115#ifdef USE_DEVICES
1116 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1117#endif
1118 return out.c_str();
1119}
1120#endif
1121#ifdef USE_FAN
1123 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesFanResponse"));
1124 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1125 dump_field(out, ESPHOME_PSTR("key"), this->key);
1126 dump_field(out, ESPHOME_PSTR("name"), this->name);
1127 dump_field(out, ESPHOME_PSTR("supports_oscillation"), this->supports_oscillation);
1128 dump_field(out, ESPHOME_PSTR("supports_speed"), this->supports_speed);
1129 dump_field(out, ESPHOME_PSTR("supports_direction"), this->supports_direction);
1130 dump_field(out, ESPHOME_PSTR("supported_speed_count"), this->supported_speed_count);
1131 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1132#ifdef USE_ENTITY_ICON
1133 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
1134#endif
1135 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1136 for (const auto &it : *this->supported_preset_modes) {
1137 dump_field(out, ESPHOME_PSTR("supported_preset_modes"), it, 4);
1138 }
1139#ifdef USE_DEVICES
1140 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1141#endif
1142 return out.c_str();
1143}
1144const char *FanStateResponse::dump_to(DumpBuffer &out) const {
1145 MessageDumpHelper helper(out, ESPHOME_PSTR("FanStateResponse"));
1146 dump_field(out, ESPHOME_PSTR("key"), this->key);
1147 dump_field(out, ESPHOME_PSTR("state"), this->state);
1148 dump_field(out, ESPHOME_PSTR("oscillating"), this->oscillating);
1149 dump_field(out, ESPHOME_PSTR("direction"), static_cast<enums::FanDirection>(this->direction));
1150 dump_field(out, ESPHOME_PSTR("speed_level"), this->speed_level);
1151 dump_field(out, ESPHOME_PSTR("preset_mode"), this->preset_mode);
1152#ifdef USE_DEVICES
1153 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1154#endif
1155 return out.c_str();
1156}
1158 MessageDumpHelper helper(out, ESPHOME_PSTR("FanCommandRequest"));
1159 dump_field(out, ESPHOME_PSTR("key"), this->key);
1160 dump_field(out, ESPHOME_PSTR("has_state"), this->has_state);
1161 dump_field(out, ESPHOME_PSTR("state"), this->state);
1162 dump_field(out, ESPHOME_PSTR("has_oscillating"), this->has_oscillating);
1163 dump_field(out, ESPHOME_PSTR("oscillating"), this->oscillating);
1164 dump_field(out, ESPHOME_PSTR("has_direction"), this->has_direction);
1165 dump_field(out, ESPHOME_PSTR("direction"), static_cast<enums::FanDirection>(this->direction));
1166 dump_field(out, ESPHOME_PSTR("has_speed_level"), this->has_speed_level);
1167 dump_field(out, ESPHOME_PSTR("speed_level"), this->speed_level);
1168 dump_field(out, ESPHOME_PSTR("has_preset_mode"), this->has_preset_mode);
1169 dump_field(out, ESPHOME_PSTR("preset_mode"), this->preset_mode);
1170#ifdef USE_DEVICES
1171 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1172#endif
1173 return out.c_str();
1174}
1175#endif
1176#ifdef USE_LIGHT
1178 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesLightResponse"));
1179 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1180 dump_field(out, ESPHOME_PSTR("key"), this->key);
1181 dump_field(out, ESPHOME_PSTR("name"), this->name);
1182 for (const auto &it : *this->supported_color_modes) {
1183 dump_field(out, ESPHOME_PSTR("supported_color_modes"), static_cast<enums::ColorMode>(it), 4);
1184 }
1185 dump_field(out, ESPHOME_PSTR("min_mireds"), this->min_mireds);
1186 dump_field(out, ESPHOME_PSTR("max_mireds"), this->max_mireds);
1187 for (const auto &it : *this->effects) {
1188 dump_field(out, ESPHOME_PSTR("effects"), it, 4);
1189 }
1190 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1191#ifdef USE_ENTITY_ICON
1192 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
1193#endif
1194 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1195#ifdef USE_DEVICES
1196 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1197#endif
1198 return out.c_str();
1199}
1201 MessageDumpHelper helper(out, ESPHOME_PSTR("LightStateResponse"));
1202 dump_field(out, ESPHOME_PSTR("key"), this->key);
1203 dump_field(out, ESPHOME_PSTR("state"), this->state);
1204 dump_field(out, ESPHOME_PSTR("brightness"), this->brightness);
1205 dump_field(out, ESPHOME_PSTR("color_mode"), static_cast<enums::ColorMode>(this->color_mode));
1206 dump_field(out, ESPHOME_PSTR("color_brightness"), this->color_brightness);
1207 dump_field(out, ESPHOME_PSTR("red"), this->red);
1208 dump_field(out, ESPHOME_PSTR("green"), this->green);
1209 dump_field(out, ESPHOME_PSTR("blue"), this->blue);
1210 dump_field(out, ESPHOME_PSTR("white"), this->white);
1211 dump_field(out, ESPHOME_PSTR("color_temperature"), this->color_temperature);
1212 dump_field(out, ESPHOME_PSTR("cold_white"), this->cold_white);
1213 dump_field(out, ESPHOME_PSTR("warm_white"), this->warm_white);
1214 dump_field(out, ESPHOME_PSTR("effect"), this->effect);
1215#ifdef USE_DEVICES
1216 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1217#endif
1218 return out.c_str();
1219}
1221 MessageDumpHelper helper(out, ESPHOME_PSTR("LightCommandRequest"));
1222 dump_field(out, ESPHOME_PSTR("key"), this->key);
1223 dump_field(out, ESPHOME_PSTR("has_state"), this->has_state);
1224 dump_field(out, ESPHOME_PSTR("state"), this->state);
1225 dump_field(out, ESPHOME_PSTR("has_brightness"), this->has_brightness);
1226 dump_field(out, ESPHOME_PSTR("brightness"), this->brightness);
1227 dump_field(out, ESPHOME_PSTR("has_color_mode"), this->has_color_mode);
1228 dump_field(out, ESPHOME_PSTR("color_mode"), static_cast<enums::ColorMode>(this->color_mode));
1229 dump_field(out, ESPHOME_PSTR("has_color_brightness"), this->has_color_brightness);
1230 dump_field(out, ESPHOME_PSTR("color_brightness"), this->color_brightness);
1231 dump_field(out, ESPHOME_PSTR("has_rgb"), this->has_rgb);
1232 dump_field(out, ESPHOME_PSTR("red"), this->red);
1233 dump_field(out, ESPHOME_PSTR("green"), this->green);
1234 dump_field(out, ESPHOME_PSTR("blue"), this->blue);
1235 dump_field(out, ESPHOME_PSTR("has_white"), this->has_white);
1236 dump_field(out, ESPHOME_PSTR("white"), this->white);
1237 dump_field(out, ESPHOME_PSTR("has_color_temperature"), this->has_color_temperature);
1238 dump_field(out, ESPHOME_PSTR("color_temperature"), this->color_temperature);
1239 dump_field(out, ESPHOME_PSTR("has_cold_white"), this->has_cold_white);
1240 dump_field(out, ESPHOME_PSTR("cold_white"), this->cold_white);
1241 dump_field(out, ESPHOME_PSTR("has_warm_white"), this->has_warm_white);
1242 dump_field(out, ESPHOME_PSTR("warm_white"), this->warm_white);
1243 dump_field(out, ESPHOME_PSTR("has_transition_length"), this->has_transition_length);
1244 dump_field(out, ESPHOME_PSTR("transition_length"), this->transition_length);
1245 dump_field(out, ESPHOME_PSTR("has_flash_length"), this->has_flash_length);
1246 dump_field(out, ESPHOME_PSTR("flash_length"), this->flash_length);
1247 dump_field(out, ESPHOME_PSTR("has_effect"), this->has_effect);
1248 dump_field(out, ESPHOME_PSTR("effect"), this->effect);
1249#ifdef USE_DEVICES
1250 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1251#endif
1252 return out.c_str();
1253}
1254#endif
1255#ifdef USE_SENSOR
1257 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesSensorResponse"));
1258 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1259 dump_field(out, ESPHOME_PSTR("key"), this->key);
1260 dump_field(out, ESPHOME_PSTR("name"), this->name);
1261#ifdef USE_ENTITY_ICON
1262 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
1263#endif
1264 dump_field(out, ESPHOME_PSTR("unit_of_measurement"), this->unit_of_measurement);
1265 dump_field(out, ESPHOME_PSTR("accuracy_decimals"), this->accuracy_decimals);
1266 dump_field(out, ESPHOME_PSTR("force_update"), this->force_update);
1267 dump_field(out, ESPHOME_PSTR("device_class"), this->device_class);
1268 dump_field(out, ESPHOME_PSTR("state_class"), static_cast<enums::SensorStateClass>(this->state_class));
1269 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1270 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1271#ifdef USE_DEVICES
1272 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1273#endif
1274 return out.c_str();
1275}
1277 MessageDumpHelper helper(out, ESPHOME_PSTR("SensorStateResponse"));
1278 dump_field(out, ESPHOME_PSTR("key"), this->key);
1279 dump_field(out, ESPHOME_PSTR("state"), this->state);
1280 dump_field(out, ESPHOME_PSTR("missing_state"), this->missing_state);
1281#ifdef USE_DEVICES
1282 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1283#endif
1284 return out.c_str();
1285}
1286#endif
1287#ifdef USE_SWITCH
1289 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesSwitchResponse"));
1290 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1291 dump_field(out, ESPHOME_PSTR("key"), this->key);
1292 dump_field(out, ESPHOME_PSTR("name"), this->name);
1293#ifdef USE_ENTITY_ICON
1294 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
1295#endif
1296 dump_field(out, ESPHOME_PSTR("assumed_state"), this->assumed_state);
1297 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1298 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1299 dump_field(out, ESPHOME_PSTR("device_class"), this->device_class);
1300#ifdef USE_DEVICES
1301 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1302#endif
1303 return out.c_str();
1304}
1306 MessageDumpHelper helper(out, ESPHOME_PSTR("SwitchStateResponse"));
1307 dump_field(out, ESPHOME_PSTR("key"), this->key);
1308 dump_field(out, ESPHOME_PSTR("state"), this->state);
1309#ifdef USE_DEVICES
1310 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1311#endif
1312 return out.c_str();
1313}
1315 MessageDumpHelper helper(out, ESPHOME_PSTR("SwitchCommandRequest"));
1316 dump_field(out, ESPHOME_PSTR("key"), this->key);
1317 dump_field(out, ESPHOME_PSTR("state"), this->state);
1318#ifdef USE_DEVICES
1319 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1320#endif
1321 return out.c_str();
1322}
1323#endif
1324#ifdef USE_TEXT_SENSOR
1326 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesTextSensorResponse"));
1327 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1328 dump_field(out, ESPHOME_PSTR("key"), this->key);
1329 dump_field(out, ESPHOME_PSTR("name"), this->name);
1330#ifdef USE_ENTITY_ICON
1331 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
1332#endif
1333 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1334 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1335 dump_field(out, ESPHOME_PSTR("device_class"), this->device_class);
1336#ifdef USE_DEVICES
1337 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1338#endif
1339 return out.c_str();
1340}
1342 MessageDumpHelper helper(out, ESPHOME_PSTR("TextSensorStateResponse"));
1343 dump_field(out, ESPHOME_PSTR("key"), this->key);
1344 dump_field(out, ESPHOME_PSTR("state"), this->state);
1345 dump_field(out, ESPHOME_PSTR("missing_state"), this->missing_state);
1346#ifdef USE_DEVICES
1347 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1348#endif
1349 return out.c_str();
1350}
1351#endif
1353 MessageDumpHelper helper(out, ESPHOME_PSTR("SubscribeLogsRequest"));
1354 dump_field(out, ESPHOME_PSTR("level"), static_cast<enums::LogLevel>(this->level));
1355 dump_field(out, ESPHOME_PSTR("dump_config"), this->dump_config);
1356 return out.c_str();
1357}
1359 MessageDumpHelper helper(out, ESPHOME_PSTR("SubscribeLogsResponse"));
1360 dump_field(out, ESPHOME_PSTR("level"), static_cast<enums::LogLevel>(this->level));
1361 dump_bytes_field(out, ESPHOME_PSTR("message"), this->message_ptr_, this->message_len_);
1362 return out.c_str();
1363}
1364#ifdef USE_API_NOISE
1366 MessageDumpHelper helper(out, ESPHOME_PSTR("NoiseEncryptionSetKeyRequest"));
1367 dump_bytes_field(out, ESPHOME_PSTR("key"), this->key, this->key_len);
1368 return out.c_str();
1369}
1371 MessageDumpHelper helper(out, ESPHOME_PSTR("NoiseEncryptionSetKeyResponse"));
1372 dump_field(out, ESPHOME_PSTR("success"), this->success);
1373 return out.c_str();
1374}
1375#endif
1376#ifdef USE_API_HOMEASSISTANT_SERVICES
1378 MessageDumpHelper helper(out, ESPHOME_PSTR("HomeassistantServiceMap"));
1379 dump_field(out, ESPHOME_PSTR("key"), this->key);
1380 dump_field(out, ESPHOME_PSTR("value"), this->value);
1381 return out.c_str();
1382}
1384 MessageDumpHelper helper(out, ESPHOME_PSTR("HomeassistantActionRequest"));
1385 dump_field(out, ESPHOME_PSTR("service"), this->service);
1386 for (const auto &it : this->data) {
1387 out.append(4, ' ').append_p(ESPHOME_PSTR("data")).append(": ");
1388 it.dump_to(out);
1389 out.append("\n");
1390 }
1391 for (const auto &it : this->data_template) {
1392 out.append(4, ' ').append_p(ESPHOME_PSTR("data_template")).append(": ");
1393 it.dump_to(out);
1394 out.append("\n");
1395 }
1396 for (const auto &it : this->variables) {
1397 out.append(4, ' ').append_p(ESPHOME_PSTR("variables")).append(": ");
1398 it.dump_to(out);
1399 out.append("\n");
1400 }
1401 dump_field(out, ESPHOME_PSTR("is_event"), this->is_event);
1402#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES
1403 dump_field(out, ESPHOME_PSTR("call_id"), this->call_id);
1404#endif
1405#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1406 dump_field(out, ESPHOME_PSTR("wants_response"), this->wants_response);
1407#endif
1408#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1409 dump_field(out, ESPHOME_PSTR("response_template"), this->response_template);
1410#endif
1411 return out.c_str();
1412}
1413#endif
1414#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES
1416 MessageDumpHelper helper(out, ESPHOME_PSTR("HomeassistantActionResponse"));
1417 dump_field(out, ESPHOME_PSTR("call_id"), this->call_id);
1418 dump_field(out, ESPHOME_PSTR("success"), this->success);
1419 dump_field(out, ESPHOME_PSTR("error_message"), this->error_message);
1420#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1421 dump_bytes_field(out, ESPHOME_PSTR("response_data"), this->response_data, this->response_data_len);
1422#endif
1423 return out.c_str();
1424}
1425#endif
1426#ifdef USE_API_HOMEASSISTANT_STATES
1428 MessageDumpHelper helper(out, ESPHOME_PSTR("SubscribeHomeAssistantStateResponse"));
1429 dump_field(out, ESPHOME_PSTR("entity_id"), this->entity_id);
1430 dump_field(out, ESPHOME_PSTR("attribute"), this->attribute);
1431 dump_field(out, ESPHOME_PSTR("once"), this->once);
1432 return out.c_str();
1433}
1435 MessageDumpHelper helper(out, ESPHOME_PSTR("HomeAssistantStateResponse"));
1436 dump_field(out, ESPHOME_PSTR("entity_id"), this->entity_id);
1437 dump_field(out, ESPHOME_PSTR("state"), this->state);
1438 dump_field(out, ESPHOME_PSTR("attribute"), this->attribute);
1439 return out.c_str();
1440}
1441#endif
1442const char *GetTimeRequest::dump_to(DumpBuffer &out) const {
1443 out.append_p(ESPHOME_PSTR("GetTimeRequest {}"));
1444 return out.c_str();
1445}
1446const char *DSTRule::dump_to(DumpBuffer &out) const {
1447 MessageDumpHelper helper(out, ESPHOME_PSTR("DSTRule"));
1448 dump_field(out, ESPHOME_PSTR("time_seconds"), this->time_seconds);
1449 dump_field(out, ESPHOME_PSTR("day"), this->day);
1450 dump_field(out, ESPHOME_PSTR("type"), static_cast<enums::DSTRuleType>(this->type));
1451 dump_field(out, ESPHOME_PSTR("month"), this->month);
1452 dump_field(out, ESPHOME_PSTR("week"), this->week);
1453 dump_field(out, ESPHOME_PSTR("day_of_week"), this->day_of_week);
1454 return out.c_str();
1455}
1456const char *ParsedTimezone::dump_to(DumpBuffer &out) const {
1457 MessageDumpHelper helper(out, ESPHOME_PSTR("ParsedTimezone"));
1458 dump_field(out, ESPHOME_PSTR("std_offset_seconds"), this->std_offset_seconds);
1459 dump_field(out, ESPHOME_PSTR("dst_offset_seconds"), this->dst_offset_seconds);
1460 out.append(2, ' ').append_p(ESPHOME_PSTR("dst_start")).append(": ");
1461 this->dst_start.dump_to(out);
1462 out.append("\n");
1463 out.append(2, ' ').append_p(ESPHOME_PSTR("dst_end")).append(": ");
1464 this->dst_end.dump_to(out);
1465 out.append("\n");
1466 return out.c_str();
1467}
1468const char *GetTimeResponse::dump_to(DumpBuffer &out) const {
1469 MessageDumpHelper helper(out, ESPHOME_PSTR("GetTimeResponse"));
1470 dump_field(out, ESPHOME_PSTR("epoch_seconds"), this->epoch_seconds);
1471 dump_field(out, ESPHOME_PSTR("timezone"), this->timezone);
1472 out.append(2, ' ').append_p(ESPHOME_PSTR("parsed_timezone")).append(": ");
1473 this->parsed_timezone.dump_to(out);
1474 out.append("\n");
1475 return out.c_str();
1476}
1477#ifdef USE_API_USER_DEFINED_ACTIONS
1479 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesServicesArgument"));
1480 dump_field(out, ESPHOME_PSTR("name"), this->name);
1481 dump_field(out, ESPHOME_PSTR("type"), static_cast<enums::ServiceArgType>(this->type));
1482 return out.c_str();
1483}
1485 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesServicesResponse"));
1486 dump_field(out, ESPHOME_PSTR("name"), this->name);
1487 dump_field(out, ESPHOME_PSTR("key"), this->key);
1488 for (const auto &it : this->args) {
1489 out.append(4, ' ').append_p(ESPHOME_PSTR("args")).append(": ");
1490 it.dump_to(out);
1491 out.append("\n");
1492 }
1493 dump_field(out, ESPHOME_PSTR("supports_response"), static_cast<enums::SupportsResponseType>(this->supports_response));
1494 return out.c_str();
1495}
1497 MessageDumpHelper helper(out, ESPHOME_PSTR("ExecuteServiceArgument"));
1498 dump_field(out, ESPHOME_PSTR("bool_"), this->bool_);
1499 dump_field(out, ESPHOME_PSTR("legacy_int"), this->legacy_int);
1500 dump_field(out, ESPHOME_PSTR("float_"), this->float_);
1501 dump_field(out, ESPHOME_PSTR("string_"), this->string_);
1502 dump_field(out, ESPHOME_PSTR("int_"), this->int_);
1503 for (const auto it : this->bool_array) {
1504 dump_field(out, ESPHOME_PSTR("bool_array"), static_cast<bool>(it), 4);
1505 }
1506 for (const auto &it : this->int_array) {
1507 dump_field(out, ESPHOME_PSTR("int_array"), it, 4);
1508 }
1509 for (const auto &it : this->float_array) {
1510 dump_field(out, ESPHOME_PSTR("float_array"), it, 4);
1511 }
1512 for (const auto &it : this->string_array) {
1513 dump_field(out, ESPHOME_PSTR("string_array"), it, 4);
1514 }
1515 return out.c_str();
1516}
1518 MessageDumpHelper helper(out, ESPHOME_PSTR("ExecuteServiceRequest"));
1519 dump_field(out, ESPHOME_PSTR("key"), this->key);
1520 for (const auto &it : this->args) {
1521 out.append(4, ' ').append_p(ESPHOME_PSTR("args")).append(": ");
1522 it.dump_to(out);
1523 out.append("\n");
1524 }
1525#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1526 dump_field(out, ESPHOME_PSTR("call_id"), this->call_id);
1527#endif
1528#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1529 dump_field(out, ESPHOME_PSTR("return_response"), this->return_response);
1530#endif
1531 return out.c_str();
1532}
1533#endif
1534#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1536 MessageDumpHelper helper(out, ESPHOME_PSTR("ExecuteServiceResponse"));
1537 dump_field(out, ESPHOME_PSTR("call_id"), this->call_id);
1538 dump_field(out, ESPHOME_PSTR("success"), this->success);
1539 dump_field(out, ESPHOME_PSTR("error_message"), this->error_message);
1540#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES_JSON
1541 dump_bytes_field(out, ESPHOME_PSTR("response_data"), this->response_data, this->response_data_len);
1542#endif
1543 return out.c_str();
1544}
1545#endif
1546#ifdef USE_CAMERA
1548 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesCameraResponse"));
1549 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1550 dump_field(out, ESPHOME_PSTR("key"), this->key);
1551 dump_field(out, ESPHOME_PSTR("name"), this->name);
1552 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1553#ifdef USE_ENTITY_ICON
1554 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
1555#endif
1556 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1557#ifdef USE_DEVICES
1558 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1559#endif
1560 return out.c_str();
1561}
1563 MessageDumpHelper helper(out, ESPHOME_PSTR("CameraImageResponse"));
1564 dump_field(out, ESPHOME_PSTR("key"), this->key);
1565 dump_bytes_field(out, ESPHOME_PSTR("data"), this->data_ptr_, this->data_len_);
1566 dump_field(out, ESPHOME_PSTR("done"), this->done);
1567#ifdef USE_DEVICES
1568 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1569#endif
1570 return out.c_str();
1571}
1573 MessageDumpHelper helper(out, ESPHOME_PSTR("CameraImageRequest"));
1574 dump_field(out, ESPHOME_PSTR("single"), this->single);
1575 dump_field(out, ESPHOME_PSTR("stream"), this->stream);
1576 return out.c_str();
1577}
1578#endif
1579#ifdef USE_CLIMATE
1581 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesClimateResponse"));
1582 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1583 dump_field(out, ESPHOME_PSTR("key"), this->key);
1584 dump_field(out, ESPHOME_PSTR("name"), this->name);
1585 dump_field(out, ESPHOME_PSTR("supports_current_temperature"), this->supports_current_temperature);
1586 dump_field(out, ESPHOME_PSTR("supports_two_point_target_temperature"), this->supports_two_point_target_temperature);
1587 for (const auto &it : *this->supported_modes) {
1588 dump_field(out, ESPHOME_PSTR("supported_modes"), static_cast<enums::ClimateMode>(it), 4);
1589 }
1590 dump_field(out, ESPHOME_PSTR("visual_min_temperature"), this->visual_min_temperature);
1591 dump_field(out, ESPHOME_PSTR("visual_max_temperature"), this->visual_max_temperature);
1592 dump_field(out, ESPHOME_PSTR("visual_target_temperature_step"), this->visual_target_temperature_step);
1593 dump_field(out, ESPHOME_PSTR("supports_action"), this->supports_action);
1594 for (const auto &it : *this->supported_fan_modes) {
1595 dump_field(out, ESPHOME_PSTR("supported_fan_modes"), static_cast<enums::ClimateFanMode>(it), 4);
1596 }
1597 for (const auto &it : *this->supported_swing_modes) {
1598 dump_field(out, ESPHOME_PSTR("supported_swing_modes"), static_cast<enums::ClimateSwingMode>(it), 4);
1599 }
1600 for (const auto &it : *this->supported_custom_fan_modes) {
1601 dump_field(out, ESPHOME_PSTR("supported_custom_fan_modes"), it, 4);
1602 }
1603 for (const auto &it : *this->supported_presets) {
1604 dump_field(out, ESPHOME_PSTR("supported_presets"), static_cast<enums::ClimatePreset>(it), 4);
1605 }
1606 for (const auto &it : *this->supported_custom_presets) {
1607 dump_field(out, ESPHOME_PSTR("supported_custom_presets"), it, 4);
1608 }
1609 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1610#ifdef USE_ENTITY_ICON
1611 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
1612#endif
1613 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1614 dump_field(out, ESPHOME_PSTR("visual_current_temperature_step"), this->visual_current_temperature_step);
1615 dump_field(out, ESPHOME_PSTR("supports_current_humidity"), this->supports_current_humidity);
1616 dump_field(out, ESPHOME_PSTR("supports_target_humidity"), this->supports_target_humidity);
1617 dump_field(out, ESPHOME_PSTR("visual_min_humidity"), this->visual_min_humidity);
1618 dump_field(out, ESPHOME_PSTR("visual_max_humidity"), this->visual_max_humidity);
1619#ifdef USE_DEVICES
1620 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1621#endif
1622 dump_field(out, ESPHOME_PSTR("feature_flags"), this->feature_flags);
1623 dump_field(out, ESPHOME_PSTR("temperature_unit"), static_cast<enums::TemperatureUnit>(this->temperature_unit));
1624 return out.c_str();
1625}
1627 MessageDumpHelper helper(out, ESPHOME_PSTR("ClimateStateResponse"));
1628 dump_field(out, ESPHOME_PSTR("key"), this->key);
1629 dump_field(out, ESPHOME_PSTR("mode"), static_cast<enums::ClimateMode>(this->mode));
1630 dump_field(out, ESPHOME_PSTR("current_temperature"), this->current_temperature);
1631 dump_field(out, ESPHOME_PSTR("target_temperature"), this->target_temperature);
1632 dump_field(out, ESPHOME_PSTR("target_temperature_low"), this->target_temperature_low);
1633 dump_field(out, ESPHOME_PSTR("target_temperature_high"), this->target_temperature_high);
1634 dump_field(out, ESPHOME_PSTR("action"), static_cast<enums::ClimateAction>(this->action));
1635 dump_field(out, ESPHOME_PSTR("fan_mode"), static_cast<enums::ClimateFanMode>(this->fan_mode));
1636 dump_field(out, ESPHOME_PSTR("swing_mode"), static_cast<enums::ClimateSwingMode>(this->swing_mode));
1637 dump_field(out, ESPHOME_PSTR("custom_fan_mode"), this->custom_fan_mode);
1638 dump_field(out, ESPHOME_PSTR("preset"), static_cast<enums::ClimatePreset>(this->preset));
1639 dump_field(out, ESPHOME_PSTR("custom_preset"), this->custom_preset);
1640 dump_field(out, ESPHOME_PSTR("current_humidity"), this->current_humidity);
1641 dump_field(out, ESPHOME_PSTR("target_humidity"), this->target_humidity);
1642#ifdef USE_DEVICES
1643 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1644#endif
1645 return out.c_str();
1646}
1648 MessageDumpHelper helper(out, ESPHOME_PSTR("ClimateCommandRequest"));
1649 dump_field(out, ESPHOME_PSTR("key"), this->key);
1650 dump_field(out, ESPHOME_PSTR("has_mode"), this->has_mode);
1651 dump_field(out, ESPHOME_PSTR("mode"), static_cast<enums::ClimateMode>(this->mode));
1652 dump_field(out, ESPHOME_PSTR("has_target_temperature"), this->has_target_temperature);
1653 dump_field(out, ESPHOME_PSTR("target_temperature"), this->target_temperature);
1654 dump_field(out, ESPHOME_PSTR("has_target_temperature_low"), this->has_target_temperature_low);
1655 dump_field(out, ESPHOME_PSTR("target_temperature_low"), this->target_temperature_low);
1656 dump_field(out, ESPHOME_PSTR("has_target_temperature_high"), this->has_target_temperature_high);
1657 dump_field(out, ESPHOME_PSTR("target_temperature_high"), this->target_temperature_high);
1658 dump_field(out, ESPHOME_PSTR("has_fan_mode"), this->has_fan_mode);
1659 dump_field(out, ESPHOME_PSTR("fan_mode"), static_cast<enums::ClimateFanMode>(this->fan_mode));
1660 dump_field(out, ESPHOME_PSTR("has_swing_mode"), this->has_swing_mode);
1661 dump_field(out, ESPHOME_PSTR("swing_mode"), static_cast<enums::ClimateSwingMode>(this->swing_mode));
1662 dump_field(out, ESPHOME_PSTR("has_custom_fan_mode"), this->has_custom_fan_mode);
1663 dump_field(out, ESPHOME_PSTR("custom_fan_mode"), this->custom_fan_mode);
1664 dump_field(out, ESPHOME_PSTR("has_preset"), this->has_preset);
1665 dump_field(out, ESPHOME_PSTR("preset"), static_cast<enums::ClimatePreset>(this->preset));
1666 dump_field(out, ESPHOME_PSTR("has_custom_preset"), this->has_custom_preset);
1667 dump_field(out, ESPHOME_PSTR("custom_preset"), this->custom_preset);
1668 dump_field(out, ESPHOME_PSTR("has_target_humidity"), this->has_target_humidity);
1669 dump_field(out, ESPHOME_PSTR("target_humidity"), this->target_humidity);
1670#ifdef USE_DEVICES
1671 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1672#endif
1673 return out.c_str();
1674}
1675#endif
1676#ifdef USE_WATER_HEATER
1678 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesWaterHeaterResponse"));
1679 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1680 dump_field(out, ESPHOME_PSTR("key"), this->key);
1681 dump_field(out, ESPHOME_PSTR("name"), this->name);
1682#ifdef USE_ENTITY_ICON
1683 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
1684#endif
1685 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1686 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1687#ifdef USE_DEVICES
1688 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1689#endif
1690 dump_field(out, ESPHOME_PSTR("min_temperature"), this->min_temperature);
1691 dump_field(out, ESPHOME_PSTR("max_temperature"), this->max_temperature);
1692 dump_field(out, ESPHOME_PSTR("target_temperature_step"), this->target_temperature_step);
1693 for (const auto &it : *this->supported_modes) {
1694 dump_field(out, ESPHOME_PSTR("supported_modes"), static_cast<enums::WaterHeaterMode>(it), 4);
1695 }
1696 dump_field(out, ESPHOME_PSTR("supported_features"), this->supported_features);
1697 dump_field(out, ESPHOME_PSTR("temperature_unit"), static_cast<enums::TemperatureUnit>(this->temperature_unit));
1698 return out.c_str();
1699}
1701 MessageDumpHelper helper(out, ESPHOME_PSTR("WaterHeaterStateResponse"));
1702 dump_field(out, ESPHOME_PSTR("key"), this->key);
1703 dump_field(out, ESPHOME_PSTR("current_temperature"), this->current_temperature);
1704 dump_field(out, ESPHOME_PSTR("target_temperature"), this->target_temperature);
1705 dump_field(out, ESPHOME_PSTR("mode"), static_cast<enums::WaterHeaterMode>(this->mode));
1706#ifdef USE_DEVICES
1707 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1708#endif
1709 dump_field(out, ESPHOME_PSTR("state"), this->state);
1710 dump_field(out, ESPHOME_PSTR("target_temperature_low"), this->target_temperature_low);
1711 dump_field(out, ESPHOME_PSTR("target_temperature_high"), this->target_temperature_high);
1712 return out.c_str();
1713}
1715 MessageDumpHelper helper(out, ESPHOME_PSTR("WaterHeaterCommandRequest"));
1716 dump_field(out, ESPHOME_PSTR("key"), this->key);
1717 dump_field(out, ESPHOME_PSTR("has_fields"), this->has_fields);
1718 dump_field(out, ESPHOME_PSTR("mode"), static_cast<enums::WaterHeaterMode>(this->mode));
1719 dump_field(out, ESPHOME_PSTR("target_temperature"), this->target_temperature);
1720#ifdef USE_DEVICES
1721 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1722#endif
1723 dump_field(out, ESPHOME_PSTR("state"), this->state);
1724 dump_field(out, ESPHOME_PSTR("target_temperature_low"), this->target_temperature_low);
1725 dump_field(out, ESPHOME_PSTR("target_temperature_high"), this->target_temperature_high);
1726 return out.c_str();
1727}
1728#endif
1729#ifdef USE_NUMBER
1731 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesNumberResponse"));
1732 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1733 dump_field(out, ESPHOME_PSTR("key"), this->key);
1734 dump_field(out, ESPHOME_PSTR("name"), this->name);
1735#ifdef USE_ENTITY_ICON
1736 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
1737#endif
1738 dump_field(out, ESPHOME_PSTR("min_value"), this->min_value);
1739 dump_field(out, ESPHOME_PSTR("max_value"), this->max_value);
1740 dump_field(out, ESPHOME_PSTR("step"), this->step);
1741 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1742 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1743 dump_field(out, ESPHOME_PSTR("unit_of_measurement"), this->unit_of_measurement);
1744 dump_field(out, ESPHOME_PSTR("mode"), static_cast<enums::NumberMode>(this->mode));
1745 dump_field(out, ESPHOME_PSTR("device_class"), this->device_class);
1746#ifdef USE_DEVICES
1747 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1748#endif
1749 return out.c_str();
1750}
1752 MessageDumpHelper helper(out, ESPHOME_PSTR("NumberStateResponse"));
1753 dump_field(out, ESPHOME_PSTR("key"), this->key);
1754 dump_field(out, ESPHOME_PSTR("state"), this->state);
1755 dump_field(out, ESPHOME_PSTR("missing_state"), this->missing_state);
1756#ifdef USE_DEVICES
1757 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1758#endif
1759 return out.c_str();
1760}
1762 MessageDumpHelper helper(out, ESPHOME_PSTR("NumberCommandRequest"));
1763 dump_field(out, ESPHOME_PSTR("key"), this->key);
1764 dump_field(out, ESPHOME_PSTR("state"), this->state);
1765#ifdef USE_DEVICES
1766 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1767#endif
1768 return out.c_str();
1769}
1770#endif
1771#ifdef USE_SELECT
1773 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesSelectResponse"));
1774 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1775 dump_field(out, ESPHOME_PSTR("key"), this->key);
1776 dump_field(out, ESPHOME_PSTR("name"), this->name);
1777#ifdef USE_ENTITY_ICON
1778 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
1779#endif
1780 for (const auto &it : *this->options) {
1781 dump_field(out, ESPHOME_PSTR("options"), it, 4);
1782 }
1783 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1784 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1785#ifdef USE_DEVICES
1786 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1787#endif
1788 return out.c_str();
1789}
1791 MessageDumpHelper helper(out, ESPHOME_PSTR("SelectStateResponse"));
1792 dump_field(out, ESPHOME_PSTR("key"), this->key);
1793 dump_field(out, ESPHOME_PSTR("state"), this->state);
1794 dump_field(out, ESPHOME_PSTR("missing_state"), this->missing_state);
1795#ifdef USE_DEVICES
1796 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1797#endif
1798 return out.c_str();
1799}
1801 MessageDumpHelper helper(out, ESPHOME_PSTR("SelectCommandRequest"));
1802 dump_field(out, ESPHOME_PSTR("key"), this->key);
1803 dump_field(out, ESPHOME_PSTR("state"), this->state);
1804#ifdef USE_DEVICES
1805 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1806#endif
1807 return out.c_str();
1808}
1809#endif
1810#ifdef USE_SIREN
1812 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesSirenResponse"));
1813 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1814 dump_field(out, ESPHOME_PSTR("key"), this->key);
1815 dump_field(out, ESPHOME_PSTR("name"), this->name);
1816#ifdef USE_ENTITY_ICON
1817 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
1818#endif
1819 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1820 for (const auto &it : *this->tones) {
1821 dump_field(out, ESPHOME_PSTR("tones"), it, 4);
1822 }
1823 dump_field(out, ESPHOME_PSTR("supports_duration"), this->supports_duration);
1824 dump_field(out, ESPHOME_PSTR("supports_volume"), this->supports_volume);
1825 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1826#ifdef USE_DEVICES
1827 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1828#endif
1829 return out.c_str();
1830}
1832 MessageDumpHelper helper(out, ESPHOME_PSTR("SirenStateResponse"));
1833 dump_field(out, ESPHOME_PSTR("key"), this->key);
1834 dump_field(out, ESPHOME_PSTR("state"), this->state);
1835#ifdef USE_DEVICES
1836 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1837#endif
1838 return out.c_str();
1839}
1841 MessageDumpHelper helper(out, ESPHOME_PSTR("SirenCommandRequest"));
1842 dump_field(out, ESPHOME_PSTR("key"), this->key);
1843 dump_field(out, ESPHOME_PSTR("has_state"), this->has_state);
1844 dump_field(out, ESPHOME_PSTR("state"), this->state);
1845 dump_field(out, ESPHOME_PSTR("has_tone"), this->has_tone);
1846 dump_field(out, ESPHOME_PSTR("tone"), this->tone);
1847 dump_field(out, ESPHOME_PSTR("has_duration"), this->has_duration);
1848 dump_field(out, ESPHOME_PSTR("duration"), this->duration);
1849 dump_field(out, ESPHOME_PSTR("has_volume"), this->has_volume);
1850 dump_field(out, ESPHOME_PSTR("volume"), this->volume);
1851#ifdef USE_DEVICES
1852 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1853#endif
1854 return out.c_str();
1855}
1856#endif
1857#ifdef USE_LOCK
1859 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesLockResponse"));
1860 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1861 dump_field(out, ESPHOME_PSTR("key"), this->key);
1862 dump_field(out, ESPHOME_PSTR("name"), this->name);
1863#ifdef USE_ENTITY_ICON
1864 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
1865#endif
1866 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1867 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1868 dump_field(out, ESPHOME_PSTR("assumed_state"), this->assumed_state);
1869 dump_field(out, ESPHOME_PSTR("supports_open"), this->supports_open);
1870 dump_field(out, ESPHOME_PSTR("requires_code"), this->requires_code);
1871 dump_field(out, ESPHOME_PSTR("code_format"), this->code_format);
1872#ifdef USE_DEVICES
1873 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1874#endif
1875 return out.c_str();
1876}
1878 MessageDumpHelper helper(out, ESPHOME_PSTR("LockStateResponse"));
1879 dump_field(out, ESPHOME_PSTR("key"), this->key);
1880 dump_field(out, ESPHOME_PSTR("state"), static_cast<enums::LockState>(this->state));
1881#ifdef USE_DEVICES
1882 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1883#endif
1884 return out.c_str();
1885}
1887 MessageDumpHelper helper(out, ESPHOME_PSTR("LockCommandRequest"));
1888 dump_field(out, ESPHOME_PSTR("key"), this->key);
1889 dump_field(out, ESPHOME_PSTR("command"), static_cast<enums::LockCommand>(this->command));
1890 dump_field(out, ESPHOME_PSTR("has_code"), this->has_code);
1891 dump_field(out, ESPHOME_PSTR("code"), this->code);
1892#ifdef USE_DEVICES
1893 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1894#endif
1895 return out.c_str();
1896}
1897#endif
1898#ifdef USE_BUTTON
1900 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesButtonResponse"));
1901 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1902 dump_field(out, ESPHOME_PSTR("key"), this->key);
1903 dump_field(out, ESPHOME_PSTR("name"), this->name);
1904#ifdef USE_ENTITY_ICON
1905 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
1906#endif
1907 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1908 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1909 dump_field(out, ESPHOME_PSTR("device_class"), this->device_class);
1910#ifdef USE_DEVICES
1911 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1912#endif
1913 return out.c_str();
1914}
1916 MessageDumpHelper helper(out, ESPHOME_PSTR("ButtonCommandRequest"));
1917 dump_field(out, ESPHOME_PSTR("key"), this->key);
1918#ifdef USE_DEVICES
1919 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1920#endif
1921 return out.c_str();
1922}
1923#endif
1924#ifdef USE_MEDIA_PLAYER
1926 MessageDumpHelper helper(out, ESPHOME_PSTR("MediaPlayerSupportedFormat"));
1927 dump_field(out, ESPHOME_PSTR("format"), this->format);
1928 dump_field(out, ESPHOME_PSTR("sample_rate"), this->sample_rate);
1929 dump_field(out, ESPHOME_PSTR("num_channels"), this->num_channels);
1930 dump_field(out, ESPHOME_PSTR("purpose"), static_cast<enums::MediaPlayerFormatPurpose>(this->purpose));
1931 dump_field(out, ESPHOME_PSTR("sample_bytes"), this->sample_bytes);
1932 return out.c_str();
1933}
1935 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesMediaPlayerResponse"));
1936 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1937 dump_field(out, ESPHOME_PSTR("key"), this->key);
1938 dump_field(out, ESPHOME_PSTR("name"), this->name);
1939#ifdef USE_ENTITY_ICON
1940 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
1941#endif
1942 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1943 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1944 dump_field(out, ESPHOME_PSTR("supports_pause"), this->supports_pause);
1945 for (const auto &it : this->supported_formats) {
1946 out.append(4, ' ').append_p(ESPHOME_PSTR("supported_formats")).append(": ");
1947 it.dump_to(out);
1948 out.append("\n");
1949 }
1950#ifdef USE_DEVICES
1951 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1952#endif
1953 dump_field(out, ESPHOME_PSTR("feature_flags"), this->feature_flags);
1954 return out.c_str();
1955}
1957 MessageDumpHelper helper(out, ESPHOME_PSTR("MediaPlayerStateResponse"));
1958 dump_field(out, ESPHOME_PSTR("key"), this->key);
1959 dump_field(out, ESPHOME_PSTR("state"), static_cast<enums::MediaPlayerState>(this->state));
1960 dump_field(out, ESPHOME_PSTR("volume"), this->volume);
1961 dump_field(out, ESPHOME_PSTR("muted"), this->muted);
1962#ifdef USE_DEVICES
1963 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1964#endif
1965 return out.c_str();
1966}
1968 MessageDumpHelper helper(out, ESPHOME_PSTR("MediaPlayerCommandRequest"));
1969 dump_field(out, ESPHOME_PSTR("key"), this->key);
1970 dump_field(out, ESPHOME_PSTR("has_command"), this->has_command);
1971 dump_field(out, ESPHOME_PSTR("command"), static_cast<enums::MediaPlayerCommand>(this->command));
1972 dump_field(out, ESPHOME_PSTR("has_volume"), this->has_volume);
1973 dump_field(out, ESPHOME_PSTR("volume"), this->volume);
1974 dump_field(out, ESPHOME_PSTR("has_media_url"), this->has_media_url);
1975 dump_field(out, ESPHOME_PSTR("media_url"), this->media_url);
1976 dump_field(out, ESPHOME_PSTR("has_announcement"), this->has_announcement);
1977 dump_field(out, ESPHOME_PSTR("announcement"), this->announcement);
1978#ifdef USE_DEVICES
1979 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1980#endif
1981 return out.c_str();
1982}
1983#endif
1984#ifdef USE_BLUETOOTH_PROXY
1986 MessageDumpHelper helper(out, ESPHOME_PSTR("SubscribeBluetoothLEAdvertisementsRequest"));
1987 dump_field(out, ESPHOME_PSTR("flags"), this->flags);
1988 return out.c_str();
1989}
1991 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothLERawAdvertisement"));
1992 dump_field(out, ESPHOME_PSTR("address"), this->address);
1993 dump_field(out, ESPHOME_PSTR("rssi"), this->rssi);
1994 dump_field(out, ESPHOME_PSTR("address_type"), this->address_type);
1995 dump_bytes_field(out, ESPHOME_PSTR("data"), this->data, this->data_len);
1996 return out.c_str();
1997}
1999 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothLERawAdvertisementsResponse"));
2000 for (uint16_t i = 0; i < this->advertisements_len; i++) {
2001 out.append(4, ' ').append_p(ESPHOME_PSTR("advertisements")).append(": ");
2002 this->advertisements[i].dump_to(out);
2003 out.append("\n");
2004 }
2005 return out.c_str();
2006}
2007#endif
2008#ifdef USE_BLUETOOTH_PROXY_CONNECTIONS
2010 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothDeviceRequest"));
2011 dump_field(out, ESPHOME_PSTR("address"), this->address);
2012 dump_field(out, ESPHOME_PSTR("request_type"), static_cast<enums::BluetoothDeviceRequestType>(this->request_type));
2013 dump_field(out, ESPHOME_PSTR("has_address_type"), this->has_address_type);
2014 dump_field(out, ESPHOME_PSTR("address_type"), this->address_type);
2015 return out.c_str();
2016}
2018 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothDeviceConnectionResponse"));
2019 dump_field(out, ESPHOME_PSTR("address"), this->address);
2020 dump_field(out, ESPHOME_PSTR("connected"), this->connected);
2021 dump_field(out, ESPHOME_PSTR("mtu"), this->mtu);
2022 dump_field(out, ESPHOME_PSTR("error"), this->error);
2023 return out.c_str();
2024}
2026 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTGetServicesRequest"));
2027 dump_field(out, ESPHOME_PSTR("address"), this->address);
2028 return out.c_str();
2029}
2031 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTDescriptor"));
2032 for (const auto &it : this->uuid) {
2033 dump_field(out, ESPHOME_PSTR("uuid"), it, 4);
2034 }
2035 dump_field(out, ESPHOME_PSTR("handle"), this->handle);
2036 dump_field(out, ESPHOME_PSTR("short_uuid"), this->short_uuid);
2037 return out.c_str();
2038}
2040 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTCharacteristic"));
2041 for (const auto &it : this->uuid) {
2042 dump_field(out, ESPHOME_PSTR("uuid"), it, 4);
2043 }
2044 dump_field(out, ESPHOME_PSTR("handle"), this->handle);
2045 dump_field(out, ESPHOME_PSTR("properties"), this->properties);
2046 for (const auto &it : this->descriptors) {
2047 out.append(4, ' ').append_p(ESPHOME_PSTR("descriptors")).append(": ");
2048 it.dump_to(out);
2049 out.append("\n");
2050 }
2051 dump_field(out, ESPHOME_PSTR("short_uuid"), this->short_uuid);
2052 return out.c_str();
2053}
2055 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTService"));
2056 for (const auto &it : this->uuid) {
2057 dump_field(out, ESPHOME_PSTR("uuid"), it, 4);
2058 }
2059 dump_field(out, ESPHOME_PSTR("handle"), this->handle);
2060 for (const auto &it : this->characteristics) {
2061 out.append(4, ' ').append_p(ESPHOME_PSTR("characteristics")).append(": ");
2062 it.dump_to(out);
2063 out.append("\n");
2064 }
2065 dump_field(out, ESPHOME_PSTR("short_uuid"), this->short_uuid);
2066 return out.c_str();
2067}
2069 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTGetServicesResponse"));
2070 dump_field(out, ESPHOME_PSTR("address"), this->address);
2071 for (const auto &it : this->services) {
2072 out.append(4, ' ').append_p(ESPHOME_PSTR("services")).append(": ");
2073 it.dump_to(out);
2074 out.append("\n");
2075 }
2076 return out.c_str();
2077}
2079 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTGetServicesDoneResponse"));
2080 dump_field(out, ESPHOME_PSTR("address"), this->address);
2081 return out.c_str();
2082}
2084 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTReadRequest"));
2085 dump_field(out, ESPHOME_PSTR("address"), this->address);
2086 dump_field(out, ESPHOME_PSTR("handle"), this->handle);
2087 return out.c_str();
2088}
2090 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTReadResponse"));
2091 dump_field(out, ESPHOME_PSTR("address"), this->address);
2092 dump_field(out, ESPHOME_PSTR("handle"), this->handle);
2093 dump_bytes_field(out, ESPHOME_PSTR("data"), this->data_ptr_, this->data_len_);
2094 return out.c_str();
2095}
2097 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTWriteRequest"));
2098 dump_field(out, ESPHOME_PSTR("address"), this->address);
2099 dump_field(out, ESPHOME_PSTR("handle"), this->handle);
2100 dump_field(out, ESPHOME_PSTR("response"), this->response);
2101 dump_bytes_field(out, ESPHOME_PSTR("data"), this->data, this->data_len);
2102 return out.c_str();
2103}
2105 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTReadDescriptorRequest"));
2106 dump_field(out, ESPHOME_PSTR("address"), this->address);
2107 dump_field(out, ESPHOME_PSTR("handle"), this->handle);
2108 return out.c_str();
2109}
2111 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTWriteDescriptorRequest"));
2112 dump_field(out, ESPHOME_PSTR("address"), this->address);
2113 dump_field(out, ESPHOME_PSTR("handle"), this->handle);
2114 dump_bytes_field(out, ESPHOME_PSTR("data"), this->data, this->data_len);
2115 return out.c_str();
2116}
2118 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTNotifyRequest"));
2119 dump_field(out, ESPHOME_PSTR("address"), this->address);
2120 dump_field(out, ESPHOME_PSTR("handle"), this->handle);
2121 dump_field(out, ESPHOME_PSTR("enable"), this->enable);
2122 return out.c_str();
2123}
2125 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTNotifyDataResponse"));
2126 dump_field(out, ESPHOME_PSTR("address"), this->address);
2127 dump_field(out, ESPHOME_PSTR("handle"), this->handle);
2128 dump_bytes_field(out, ESPHOME_PSTR("data"), this->data_ptr_, this->data_len_);
2129 return out.c_str();
2130}
2132 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothConnectionsFreeResponse"));
2133 dump_field(out, ESPHOME_PSTR("free"), this->free);
2134 dump_field(out, ESPHOME_PSTR("limit"), this->limit);
2135 for (const auto &it : this->allocated) {
2136 dump_field(out, ESPHOME_PSTR("allocated"), it, 4);
2137 }
2138 return out.c_str();
2139}
2141 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTErrorResponse"));
2142 dump_field(out, ESPHOME_PSTR("address"), this->address);
2143 dump_field(out, ESPHOME_PSTR("handle"), this->handle);
2144 dump_field(out, ESPHOME_PSTR("error"), this->error);
2145 return out.c_str();
2146}
2148 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTWriteResponse"));
2149 dump_field(out, ESPHOME_PSTR("address"), this->address);
2150 dump_field(out, ESPHOME_PSTR("handle"), this->handle);
2151 return out.c_str();
2152}
2154 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTNotifyResponse"));
2155 dump_field(out, ESPHOME_PSTR("address"), this->address);
2156 dump_field(out, ESPHOME_PSTR("handle"), this->handle);
2157 return out.c_str();
2158}
2160 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothDevicePairingResponse"));
2161 dump_field(out, ESPHOME_PSTR("address"), this->address);
2162 dump_field(out, ESPHOME_PSTR("paired"), this->paired);
2163 dump_field(out, ESPHOME_PSTR("error"), this->error);
2164 return out.c_str();
2165}
2167 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothDeviceUnpairingResponse"));
2168 dump_field(out, ESPHOME_PSTR("address"), this->address);
2169 dump_field(out, ESPHOME_PSTR("success"), this->success);
2170 dump_field(out, ESPHOME_PSTR("error"), this->error);
2171 return out.c_str();
2172}
2174 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothDeviceClearCacheResponse"));
2175 dump_field(out, ESPHOME_PSTR("address"), this->address);
2176 dump_field(out, ESPHOME_PSTR("success"), this->success);
2177 dump_field(out, ESPHOME_PSTR("error"), this->error);
2178 return out.c_str();
2179}
2180#endif
2181#ifdef USE_BLUETOOTH_PROXY
2183 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothScannerStateResponse"));
2184 dump_field(out, ESPHOME_PSTR("state"), static_cast<enums::BluetoothScannerState>(this->state));
2185 dump_field(out, ESPHOME_PSTR("mode"), static_cast<enums::BluetoothScannerMode>(this->mode));
2186 dump_field(out, ESPHOME_PSTR("configured_mode"), static_cast<enums::BluetoothScannerMode>(this->configured_mode));
2187 return out.c_str();
2188}
2190 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothScannerSetModeRequest"));
2191 dump_field(out, ESPHOME_PSTR("mode"), static_cast<enums::BluetoothScannerMode>(this->mode));
2192 return out.c_str();
2193}
2194#endif
2195#ifdef USE_VOICE_ASSISTANT
2197 MessageDumpHelper helper(out, ESPHOME_PSTR("SubscribeVoiceAssistantRequest"));
2198 dump_field(out, ESPHOME_PSTR("subscribe"), this->subscribe);
2199 dump_field(out, ESPHOME_PSTR("flags"), this->flags);
2200 return out.c_str();
2201}
2203 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantAudioSettings"));
2204 dump_field(out, ESPHOME_PSTR("noise_suppression_level"), this->noise_suppression_level);
2205 dump_field(out, ESPHOME_PSTR("auto_gain"), this->auto_gain);
2206 dump_field(out, ESPHOME_PSTR("volume_multiplier"), this->volume_multiplier);
2207 return out.c_str();
2208}
2210 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantRequest"));
2211 dump_field(out, ESPHOME_PSTR("start"), this->start);
2212 dump_field(out, ESPHOME_PSTR("conversation_id"), this->conversation_id);
2213 dump_field(out, ESPHOME_PSTR("flags"), this->flags);
2214 out.append(2, ' ').append_p(ESPHOME_PSTR("audio_settings")).append(": ");
2215 this->audio_settings.dump_to(out);
2216 out.append("\n");
2217 dump_field(out, ESPHOME_PSTR("wake_word_phrase"), this->wake_word_phrase);
2218 return out.c_str();
2219}
2221 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantResponse"));
2222 dump_field(out, ESPHOME_PSTR("port"), this->port);
2223 dump_field(out, ESPHOME_PSTR("error"), this->error);
2224 return out.c_str();
2225}
2227 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantEventData"));
2228 dump_field(out, ESPHOME_PSTR("name"), this->name);
2229 dump_field(out, ESPHOME_PSTR("value"), this->value);
2230 return out.c_str();
2231}
2233 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantEventResponse"));
2234 dump_field(out, ESPHOME_PSTR("event_type"), static_cast<enums::VoiceAssistantEvent>(this->event_type));
2235 for (const auto &it : this->data) {
2236 out.append(4, ' ').append_p(ESPHOME_PSTR("data")).append(": ");
2237 it.dump_to(out);
2238 out.append("\n");
2239 }
2240 return out.c_str();
2241}
2243 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantAudio"));
2244 dump_bytes_field(out, ESPHOME_PSTR("data"), this->data, this->data_len);
2245 dump_field(out, ESPHOME_PSTR("end"), this->end);
2246 dump_bytes_field(out, ESPHOME_PSTR("data2"), this->data2, this->data2_len);
2247 return out.c_str();
2248}
2250 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantTimerEventResponse"));
2251 dump_field(out, ESPHOME_PSTR("event_type"), static_cast<enums::VoiceAssistantTimerEvent>(this->event_type));
2252 dump_field(out, ESPHOME_PSTR("timer_id"), this->timer_id);
2253 dump_field(out, ESPHOME_PSTR("name"), this->name);
2254 dump_field(out, ESPHOME_PSTR("total_seconds"), this->total_seconds);
2255 dump_field(out, ESPHOME_PSTR("seconds_left"), this->seconds_left);
2256 dump_field(out, ESPHOME_PSTR("is_active"), this->is_active);
2257 return out.c_str();
2258}
2260 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantAnnounceRequest"));
2261 dump_field(out, ESPHOME_PSTR("media_id"), this->media_id);
2262 dump_field(out, ESPHOME_PSTR("text"), this->text);
2263 dump_field(out, ESPHOME_PSTR("preannounce_media_id"), this->preannounce_media_id);
2264 dump_field(out, ESPHOME_PSTR("start_conversation"), this->start_conversation);
2265 return out.c_str();
2266}
2268 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantAnnounceFinished"));
2269 dump_field(out, ESPHOME_PSTR("success"), this->success);
2270 return out.c_str();
2271}
2273 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantWakeWord"));
2274 dump_field(out, ESPHOME_PSTR("id"), this->id);
2275 dump_field(out, ESPHOME_PSTR("wake_word"), this->wake_word);
2276 for (const auto &it : this->trained_languages) {
2277 dump_field(out, ESPHOME_PSTR("trained_languages"), it, 4);
2278 }
2279 return out.c_str();
2280}
2282 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantExternalWakeWord"));
2283 dump_field(out, ESPHOME_PSTR("id"), this->id);
2284 dump_field(out, ESPHOME_PSTR("wake_word"), this->wake_word);
2285 for (const auto &it : this->trained_languages) {
2286 dump_field(out, ESPHOME_PSTR("trained_languages"), it, 4);
2287 }
2288 dump_field(out, ESPHOME_PSTR("model_type"), this->model_type);
2289 dump_field(out, ESPHOME_PSTR("model_size"), this->model_size);
2290 dump_field(out, ESPHOME_PSTR("model_hash"), this->model_hash);
2291 dump_field(out, ESPHOME_PSTR("url"), this->url);
2292 return out.c_str();
2293}
2295 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantConfigurationRequest"));
2296 for (const auto &it : this->external_wake_words) {
2297 out.append(4, ' ').append_p(ESPHOME_PSTR("external_wake_words")).append(": ");
2298 it.dump_to(out);
2299 out.append("\n");
2300 }
2301 return out.c_str();
2302}
2304 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantConfigurationResponse"));
2305 for (const auto &it : this->available_wake_words) {
2306 out.append(4, ' ').append_p(ESPHOME_PSTR("available_wake_words")).append(": ");
2307 it.dump_to(out);
2308 out.append("\n");
2309 }
2310 for (const auto &it : *this->active_wake_words) {
2311 dump_field(out, ESPHOME_PSTR("active_wake_words"), it, 4);
2312 }
2313 dump_field(out, ESPHOME_PSTR("max_active_wake_words"), this->max_active_wake_words);
2314 return out.c_str();
2315}
2317 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantSetConfiguration"));
2318 for (const auto &it : this->active_wake_words) {
2319 dump_field(out, ESPHOME_PSTR("active_wake_words"), it, 4);
2320 }
2321 return out.c_str();
2322}
2323#endif
2324#ifdef USE_ALARM_CONTROL_PANEL
2326 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesAlarmControlPanelResponse"));
2327 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
2328 dump_field(out, ESPHOME_PSTR("key"), this->key);
2329 dump_field(out, ESPHOME_PSTR("name"), this->name);
2330#ifdef USE_ENTITY_ICON
2331 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
2332#endif
2333 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
2334 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
2335 dump_field(out, ESPHOME_PSTR("supported_features"), this->supported_features);
2336 dump_field(out, ESPHOME_PSTR("requires_code"), this->requires_code);
2337 dump_field(out, ESPHOME_PSTR("requires_code_to_arm"), this->requires_code_to_arm);
2338#ifdef USE_DEVICES
2339 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2340#endif
2341 return out.c_str();
2342}
2344 MessageDumpHelper helper(out, ESPHOME_PSTR("AlarmControlPanelStateResponse"));
2345 dump_field(out, ESPHOME_PSTR("key"), this->key);
2346 dump_field(out, ESPHOME_PSTR("state"), static_cast<enums::AlarmControlPanelState>(this->state));
2347#ifdef USE_DEVICES
2348 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2349#endif
2350 return out.c_str();
2351}
2353 MessageDumpHelper helper(out, ESPHOME_PSTR("AlarmControlPanelCommandRequest"));
2354 dump_field(out, ESPHOME_PSTR("key"), this->key);
2355 dump_field(out, ESPHOME_PSTR("command"), static_cast<enums::AlarmControlPanelStateCommand>(this->command));
2356 dump_field(out, ESPHOME_PSTR("code"), this->code);
2357#ifdef USE_DEVICES
2358 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2359#endif
2360 return out.c_str();
2361}
2362#endif
2363#ifdef USE_TEXT
2365 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesTextResponse"));
2366 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
2367 dump_field(out, ESPHOME_PSTR("key"), this->key);
2368 dump_field(out, ESPHOME_PSTR("name"), this->name);
2369#ifdef USE_ENTITY_ICON
2370 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
2371#endif
2372 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
2373 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
2374 dump_field(out, ESPHOME_PSTR("min_length"), this->min_length);
2375 dump_field(out, ESPHOME_PSTR("max_length"), this->max_length);
2376 dump_field(out, ESPHOME_PSTR("pattern"), this->pattern);
2377 dump_field(out, ESPHOME_PSTR("mode"), static_cast<enums::TextMode>(this->mode));
2378#ifdef USE_DEVICES
2379 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2380#endif
2381 return out.c_str();
2382}
2384 MessageDumpHelper helper(out, ESPHOME_PSTR("TextStateResponse"));
2385 dump_field(out, ESPHOME_PSTR("key"), this->key);
2386 dump_field(out, ESPHOME_PSTR("state"), this->state);
2387 dump_field(out, ESPHOME_PSTR("missing_state"), this->missing_state);
2388#ifdef USE_DEVICES
2389 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2390#endif
2391 return out.c_str();
2392}
2394 MessageDumpHelper helper(out, ESPHOME_PSTR("TextCommandRequest"));
2395 dump_field(out, ESPHOME_PSTR("key"), this->key);
2396 dump_field(out, ESPHOME_PSTR("state"), this->state);
2397#ifdef USE_DEVICES
2398 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2399#endif
2400 return out.c_str();
2401}
2402#endif
2403#ifdef USE_DATETIME_DATE
2405 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesDateResponse"));
2406 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
2407 dump_field(out, ESPHOME_PSTR("key"), this->key);
2408 dump_field(out, ESPHOME_PSTR("name"), this->name);
2409#ifdef USE_ENTITY_ICON
2410 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
2411#endif
2412 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
2413 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
2414#ifdef USE_DEVICES
2415 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2416#endif
2417 return out.c_str();
2418}
2420 MessageDumpHelper helper(out, ESPHOME_PSTR("DateStateResponse"));
2421 dump_field(out, ESPHOME_PSTR("key"), this->key);
2422 dump_field(out, ESPHOME_PSTR("missing_state"), this->missing_state);
2423 dump_field(out, ESPHOME_PSTR("year"), this->year);
2424 dump_field(out, ESPHOME_PSTR("month"), this->month);
2425 dump_field(out, ESPHOME_PSTR("day"), this->day);
2426#ifdef USE_DEVICES
2427 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2428#endif
2429 return out.c_str();
2430}
2432 MessageDumpHelper helper(out, ESPHOME_PSTR("DateCommandRequest"));
2433 dump_field(out, ESPHOME_PSTR("key"), this->key);
2434 dump_field(out, ESPHOME_PSTR("year"), this->year);
2435 dump_field(out, ESPHOME_PSTR("month"), this->month);
2436 dump_field(out, ESPHOME_PSTR("day"), this->day);
2437#ifdef USE_DEVICES
2438 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2439#endif
2440 return out.c_str();
2441}
2442#endif
2443#ifdef USE_DATETIME_TIME
2445 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesTimeResponse"));
2446 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
2447 dump_field(out, ESPHOME_PSTR("key"), this->key);
2448 dump_field(out, ESPHOME_PSTR("name"), this->name);
2449#ifdef USE_ENTITY_ICON
2450 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
2451#endif
2452 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
2453 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
2454#ifdef USE_DEVICES
2455 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2456#endif
2457 return out.c_str();
2458}
2460 MessageDumpHelper helper(out, ESPHOME_PSTR("TimeStateResponse"));
2461 dump_field(out, ESPHOME_PSTR("key"), this->key);
2462 dump_field(out, ESPHOME_PSTR("missing_state"), this->missing_state);
2463 dump_field(out, ESPHOME_PSTR("hour"), this->hour);
2464 dump_field(out, ESPHOME_PSTR("minute"), this->minute);
2465 dump_field(out, ESPHOME_PSTR("second"), this->second);
2466#ifdef USE_DEVICES
2467 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2468#endif
2469 return out.c_str();
2470}
2472 MessageDumpHelper helper(out, ESPHOME_PSTR("TimeCommandRequest"));
2473 dump_field(out, ESPHOME_PSTR("key"), this->key);
2474 dump_field(out, ESPHOME_PSTR("hour"), this->hour);
2475 dump_field(out, ESPHOME_PSTR("minute"), this->minute);
2476 dump_field(out, ESPHOME_PSTR("second"), this->second);
2477#ifdef USE_DEVICES
2478 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2479#endif
2480 return out.c_str();
2481}
2482#endif
2483#ifdef USE_EVENT
2485 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesEventResponse"));
2486 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
2487 dump_field(out, ESPHOME_PSTR("key"), this->key);
2488 dump_field(out, ESPHOME_PSTR("name"), this->name);
2489#ifdef USE_ENTITY_ICON
2490 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
2491#endif
2492 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
2493 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
2494 dump_field(out, ESPHOME_PSTR("device_class"), this->device_class);
2495 for (const auto &it : *this->event_types) {
2496 dump_field(out, ESPHOME_PSTR("event_types"), it, 4);
2497 }
2498#ifdef USE_DEVICES
2499 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2500#endif
2501 return out.c_str();
2502}
2503const char *EventResponse::dump_to(DumpBuffer &out) const {
2504 MessageDumpHelper helper(out, ESPHOME_PSTR("EventResponse"));
2505 dump_field(out, ESPHOME_PSTR("key"), this->key);
2506 dump_field(out, ESPHOME_PSTR("event_type"), this->event_type);
2507#ifdef USE_DEVICES
2508 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2509#endif
2510 return out.c_str();
2511}
2512#endif
2513#ifdef USE_VALVE
2515 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesValveResponse"));
2516 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
2517 dump_field(out, ESPHOME_PSTR("key"), this->key);
2518 dump_field(out, ESPHOME_PSTR("name"), this->name);
2519#ifdef USE_ENTITY_ICON
2520 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
2521#endif
2522 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
2523 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
2524 dump_field(out, ESPHOME_PSTR("device_class"), this->device_class);
2525 dump_field(out, ESPHOME_PSTR("assumed_state"), this->assumed_state);
2526 dump_field(out, ESPHOME_PSTR("supports_position"), this->supports_position);
2527 dump_field(out, ESPHOME_PSTR("supports_stop"), this->supports_stop);
2528#ifdef USE_DEVICES
2529 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2530#endif
2531 return out.c_str();
2532}
2534 MessageDumpHelper helper(out, ESPHOME_PSTR("ValveStateResponse"));
2535 dump_field(out, ESPHOME_PSTR("key"), this->key);
2536 dump_field(out, ESPHOME_PSTR("position"), this->position);
2537 dump_field(out, ESPHOME_PSTR("current_operation"), static_cast<enums::ValveOperation>(this->current_operation));
2538#ifdef USE_DEVICES
2539 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2540#endif
2541 return out.c_str();
2542}
2544 MessageDumpHelper helper(out, ESPHOME_PSTR("ValveCommandRequest"));
2545 dump_field(out, ESPHOME_PSTR("key"), this->key);
2546 dump_field(out, ESPHOME_PSTR("has_position"), this->has_position);
2547 dump_field(out, ESPHOME_PSTR("position"), this->position);
2548 dump_field(out, ESPHOME_PSTR("stop"), this->stop);
2549#ifdef USE_DEVICES
2550 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2551#endif
2552 return out.c_str();
2553}
2554#endif
2555#ifdef USE_DATETIME_DATETIME
2557 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesDateTimeResponse"));
2558 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
2559 dump_field(out, ESPHOME_PSTR("key"), this->key);
2560 dump_field(out, ESPHOME_PSTR("name"), this->name);
2561#ifdef USE_ENTITY_ICON
2562 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
2563#endif
2564 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
2565 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
2566#ifdef USE_DEVICES
2567 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2568#endif
2569 return out.c_str();
2570}
2572 MessageDumpHelper helper(out, ESPHOME_PSTR("DateTimeStateResponse"));
2573 dump_field(out, ESPHOME_PSTR("key"), this->key);
2574 dump_field(out, ESPHOME_PSTR("missing_state"), this->missing_state);
2575 dump_field(out, ESPHOME_PSTR("epoch_seconds"), this->epoch_seconds);
2576#ifdef USE_DEVICES
2577 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2578#endif
2579 return out.c_str();
2580}
2582 MessageDumpHelper helper(out, ESPHOME_PSTR("DateTimeCommandRequest"));
2583 dump_field(out, ESPHOME_PSTR("key"), this->key);
2584 dump_field(out, ESPHOME_PSTR("epoch_seconds"), this->epoch_seconds);
2585#ifdef USE_DEVICES
2586 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2587#endif
2588 return out.c_str();
2589}
2590#endif
2591#ifdef USE_UPDATE
2593 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesUpdateResponse"));
2594 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
2595 dump_field(out, ESPHOME_PSTR("key"), this->key);
2596 dump_field(out, ESPHOME_PSTR("name"), this->name);
2597#ifdef USE_ENTITY_ICON
2598 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
2599#endif
2600 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
2601 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
2602 dump_field(out, ESPHOME_PSTR("device_class"), this->device_class);
2603#ifdef USE_DEVICES
2604 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2605#endif
2606 return out.c_str();
2607}
2609 MessageDumpHelper helper(out, ESPHOME_PSTR("UpdateStateResponse"));
2610 dump_field(out, ESPHOME_PSTR("key"), this->key);
2611 dump_field(out, ESPHOME_PSTR("missing_state"), this->missing_state);
2612 dump_field(out, ESPHOME_PSTR("in_progress"), this->in_progress);
2613 dump_field(out, ESPHOME_PSTR("has_progress"), this->has_progress);
2614 dump_field(out, ESPHOME_PSTR("progress"), this->progress);
2615 dump_field(out, ESPHOME_PSTR("current_version"), this->current_version);
2616 dump_field(out, ESPHOME_PSTR("latest_version"), this->latest_version);
2617 dump_field(out, ESPHOME_PSTR("title"), this->title);
2618 dump_field(out, ESPHOME_PSTR("release_summary"), this->release_summary);
2619 dump_field(out, ESPHOME_PSTR("release_url"), this->release_url);
2620#ifdef USE_DEVICES
2621 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2622#endif
2623 return out.c_str();
2624}
2626 MessageDumpHelper helper(out, ESPHOME_PSTR("UpdateCommandRequest"));
2627 dump_field(out, ESPHOME_PSTR("key"), this->key);
2628 dump_field(out, ESPHOME_PSTR("command"), static_cast<enums::UpdateCommand>(this->command));
2629#ifdef USE_DEVICES
2630 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2631#endif
2632 return out.c_str();
2633}
2634#endif
2635#ifdef USE_ZWAVE_PROXY
2636const char *ZWaveProxyFrame::dump_to(DumpBuffer &out) const {
2637 MessageDumpHelper helper(out, ESPHOME_PSTR("ZWaveProxyFrame"));
2638 dump_bytes_field(out, ESPHOME_PSTR("data"), this->data, this->data_len);
2639 return out.c_str();
2640}
2642 MessageDumpHelper helper(out, ESPHOME_PSTR("ZWaveProxyRequest"));
2643 dump_field(out, ESPHOME_PSTR("type"), static_cast<enums::ZWaveProxyRequestType>(this->type));
2644 dump_bytes_field(out, ESPHOME_PSTR("data"), this->data, this->data_len);
2645 return out.c_str();
2646}
2647#endif
2648#ifdef USE_INFRARED
2650 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesInfraredResponse"));
2651 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
2652 dump_field(out, ESPHOME_PSTR("key"), this->key);
2653 dump_field(out, ESPHOME_PSTR("name"), this->name);
2654#ifdef USE_ENTITY_ICON
2655 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
2656#endif
2657 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
2658 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
2659#ifdef USE_DEVICES
2660 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2661#endif
2662 dump_field(out, ESPHOME_PSTR("capabilities"), this->capabilities);
2663 dump_field(out, ESPHOME_PSTR("receiver_frequency"), this->receiver_frequency);
2664 return out.c_str();
2665}
2666#endif
2667#if defined(USE_IR_RF) || defined(USE_RADIO_FREQUENCY)
2669 MessageDumpHelper helper(out, ESPHOME_PSTR("InfraredRFTransmitRawTimingsRequest"));
2670#ifdef USE_DEVICES
2671 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2672#endif
2673 dump_field(out, ESPHOME_PSTR("key"), this->key);
2674 dump_field(out, ESPHOME_PSTR("carrier_frequency"), this->carrier_frequency);
2675 dump_field(out, ESPHOME_PSTR("repeat_count"), this->repeat_count);
2676 out.append(2, ' ').append_p(ESPHOME_PSTR("timings")).append(": ");
2677 out.append_p(ESPHOME_PSTR("packed buffer ["));
2678 append_uint(out, this->timings_count_);
2679 out.append_p(ESPHOME_PSTR(" values, "));
2680 append_uint(out, this->timings_length_);
2681 out.append_p(ESPHOME_PSTR(" bytes]\n"));
2682 dump_field(out, ESPHOME_PSTR("modulation"), this->modulation);
2683 return out.c_str();
2684}
2686 MessageDumpHelper helper(out, ESPHOME_PSTR("InfraredRFReceiveEvent"));
2687#ifdef USE_DEVICES
2688 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2689#endif
2690 dump_field(out, ESPHOME_PSTR("key"), this->key);
2691 for (const auto &it : *this->timings) {
2692 dump_field(out, ESPHOME_PSTR("timings"), it, 4);
2693 }
2694 return out.c_str();
2695}
2696#endif
2697#ifdef USE_RADIO_FREQUENCY
2699 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesRadioFrequencyResponse"));
2700 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
2701 dump_field(out, ESPHOME_PSTR("key"), this->key);
2702 dump_field(out, ESPHOME_PSTR("name"), this->name);
2703#ifdef USE_ENTITY_ICON
2704 dump_field(out, ESPHOME_PSTR("icon"), this->icon);
2705#endif
2706 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
2707 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
2708#ifdef USE_DEVICES
2709 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2710#endif
2711 dump_field(out, ESPHOME_PSTR("capabilities"), this->capabilities);
2712 dump_field(out, ESPHOME_PSTR("frequency_min"), this->frequency_min);
2713 dump_field(out, ESPHOME_PSTR("frequency_max"), this->frequency_max);
2714 dump_field(out, ESPHOME_PSTR("supported_modulations"), this->supported_modulations);
2715 return out.c_str();
2716}
2717#endif
2718#ifdef USE_SERIAL_PROXY
2720 MessageDumpHelper helper(out, ESPHOME_PSTR("SerialProxyConfigureRequest"));
2721 dump_field(out, ESPHOME_PSTR("instance"), this->instance);
2722 dump_field(out, ESPHOME_PSTR("baudrate"), this->baudrate);
2723 dump_field(out, ESPHOME_PSTR("flow_control"), this->flow_control);
2724 dump_field(out, ESPHOME_PSTR("parity"), static_cast<enums::SerialProxyParity>(this->parity));
2725 dump_field(out, ESPHOME_PSTR("stop_bits"), this->stop_bits);
2726 dump_field(out, ESPHOME_PSTR("data_size"), this->data_size);
2727 return out.c_str();
2728}
2730 MessageDumpHelper helper(out, ESPHOME_PSTR("SerialProxyDataReceived"));
2731 dump_field(out, ESPHOME_PSTR("instance"), this->instance);
2732 dump_bytes_field(out, ESPHOME_PSTR("data"), this->data_ptr_, this->data_len_);
2733 return out.c_str();
2734}
2736 MessageDumpHelper helper(out, ESPHOME_PSTR("SerialProxyWriteRequest"));
2737 dump_field(out, ESPHOME_PSTR("instance"), this->instance);
2738 dump_bytes_field(out, ESPHOME_PSTR("data"), this->data, this->data_len);
2739 return out.c_str();
2740}
2742 MessageDumpHelper helper(out, ESPHOME_PSTR("SerialProxySetModemPinsRequest"));
2743 dump_field(out, ESPHOME_PSTR("instance"), this->instance);
2744 dump_field(out, ESPHOME_PSTR("line_states"), this->line_states);
2745 return out.c_str();
2746}
2748 MessageDumpHelper helper(out, ESPHOME_PSTR("SerialProxyGetModemPinsRequest"));
2749 dump_field(out, ESPHOME_PSTR("instance"), this->instance);
2750 return out.c_str();
2751}
2753 MessageDumpHelper helper(out, ESPHOME_PSTR("SerialProxyGetModemPinsResponse"));
2754 dump_field(out, ESPHOME_PSTR("instance"), this->instance);
2755 dump_field(out, ESPHOME_PSTR("line_states"), this->line_states);
2756 return out.c_str();
2757}
2759 MessageDumpHelper helper(out, ESPHOME_PSTR("SerialProxyRequest"));
2760 dump_field(out, ESPHOME_PSTR("instance"), this->instance);
2761 dump_field(out, ESPHOME_PSTR("type"), static_cast<enums::SerialProxyRequestType>(this->type));
2762 return out.c_str();
2763}
2765 MessageDumpHelper helper(out, ESPHOME_PSTR("SerialProxyRequestResponse"));
2766 dump_field(out, ESPHOME_PSTR("instance"), this->instance);
2767 dump_field(out, ESPHOME_PSTR("type"), static_cast<enums::SerialProxyRequestType>(this->type));
2768 dump_field(out, ESPHOME_PSTR("status"), static_cast<enums::SerialProxyStatus>(this->status));
2769 dump_field(out, ESPHOME_PSTR("error_message"), this->error_message);
2770 return out.c_str();
2771}
2772#endif
2773#ifdef USE_BLUETOOTH_PROXY_CONNECTIONS
2775 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothSetConnectionParamsRequest"));
2776 dump_field(out, ESPHOME_PSTR("address"), this->address);
2777 dump_field(out, ESPHOME_PSTR("min_interval"), this->min_interval);
2778 dump_field(out, ESPHOME_PSTR("max_interval"), this->max_interval);
2779 dump_field(out, ESPHOME_PSTR("latency"), this->latency);
2780 dump_field(out, ESPHOME_PSTR("timeout"), this->timeout);
2781 return out.c_str();
2782}
2784 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothSetConnectionParamsResponse"));
2785 dump_field(out, ESPHOME_PSTR("address"), this->address);
2786 dump_field(out, ESPHOME_PSTR("error"), this->error);
2787 return out.c_str();
2788}
2789#endif
2790
2791} // namespace esphome::api
2792
2793#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:2720
const char * dump_to(DumpBuffer &out) const override
enums::AlarmControlPanelState state
Definition api_pb2.h:2704
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:2276
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:2014
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
FixedVector< BluetoothGATTDescriptor > descriptors
Definition api_pb2.h:2076
const char * dump_to(DumpBuffer &out) const override
std::array< uint64_t, 2 > uuid
Definition api_pb2.h:2073
std::array< uint64_t, 2 > uuid
Definition api_pb2.h:2060
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:2108
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:2090
const char * dump_to(DumpBuffer &out) const override
std::array< uint64_t, 2 > uuid
Definition api_pb2.h:2088
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:1994
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
enums::BluetoothScannerMode mode
Definition api_pb2.h:2418
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
enums::BluetoothScannerMode mode
Definition api_pb2.h:2401
enums::BluetoothScannerState state
Definition api_pb2.h:2400
enums::BluetoothScannerMode configured_mode
Definition api_pb2.h:2402
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:1540
enums::ClimateFanMode fan_mode
Definition api_pb2.h:1538
enums::ClimatePreset preset
Definition api_pb2.h:1544
enums::ClimateFanMode fan_mode
Definition api_pb2.h:1507
enums::ClimateSwingMode swing_mode
Definition api_pb2.h:1508
const char * dump_to(DumpBuffer &out) const override
enums::ClimateAction action
Definition api_pb2.h:1506
enums::ClimatePreset preset
Definition api_pb2.h:1510
const char * dump_to(DumpBuffer &out) const override
enums::CoverOperation current_operation
Definition api_pb2.h:752
const char * dump_to(DumpBuffer &out) const override
enums::DSTRuleType type
Definition api_pb2.h:1258
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:663
VoiceAssistantCapabilities voice_assistant
Definition api_pb2.h:657
ZWaveProxyCapabilities zwave_proxy
Definition api_pb2.h:660
const char * dump_to(DumpBuffer &out) const override
BluetoothProxyCapabilities bluetooth_proxy
Definition api_pb2.h:654
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:580
std::array< SerialProxyInfo, SERIAL_PROXY_COUNT > serial_proxies
Definition api_pb2.h:592
std::array< DeviceInfo, ESPHOME_DEVICE_COUNT > devices
Definition api_pb2.h:577
const char * dump_to(DumpBuffer &out) const override
enums::DisconnectReason reason
Definition api_pb2.h:443
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:1342
FixedVector< std::string > string_array
Definition api_pb2.h:1343
FixedVector< int32_t > int_array
Definition api_pb2.h:1341
const char * dump_to(DumpBuffer &out) const override
FixedVector< ExecuteServiceArgument > args
Definition api_pb2.h:1362
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:835
enums::FanDirection direction
Definition api_pb2.h:812
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:1292
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
FixedVector< HomeassistantServiceMap > variables
Definition api_pb2.h:1160
FixedVector< HomeassistantServiceMap > data_template
Definition api_pb2.h:1159
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:369
const std::vector< int32_t > * timings
Definition api_pb2.h:3191
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:879
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:1478
const climate::ClimateSwingModeMask * supported_swing_modes
Definition api_pb2.h:1475
enums::TemperatureUnit temperature_unit
Definition api_pb2.h:1485
const std::vector< const char * > * supported_custom_fan_modes
Definition api_pb2.h:1476
const climate::ClimatePresetMask * supported_presets
Definition api_pb2.h:1477
const climate::ClimateFanModeMask * supported_fan_modes
Definition api_pb2.h:1474
const char * dump_to(DumpBuffer &out) const override
const climate::ClimateModeMask * supported_modes
Definition api_pb2.h:1469
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:2904
const char * dump_to(DumpBuffer &out) const override
const std::vector< const char * > * supported_preset_modes
Definition api_pb2.h:794
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:861
const light::ColorModeMask * supported_color_modes
Definition api_pb2.h:858
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:1905
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:1688
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
enums::SensorStateClass state_class
Definition api_pb2.h:952
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
enums::SupportsResponseType supports_response
Definition api_pb2.h:1324
FixedVector< ListEntitiesServicesArgument > args
Definition api_pb2.h:1323
const char * dump_to(DumpBuffer &out) const override
const FixedVector< const char * > * tones
Definition api_pb2.h:1740
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:1570
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
enums::LockCommand command
Definition api_pb2.h:1835
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
enums::MediaPlayerCommand command
Definition api_pb2.h:1941
enums::MediaPlayerState state
Definition api_pb2.h:1922
const char * dump_to(DumpBuffer &out) const override
enums::MediaPlayerFormatPurpose purpose
Definition api_pb2.h:1887
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:3233
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:525
const char * dump_to(DumpBuffer &out) const override
enums::SerialProxyRequestType type
Definition api_pb2.h:3339
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
enums::SerialProxyRequestType type
Definition api_pb2.h:3355
enums::SerialProxyStatus status
Definition api_pb2.h:3356
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:3084
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:2958
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:2636
std::vector< VoiceAssistantWakeWord > available_wake_words
Definition api_pb2.h:2651
const std::vector< std::string > * active_wake_words
Definition api_pb2.h:2652
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:2511
const char * dump_to(DumpBuffer &out) const override
std::vector< std::string > trained_languages
Definition api_pb2.h:2616
const char * dump_to(DumpBuffer &out) const override
VoiceAssistantAudioSettings audio_settings
Definition api_pb2.h:2467
const char * dump_to(DumpBuffer &out) const override
std::vector< std::string > active_wake_words
Definition api_pb2.h:2669
const char * dump_to(DumpBuffer &out) const override
enums::VoiceAssistantTimerEvent event_type
Definition api_pb2.h:2550
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:2603
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:3120
const char * dump_to(DumpBuffer &out) const override
@ MEDIA_PLAYER_STATE_ANNOUNCING
Definition api_pb2.h:203
@ ALARM_STATE_ARMED_CUSTOM_BYPASS
Definition api_pb2.h:295
@ SERVICE_ARG_TYPE_BOOL_ARRAY
Definition api_pb2.h:87
@ SERVICE_ARG_TYPE_STRING_ARRAY
Definition api_pb2.h:90
@ SERVICE_ARG_TYPE_FLOAT_ARRAY
Definition api_pb2.h:89
@ SERIAL_PROXY_PORT_TYPE_RS232
Definition api_pb2.h:20
@ SERIAL_PROXY_PORT_TYPE_RS485
Definition api_pb2.h:21
@ VOICE_ASSISTANT_REQUEST_USE_WAKE_WORD
Definition api_pb2.h:260
@ VOICE_ASSISTANT_REQUEST_USE_VAD
Definition api_pb2.h:259
@ WATER_HEATER_MODE_PERFORMANCE
Definition api_pb2.h:157
@ WATER_HEATER_MODE_HIGH_DEMAND
Definition api_pb2.h:158
@ SERIAL_PROXY_REQUEST_TYPE_UNSUBSCRIBE
Definition api_pb2.h:346
@ SERIAL_PROXY_REQUEST_TYPE_FLUSH
Definition api_pb2.h:347
@ SERIAL_PROXY_REQUEST_TYPE_SUBSCRIBE
Definition api_pb2.h:345
@ MEDIA_PLAYER_FORMAT_PURPOSE_ANNOUNCEMENT
Definition api_pb2.h:225
@ MEDIA_PLAYER_FORMAT_PURPOSE_DEFAULT
Definition api_pb2.h:224
@ COLOR_MODE_LEGACY_BRIGHTNESS
Definition api_pb2.h:45
@ COLOR_MODE_RGB_COLOR_TEMPERATURE
Definition api_pb2.h:52
@ COLOR_MODE_COLOR_TEMPERATURE
Definition api_pb2.h:48
@ COLOR_MODE_RGB_COLD_WARM_WHITE
Definition api_pb2.h:53
@ VOICE_ASSISTANT_TIMER_UPDATED
Definition api_pb2.h:283
@ VOICE_ASSISTANT_TIMER_STARTED
Definition api_pb2.h:282
@ VOICE_ASSISTANT_TIMER_FINISHED
Definition api_pb2.h:285
@ VOICE_ASSISTANT_TIMER_CANCELLED
Definition api_pb2.h:284
@ MEDIA_PLAYER_COMMAND_REPEAT_ONE
Definition api_pb2.h:217
@ MEDIA_PLAYER_COMMAND_REPEAT_OFF
Definition api_pb2.h:218
@ MEDIA_PLAYER_COMMAND_VOLUME_DOWN
Definition api_pb2.h:215
@ MEDIA_PLAYER_COMMAND_VOLUME_UP
Definition api_pb2.h:214
@ MEDIA_PLAYER_COMMAND_TURN_OFF
Definition api_pb2.h:221
@ MEDIA_PLAYER_COMMAND_CLEAR_PLAYLIST
Definition api_pb2.h:219
@ VOICE_ASSISTANT_WAKE_WORD_START
Definition api_pb2.h:273
@ VOICE_ASSISTANT_TTS_STREAM_END
Definition api_pb2.h:278
@ VOICE_ASSISTANT_STT_VAD_START
Definition api_pb2.h:275
@ VOICE_ASSISTANT_INTENT_PROGRESS
Definition api_pb2.h:279
@ VOICE_ASSISTANT_TTS_STREAM_START
Definition api_pb2.h:277
@ VOICE_ASSISTANT_WAKE_WORD_END
Definition api_pb2.h:274
@ SERIAL_PROXY_STATUS_ASSUMED_SUCCESS
Definition api_pb2.h:351
@ SERIAL_PROXY_STATUS_NOT_SUPPORTED
Definition api_pb2.h:354
@ DISCONNECT_REASON_PROVISIONING_CLOSED
Definition api_pb2.h:16
@ DISCONNECT_REASON_UNSPECIFIED
Definition api_pb2.h:15
@ BLUETOOTH_DEVICE_REQUEST_TYPE_UNPAIR
Definition api_pb2.h:233
@ BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT_V3_WITH_CACHE
Definition api_pb2.h:234
@ BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT
Definition api_pb2.h:230
@ BLUETOOTH_DEVICE_REQUEST_TYPE_PAIR
Definition api_pb2.h:232
@ BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT_V3_WITHOUT_CACHE
Definition api_pb2.h:235
@ BLUETOOTH_DEVICE_REQUEST_TYPE_CLEAR_CACHE
Definition api_pb2.h:236
@ BLUETOOTH_DEVICE_REQUEST_TYPE_DISCONNECT
Definition api_pb2.h:231
@ BLUETOOTH_SCANNER_MODE_PASSIVE
Definition api_pb2.h:249
@ BLUETOOTH_SCANNER_MODE_ACTIVE
Definition api_pb2.h:250
@ BLUETOOTH_SCANNER_STATE_STOPPED
Definition api_pb2.h:246
@ BLUETOOTH_SCANNER_STATE_STARTING
Definition api_pb2.h:242
@ BLUETOOTH_SCANNER_STATE_STOPPING
Definition api_pb2.h:245
@ BLUETOOTH_SCANNER_STATE_RUNNING
Definition api_pb2.h:243
@ BLUETOOTH_SCANNER_STATE_FAILED
Definition api_pb2.h:244
@ DST_RULE_TYPE_MONTH_WEEK_DAY
Definition api_pb2.h:77
@ DST_RULE_TYPE_JULIAN_NO_LEAP
Definition api_pb2.h:78
@ WATER_HEATER_COMMAND_HAS_ON_STATE
Definition api_pb2.h:170
@ WATER_HEATER_COMMAND_HAS_NONE
Definition api_pb2.h:164
@ WATER_HEATER_COMMAND_HAS_STATE
Definition api_pb2.h:167
@ WATER_HEATER_COMMAND_HAS_AWAY_STATE
Definition api_pb2.h:171
@ WATER_HEATER_COMMAND_HAS_TARGET_TEMPERATURE_LOW
Definition api_pb2.h:168
@ WATER_HEATER_COMMAND_HAS_TARGET_TEMPERATURE
Definition api_pb2.h:166
@ WATER_HEATER_COMMAND_HAS_MODE
Definition api_pb2.h:165
@ WATER_HEATER_COMMAND_HAS_TARGET_TEMPERATURE_HIGH
Definition api_pb2.h:169
@ ZWAVE_PROXY_REQUEST_TYPE_SUBSCRIBE
Definition api_pb2.h:333
@ ZWAVE_PROXY_REQUEST_TYPE_UNSUBSCRIBE
Definition api_pb2.h:334
@ ZWAVE_PROXY_REQUEST_TYPE_HOME_ID_CHANGE
Definition api_pb2.h:335
@ ALARM_CONTROL_PANEL_ARM_NIGHT
Definition api_pb2.h:305
@ ALARM_CONTROL_PANEL_ARM_CUSTOM_BYPASS
Definition api_pb2.h:307
@ ALARM_CONTROL_PANEL_ARM_VACATION
Definition api_pb2.h:306
@ VOICE_ASSISTANT_SUBSCRIBE_API_AUDIO
Definition api_pb2.h:255
@ VOICE_ASSISTANT_SUBSCRIBE_NONE
Definition api_pb2.h:254
@ STATE_CLASS_TOTAL_INCREASING
Definition api_pb2.h:60
@ STATE_CLASS_MEASUREMENT_ANGLE
Definition api_pb2.h:62
const char * proto_enum_to_string< enums::AlarmControlPanelState >(enums::AlarmControlPanelState value)
const char * proto_enum_to_string< enums::TemperatureUnit >(enums::TemperatureUnit value)
const char * proto_enum_to_string< enums::VoiceAssistantEvent >(enums::VoiceAssistantEvent value)
const char * proto_enum_to_string< enums::MediaPlayerState >(enums::MediaPlayerState value)
const char * proto_enum_to_string(T value)
const char * proto_enum_to_string< enums::SerialProxyParity >(enums::SerialProxyParity value)
const char * proto_enum_to_string< enums::NumberMode >(enums::NumberMode value)
const char * proto_enum_to_string< enums::ServiceArgType >(enums::ServiceArgType value)
const char * proto_enum_to_string< enums::BluetoothScannerMode >(enums::BluetoothScannerMode value)
const char * proto_enum_to_string< enums::BluetoothScannerState >(enums::BluetoothScannerState value)
const char * proto_enum_to_string< enums::VoiceAssistantSubscribeFlag >(enums::VoiceAssistantSubscribeFlag value)
const char * proto_enum_to_string< enums::ColorMode >(enums::ColorMode value)
const char * proto_enum_to_string< enums::WaterHeaterCommandHasField >(enums::WaterHeaterCommandHasField value)
const char * proto_enum_to_string< enums::LogLevel >(enums::LogLevel value)
const char * proto_enum_to_string< enums::TextMode >(enums::TextMode value)
const char * proto_enum_to_string< enums::LockState >(enums::LockState value)
const char * proto_enum_to_string< enums::ClimateAction >(enums::ClimateAction value)
const char * proto_enum_to_string< enums::SerialProxyPortType >(enums::SerialProxyPortType value)
const char * proto_enum_to_string< enums::FanDirection >(enums::FanDirection value)
const char * proto_enum_to_string< enums::CoverOperation >(enums::CoverOperation value)
const char * proto_enum_to_string< enums::VoiceAssistantRequestFlag >(enums::VoiceAssistantRequestFlag value)
const char * proto_enum_to_string< enums::BluetoothDeviceRequestType >(enums::BluetoothDeviceRequestType value)
const char * proto_enum_to_string< enums::VoiceAssistantTimerEvent >(enums::VoiceAssistantTimerEvent value)
const char * proto_enum_to_string< enums::AlarmControlPanelStateCommand >(enums::AlarmControlPanelStateCommand value)
const char * proto_enum_to_string< enums::ClimatePreset >(enums::ClimatePreset value)
const char * proto_enum_to_string< enums::MediaPlayerFormatPurpose >(enums::MediaPlayerFormatPurpose value)
const char * proto_enum_to_string< enums::ClimateMode >(enums::ClimateMode value)
const char * proto_enum_to_string< enums::WaterHeaterMode >(enums::WaterHeaterMode value)
const char * proto_enum_to_string< enums::MediaPlayerCommand >(enums::MediaPlayerCommand value)
const char * proto_enum_to_string< enums::DisconnectReason >(enums::DisconnectReason value)
const char * proto_enum_to_string< enums::LockCommand >(enums::LockCommand value)
const char * proto_enum_to_string< enums::ZWaveProxyRequestType >(enums::ZWaveProxyRequestType value)
const char * proto_enum_to_string< enums::ValveOperation >(enums::ValveOperation value)
const char * proto_enum_to_string< enums::UpdateCommand >(enums::UpdateCommand value)
const char * proto_enum_to_string< enums::SerialProxyRequestType >(enums::SerialProxyRequestType value)
const char * proto_enum_to_string< enums::SupportsResponseType >(enums::SupportsResponseType value)
const char * proto_enum_to_string< enums::ClimateFanMode >(enums::ClimateFanMode value)
const char * proto_enum_to_string< enums::SerialProxyStatus >(enums::SerialProxyStatus value)
const char * proto_enum_to_string< enums::DSTRuleType >(enums::DSTRuleType value)
const char * proto_enum_to_string< enums::ClimateSwingMode >(enums::ClimateSwingMode value)
const char * proto_enum_to_string< enums::EntityCategory >(enums::EntityCategory value)
const char * proto_enum_to_string< enums::SensorStateClass >(enums::SensorStateClass value)
const void size_t len
Definition hal.h:64
char * format_hex_pretty_to(char *buffer, size_t buffer_size, const uint8_t *data, size_t length, char separator)
Format byte array as uppercase hex to buffer (base implementation).
Definition helpers.cpp:406
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:1426
static void uint32_t