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