ESPHome 2026.11.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) { this->append_p_esp8266(str, strlen_P(str)); }
16
17void DumpBuffer::append_p_esp8266(const char *str, size_t len) {
18 size_t space = CAPACITY - 1 - pos_;
19 if (len > space)
20 len = space;
21 if (len > 0) {
22 memcpy_P(buf_ + pos_, str, len);
23 pos_ += len;
24 buf_[pos_] = '\0';
25 }
26}
27#endif
28
29// Helper function to append a quoted string, handling empty StringRef
30static inline void append_quoted_string(DumpBuffer &out, const StringRef &ref) {
31 out.append("'");
32 if (!ref.empty()) {
33 out.append(ref.c_str(), ref.size());
34 }
35 out.append("'");
36}
37
38// Common helpers for dump_field functions
39// field_name is a PROGMEM pointer (flash on ESP8266, regular pointer on other platforms)
40static inline void append_field_prefix(DumpBuffer &out, const char *field_name, int indent) {
41 out.append(indent, ' ').append_p(field_name).append(": ");
42}
43
44static inline void append_uint(DumpBuffer &out, uint32_t value) {
45 out.set_pos(buf_append_printf(out.data(), DumpBuffer::CAPACITY, out.pos(), "%" PRIu32, value));
46}
47
48// RAII helper for message dump formatting
49// message_name is a PROGMEM pointer (flash on ESP8266, regular pointer on other platforms)
50class MessageDumpHelper {
51 public:
52 MessageDumpHelper(DumpBuffer &out, const char *message_name) : out_(out) {
53 out_.append_p(message_name);
54 out_.append(" {\n");
55 }
56 ~MessageDumpHelper() { out_.append(" }"); }
57
58 private:
59 DumpBuffer &out_;
60};
61
62// Helper functions to reduce code duplication in dump methods
63// field_name parameters are PROGMEM pointers (flash on ESP8266, regular pointers on other platforms)
64// Not all overloads are used in every build (depends on enabled components)
65#pragma GCC diagnostic push
66#pragma GCC diagnostic ignored "-Wunused-function"
67static void dump_field(DumpBuffer &out, const char *field_name, int32_t value, int indent = 2) {
68 append_field_prefix(out, field_name, indent);
69 out.set_pos(buf_append_printf(out.data(), DumpBuffer::CAPACITY, out.pos(), "%" PRId32 "\n", value));
70}
71
72static void dump_field(DumpBuffer &out, const char *field_name, uint32_t value, int indent = 2) {
73 append_field_prefix(out, field_name, indent);
74 out.set_pos(buf_append_printf(out.data(), DumpBuffer::CAPACITY, out.pos(), "%" PRIu32 "\n", value));
75}
76
77static void dump_field(DumpBuffer &out, const char *field_name, float value, int indent = 2) {
78 append_field_prefix(out, field_name, indent);
79 out.set_pos(buf_append_printf(out.data(), DumpBuffer::CAPACITY, out.pos(), "%g\n", value));
80}
81
82static void dump_field(DumpBuffer &out, const char *field_name, uint64_t value, int indent = 2) {
83 append_field_prefix(out, field_name, indent);
84 out.set_pos(buf_append_printf(out.data(), DumpBuffer::CAPACITY, out.pos(), "%" PRIu64 "\n", value));
85}
86
87static void dump_field(DumpBuffer &out, const char *field_name, bool value, int indent = 2) {
88 append_field_prefix(out, field_name, indent);
89 out.append(YESNO(value));
90 out.append("\n");
91}
92
93static void dump_field(DumpBuffer &out, const char *field_name, const std::string &value, int indent = 2) {
94 append_field_prefix(out, field_name, indent);
95 out.append("'").append(value.c_str()).append("'");
96 out.append("\n");
97}
98
99static void dump_field(DumpBuffer &out, const char *field_name, StringRef value, int indent = 2) {
100 append_field_prefix(out, field_name, indent);
101 append_quoted_string(out, value);
102 out.append("\n");
103}
104
105static void dump_field(DumpBuffer &out, const char *field_name, const char *value, int indent = 2) {
106 append_field_prefix(out, field_name, indent);
107 out.append("'").append(value).append("'");
108 out.append("\n");
109}
110
111// proto_enum_to_string returns PROGMEM pointers, so use append_p
112template<typename T> static void dump_field(DumpBuffer &out, const char *field_name, T value, int indent = 2) {
113 append_field_prefix(out, field_name, indent);
114 out.append_p(proto_enum_to_string<T>(value));
115 out.append("\n");
116}
117
118// Bytes shown by a bytes field dump: 160 bytes is 480 chars with separators, to fit a typical log buffer
119static constexpr size_t DUMP_BYTES_MAX = 160;
120
121// Helper for bytes fields - uses stack buffer to avoid heap allocation
122// field_name is a PROGMEM pointer (flash on ESP8266, regular pointer on other platforms)
123static void dump_bytes_field(DumpBuffer &out, const char *field_name, const uint8_t *data, size_t len, int indent = 2) {
124 char hex_buf[format_hex_pretty_size(DUMP_BYTES_MAX)];
125 append_field_prefix(out, field_name, indent);
126 format_hex_pretty_to(hex_buf, data, len);
127 out.append(hex_buf).append("\n");
128}
129
130// Helper for bytes fields in flash: copies the shown bytes out with progmem_memcpy first
131static void dump_progmem_bytes_field(DumpBuffer &out, const char *field_name, const uint8_t *data, size_t len,
132 int indent = 2) {
133 uint8_t data_buf[DUMP_BYTES_MAX];
134 len = std::min(len, sizeof(data_buf));
135 progmem_memcpy(data_buf, data, len);
136 dump_bytes_field(out, field_name, data_buf, len, indent);
137}
138
139// Helper for string fields in flash
140static void dump_progmem_string_field(DumpBuffer &out, const char *field_name, const ProgmemStringRef &value,
141 int indent = 2) {
142 append_field_prefix(out, field_name, indent);
143 out.append("'").append_p(value.progmem_ptr(), value.size()).append("'\n");
144}
145#pragma GCC diagnostic pop
146
148 switch (value) {
150 return ESPHOME_PSTR("DISCONNECT_REASON_UNSPECIFIED");
152 return ESPHOME_PSTR("DISCONNECT_REASON_PROVISIONING_CLOSED");
153 default:
154 return ESPHOME_PSTR("UNKNOWN");
155 }
156}
158 switch (value) {
160 return ESPHOME_PSTR("DEVICE_RELATION_VIA");
162 return ESPHOME_PSTR("DEVICE_RELATION_CHILD");
163 default:
164 return ESPHOME_PSTR("UNKNOWN");
165 }
166}
168 switch (value) {
170 return ESPHOME_PSTR("SERIAL_PROXY_PORT_TYPE_TTL");
172 return ESPHOME_PSTR("SERIAL_PROXY_PORT_TYPE_RS232");
174 return ESPHOME_PSTR("SERIAL_PROXY_PORT_TYPE_RS485");
176 return ESPHOME_PSTR("SERIAL_PROXY_PORT_TYPE_USB_SERIAL");
177 default:
178 return ESPHOME_PSTR("UNKNOWN");
179 }
180}
182 switch (value) {
184 return ESPHOME_PSTR("ENTITY_CATEGORY_NONE");
186 return ESPHOME_PSTR("ENTITY_CATEGORY_CONFIG");
188 return ESPHOME_PSTR("ENTITY_CATEGORY_DIAGNOSTIC");
189 default:
190 return ESPHOME_PSTR("UNKNOWN");
191 }
192}
193#ifdef USE_COVER
195 switch (value) {
197 return ESPHOME_PSTR("COVER_OPERATION_IDLE");
199 return ESPHOME_PSTR("COVER_OPERATION_IS_OPENING");
201 return ESPHOME_PSTR("COVER_OPERATION_IS_CLOSING");
202 default:
203 return ESPHOME_PSTR("UNKNOWN");
204 }
205}
206#endif
207#ifdef USE_FAN
209 switch (value) {
211 return ESPHOME_PSTR("FAN_DIRECTION_FORWARD");
213 return ESPHOME_PSTR("FAN_DIRECTION_REVERSE");
214 default:
215 return ESPHOME_PSTR("UNKNOWN");
216 }
217}
218#endif
219#ifdef USE_LIGHT
221 switch (value) {
223 return ESPHOME_PSTR("COLOR_MODE_UNKNOWN");
225 return ESPHOME_PSTR("COLOR_MODE_ON_OFF");
227 return ESPHOME_PSTR("COLOR_MODE_LEGACY_BRIGHTNESS");
229 return ESPHOME_PSTR("COLOR_MODE_BRIGHTNESS");
231 return ESPHOME_PSTR("COLOR_MODE_WHITE");
233 return ESPHOME_PSTR("COLOR_MODE_COLOR_TEMPERATURE");
235 return ESPHOME_PSTR("COLOR_MODE_COLD_WARM_WHITE");
237 return ESPHOME_PSTR("COLOR_MODE_RGB");
239 return ESPHOME_PSTR("COLOR_MODE_RGB_WHITE");
241 return ESPHOME_PSTR("COLOR_MODE_RGB_COLOR_TEMPERATURE");
243 return ESPHOME_PSTR("COLOR_MODE_RGB_COLD_WARM_WHITE");
244 default:
245 return ESPHOME_PSTR("UNKNOWN");
246 }
247}
248#endif
249#ifdef USE_SENSOR
251 switch (value) {
253 return ESPHOME_PSTR("STATE_CLASS_NONE");
255 return ESPHOME_PSTR("STATE_CLASS_MEASUREMENT");
257 return ESPHOME_PSTR("STATE_CLASS_TOTAL_INCREASING");
259 return ESPHOME_PSTR("STATE_CLASS_TOTAL");
261 return ESPHOME_PSTR("STATE_CLASS_MEASUREMENT_ANGLE");
262 default:
263 return ESPHOME_PSTR("UNKNOWN");
264 }
265}
266#endif
268 switch (value) {
270 return ESPHOME_PSTR("LOG_LEVEL_NONE");
272 return ESPHOME_PSTR("LOG_LEVEL_ERROR");
274 return ESPHOME_PSTR("LOG_LEVEL_WARN");
276 return ESPHOME_PSTR("LOG_LEVEL_INFO");
278 return ESPHOME_PSTR("LOG_LEVEL_CONFIG");
280 return ESPHOME_PSTR("LOG_LEVEL_DEBUG");
282 return ESPHOME_PSTR("LOG_LEVEL_VERBOSE");
284 return ESPHOME_PSTR("LOG_LEVEL_VERY_VERBOSE");
285 default:
286 return ESPHOME_PSTR("UNKNOWN");
287 }
288}
290 switch (value) {
292 return ESPHOME_PSTR("DST_RULE_TYPE_NONE");
294 return ESPHOME_PSTR("DST_RULE_TYPE_MONTH_WEEK_DAY");
296 return ESPHOME_PSTR("DST_RULE_TYPE_JULIAN_NO_LEAP");
298 return ESPHOME_PSTR("DST_RULE_TYPE_DAY_OF_YEAR");
299 default:
300 return ESPHOME_PSTR("UNKNOWN");
301 }
302}
303#ifdef USE_API_USER_DEFINED_ACTIONS
305 switch (value) {
307 return ESPHOME_PSTR("SERVICE_ARG_TYPE_BOOL");
309 return ESPHOME_PSTR("SERVICE_ARG_TYPE_INT");
311 return ESPHOME_PSTR("SERVICE_ARG_TYPE_FLOAT");
313 return ESPHOME_PSTR("SERVICE_ARG_TYPE_STRING");
315 return ESPHOME_PSTR("SERVICE_ARG_TYPE_BOOL_ARRAY");
317 return ESPHOME_PSTR("SERVICE_ARG_TYPE_INT_ARRAY");
319 return ESPHOME_PSTR("SERVICE_ARG_TYPE_FLOAT_ARRAY");
321 return ESPHOME_PSTR("SERVICE_ARG_TYPE_STRING_ARRAY");
322 default:
323 return ESPHOME_PSTR("UNKNOWN");
324 }
325}
327 switch (value) {
329 return ESPHOME_PSTR("SUPPORTS_RESPONSE_NONE");
331 return ESPHOME_PSTR("SUPPORTS_RESPONSE_OPTIONAL");
333 return ESPHOME_PSTR("SUPPORTS_RESPONSE_ONLY");
335 return ESPHOME_PSTR("SUPPORTS_RESPONSE_STATUS");
336 default:
337 return ESPHOME_PSTR("UNKNOWN");
338 }
339}
340#endif
342 switch (value) {
344 return ESPHOME_PSTR("TEMPERATURE_UNIT_CELSIUS");
346 return ESPHOME_PSTR("TEMPERATURE_UNIT_FAHRENHEIT");
348 return ESPHOME_PSTR("TEMPERATURE_UNIT_KELVIN");
349 default:
350 return ESPHOME_PSTR("UNKNOWN");
351 }
352}
353#ifdef USE_CLIMATE
355 switch (value) {
357 return ESPHOME_PSTR("CLIMATE_MODE_OFF");
359 return ESPHOME_PSTR("CLIMATE_MODE_HEAT_COOL");
361 return ESPHOME_PSTR("CLIMATE_MODE_COOL");
363 return ESPHOME_PSTR("CLIMATE_MODE_HEAT");
365 return ESPHOME_PSTR("CLIMATE_MODE_FAN_ONLY");
367 return ESPHOME_PSTR("CLIMATE_MODE_DRY");
369 return ESPHOME_PSTR("CLIMATE_MODE_AUTO");
370 default:
371 return ESPHOME_PSTR("UNKNOWN");
372 }
373}
375 switch (value) {
377 return ESPHOME_PSTR("CLIMATE_FAN_ON");
379 return ESPHOME_PSTR("CLIMATE_FAN_OFF");
381 return ESPHOME_PSTR("CLIMATE_FAN_AUTO");
383 return ESPHOME_PSTR("CLIMATE_FAN_LOW");
385 return ESPHOME_PSTR("CLIMATE_FAN_MEDIUM");
387 return ESPHOME_PSTR("CLIMATE_FAN_HIGH");
389 return ESPHOME_PSTR("CLIMATE_FAN_MIDDLE");
391 return ESPHOME_PSTR("CLIMATE_FAN_FOCUS");
393 return ESPHOME_PSTR("CLIMATE_FAN_DIFFUSE");
395 return ESPHOME_PSTR("CLIMATE_FAN_QUIET");
396 default:
397 return ESPHOME_PSTR("UNKNOWN");
398 }
399}
401 switch (value) {
403 return ESPHOME_PSTR("CLIMATE_SWING_OFF");
405 return ESPHOME_PSTR("CLIMATE_SWING_BOTH");
407 return ESPHOME_PSTR("CLIMATE_SWING_VERTICAL");
409 return ESPHOME_PSTR("CLIMATE_SWING_HORIZONTAL");
410 default:
411 return ESPHOME_PSTR("UNKNOWN");
412 }
413}
415 switch (value) {
417 return ESPHOME_PSTR("CLIMATE_ACTION_OFF");
419 return ESPHOME_PSTR("CLIMATE_ACTION_COOLING");
421 return ESPHOME_PSTR("CLIMATE_ACTION_HEATING");
423 return ESPHOME_PSTR("CLIMATE_ACTION_IDLE");
425 return ESPHOME_PSTR("CLIMATE_ACTION_DRYING");
427 return ESPHOME_PSTR("CLIMATE_ACTION_FAN");
429 return ESPHOME_PSTR("CLIMATE_ACTION_DEFROSTING");
430 default:
431 return ESPHOME_PSTR("UNKNOWN");
432 }
433}
435 switch (value) {
437 return ESPHOME_PSTR("CLIMATE_PRESET_NONE");
439 return ESPHOME_PSTR("CLIMATE_PRESET_HOME");
441 return ESPHOME_PSTR("CLIMATE_PRESET_AWAY");
443 return ESPHOME_PSTR("CLIMATE_PRESET_BOOST");
445 return ESPHOME_PSTR("CLIMATE_PRESET_COMFORT");
447 return ESPHOME_PSTR("CLIMATE_PRESET_ECO");
449 return ESPHOME_PSTR("CLIMATE_PRESET_SLEEP");
451 return ESPHOME_PSTR("CLIMATE_PRESET_ACTIVITY");
452 default:
453 return ESPHOME_PSTR("UNKNOWN");
454 }
455}
456#endif
457#ifdef USE_WATER_HEATER
459 switch (value) {
461 return ESPHOME_PSTR("WATER_HEATER_MODE_OFF");
463 return ESPHOME_PSTR("WATER_HEATER_MODE_ECO");
465 return ESPHOME_PSTR("WATER_HEATER_MODE_ELECTRIC");
467 return ESPHOME_PSTR("WATER_HEATER_MODE_PERFORMANCE");
469 return ESPHOME_PSTR("WATER_HEATER_MODE_HIGH_DEMAND");
471 return ESPHOME_PSTR("WATER_HEATER_MODE_HEAT_PUMP");
473 return ESPHOME_PSTR("WATER_HEATER_MODE_GAS");
474 default:
475 return ESPHOME_PSTR("UNKNOWN");
476 }
477}
478#endif
479template<>
481 switch (value) {
483 return ESPHOME_PSTR("WATER_HEATER_COMMAND_HAS_NONE");
485 return ESPHOME_PSTR("WATER_HEATER_COMMAND_HAS_MODE");
487 return ESPHOME_PSTR("WATER_HEATER_COMMAND_HAS_TARGET_TEMPERATURE");
489 return ESPHOME_PSTR("WATER_HEATER_COMMAND_HAS_STATE");
491 return ESPHOME_PSTR("WATER_HEATER_COMMAND_HAS_TARGET_TEMPERATURE_LOW");
493 return ESPHOME_PSTR("WATER_HEATER_COMMAND_HAS_TARGET_TEMPERATURE_HIGH");
495 return ESPHOME_PSTR("WATER_HEATER_COMMAND_HAS_ON_STATE");
497 return ESPHOME_PSTR("WATER_HEATER_COMMAND_HAS_AWAY_STATE");
498 default:
499 return ESPHOME_PSTR("UNKNOWN");
500 }
501}
502#ifdef USE_NUMBER
504 switch (value) {
506 return ESPHOME_PSTR("NUMBER_MODE_AUTO");
508 return ESPHOME_PSTR("NUMBER_MODE_BOX");
510 return ESPHOME_PSTR("NUMBER_MODE_SLIDER");
511 default:
512 return ESPHOME_PSTR("UNKNOWN");
513 }
514}
515#endif
516#ifdef USE_LOCK
518 switch (value) {
520 return ESPHOME_PSTR("LOCK_STATE_NONE");
522 return ESPHOME_PSTR("LOCK_STATE_LOCKED");
524 return ESPHOME_PSTR("LOCK_STATE_UNLOCKED");
526 return ESPHOME_PSTR("LOCK_STATE_JAMMED");
528 return ESPHOME_PSTR("LOCK_STATE_LOCKING");
530 return ESPHOME_PSTR("LOCK_STATE_UNLOCKING");
532 return ESPHOME_PSTR("LOCK_STATE_OPENING");
534 return ESPHOME_PSTR("LOCK_STATE_OPEN");
535 default:
536 return ESPHOME_PSTR("UNKNOWN");
537 }
538}
540 switch (value) {
542 return ESPHOME_PSTR("LOCK_UNLOCK");
543 case enums::LOCK_LOCK:
544 return ESPHOME_PSTR("LOCK_LOCK");
545 case enums::LOCK_OPEN:
546 return ESPHOME_PSTR("LOCK_OPEN");
547 default:
548 return ESPHOME_PSTR("UNKNOWN");
549 }
550}
551#endif
552#ifdef USE_MEDIA_PLAYER
554 switch (value) {
556 return ESPHOME_PSTR("MEDIA_PLAYER_STATE_NONE");
558 return ESPHOME_PSTR("MEDIA_PLAYER_STATE_IDLE");
560 return ESPHOME_PSTR("MEDIA_PLAYER_STATE_PLAYING");
562 return ESPHOME_PSTR("MEDIA_PLAYER_STATE_PAUSED");
564 return ESPHOME_PSTR("MEDIA_PLAYER_STATE_ANNOUNCING");
566 return ESPHOME_PSTR("MEDIA_PLAYER_STATE_OFF");
568 return ESPHOME_PSTR("MEDIA_PLAYER_STATE_ON");
569 default:
570 return ESPHOME_PSTR("UNKNOWN");
571 }
572}
574 switch (value) {
576 return ESPHOME_PSTR("MEDIA_PLAYER_COMMAND_PLAY");
578 return ESPHOME_PSTR("MEDIA_PLAYER_COMMAND_PAUSE");
580 return ESPHOME_PSTR("MEDIA_PLAYER_COMMAND_STOP");
582 return ESPHOME_PSTR("MEDIA_PLAYER_COMMAND_MUTE");
584 return ESPHOME_PSTR("MEDIA_PLAYER_COMMAND_UNMUTE");
586 return ESPHOME_PSTR("MEDIA_PLAYER_COMMAND_TOGGLE");
588 return ESPHOME_PSTR("MEDIA_PLAYER_COMMAND_VOLUME_UP");
590 return ESPHOME_PSTR("MEDIA_PLAYER_COMMAND_VOLUME_DOWN");
592 return ESPHOME_PSTR("MEDIA_PLAYER_COMMAND_ENQUEUE");
594 return ESPHOME_PSTR("MEDIA_PLAYER_COMMAND_REPEAT_ONE");
596 return ESPHOME_PSTR("MEDIA_PLAYER_COMMAND_REPEAT_OFF");
598 return ESPHOME_PSTR("MEDIA_PLAYER_COMMAND_CLEAR_PLAYLIST");
600 return ESPHOME_PSTR("MEDIA_PLAYER_COMMAND_TURN_ON");
602 return ESPHOME_PSTR("MEDIA_PLAYER_COMMAND_TURN_OFF");
603 default:
604 return ESPHOME_PSTR("UNKNOWN");
605 }
606}
608 switch (value) {
610 return ESPHOME_PSTR("MEDIA_PLAYER_FORMAT_PURPOSE_DEFAULT");
612 return ESPHOME_PSTR("MEDIA_PLAYER_FORMAT_PURPOSE_ANNOUNCEMENT");
613 default:
614 return ESPHOME_PSTR("UNKNOWN");
615 }
616}
617#endif
618#ifdef USE_BLUETOOTH_PROXY_CONNECTIONS
619template<>
621 switch (value) {
623 return ESPHOME_PSTR("BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT");
625 return ESPHOME_PSTR("BLUETOOTH_DEVICE_REQUEST_TYPE_DISCONNECT");
627 return ESPHOME_PSTR("BLUETOOTH_DEVICE_REQUEST_TYPE_PAIR");
629 return ESPHOME_PSTR("BLUETOOTH_DEVICE_REQUEST_TYPE_UNPAIR");
631 return ESPHOME_PSTR("BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT_V3_WITH_CACHE");
633 return ESPHOME_PSTR("BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT_V3_WITHOUT_CACHE");
635 return ESPHOME_PSTR("BLUETOOTH_DEVICE_REQUEST_TYPE_CLEAR_CACHE");
636 default:
637 return ESPHOME_PSTR("UNKNOWN");
638 }
639}
640#endif
641#ifdef USE_BLUETOOTH_PROXY
643 switch (value) {
645 return ESPHOME_PSTR("BLUETOOTH_SCANNER_STATE_IDLE");
647 return ESPHOME_PSTR("BLUETOOTH_SCANNER_STATE_STARTING");
649 return ESPHOME_PSTR("BLUETOOTH_SCANNER_STATE_RUNNING");
651 return ESPHOME_PSTR("BLUETOOTH_SCANNER_STATE_FAILED");
653 return ESPHOME_PSTR("BLUETOOTH_SCANNER_STATE_STOPPING");
655 return ESPHOME_PSTR("BLUETOOTH_SCANNER_STATE_STOPPED");
656 default:
657 return ESPHOME_PSTR("UNKNOWN");
658 }
659}
661 switch (value) {
663 return ESPHOME_PSTR("BLUETOOTH_SCANNER_MODE_PASSIVE");
665 return ESPHOME_PSTR("BLUETOOTH_SCANNER_MODE_ACTIVE");
666 default:
667 return ESPHOME_PSTR("UNKNOWN");
668 }
669}
670#endif
671template<>
673 switch (value) {
675 return ESPHOME_PSTR("VOICE_ASSISTANT_SUBSCRIBE_NONE");
677 return ESPHOME_PSTR("VOICE_ASSISTANT_SUBSCRIBE_API_AUDIO");
678 default:
679 return ESPHOME_PSTR("UNKNOWN");
680 }
681}
683 switch (value) {
685 return ESPHOME_PSTR("VOICE_ASSISTANT_REQUEST_NONE");
687 return ESPHOME_PSTR("VOICE_ASSISTANT_REQUEST_USE_VAD");
689 return ESPHOME_PSTR("VOICE_ASSISTANT_REQUEST_USE_WAKE_WORD");
690 default:
691 return ESPHOME_PSTR("UNKNOWN");
692 }
693}
694#ifdef USE_VOICE_ASSISTANT
696 switch (value) {
698 return ESPHOME_PSTR("VOICE_ASSISTANT_ERROR");
700 return ESPHOME_PSTR("VOICE_ASSISTANT_RUN_START");
702 return ESPHOME_PSTR("VOICE_ASSISTANT_RUN_END");
704 return ESPHOME_PSTR("VOICE_ASSISTANT_STT_START");
706 return ESPHOME_PSTR("VOICE_ASSISTANT_STT_END");
708 return ESPHOME_PSTR("VOICE_ASSISTANT_INTENT_START");
710 return ESPHOME_PSTR("VOICE_ASSISTANT_INTENT_END");
712 return ESPHOME_PSTR("VOICE_ASSISTANT_TTS_START");
714 return ESPHOME_PSTR("VOICE_ASSISTANT_TTS_END");
716 return ESPHOME_PSTR("VOICE_ASSISTANT_WAKE_WORD_START");
718 return ESPHOME_PSTR("VOICE_ASSISTANT_WAKE_WORD_END");
720 return ESPHOME_PSTR("VOICE_ASSISTANT_STT_VAD_START");
722 return ESPHOME_PSTR("VOICE_ASSISTANT_STT_VAD_END");
724 return ESPHOME_PSTR("VOICE_ASSISTANT_TTS_STREAM_START");
726 return ESPHOME_PSTR("VOICE_ASSISTANT_TTS_STREAM_END");
728 return ESPHOME_PSTR("VOICE_ASSISTANT_INTENT_PROGRESS");
729 default:
730 return ESPHOME_PSTR("UNKNOWN");
731 }
732}
734 switch (value) {
736 return ESPHOME_PSTR("VOICE_ASSISTANT_TIMER_STARTED");
738 return ESPHOME_PSTR("VOICE_ASSISTANT_TIMER_UPDATED");
740 return ESPHOME_PSTR("VOICE_ASSISTANT_TIMER_CANCELLED");
742 return ESPHOME_PSTR("VOICE_ASSISTANT_TIMER_FINISHED");
743 default:
744 return ESPHOME_PSTR("UNKNOWN");
745 }
746}
747#endif
748#ifdef USE_ALARM_CONTROL_PANEL
750 switch (value) {
752 return ESPHOME_PSTR("ALARM_STATE_DISARMED");
754 return ESPHOME_PSTR("ALARM_STATE_ARMED_HOME");
756 return ESPHOME_PSTR("ALARM_STATE_ARMED_AWAY");
758 return ESPHOME_PSTR("ALARM_STATE_ARMED_NIGHT");
760 return ESPHOME_PSTR("ALARM_STATE_ARMED_VACATION");
762 return ESPHOME_PSTR("ALARM_STATE_ARMED_CUSTOM_BYPASS");
764 return ESPHOME_PSTR("ALARM_STATE_PENDING");
766 return ESPHOME_PSTR("ALARM_STATE_ARMING");
768 return ESPHOME_PSTR("ALARM_STATE_DISARMING");
770 return ESPHOME_PSTR("ALARM_STATE_TRIGGERED");
771 default:
772 return ESPHOME_PSTR("UNKNOWN");
773 }
774}
775template<>
777 switch (value) {
779 return ESPHOME_PSTR("ALARM_CONTROL_PANEL_DISARM");
781 return ESPHOME_PSTR("ALARM_CONTROL_PANEL_ARM_AWAY");
783 return ESPHOME_PSTR("ALARM_CONTROL_PANEL_ARM_HOME");
785 return ESPHOME_PSTR("ALARM_CONTROL_PANEL_ARM_NIGHT");
787 return ESPHOME_PSTR("ALARM_CONTROL_PANEL_ARM_VACATION");
789 return ESPHOME_PSTR("ALARM_CONTROL_PANEL_ARM_CUSTOM_BYPASS");
791 return ESPHOME_PSTR("ALARM_CONTROL_PANEL_TRIGGER");
792 default:
793 return ESPHOME_PSTR("UNKNOWN");
794 }
795}
796#endif
797#ifdef USE_TEXT
799 switch (value) {
801 return ESPHOME_PSTR("TEXT_MODE_TEXT");
803 return ESPHOME_PSTR("TEXT_MODE_PASSWORD");
804 default:
805 return ESPHOME_PSTR("UNKNOWN");
806 }
807}
808#endif
809#ifdef USE_VALVE
811 switch (value) {
813 return ESPHOME_PSTR("VALVE_OPERATION_IDLE");
815 return ESPHOME_PSTR("VALVE_OPERATION_IS_OPENING");
817 return ESPHOME_PSTR("VALVE_OPERATION_IS_CLOSING");
818 default:
819 return ESPHOME_PSTR("UNKNOWN");
820 }
821}
822#endif
823#ifdef USE_UPDATE
825 switch (value) {
827 return ESPHOME_PSTR("UPDATE_COMMAND_NONE");
829 return ESPHOME_PSTR("UPDATE_COMMAND_UPDATE");
831 return ESPHOME_PSTR("UPDATE_COMMAND_CHECK");
832 default:
833 return ESPHOME_PSTR("UNKNOWN");
834 }
835}
836#endif
837#ifdef USE_ZWAVE_PROXY
839 switch (value) {
841 return ESPHOME_PSTR("ZWAVE_PROXY_REQUEST_TYPE_SUBSCRIBE");
843 return ESPHOME_PSTR("ZWAVE_PROXY_REQUEST_TYPE_UNSUBSCRIBE");
845 return ESPHOME_PSTR("ZWAVE_PROXY_REQUEST_TYPE_HOME_ID_CHANGE");
846 default:
847 return ESPHOME_PSTR("UNKNOWN");
848 }
849}
851 switch (value) {
853 return ESPHOME_PSTR("ZWAVE_PROXY_STATUS_OK");
855 return ESPHOME_PSTR("ZWAVE_PROXY_STATUS_IN_USE");
857 return ESPHOME_PSTR("ZWAVE_PROXY_STATUS_NOT_SUPPORTED");
858 default:
859 return ESPHOME_PSTR("UNKNOWN");
860 }
861}
862#endif
863#ifdef USE_SERIAL_PROXY
865 switch (value) {
867 return ESPHOME_PSTR("SERIAL_PROXY_PARITY_NONE");
869 return ESPHOME_PSTR("SERIAL_PROXY_PARITY_EVEN");
871 return ESPHOME_PSTR("SERIAL_PROXY_PARITY_ODD");
872 default:
873 return ESPHOME_PSTR("UNKNOWN");
874 }
875}
877 switch (value) {
879 return ESPHOME_PSTR("SERIAL_PROXY_REQUEST_TYPE_SUBSCRIBE");
881 return ESPHOME_PSTR("SERIAL_PROXY_REQUEST_TYPE_UNSUBSCRIBE");
883 return ESPHOME_PSTR("SERIAL_PROXY_REQUEST_TYPE_FLUSH");
885 return ESPHOME_PSTR("SERIAL_PROXY_REQUEST_TYPE_CONFIGURE");
887 return ESPHOME_PSTR("SERIAL_PROXY_REQUEST_TYPE_SET_MODEM_PINS");
889 return ESPHOME_PSTR("SERIAL_PROXY_REQUEST_TYPE_SET_MODE");
890 default:
891 return ESPHOME_PSTR("UNKNOWN");
892 }
893}
895 switch (value) {
897 return ESPHOME_PSTR("SERIAL_PROXY_STATUS_OK");
899 return ESPHOME_PSTR("SERIAL_PROXY_STATUS_ASSUMED_SUCCESS");
901 return ESPHOME_PSTR("SERIAL_PROXY_STATUS_ERROR");
903 return ESPHOME_PSTR("SERIAL_PROXY_STATUS_TIMEOUT");
905 return ESPHOME_PSTR("SERIAL_PROXY_STATUS_NOT_SUPPORTED");
907 return ESPHOME_PSTR("SERIAL_PROXY_STATUS_PORT_IN_USE");
909 return ESPHOME_PSTR("SERIAL_PROXY_STATUS_INVALID_ARGUMENT");
910 default:
911 return ESPHOME_PSTR("UNKNOWN");
912 }
913}
915 switch (value) {
917 return ESPHOME_PSTR("SERIAL_PROXY_MODE_RAW");
919 return ESPHOME_PSTR("SERIAL_PROXY_MODE_PROTOCOL");
920 default:
921 return ESPHOME_PSTR("UNKNOWN");
922 }
923}
925 switch (value) {
927 return ESPHOME_PSTR("SERIAL_PROXY_IDENTITY_SOURCE_NONE");
929 return ESPHOME_PSTR("SERIAL_PROXY_IDENTITY_SOURCE_CONFIGURED");
931 return ESPHOME_PSTR("SERIAL_PROXY_IDENTITY_SOURCE_USB");
932 default:
933 return ESPHOME_PSTR("UNKNOWN");
934 }
935}
936#endif
938 switch (value) {
940 return ESPHOME_PSTR("SERIAL_PROXY_IDENTITY_FLAG_NONE");
942 return ESPHOME_PSTR("SERIAL_PROXY_IDENTITY_FLAG_CONNECTED");
944 return ESPHOME_PSTR("SERIAL_PROXY_IDENTITY_FLAG_ERROR");
945 default:
946 return ESPHOME_PSTR("UNKNOWN");
947 }
948}
949#ifdef USE_SENDSPIN
950template<>
952 switch (value) {
954 return ESPHOME_PSTR("SENDSPIN_PAIRING_TOKEN_STATUS_NOT_READY");
956 return ESPHOME_PSTR("SENDSPIN_PAIRING_TOKEN_STATUS_OK");
958 return ESPHOME_PSTR("SENDSPIN_PAIRING_TOKEN_STATUS_ENCRYPTION_REQUIRED");
960 return ESPHOME_PSTR("SENDSPIN_PAIRING_TOKEN_STATUS_DISABLED");
962 return ESPHOME_PSTR("SENDSPIN_PAIRING_TOKEN_STATUS_FAILED");
963 default:
964 return ESPHOME_PSTR("UNKNOWN");
965 }
966}
967#endif
968
970 MessageDumpHelper helper(out, ESPHOME_PSTR("HelloRequest"));
971 dump_field(out, ESPHOME_PSTR("client_info"), this->client_info);
972 dump_field(out, ESPHOME_PSTR("api_version_major"), this->api_version_major);
973 dump_field(out, ESPHOME_PSTR("api_version_minor"), this->api_version_minor);
974#ifdef USE_API_OUTGOING_CONNECTION
975 dump_field(out, ESPHOME_PSTR("outgoing_connection_target"), this->outgoing_connection_target);
976#endif
977 return out.c_str();
978}
980 MessageDumpHelper helper(out, ESPHOME_PSTR("HelloResponse"));
981 dump_field(out, ESPHOME_PSTR("api_version_major"), this->api_version_major);
982 dump_field(out, ESPHOME_PSTR("api_version_minor"), this->api_version_minor);
983 dump_progmem_string_field(out, ESPHOME_PSTR("server_info"), this->server_info);
984 dump_field(out, ESPHOME_PSTR("name"), this->name);
985 return out.c_str();
986}
988 MessageDumpHelper helper(out, ESPHOME_PSTR("DisconnectRequest"));
989 dump_field(out, ESPHOME_PSTR("reason"), static_cast<enums::DisconnectReason>(this->reason));
990 return out.c_str();
991}
993 out.append_p(ESPHOME_PSTR("DisconnectResponse {}"));
994 return out.c_str();
995}
997 out.append_p(ESPHOME_PSTR("PingRequest {}"));
998 return out.c_str();
999}
1001 out.append_p(ESPHOME_PSTR("PingResponse {}"));
1002 return out.c_str();
1003}
1004#ifdef USE_AREAS
1005const char *AreaInfo::dump_to(DumpBuffer &out) const {
1006 MessageDumpHelper helper(out, ESPHOME_PSTR("AreaInfo"));
1007 dump_field(out, ESPHOME_PSTR("area_id"), this->area_id);
1008 dump_field(out, ESPHOME_PSTR("name"), this->name);
1009 return out.c_str();
1010}
1011#endif
1012#ifdef USE_DEVICES
1014 MessageDumpHelper helper(out, ESPHOME_PSTR("DeviceInfo"));
1015 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1016 dump_field(out, ESPHOME_PSTR("name"), this->name);
1017 dump_field(out, ESPHOME_PSTR("area_id"), this->area_id);
1018 dump_field(out, ESPHOME_PSTR("relation"), static_cast<enums::DeviceRelation>(this->relation));
1019 return out.c_str();
1020}
1021#endif
1022#ifdef USE_SERIAL_PROXY
1024 MessageDumpHelper helper(out, ESPHOME_PSTR("SerialProxyInfo"));
1025 dump_field(out, ESPHOME_PSTR("name"), this->name);
1026 dump_field(out, ESPHOME_PSTR("port_type"), static_cast<enums::SerialProxyPortType>(this->port_type));
1027 dump_field(out, ESPHOME_PSTR("configured_line_states"), this->configured_line_states);
1028 return out.c_str();
1029}
1030#endif
1032 MessageDumpHelper helper(out, ESPHOME_PSTR("DeviceInfoResponse"));
1033 dump_field(out, ESPHOME_PSTR("name"), this->name);
1034 dump_field(out, ESPHOME_PSTR("mac_address"), this->mac_address);
1035 dump_progmem_string_field(out, ESPHOME_PSTR("esphome_version"), this->esphome_version);
1036 dump_field(out, ESPHOME_PSTR("compilation_time"), this->compilation_time);
1037 dump_progmem_string_field(out, ESPHOME_PSTR("model"), this->model);
1038#ifdef USE_DEEP_SLEEP
1039 dump_field(out, ESPHOME_PSTR("has_deep_sleep"), this->has_deep_sleep);
1040#endif
1041#ifdef ESPHOME_PROJECT_NAME
1042 dump_progmem_string_field(out, ESPHOME_PSTR("project_name"), this->project_name);
1043#endif
1044#ifdef ESPHOME_PROJECT_NAME
1045 dump_progmem_string_field(out, ESPHOME_PSTR("project_version"), this->project_version);
1046#endif
1047#ifdef USE_WEBSERVER
1048 dump_field(out, ESPHOME_PSTR("webserver_port"), this->webserver_port);
1049#endif
1050#ifdef USE_BLUETOOTH_PROXY
1051 dump_field(out, ESPHOME_PSTR("bluetooth_proxy_feature_flags"), this->bluetooth_proxy_feature_flags);
1052#endif
1053 dump_progmem_string_field(out, ESPHOME_PSTR("manufacturer"), this->manufacturer);
1054 dump_field(out, ESPHOME_PSTR("friendly_name"), this->friendly_name);
1055#ifdef USE_VOICE_ASSISTANT
1056 dump_field(out, ESPHOME_PSTR("voice_assistant_feature_flags"), this->voice_assistant_feature_flags);
1057#endif
1058#ifdef USE_AREAS
1059 dump_field(out, ESPHOME_PSTR("suggested_area"), this->suggested_area);
1060#endif
1061#ifdef USE_BLUETOOTH_PROXY
1062 dump_field(out, ESPHOME_PSTR("bluetooth_mac_address"), this->bluetooth_mac_address);
1063#endif
1064#ifdef USE_API_NOISE
1065 dump_field(out, ESPHOME_PSTR("api_encryption_supported"), this->api_encryption_supported);
1066#endif
1067#ifdef USE_DEVICES
1068 for (const auto &it : this->devices) {
1069 out.append(4, ' ').append_p(ESPHOME_PSTR("devices")).append(": ");
1070 it.dump_to(out);
1071 out.append("\n");
1072 }
1073#endif
1074#ifdef USE_AREAS
1075 for (const auto &it : this->areas) {
1076 out.append(4, ' ').append_p(ESPHOME_PSTR("areas")).append(": ");
1077 it.dump_to(out);
1078 out.append("\n");
1079 }
1080#endif
1081#ifdef USE_AREAS
1082 out.append(2, ' ').append_p(ESPHOME_PSTR("area")).append(": ");
1083 this->area.dump_to(out);
1084 out.append("\n");
1085#endif
1086#ifdef USE_ZWAVE_PROXY
1087 dump_field(out, ESPHOME_PSTR("zwave_proxy_feature_flags"), this->zwave_proxy_feature_flags);
1088#endif
1089#ifdef USE_ZWAVE_PROXY
1090 dump_field(out, ESPHOME_PSTR("zwave_home_id"), this->zwave_home_id);
1091#endif
1092#ifdef USE_SERIAL_PROXY
1093 for (const auto &it : this->serial_proxies) {
1094 out.append(4, ' ').append_p(ESPHOME_PSTR("serial_proxies")).append(": ");
1095 it.dump_to(out);
1096 out.append("\n");
1097 }
1098#endif
1099#ifdef USE_API_NOISE
1100 dump_field(out, ESPHOME_PSTR("api_encryption_provisionable"), this->api_encryption_provisionable);
1101#endif
1102#ifdef USE_API_OUTGOING_CONNECTION
1103 dump_field(out, ESPHOME_PSTR("api_outgoing_connection_supported"), this->api_outgoing_connection_supported);
1104#endif
1105 return out.c_str();
1106}
1107#ifdef USE_BLUETOOTH_PROXY
1109 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothProxyCapabilities"));
1110 dump_field(out, ESPHOME_PSTR("feature_flags"), this->feature_flags);
1111 dump_field(out, ESPHOME_PSTR("mac_address"), this->mac_address);
1112 return out.c_str();
1113}
1114#endif
1115#ifdef USE_VOICE_ASSISTANT
1117 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantCapabilities"));
1118 dump_field(out, ESPHOME_PSTR("feature_flags"), this->feature_flags);
1119 return out.c_str();
1120}
1121#endif
1122#ifdef USE_ZWAVE_PROXY
1124 MessageDumpHelper helper(out, ESPHOME_PSTR("ZWaveProxyCapabilities"));
1125 dump_field(out, ESPHOME_PSTR("feature_flags"), this->feature_flags);
1126 dump_field(out, ESPHOME_PSTR("home_id"), this->home_id);
1127 return out.c_str();
1128}
1129#endif
1130#ifdef USE_API_WIZARD
1132 MessageDumpHelper helper(out, ESPHOME_PSTR("WizardCapabilities"));
1133 dump_field(out, ESPHOME_PSTR("configured"), this->configured);
1134 return out.c_str();
1135}
1136#endif
1137#ifdef USE_SENDSPIN
1139 MessageDumpHelper helper(out, ESPHOME_PSTR("SendspinCapabilities"));
1140 dump_field(out, ESPHOME_PSTR("feature_flags"), this->feature_flags);
1141 dump_field(out, ESPHOME_PSTR("client_id"), this->client_id);
1142 return out.c_str();
1143}
1144#endif
1146 MessageDumpHelper helper(out, ESPHOME_PSTR("DeviceCapabilitiesResponse"));
1147#ifdef USE_BLUETOOTH_PROXY
1148 out.append(2, ' ').append_p(ESPHOME_PSTR("bluetooth_proxy")).append(": ");
1149 this->bluetooth_proxy.dump_to(out);
1150 out.append("\n");
1151#endif
1152#ifdef USE_VOICE_ASSISTANT
1153 out.append(2, ' ').append_p(ESPHOME_PSTR("voice_assistant")).append(": ");
1154 this->voice_assistant.dump_to(out);
1155 out.append("\n");
1156#endif
1157#ifdef USE_ZWAVE_PROXY
1158 out.append(2, ' ').append_p(ESPHOME_PSTR("zwave_proxy")).append(": ");
1159 this->zwave_proxy.dump_to(out);
1160 out.append("\n");
1161#endif
1162#ifdef USE_SERIAL_PROXY
1163 for (const auto &it : this->serial_proxies) {
1164 out.append(4, ' ').append_p(ESPHOME_PSTR("serial_proxies")).append(": ");
1165 it.dump_to(out);
1166 out.append("\n");
1167 }
1168#endif
1169#ifdef USE_API_WIZARD
1170 out.append(2, ' ').append_p(ESPHOME_PSTR("wizard")).append(": ");
1171 this->wizard.dump_to(out);
1172 out.append("\n");
1173#endif
1174#ifdef USE_SENDSPIN
1175 out.append(2, ' ').append_p(ESPHOME_PSTR("sendspin")).append(": ");
1176 this->sendspin.dump_to(out);
1177 out.append("\n");
1178#endif
1179 return out.c_str();
1180}
1181#ifdef USE_API_WIZARD
1183 MessageDumpHelper helper(out, ESPHOME_PSTR("DeviceWizardResponse"));
1184 dump_progmem_bytes_field(out, ESPHOME_PSTR("data"), this->data, this->data_len);
1185 return out.c_str();
1186}
1187#endif
1188#ifdef USE_API_WIZARD_INPUTS
1190 MessageDumpHelper helper(out, ESPHOME_PSTR("WizardInputSetRequest"));
1191 dump_field(out, ESPHOME_PSTR("key"), this->key);
1192 dump_field(out, ESPHOME_PSTR("entity_id"), this->entity_id);
1193 return out.c_str();
1194}
1195#endif
1197 out.append_p(ESPHOME_PSTR("ListEntitiesDoneResponse {}"));
1198 return out.c_str();
1199}
1200#ifdef USE_BINARY_SENSOR
1202 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesBinarySensorResponse"));
1203 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1204 dump_field(out, ESPHOME_PSTR("key"), this->key);
1205 dump_progmem_string_field(out, ESPHOME_PSTR("name"), this->name);
1206 dump_progmem_string_field(out, ESPHOME_PSTR("device_class"), this->device_class);
1207 dump_field(out, ESPHOME_PSTR("is_status_binary_sensor"), this->is_status_binary_sensor);
1208 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1209#ifdef USE_ENTITY_ICON
1210 dump_progmem_string_field(out, ESPHOME_PSTR("icon"), this->icon);
1211#endif
1212 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1213#ifdef USE_DEVICES
1214 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1215#endif
1216 return out.c_str();
1217}
1219 MessageDumpHelper helper(out, ESPHOME_PSTR("BinarySensorStateResponse"));
1220 dump_field(out, ESPHOME_PSTR("key"), this->key);
1221 dump_field(out, ESPHOME_PSTR("state"), this->state);
1222 dump_field(out, ESPHOME_PSTR("missing_state"), this->missing_state);
1223#ifdef USE_DEVICES
1224 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1225#endif
1226 return out.c_str();
1227}
1228#endif
1229#ifdef USE_COVER
1231 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesCoverResponse"));
1232 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1233 dump_field(out, ESPHOME_PSTR("key"), this->key);
1234 dump_progmem_string_field(out, ESPHOME_PSTR("name"), this->name);
1235 dump_field(out, ESPHOME_PSTR("assumed_state"), this->assumed_state);
1236 dump_field(out, ESPHOME_PSTR("supports_position"), this->supports_position);
1237 dump_field(out, ESPHOME_PSTR("supports_tilt"), this->supports_tilt);
1238 dump_progmem_string_field(out, ESPHOME_PSTR("device_class"), this->device_class);
1239 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1240#ifdef USE_ENTITY_ICON
1241 dump_progmem_string_field(out, ESPHOME_PSTR("icon"), this->icon);
1242#endif
1243 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1244 dump_field(out, ESPHOME_PSTR("supports_stop"), this->supports_stop);
1245#ifdef USE_DEVICES
1246 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1247#endif
1248 dump_field(out, ESPHOME_PSTR("supports_stop_tilt"), this->supports_stop_tilt);
1249 dump_field(out, ESPHOME_PSTR("supports_toggle"), this->supports_toggle);
1250 return out.c_str();
1251}
1253 MessageDumpHelper helper(out, ESPHOME_PSTR("CoverStateResponse"));
1254 dump_field(out, ESPHOME_PSTR("key"), this->key);
1255 dump_field(out, ESPHOME_PSTR("position"), this->position);
1256 dump_field(out, ESPHOME_PSTR("tilt"), this->tilt);
1257 dump_field(out, ESPHOME_PSTR("current_operation"), static_cast<enums::CoverOperation>(this->current_operation));
1258#ifdef USE_DEVICES
1259 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1260#endif
1261 return out.c_str();
1262}
1264 MessageDumpHelper helper(out, ESPHOME_PSTR("CoverCommandRequest"));
1265 dump_field(out, ESPHOME_PSTR("key"), this->key);
1266 dump_field(out, ESPHOME_PSTR("has_position"), this->has_position);
1267 dump_field(out, ESPHOME_PSTR("position"), this->position);
1268 dump_field(out, ESPHOME_PSTR("has_tilt"), this->has_tilt);
1269 dump_field(out, ESPHOME_PSTR("tilt"), this->tilt);
1270 dump_field(out, ESPHOME_PSTR("stop"), this->stop);
1271#ifdef USE_DEVICES
1272 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1273#endif
1274 dump_field(out, ESPHOME_PSTR("stop_tilt"), this->stop_tilt);
1275 dump_field(out, ESPHOME_PSTR("toggle"), this->toggle);
1276 return out.c_str();
1277}
1278#endif
1279#ifdef USE_FAN
1281 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesFanResponse"));
1282 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1283 dump_field(out, ESPHOME_PSTR("key"), this->key);
1284 dump_progmem_string_field(out, ESPHOME_PSTR("name"), this->name);
1285 dump_field(out, ESPHOME_PSTR("supports_oscillation"), this->supports_oscillation);
1286 dump_field(out, ESPHOME_PSTR("supports_speed"), this->supports_speed);
1287 dump_field(out, ESPHOME_PSTR("supports_direction"), this->supports_direction);
1288 dump_field(out, ESPHOME_PSTR("supported_speed_count"), this->supported_speed_count);
1289 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1290#ifdef USE_ENTITY_ICON
1291 dump_progmem_string_field(out, ESPHOME_PSTR("icon"), this->icon);
1292#endif
1293 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1294 for (const auto &it : *this->supported_preset_modes) {
1295 dump_field(out, ESPHOME_PSTR("supported_preset_modes"), it, 4);
1296 }
1297#ifdef USE_DEVICES
1298 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1299#endif
1300 return out.c_str();
1301}
1303 MessageDumpHelper helper(out, ESPHOME_PSTR("FanStateResponse"));
1304 dump_field(out, ESPHOME_PSTR("key"), this->key);
1305 dump_field(out, ESPHOME_PSTR("state"), this->state);
1306 dump_field(out, ESPHOME_PSTR("oscillating"), this->oscillating);
1307 dump_field(out, ESPHOME_PSTR("direction"), static_cast<enums::FanDirection>(this->direction));
1308 dump_field(out, ESPHOME_PSTR("speed_level"), this->speed_level);
1309 dump_field(out, ESPHOME_PSTR("preset_mode"), this->preset_mode);
1310#ifdef USE_DEVICES
1311 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1312#endif
1313 return out.c_str();
1314}
1316 MessageDumpHelper helper(out, ESPHOME_PSTR("FanCommandRequest"));
1317 dump_field(out, ESPHOME_PSTR("key"), this->key);
1318 dump_field(out, ESPHOME_PSTR("has_state"), this->has_state);
1319 dump_field(out, ESPHOME_PSTR("state"), this->state);
1320 dump_field(out, ESPHOME_PSTR("has_oscillating"), this->has_oscillating);
1321 dump_field(out, ESPHOME_PSTR("oscillating"), this->oscillating);
1322 dump_field(out, ESPHOME_PSTR("has_direction"), this->has_direction);
1323 dump_field(out, ESPHOME_PSTR("direction"), static_cast<enums::FanDirection>(this->direction));
1324 dump_field(out, ESPHOME_PSTR("has_speed_level"), this->has_speed_level);
1325 dump_field(out, ESPHOME_PSTR("speed_level"), this->speed_level);
1326 dump_field(out, ESPHOME_PSTR("has_preset_mode"), this->has_preset_mode);
1327 dump_field(out, ESPHOME_PSTR("preset_mode"), this->preset_mode);
1328#ifdef USE_DEVICES
1329 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1330#endif
1331 return out.c_str();
1332}
1333#endif
1334#ifdef USE_LIGHT
1336 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesLightResponse"));
1337 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1338 dump_field(out, ESPHOME_PSTR("key"), this->key);
1339 dump_progmem_string_field(out, ESPHOME_PSTR("name"), this->name);
1340 for (const auto &it : *this->supported_color_modes) {
1341 dump_field(out, ESPHOME_PSTR("supported_color_modes"), static_cast<enums::ColorMode>(it), 4);
1342 }
1343 dump_field(out, ESPHOME_PSTR("min_mireds"), this->min_mireds);
1344 dump_field(out, ESPHOME_PSTR("max_mireds"), this->max_mireds);
1345 for (const auto &it : *this->effects) {
1346 dump_field(out, ESPHOME_PSTR("effects"), it, 4);
1347 }
1348 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1349#ifdef USE_ENTITY_ICON
1350 dump_progmem_string_field(out, ESPHOME_PSTR("icon"), this->icon);
1351#endif
1352 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1353#ifdef USE_DEVICES
1354 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1355#endif
1356 return out.c_str();
1357}
1359 MessageDumpHelper helper(out, ESPHOME_PSTR("LightStateResponse"));
1360 dump_field(out, ESPHOME_PSTR("key"), this->key);
1361 dump_field(out, ESPHOME_PSTR("state"), this->state);
1362 dump_field(out, ESPHOME_PSTR("brightness"), this->brightness);
1363 dump_field(out, ESPHOME_PSTR("color_mode"), static_cast<enums::ColorMode>(this->color_mode));
1364 dump_field(out, ESPHOME_PSTR("color_brightness"), this->color_brightness);
1365 dump_field(out, ESPHOME_PSTR("red"), this->red);
1366 dump_field(out, ESPHOME_PSTR("green"), this->green);
1367 dump_field(out, ESPHOME_PSTR("blue"), this->blue);
1368 dump_field(out, ESPHOME_PSTR("white"), this->white);
1369 dump_field(out, ESPHOME_PSTR("color_temperature"), this->color_temperature);
1370 dump_field(out, ESPHOME_PSTR("cold_white"), this->cold_white);
1371 dump_field(out, ESPHOME_PSTR("warm_white"), this->warm_white);
1372 dump_field(out, ESPHOME_PSTR("effect"), this->effect);
1373#ifdef USE_DEVICES
1374 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1375#endif
1376 return out.c_str();
1377}
1379 MessageDumpHelper helper(out, ESPHOME_PSTR("LightCommandRequest"));
1380 dump_field(out, ESPHOME_PSTR("key"), this->key);
1381 dump_field(out, ESPHOME_PSTR("has_state"), this->has_state);
1382 dump_field(out, ESPHOME_PSTR("state"), this->state);
1383 dump_field(out, ESPHOME_PSTR("has_brightness"), this->has_brightness);
1384 dump_field(out, ESPHOME_PSTR("brightness"), this->brightness);
1385 dump_field(out, ESPHOME_PSTR("has_color_mode"), this->has_color_mode);
1386 dump_field(out, ESPHOME_PSTR("color_mode"), static_cast<enums::ColorMode>(this->color_mode));
1387 dump_field(out, ESPHOME_PSTR("has_color_brightness"), this->has_color_brightness);
1388 dump_field(out, ESPHOME_PSTR("color_brightness"), this->color_brightness);
1389 dump_field(out, ESPHOME_PSTR("has_rgb"), this->has_rgb);
1390 dump_field(out, ESPHOME_PSTR("red"), this->red);
1391 dump_field(out, ESPHOME_PSTR("green"), this->green);
1392 dump_field(out, ESPHOME_PSTR("blue"), this->blue);
1393 dump_field(out, ESPHOME_PSTR("has_white"), this->has_white);
1394 dump_field(out, ESPHOME_PSTR("white"), this->white);
1395 dump_field(out, ESPHOME_PSTR("has_color_temperature"), this->has_color_temperature);
1396 dump_field(out, ESPHOME_PSTR("color_temperature"), this->color_temperature);
1397 dump_field(out, ESPHOME_PSTR("has_cold_white"), this->has_cold_white);
1398 dump_field(out, ESPHOME_PSTR("cold_white"), this->cold_white);
1399 dump_field(out, ESPHOME_PSTR("has_warm_white"), this->has_warm_white);
1400 dump_field(out, ESPHOME_PSTR("warm_white"), this->warm_white);
1401 dump_field(out, ESPHOME_PSTR("has_transition_length"), this->has_transition_length);
1402 dump_field(out, ESPHOME_PSTR("transition_length"), this->transition_length);
1403 dump_field(out, ESPHOME_PSTR("has_flash_length"), this->has_flash_length);
1404 dump_field(out, ESPHOME_PSTR("flash_length"), this->flash_length);
1405 dump_field(out, ESPHOME_PSTR("has_effect"), this->has_effect);
1406 dump_field(out, ESPHOME_PSTR("effect"), this->effect);
1407#ifdef USE_DEVICES
1408 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1409#endif
1410 return out.c_str();
1411}
1412#endif
1413#ifdef USE_SENSOR
1415 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesSensorResponse"));
1416 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1417 dump_field(out, ESPHOME_PSTR("key"), this->key);
1418 dump_progmem_string_field(out, ESPHOME_PSTR("name"), this->name);
1419#ifdef USE_ENTITY_ICON
1420 dump_progmem_string_field(out, ESPHOME_PSTR("icon"), this->icon);
1421#endif
1422 dump_field(out, ESPHOME_PSTR("unit_of_measurement"), this->unit_of_measurement);
1423 dump_field(out, ESPHOME_PSTR("accuracy_decimals"), this->accuracy_decimals);
1424 dump_field(out, ESPHOME_PSTR("force_update"), this->force_update);
1425 dump_progmem_string_field(out, ESPHOME_PSTR("device_class"), this->device_class);
1426 dump_field(out, ESPHOME_PSTR("state_class"), static_cast<enums::SensorStateClass>(this->state_class));
1427 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1428 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1429#ifdef USE_DEVICES
1430 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1431#endif
1432 return out.c_str();
1433}
1435 MessageDumpHelper helper(out, ESPHOME_PSTR("SensorStateResponse"));
1436 dump_field(out, ESPHOME_PSTR("key"), this->key);
1437 dump_field(out, ESPHOME_PSTR("state"), this->state);
1438 dump_field(out, ESPHOME_PSTR("missing_state"), this->missing_state);
1439#ifdef USE_DEVICES
1440 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1441#endif
1442 return out.c_str();
1443}
1444#endif
1445#ifdef USE_SWITCH
1447 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesSwitchResponse"));
1448 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1449 dump_field(out, ESPHOME_PSTR("key"), this->key);
1450 dump_progmem_string_field(out, ESPHOME_PSTR("name"), this->name);
1451#ifdef USE_ENTITY_ICON
1452 dump_progmem_string_field(out, ESPHOME_PSTR("icon"), this->icon);
1453#endif
1454 dump_field(out, ESPHOME_PSTR("assumed_state"), this->assumed_state);
1455 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1456 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1457 dump_progmem_string_field(out, ESPHOME_PSTR("device_class"), this->device_class);
1458#ifdef USE_DEVICES
1459 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1460#endif
1461 return out.c_str();
1462}
1464 MessageDumpHelper helper(out, ESPHOME_PSTR("SwitchStateResponse"));
1465 dump_field(out, ESPHOME_PSTR("key"), this->key);
1466 dump_field(out, ESPHOME_PSTR("state"), this->state);
1467#ifdef USE_DEVICES
1468 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1469#endif
1470 dump_field(out, ESPHOME_PSTR("missing_state"), this->missing_state);
1471 return out.c_str();
1472}
1474 MessageDumpHelper helper(out, ESPHOME_PSTR("SwitchCommandRequest"));
1475 dump_field(out, ESPHOME_PSTR("key"), this->key);
1476 dump_field(out, ESPHOME_PSTR("state"), this->state);
1477#ifdef USE_DEVICES
1478 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1479#endif
1480 return out.c_str();
1481}
1482#endif
1483#ifdef USE_TEXT_SENSOR
1485 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesTextSensorResponse"));
1486 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1487 dump_field(out, ESPHOME_PSTR("key"), this->key);
1488 dump_progmem_string_field(out, ESPHOME_PSTR("name"), this->name);
1489#ifdef USE_ENTITY_ICON
1490 dump_progmem_string_field(out, ESPHOME_PSTR("icon"), this->icon);
1491#endif
1492 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1493 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1494 dump_progmem_string_field(out, ESPHOME_PSTR("device_class"), this->device_class);
1495#ifdef USE_DEVICES
1496 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1497#endif
1498 return out.c_str();
1499}
1501 MessageDumpHelper helper(out, ESPHOME_PSTR("TextSensorStateResponse"));
1502 dump_field(out, ESPHOME_PSTR("key"), this->key);
1503 dump_field(out, ESPHOME_PSTR("state"), this->state);
1504 dump_field(out, ESPHOME_PSTR("missing_state"), this->missing_state);
1505#ifdef USE_DEVICES
1506 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1507#endif
1508 return out.c_str();
1509}
1510#endif
1512 MessageDumpHelper helper(out, ESPHOME_PSTR("SubscribeLogsRequest"));
1513 dump_field(out, ESPHOME_PSTR("level"), static_cast<enums::LogLevel>(this->level));
1514 dump_field(out, ESPHOME_PSTR("dump_config"), this->dump_config);
1515 return out.c_str();
1516}
1518 MessageDumpHelper helper(out, ESPHOME_PSTR("SubscribeLogsResponse"));
1519 dump_field(out, ESPHOME_PSTR("level"), static_cast<enums::LogLevel>(this->level));
1520 dump_bytes_field(out, ESPHOME_PSTR("message"), this->message_ptr_, this->message_len_);
1521 return out.c_str();
1522}
1523#ifdef USE_API_NOISE
1525 MessageDumpHelper helper(out, ESPHOME_PSTR("NoiseEncryptionSetKeyRequest"));
1526 dump_bytes_field(out, ESPHOME_PSTR("key"), this->key, this->key_len);
1527 return out.c_str();
1528}
1530 MessageDumpHelper helper(out, ESPHOME_PSTR("NoiseEncryptionSetKeyResponse"));
1531 dump_field(out, ESPHOME_PSTR("success"), this->success);
1532 return out.c_str();
1533}
1534#endif
1535#ifdef USE_API_HOMEASSISTANT_SERVICES
1537 MessageDumpHelper helper(out, ESPHOME_PSTR("HomeassistantServiceMap"));
1538 dump_progmem_string_field(out, ESPHOME_PSTR("key"), this->key);
1539 dump_progmem_string_field(out, ESPHOME_PSTR("value"), this->value);
1540 return out.c_str();
1541}
1543 MessageDumpHelper helper(out, ESPHOME_PSTR("HomeassistantActionRequest"));
1544 dump_progmem_string_field(out, ESPHOME_PSTR("service"), this->service);
1545 for (const auto &it : this->data) {
1546 out.append(4, ' ').append_p(ESPHOME_PSTR("data")).append(": ");
1547 it.dump_to(out);
1548 out.append("\n");
1549 }
1550 for (const auto &it : this->data_template) {
1551 out.append(4, ' ').append_p(ESPHOME_PSTR("data_template")).append(": ");
1552 it.dump_to(out);
1553 out.append("\n");
1554 }
1555 for (const auto &it : this->variables) {
1556 out.append(4, ' ').append_p(ESPHOME_PSTR("variables")).append(": ");
1557 it.dump_to(out);
1558 out.append("\n");
1559 }
1560 dump_field(out, ESPHOME_PSTR("is_event"), this->is_event);
1561#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES
1562 dump_field(out, ESPHOME_PSTR("call_id"), this->call_id);
1563#endif
1564#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1565 dump_field(out, ESPHOME_PSTR("wants_response"), this->wants_response);
1566#endif
1567#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1568 dump_field(out, ESPHOME_PSTR("response_template"), this->response_template);
1569#endif
1570 return out.c_str();
1571}
1572#endif
1573#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES
1575 MessageDumpHelper helper(out, ESPHOME_PSTR("HomeassistantActionResponse"));
1576 dump_field(out, ESPHOME_PSTR("call_id"), this->call_id);
1577 dump_field(out, ESPHOME_PSTR("success"), this->success);
1578 dump_field(out, ESPHOME_PSTR("error_message"), this->error_message);
1579#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1580 dump_bytes_field(out, ESPHOME_PSTR("response_data"), this->response_data, this->response_data_len);
1581#endif
1582 return out.c_str();
1583}
1584#endif
1585#ifdef USE_API_HOMEASSISTANT_STATES
1587 MessageDumpHelper helper(out, ESPHOME_PSTR("SubscribeHomeAssistantStateResponse"));
1588 dump_field(out, ESPHOME_PSTR("entity_id"), this->entity_id);
1589 dump_field(out, ESPHOME_PSTR("attribute"), this->attribute);
1590 dump_field(out, ESPHOME_PSTR("once"), this->once);
1591 return out.c_str();
1592}
1594 MessageDumpHelper helper(out, ESPHOME_PSTR("HomeAssistantStateResponse"));
1595 dump_field(out, ESPHOME_PSTR("entity_id"), this->entity_id);
1596 dump_field(out, ESPHOME_PSTR("state"), this->state);
1597 dump_field(out, ESPHOME_PSTR("attribute"), this->attribute);
1598 return out.c_str();
1599}
1600#endif
1602 out.append_p(ESPHOME_PSTR("GetTimeRequest {}"));
1603 return out.c_str();
1604}
1605const char *DSTRule::dump_to(DumpBuffer &out) const {
1606 MessageDumpHelper helper(out, ESPHOME_PSTR("DSTRule"));
1607 dump_field(out, ESPHOME_PSTR("time_seconds"), this->time_seconds);
1608 dump_field(out, ESPHOME_PSTR("day"), this->day);
1609 dump_field(out, ESPHOME_PSTR("type"), static_cast<enums::DSTRuleType>(this->type));
1610 dump_field(out, ESPHOME_PSTR("month"), this->month);
1611 dump_field(out, ESPHOME_PSTR("week"), this->week);
1612 dump_field(out, ESPHOME_PSTR("day_of_week"), this->day_of_week);
1613 return out.c_str();
1614}
1616 MessageDumpHelper helper(out, ESPHOME_PSTR("ParsedTimezone"));
1617 dump_field(out, ESPHOME_PSTR("std_offset_seconds"), this->std_offset_seconds);
1618 dump_field(out, ESPHOME_PSTR("dst_offset_seconds"), this->dst_offset_seconds);
1619 out.append(2, ' ').append_p(ESPHOME_PSTR("dst_start")).append(": ");
1620 this->dst_start.dump_to(out);
1621 out.append("\n");
1622 out.append(2, ' ').append_p(ESPHOME_PSTR("dst_end")).append(": ");
1623 this->dst_end.dump_to(out);
1624 out.append("\n");
1625 return out.c_str();
1626}
1628 MessageDumpHelper helper(out, ESPHOME_PSTR("GetTimeResponse"));
1629 dump_field(out, ESPHOME_PSTR("epoch_seconds"), this->epoch_seconds);
1630 dump_field(out, ESPHOME_PSTR("has_parsed_timezone"), this->has_parsed_timezone);
1631 out.append(2, ' ').append_p(ESPHOME_PSTR("parsed_timezone")).append(": ");
1632 this->parsed_timezone.dump_to(out);
1633 out.append("\n");
1634 return out.c_str();
1635}
1636#ifdef USE_API_USER_DEFINED_ACTIONS
1638 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesServicesArgument"));
1639 dump_progmem_string_field(out, ESPHOME_PSTR("name"), this->name);
1640 dump_field(out, ESPHOME_PSTR("type"), static_cast<enums::ServiceArgType>(this->type));
1641#ifdef USE_API_USER_DEFINED_ACTION_METADATA
1642 dump_progmem_string_field(out, ESPHOME_PSTR("description"), this->description);
1643#endif
1644#ifdef USE_API_USER_DEFINED_ACTION_METADATA
1645 dump_progmem_string_field(out, ESPHOME_PSTR("example"), this->example);
1646#endif
1647#ifdef USE_API_USER_DEFINED_ACTION_OPTIONAL_ARGS
1648 dump_field(out, ESPHOME_PSTR("optional"), this->optional);
1649#endif
1650#ifdef USE_API_USER_DEFINED_ACTION_OPTIONAL_ARGS
1651 dump_progmem_string_field(out, ESPHOME_PSTR("default_value"), this->default_value);
1652#endif
1653 return out.c_str();
1654}
1656 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesServicesResponse"));
1657 dump_progmem_string_field(out, ESPHOME_PSTR("name"), this->name);
1658 dump_field(out, ESPHOME_PSTR("key"), this->key);
1659 for (const auto &it : this->args) {
1660 out.append(4, ' ').append_p(ESPHOME_PSTR("args")).append(": ");
1661 it.dump_to(out);
1662 out.append("\n");
1663 }
1664 dump_field(out, ESPHOME_PSTR("supports_response"), static_cast<enums::SupportsResponseType>(this->supports_response));
1665#ifdef USE_API_USER_DEFINED_ACTION_METADATA
1666 dump_progmem_string_field(out, ESPHOME_PSTR("description"), this->description);
1667#endif
1668 return out.c_str();
1669}
1671 MessageDumpHelper helper(out, ESPHOME_PSTR("ExecuteServiceArgument"));
1672 dump_field(out, ESPHOME_PSTR("bool_"), this->bool_);
1673 dump_field(out, ESPHOME_PSTR("legacy_int"), this->legacy_int);
1674 dump_field(out, ESPHOME_PSTR("float_"), this->float_);
1675 dump_field(out, ESPHOME_PSTR("string_"), this->string_);
1676 dump_field(out, ESPHOME_PSTR("int_"), this->int_);
1677 for (const auto it : this->bool_array) {
1678 dump_field(out, ESPHOME_PSTR("bool_array"), static_cast<bool>(it), 4);
1679 }
1680 for (const auto &it : this->int_array) {
1681 dump_field(out, ESPHOME_PSTR("int_array"), it, 4);
1682 }
1683 for (const auto &it : this->float_array) {
1684 dump_field(out, ESPHOME_PSTR("float_array"), it, 4);
1685 }
1686 for (const auto &it : this->string_array) {
1687 dump_field(out, ESPHOME_PSTR("string_array"), it, 4);
1688 }
1689 return out.c_str();
1690}
1692 MessageDumpHelper helper(out, ESPHOME_PSTR("ExecuteServiceRequest"));
1693 dump_field(out, ESPHOME_PSTR("key"), this->key);
1694 for (const auto &it : this->args) {
1695 out.append(4, ' ').append_p(ESPHOME_PSTR("args")).append(": ");
1696 it.dump_to(out);
1697 out.append("\n");
1698 }
1699#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1700 dump_field(out, ESPHOME_PSTR("call_id"), this->call_id);
1701#endif
1702#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1703 dump_field(out, ESPHOME_PSTR("return_response"), this->return_response);
1704#endif
1705 return out.c_str();
1706}
1707#endif
1708#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1710 MessageDumpHelper helper(out, ESPHOME_PSTR("ExecuteServiceResponse"));
1711 dump_field(out, ESPHOME_PSTR("call_id"), this->call_id);
1712 dump_field(out, ESPHOME_PSTR("success"), this->success);
1713 dump_field(out, ESPHOME_PSTR("error_message"), this->error_message);
1714#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES_JSON
1715 dump_bytes_field(out, ESPHOME_PSTR("response_data"), this->response_data, this->response_data_len);
1716#endif
1717 return out.c_str();
1718}
1719#endif
1720#ifdef USE_CAMERA
1722 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesCameraResponse"));
1723 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1724 dump_field(out, ESPHOME_PSTR("key"), this->key);
1725 dump_progmem_string_field(out, ESPHOME_PSTR("name"), this->name);
1726 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1727#ifdef USE_ENTITY_ICON
1728 dump_progmem_string_field(out, ESPHOME_PSTR("icon"), this->icon);
1729#endif
1730 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1731#ifdef USE_DEVICES
1732 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1733#endif
1734 return out.c_str();
1735}
1737 MessageDumpHelper helper(out, ESPHOME_PSTR("CameraImageResponse"));
1738 dump_field(out, ESPHOME_PSTR("key"), this->key);
1739 dump_bytes_field(out, ESPHOME_PSTR("data"), this->data_ptr_, this->data_len_);
1740 dump_field(out, ESPHOME_PSTR("done"), this->done);
1741#ifdef USE_DEVICES
1742 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1743#endif
1744 return out.c_str();
1745}
1747 MessageDumpHelper helper(out, ESPHOME_PSTR("CameraImageRequest"));
1748 dump_field(out, ESPHOME_PSTR("single"), this->single);
1749 dump_field(out, ESPHOME_PSTR("stream"), this->stream);
1750 return out.c_str();
1751}
1752#endif
1753#ifdef USE_CLIMATE
1755 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesClimateResponse"));
1756 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1757 dump_field(out, ESPHOME_PSTR("key"), this->key);
1758 dump_progmem_string_field(out, ESPHOME_PSTR("name"), this->name);
1759 dump_field(out, ESPHOME_PSTR("supports_current_temperature"), this->supports_current_temperature);
1760 dump_field(out, ESPHOME_PSTR("supports_two_point_target_temperature"), this->supports_two_point_target_temperature);
1761 for (const auto &it : *this->supported_modes) {
1762 dump_field(out, ESPHOME_PSTR("supported_modes"), static_cast<enums::ClimateMode>(it), 4);
1763 }
1764 dump_field(out, ESPHOME_PSTR("visual_min_temperature"), this->visual_min_temperature);
1765 dump_field(out, ESPHOME_PSTR("visual_max_temperature"), this->visual_max_temperature);
1766 dump_field(out, ESPHOME_PSTR("visual_target_temperature_step"), this->visual_target_temperature_step);
1767 dump_field(out, ESPHOME_PSTR("supports_action"), this->supports_action);
1768 for (const auto &it : *this->supported_fan_modes) {
1769 dump_field(out, ESPHOME_PSTR("supported_fan_modes"), static_cast<enums::ClimateFanMode>(it), 4);
1770 }
1771 for (const auto &it : *this->supported_swing_modes) {
1772 dump_field(out, ESPHOME_PSTR("supported_swing_modes"), static_cast<enums::ClimateSwingMode>(it), 4);
1773 }
1774 for (const auto &it : *this->supported_custom_fan_modes) {
1775 dump_field(out, ESPHOME_PSTR("supported_custom_fan_modes"), it, 4);
1776 }
1777 for (const auto &it : *this->supported_presets) {
1778 dump_field(out, ESPHOME_PSTR("supported_presets"), static_cast<enums::ClimatePreset>(it), 4);
1779 }
1780 for (const auto &it : *this->supported_custom_presets) {
1781 dump_field(out, ESPHOME_PSTR("supported_custom_presets"), it, 4);
1782 }
1783 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1784#ifdef USE_ENTITY_ICON
1785 dump_progmem_string_field(out, ESPHOME_PSTR("icon"), this->icon);
1786#endif
1787 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1788 dump_field(out, ESPHOME_PSTR("visual_current_temperature_step"), this->visual_current_temperature_step);
1789 dump_field(out, ESPHOME_PSTR("supports_current_humidity"), this->supports_current_humidity);
1790 dump_field(out, ESPHOME_PSTR("supports_target_humidity"), this->supports_target_humidity);
1791 dump_field(out, ESPHOME_PSTR("visual_min_humidity"), this->visual_min_humidity);
1792 dump_field(out, ESPHOME_PSTR("visual_max_humidity"), this->visual_max_humidity);
1793#ifdef USE_DEVICES
1794 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1795#endif
1796 dump_field(out, ESPHOME_PSTR("feature_flags"), this->feature_flags);
1797 dump_field(out, ESPHOME_PSTR("temperature_unit"), static_cast<enums::TemperatureUnit>(this->temperature_unit));
1798 return out.c_str();
1799}
1801 MessageDumpHelper helper(out, ESPHOME_PSTR("ClimateStateResponse"));
1802 dump_field(out, ESPHOME_PSTR("key"), this->key);
1803 dump_field(out, ESPHOME_PSTR("mode"), static_cast<enums::ClimateMode>(this->mode));
1804 dump_field(out, ESPHOME_PSTR("current_temperature"), this->current_temperature);
1805 dump_field(out, ESPHOME_PSTR("target_temperature"), this->target_temperature);
1806 dump_field(out, ESPHOME_PSTR("target_temperature_low"), this->target_temperature_low);
1807 dump_field(out, ESPHOME_PSTR("target_temperature_high"), this->target_temperature_high);
1808 dump_field(out, ESPHOME_PSTR("action"), static_cast<enums::ClimateAction>(this->action));
1809 dump_field(out, ESPHOME_PSTR("fan_mode"), static_cast<enums::ClimateFanMode>(this->fan_mode));
1810 dump_field(out, ESPHOME_PSTR("swing_mode"), static_cast<enums::ClimateSwingMode>(this->swing_mode));
1811 dump_field(out, ESPHOME_PSTR("custom_fan_mode"), this->custom_fan_mode);
1812 dump_field(out, ESPHOME_PSTR("preset"), static_cast<enums::ClimatePreset>(this->preset));
1813 dump_field(out, ESPHOME_PSTR("custom_preset"), this->custom_preset);
1814 dump_field(out, ESPHOME_PSTR("current_humidity"), this->current_humidity);
1815 dump_field(out, ESPHOME_PSTR("target_humidity"), this->target_humidity);
1816#ifdef USE_DEVICES
1817 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1818#endif
1819 dump_field(out, ESPHOME_PSTR("missing_state"), this->missing_state);
1820 return out.c_str();
1821}
1823 MessageDumpHelper helper(out, ESPHOME_PSTR("ClimateCommandRequest"));
1824 dump_field(out, ESPHOME_PSTR("key"), this->key);
1825 dump_field(out, ESPHOME_PSTR("has_mode"), this->has_mode);
1826 dump_field(out, ESPHOME_PSTR("mode"), static_cast<enums::ClimateMode>(this->mode));
1827 dump_field(out, ESPHOME_PSTR("has_target_temperature"), this->has_target_temperature);
1828 dump_field(out, ESPHOME_PSTR("target_temperature"), this->target_temperature);
1829 dump_field(out, ESPHOME_PSTR("has_target_temperature_low"), this->has_target_temperature_low);
1830 dump_field(out, ESPHOME_PSTR("target_temperature_low"), this->target_temperature_low);
1831 dump_field(out, ESPHOME_PSTR("has_target_temperature_high"), this->has_target_temperature_high);
1832 dump_field(out, ESPHOME_PSTR("target_temperature_high"), this->target_temperature_high);
1833 dump_field(out, ESPHOME_PSTR("has_fan_mode"), this->has_fan_mode);
1834 dump_field(out, ESPHOME_PSTR("fan_mode"), static_cast<enums::ClimateFanMode>(this->fan_mode));
1835 dump_field(out, ESPHOME_PSTR("has_swing_mode"), this->has_swing_mode);
1836 dump_field(out, ESPHOME_PSTR("swing_mode"), static_cast<enums::ClimateSwingMode>(this->swing_mode));
1837 dump_field(out, ESPHOME_PSTR("has_custom_fan_mode"), this->has_custom_fan_mode);
1838 dump_field(out, ESPHOME_PSTR("custom_fan_mode"), this->custom_fan_mode);
1839 dump_field(out, ESPHOME_PSTR("has_preset"), this->has_preset);
1840 dump_field(out, ESPHOME_PSTR("preset"), static_cast<enums::ClimatePreset>(this->preset));
1841 dump_field(out, ESPHOME_PSTR("has_custom_preset"), this->has_custom_preset);
1842 dump_field(out, ESPHOME_PSTR("custom_preset"), this->custom_preset);
1843 dump_field(out, ESPHOME_PSTR("has_target_humidity"), this->has_target_humidity);
1844 dump_field(out, ESPHOME_PSTR("target_humidity"), this->target_humidity);
1845#ifdef USE_DEVICES
1846 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1847#endif
1848 return out.c_str();
1849}
1850#endif
1851#ifdef USE_WATER_HEATER
1853 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesWaterHeaterResponse"));
1854 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1855 dump_field(out, ESPHOME_PSTR("key"), this->key);
1856 dump_progmem_string_field(out, ESPHOME_PSTR("name"), this->name);
1857#ifdef USE_ENTITY_ICON
1858 dump_progmem_string_field(out, ESPHOME_PSTR("icon"), this->icon);
1859#endif
1860 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1861 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1862#ifdef USE_DEVICES
1863 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1864#endif
1865 dump_field(out, ESPHOME_PSTR("min_temperature"), this->min_temperature);
1866 dump_field(out, ESPHOME_PSTR("max_temperature"), this->max_temperature);
1867 dump_field(out, ESPHOME_PSTR("target_temperature_step"), this->target_temperature_step);
1868 for (const auto &it : *this->supported_modes) {
1869 dump_field(out, ESPHOME_PSTR("supported_modes"), static_cast<enums::WaterHeaterMode>(it), 4);
1870 }
1871 dump_field(out, ESPHOME_PSTR("supported_features"), this->supported_features);
1872 dump_field(out, ESPHOME_PSTR("temperature_unit"), static_cast<enums::TemperatureUnit>(this->temperature_unit));
1873 return out.c_str();
1874}
1876 MessageDumpHelper helper(out, ESPHOME_PSTR("WaterHeaterStateResponse"));
1877 dump_field(out, ESPHOME_PSTR("key"), this->key);
1878 dump_field(out, ESPHOME_PSTR("current_temperature"), this->current_temperature);
1879 dump_field(out, ESPHOME_PSTR("target_temperature"), this->target_temperature);
1880 dump_field(out, ESPHOME_PSTR("mode"), static_cast<enums::WaterHeaterMode>(this->mode));
1881#ifdef USE_DEVICES
1882 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1883#endif
1884 dump_field(out, ESPHOME_PSTR("state"), this->state);
1885 dump_field(out, ESPHOME_PSTR("target_temperature_low"), this->target_temperature_low);
1886 dump_field(out, ESPHOME_PSTR("target_temperature_high"), this->target_temperature_high);
1887 dump_field(out, ESPHOME_PSTR("missing_state"), this->missing_state);
1888 return out.c_str();
1889}
1891 MessageDumpHelper helper(out, ESPHOME_PSTR("WaterHeaterCommandRequest"));
1892 dump_field(out, ESPHOME_PSTR("key"), this->key);
1893 dump_field(out, ESPHOME_PSTR("has_fields"), this->has_fields);
1894 dump_field(out, ESPHOME_PSTR("mode"), static_cast<enums::WaterHeaterMode>(this->mode));
1895 dump_field(out, ESPHOME_PSTR("target_temperature"), this->target_temperature);
1896#ifdef USE_DEVICES
1897 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1898#endif
1899 dump_field(out, ESPHOME_PSTR("state"), this->state);
1900 dump_field(out, ESPHOME_PSTR("target_temperature_low"), this->target_temperature_low);
1901 dump_field(out, ESPHOME_PSTR("target_temperature_high"), this->target_temperature_high);
1902 return out.c_str();
1903}
1904#endif
1905#ifdef USE_NUMBER
1907 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesNumberResponse"));
1908 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1909 dump_field(out, ESPHOME_PSTR("key"), this->key);
1910 dump_progmem_string_field(out, ESPHOME_PSTR("name"), this->name);
1911#ifdef USE_ENTITY_ICON
1912 dump_progmem_string_field(out, ESPHOME_PSTR("icon"), this->icon);
1913#endif
1914 dump_field(out, ESPHOME_PSTR("min_value"), this->min_value);
1915 dump_field(out, ESPHOME_PSTR("max_value"), this->max_value);
1916 dump_field(out, ESPHOME_PSTR("step"), this->step);
1917 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1918 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1919 dump_field(out, ESPHOME_PSTR("unit_of_measurement"), this->unit_of_measurement);
1920 dump_field(out, ESPHOME_PSTR("mode"), static_cast<enums::NumberMode>(this->mode));
1921 dump_progmem_string_field(out, ESPHOME_PSTR("device_class"), this->device_class);
1922#ifdef USE_DEVICES
1923 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1924#endif
1925 return out.c_str();
1926}
1928 MessageDumpHelper helper(out, ESPHOME_PSTR("NumberStateResponse"));
1929 dump_field(out, ESPHOME_PSTR("key"), this->key);
1930 dump_field(out, ESPHOME_PSTR("state"), this->state);
1931 dump_field(out, ESPHOME_PSTR("missing_state"), this->missing_state);
1932#ifdef USE_DEVICES
1933 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1934#endif
1935 return out.c_str();
1936}
1938 MessageDumpHelper helper(out, ESPHOME_PSTR("NumberCommandRequest"));
1939 dump_field(out, ESPHOME_PSTR("key"), this->key);
1940 dump_field(out, ESPHOME_PSTR("state"), this->state);
1941#ifdef USE_DEVICES
1942 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1943#endif
1944 return out.c_str();
1945}
1946#endif
1947#ifdef USE_SELECT
1949 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesSelectResponse"));
1950 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1951 dump_field(out, ESPHOME_PSTR("key"), this->key);
1952 dump_progmem_string_field(out, ESPHOME_PSTR("name"), this->name);
1953#ifdef USE_ENTITY_ICON
1954 dump_progmem_string_field(out, ESPHOME_PSTR("icon"), this->icon);
1955#endif
1956 for (const auto &it : *this->options) {
1957 dump_field(out, ESPHOME_PSTR("options"), it, 4);
1958 }
1959 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1960 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
1961#ifdef USE_DEVICES
1962 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1963#endif
1964 return out.c_str();
1965}
1967 MessageDumpHelper helper(out, ESPHOME_PSTR("SelectStateResponse"));
1968 dump_field(out, ESPHOME_PSTR("key"), this->key);
1969 dump_field(out, ESPHOME_PSTR("state"), this->state);
1970 dump_field(out, ESPHOME_PSTR("missing_state"), this->missing_state);
1971#ifdef USE_DEVICES
1972 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1973#endif
1974 return out.c_str();
1975}
1977 MessageDumpHelper helper(out, ESPHOME_PSTR("SelectCommandRequest"));
1978 dump_field(out, ESPHOME_PSTR("key"), this->key);
1979 dump_field(out, ESPHOME_PSTR("state"), this->state);
1980#ifdef USE_DEVICES
1981 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
1982#endif
1983 return out.c_str();
1984}
1985#endif
1986#ifdef USE_SIREN
1988 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesSirenResponse"));
1989 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
1990 dump_field(out, ESPHOME_PSTR("key"), this->key);
1991 dump_progmem_string_field(out, ESPHOME_PSTR("name"), this->name);
1992#ifdef USE_ENTITY_ICON
1993 dump_progmem_string_field(out, ESPHOME_PSTR("icon"), this->icon);
1994#endif
1995 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
1996 for (const auto &it : *this->tones) {
1997 dump_field(out, ESPHOME_PSTR("tones"), it, 4);
1998 }
1999 dump_field(out, ESPHOME_PSTR("supports_duration"), this->supports_duration);
2000 dump_field(out, ESPHOME_PSTR("supports_volume"), this->supports_volume);
2001 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
2002#ifdef USE_DEVICES
2003 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2004#endif
2005 return out.c_str();
2006}
2008 MessageDumpHelper helper(out, ESPHOME_PSTR("SirenStateResponse"));
2009 dump_field(out, ESPHOME_PSTR("key"), this->key);
2010 dump_field(out, ESPHOME_PSTR("state"), this->state);
2011#ifdef USE_DEVICES
2012 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2013#endif
2014 return out.c_str();
2015}
2017 MessageDumpHelper helper(out, ESPHOME_PSTR("SirenCommandRequest"));
2018 dump_field(out, ESPHOME_PSTR("key"), this->key);
2019 dump_field(out, ESPHOME_PSTR("has_state"), this->has_state);
2020 dump_field(out, ESPHOME_PSTR("state"), this->state);
2021 dump_field(out, ESPHOME_PSTR("has_tone"), this->has_tone);
2022 dump_field(out, ESPHOME_PSTR("tone"), this->tone);
2023 dump_field(out, ESPHOME_PSTR("has_duration"), this->has_duration);
2024 dump_field(out, ESPHOME_PSTR("duration"), this->duration);
2025 dump_field(out, ESPHOME_PSTR("has_volume"), this->has_volume);
2026 dump_field(out, ESPHOME_PSTR("volume"), this->volume);
2027#ifdef USE_DEVICES
2028 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2029#endif
2030 return out.c_str();
2031}
2032#endif
2033#ifdef USE_LOCK
2035 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesLockResponse"));
2036 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
2037 dump_field(out, ESPHOME_PSTR("key"), this->key);
2038 dump_progmem_string_field(out, ESPHOME_PSTR("name"), this->name);
2039#ifdef USE_ENTITY_ICON
2040 dump_progmem_string_field(out, ESPHOME_PSTR("icon"), this->icon);
2041#endif
2042 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
2043 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
2044 dump_field(out, ESPHOME_PSTR("assumed_state"), this->assumed_state);
2045 dump_field(out, ESPHOME_PSTR("supports_open"), this->supports_open);
2046 dump_field(out, ESPHOME_PSTR("requires_code"), this->requires_code);
2047 dump_field(out, ESPHOME_PSTR("code_format"), this->code_format);
2048#ifdef USE_DEVICES
2049 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2050#endif
2051 return out.c_str();
2052}
2054 MessageDumpHelper helper(out, ESPHOME_PSTR("LockStateResponse"));
2055 dump_field(out, ESPHOME_PSTR("key"), this->key);
2056 dump_field(out, ESPHOME_PSTR("state"), static_cast<enums::LockState>(this->state));
2057#ifdef USE_DEVICES
2058 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2059#endif
2060 return out.c_str();
2061}
2063 MessageDumpHelper helper(out, ESPHOME_PSTR("LockCommandRequest"));
2064 dump_field(out, ESPHOME_PSTR("key"), this->key);
2065 dump_field(out, ESPHOME_PSTR("command"), static_cast<enums::LockCommand>(this->command));
2066 dump_field(out, ESPHOME_PSTR("has_code"), this->has_code);
2067 dump_field(out, ESPHOME_PSTR("code"), this->code);
2068#ifdef USE_DEVICES
2069 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2070#endif
2071 return out.c_str();
2072}
2073#endif
2074#ifdef USE_BUTTON
2076 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesButtonResponse"));
2077 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
2078 dump_field(out, ESPHOME_PSTR("key"), this->key);
2079 dump_progmem_string_field(out, ESPHOME_PSTR("name"), this->name);
2080#ifdef USE_ENTITY_ICON
2081 dump_progmem_string_field(out, ESPHOME_PSTR("icon"), this->icon);
2082#endif
2083 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
2084 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
2085 dump_progmem_string_field(out, ESPHOME_PSTR("device_class"), this->device_class);
2086#ifdef USE_DEVICES
2087 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2088#endif
2089 return out.c_str();
2090}
2092 MessageDumpHelper helper(out, ESPHOME_PSTR("ButtonCommandRequest"));
2093 dump_field(out, ESPHOME_PSTR("key"), this->key);
2094#ifdef USE_DEVICES
2095 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2096#endif
2097 return out.c_str();
2098}
2099#endif
2100#ifdef USE_MEDIA_PLAYER
2102 MessageDumpHelper helper(out, ESPHOME_PSTR("MediaPlayerSupportedFormat"));
2103 dump_field(out, ESPHOME_PSTR("format"), this->format);
2104 dump_field(out, ESPHOME_PSTR("sample_rate"), this->sample_rate);
2105 dump_field(out, ESPHOME_PSTR("num_channels"), this->num_channels);
2106 dump_field(out, ESPHOME_PSTR("purpose"), static_cast<enums::MediaPlayerFormatPurpose>(this->purpose));
2107 dump_field(out, ESPHOME_PSTR("sample_bytes"), this->sample_bytes);
2108 dump_field(out, ESPHOME_PSTR("bitrate"), this->bitrate);
2109 return out.c_str();
2110}
2112 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesMediaPlayerResponse"));
2113 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
2114 dump_field(out, ESPHOME_PSTR("key"), this->key);
2115 dump_progmem_string_field(out, ESPHOME_PSTR("name"), this->name);
2116#ifdef USE_ENTITY_ICON
2117 dump_progmem_string_field(out, ESPHOME_PSTR("icon"), this->icon);
2118#endif
2119 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
2120 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
2121 for (const auto &it : this->supported_formats) {
2122 out.append(4, ' ').append_p(ESPHOME_PSTR("supported_formats")).append(": ");
2123 it.dump_to(out);
2124 out.append("\n");
2125 }
2126#ifdef USE_DEVICES
2127 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2128#endif
2129 dump_field(out, ESPHOME_PSTR("feature_flags"), this->feature_flags);
2130 return out.c_str();
2131}
2133 MessageDumpHelper helper(out, ESPHOME_PSTR("MediaPlayerStateResponse"));
2134 dump_field(out, ESPHOME_PSTR("key"), this->key);
2135 dump_field(out, ESPHOME_PSTR("state"), static_cast<enums::MediaPlayerState>(this->state));
2136 dump_field(out, ESPHOME_PSTR("volume"), this->volume);
2137 dump_field(out, ESPHOME_PSTR("muted"), this->muted);
2138#ifdef USE_DEVICES
2139 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2140#endif
2141 return out.c_str();
2142}
2144 MessageDumpHelper helper(out, ESPHOME_PSTR("MediaPlayerCommandRequest"));
2145 dump_field(out, ESPHOME_PSTR("key"), this->key);
2146 dump_field(out, ESPHOME_PSTR("has_command"), this->has_command);
2147 dump_field(out, ESPHOME_PSTR("command"), static_cast<enums::MediaPlayerCommand>(this->command));
2148 dump_field(out, ESPHOME_PSTR("has_volume"), this->has_volume);
2149 dump_field(out, ESPHOME_PSTR("volume"), this->volume);
2150 dump_field(out, ESPHOME_PSTR("has_media_url"), this->has_media_url);
2151 dump_field(out, ESPHOME_PSTR("media_url"), this->media_url);
2152 dump_field(out, ESPHOME_PSTR("has_announcement"), this->has_announcement);
2153 dump_field(out, ESPHOME_PSTR("announcement"), this->announcement);
2154#ifdef USE_DEVICES
2155 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2156#endif
2157 return out.c_str();
2158}
2159#endif
2160#ifdef USE_BLUETOOTH_PROXY
2162 MessageDumpHelper helper(out, ESPHOME_PSTR("SubscribeBluetoothLEAdvertisementsRequest"));
2163 dump_field(out, ESPHOME_PSTR("flags"), this->flags);
2164 return out.c_str();
2165}
2167 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothLERawAdvertisement"));
2168 dump_field(out, ESPHOME_PSTR("address"), this->address);
2169 dump_field(out, ESPHOME_PSTR("rssi"), this->rssi);
2170 dump_field(out, ESPHOME_PSTR("address_type"), this->address_type);
2171 dump_bytes_field(out, ESPHOME_PSTR("data"), this->data, this->data_len);
2172 return out.c_str();
2173}
2175 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothLERawAdvertisementsResponse"));
2176 for (uint16_t i = 0; i < this->advertisements_len; i++) {
2177 out.append(4, ' ').append_p(ESPHOME_PSTR("advertisements")).append(": ");
2178 this->advertisements[i].dump_to(out);
2179 out.append("\n");
2180 }
2181 return out.c_str();
2182}
2183#endif
2184#ifdef USE_BLUETOOTH_PROXY_CONNECTIONS
2186 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothDeviceRequest"));
2187 dump_field(out, ESPHOME_PSTR("address"), this->address);
2188 dump_field(out, ESPHOME_PSTR("request_type"), static_cast<enums::BluetoothDeviceRequestType>(this->request_type));
2189 dump_field(out, ESPHOME_PSTR("has_address_type"), this->has_address_type);
2190 dump_field(out, ESPHOME_PSTR("address_type"), this->address_type);
2191 return out.c_str();
2192}
2194 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothDeviceConnectionResponse"));
2195 dump_field(out, ESPHOME_PSTR("address"), this->address);
2196 dump_field(out, ESPHOME_PSTR("connected"), this->connected);
2197 dump_field(out, ESPHOME_PSTR("mtu"), this->mtu);
2198 dump_field(out, ESPHOME_PSTR("error"), this->error);
2199 return out.c_str();
2200}
2202 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTGetServicesRequest"));
2203 dump_field(out, ESPHOME_PSTR("address"), this->address);
2204 return out.c_str();
2205}
2207 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTDescriptor"));
2208 for (const auto &it : this->uuid) {
2209 dump_field(out, ESPHOME_PSTR("uuid"), it, 4);
2210 }
2211 dump_field(out, ESPHOME_PSTR("handle"), this->handle);
2212 dump_field(out, ESPHOME_PSTR("short_uuid"), this->short_uuid);
2213 return out.c_str();
2214}
2216 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTCharacteristic"));
2217 for (const auto &it : this->uuid) {
2218 dump_field(out, ESPHOME_PSTR("uuid"), it, 4);
2219 }
2220 dump_field(out, ESPHOME_PSTR("handle"), this->handle);
2221 dump_field(out, ESPHOME_PSTR("properties"), this->properties);
2222 for (const auto &it : this->descriptors) {
2223 out.append(4, ' ').append_p(ESPHOME_PSTR("descriptors")).append(": ");
2224 it.dump_to(out);
2225 out.append("\n");
2226 }
2227 dump_field(out, ESPHOME_PSTR("short_uuid"), this->short_uuid);
2228 return out.c_str();
2229}
2231 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTService"));
2232 for (const auto &it : this->uuid) {
2233 dump_field(out, ESPHOME_PSTR("uuid"), it, 4);
2234 }
2235 dump_field(out, ESPHOME_PSTR("handle"), this->handle);
2236 for (const auto &it : this->characteristics) {
2237 out.append(4, ' ').append_p(ESPHOME_PSTR("characteristics")).append(": ");
2238 it.dump_to(out);
2239 out.append("\n");
2240 }
2241 dump_field(out, ESPHOME_PSTR("short_uuid"), this->short_uuid);
2242 return out.c_str();
2243}
2245 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTGetServicesResponse"));
2246 dump_field(out, ESPHOME_PSTR("address"), this->address);
2247 for (const auto &it : this->services) {
2248 out.append(4, ' ').append_p(ESPHOME_PSTR("services")).append(": ");
2249 it.dump_to(out);
2250 out.append("\n");
2251 }
2252 return out.c_str();
2253}
2255 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTGetServicesDoneResponse"));
2256 dump_field(out, ESPHOME_PSTR("address"), this->address);
2257 return out.c_str();
2258}
2260 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTReadRequest"));
2261 dump_field(out, ESPHOME_PSTR("address"), this->address);
2262 dump_field(out, ESPHOME_PSTR("handle"), this->handle);
2263 return out.c_str();
2264}
2266 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTReadResponse"));
2267 dump_field(out, ESPHOME_PSTR("address"), this->address);
2268 dump_field(out, ESPHOME_PSTR("handle"), this->handle);
2269 dump_bytes_field(out, ESPHOME_PSTR("data"), this->data_ptr_, this->data_len_);
2270 return out.c_str();
2271}
2273 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTWriteRequest"));
2274 dump_field(out, ESPHOME_PSTR("address"), this->address);
2275 dump_field(out, ESPHOME_PSTR("handle"), this->handle);
2276 dump_field(out, ESPHOME_PSTR("response"), this->response);
2277 dump_bytes_field(out, ESPHOME_PSTR("data"), this->data, this->data_len);
2278 return out.c_str();
2279}
2281 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTReadDescriptorRequest"));
2282 dump_field(out, ESPHOME_PSTR("address"), this->address);
2283 dump_field(out, ESPHOME_PSTR("handle"), this->handle);
2284 return out.c_str();
2285}
2287 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTWriteDescriptorRequest"));
2288 dump_field(out, ESPHOME_PSTR("address"), this->address);
2289 dump_field(out, ESPHOME_PSTR("handle"), this->handle);
2290 dump_bytes_field(out, ESPHOME_PSTR("data"), this->data, this->data_len);
2291 return out.c_str();
2292}
2294 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTNotifyRequest"));
2295 dump_field(out, ESPHOME_PSTR("address"), this->address);
2296 dump_field(out, ESPHOME_PSTR("handle"), this->handle);
2297 dump_field(out, ESPHOME_PSTR("enable"), this->enable);
2298 return out.c_str();
2299}
2301 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTNotifyDataResponse"));
2302 dump_field(out, ESPHOME_PSTR("address"), this->address);
2303 dump_field(out, ESPHOME_PSTR("handle"), this->handle);
2304 dump_bytes_field(out, ESPHOME_PSTR("data"), this->data_ptr_, this->data_len_);
2305 return out.c_str();
2306}
2308 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothConnectionsFreeResponse"));
2309 dump_field(out, ESPHOME_PSTR("free"), this->free);
2310 dump_field(out, ESPHOME_PSTR("limit"), this->limit);
2311 for (const auto &it : this->allocated) {
2312 dump_field(out, ESPHOME_PSTR("allocated"), it, 4);
2313 }
2314 return out.c_str();
2315}
2317 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTErrorResponse"));
2318 dump_field(out, ESPHOME_PSTR("address"), this->address);
2319 dump_field(out, ESPHOME_PSTR("handle"), this->handle);
2320 dump_field(out, ESPHOME_PSTR("error"), this->error);
2321 return out.c_str();
2322}
2324 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTWriteResponse"));
2325 dump_field(out, ESPHOME_PSTR("address"), this->address);
2326 dump_field(out, ESPHOME_PSTR("handle"), this->handle);
2327 return out.c_str();
2328}
2330 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothGATTNotifyResponse"));
2331 dump_field(out, ESPHOME_PSTR("address"), this->address);
2332 dump_field(out, ESPHOME_PSTR("handle"), this->handle);
2333 return out.c_str();
2334}
2336 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothDevicePairingResponse"));
2337 dump_field(out, ESPHOME_PSTR("address"), this->address);
2338 dump_field(out, ESPHOME_PSTR("paired"), this->paired);
2339 dump_field(out, ESPHOME_PSTR("error"), this->error);
2340 return out.c_str();
2341}
2343 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothDeviceUnpairingResponse"));
2344 dump_field(out, ESPHOME_PSTR("address"), this->address);
2345 dump_field(out, ESPHOME_PSTR("success"), this->success);
2346 dump_field(out, ESPHOME_PSTR("error"), this->error);
2347 return out.c_str();
2348}
2350 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothDeviceClearCacheResponse"));
2351 dump_field(out, ESPHOME_PSTR("address"), this->address);
2352 dump_field(out, ESPHOME_PSTR("success"), this->success);
2353 dump_field(out, ESPHOME_PSTR("error"), this->error);
2354 return out.c_str();
2355}
2356#endif
2357#ifdef USE_BLUETOOTH_PROXY
2359 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothScannerStateResponse"));
2360 dump_field(out, ESPHOME_PSTR("state"), static_cast<enums::BluetoothScannerState>(this->state));
2361 dump_field(out, ESPHOME_PSTR("mode"), static_cast<enums::BluetoothScannerMode>(this->mode));
2362 dump_field(out, ESPHOME_PSTR("configured_mode"), static_cast<enums::BluetoothScannerMode>(this->configured_mode));
2363 return out.c_str();
2364}
2366 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothScannerSetModeRequest"));
2367 dump_field(out, ESPHOME_PSTR("mode"), static_cast<enums::BluetoothScannerMode>(this->mode));
2368 return out.c_str();
2369}
2370#endif
2371#ifdef USE_VOICE_ASSISTANT
2373 MessageDumpHelper helper(out, ESPHOME_PSTR("SubscribeVoiceAssistantRequest"));
2374 dump_field(out, ESPHOME_PSTR("subscribe"), this->subscribe);
2375 dump_field(out, ESPHOME_PSTR("flags"), this->flags);
2376 return out.c_str();
2377}
2379 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantAudioSettings"));
2380 dump_field(out, ESPHOME_PSTR("noise_suppression_level"), this->noise_suppression_level);
2381 dump_field(out, ESPHOME_PSTR("auto_gain"), this->auto_gain);
2382 dump_field(out, ESPHOME_PSTR("volume_multiplier"), this->volume_multiplier);
2383 return out.c_str();
2384}
2386 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantRequest"));
2387 dump_field(out, ESPHOME_PSTR("start"), this->start);
2388 dump_field(out, ESPHOME_PSTR("conversation_id"), this->conversation_id);
2389 dump_field(out, ESPHOME_PSTR("flags"), this->flags);
2390 out.append(2, ' ').append_p(ESPHOME_PSTR("audio_settings")).append(": ");
2391 this->audio_settings.dump_to(out);
2392 out.append("\n");
2393 dump_field(out, ESPHOME_PSTR("wake_word_phrase"), this->wake_word_phrase);
2394 return out.c_str();
2395}
2397 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantResponse"));
2398 dump_field(out, ESPHOME_PSTR("port"), this->port);
2399 dump_field(out, ESPHOME_PSTR("error"), this->error);
2400 return out.c_str();
2401}
2403 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantEventData"));
2404 dump_field(out, ESPHOME_PSTR("name"), this->name);
2405 dump_field(out, ESPHOME_PSTR("value"), this->value);
2406 return out.c_str();
2407}
2409 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantEventResponse"));
2410 dump_field(out, ESPHOME_PSTR("event_type"), static_cast<enums::VoiceAssistantEvent>(this->event_type));
2411 for (const auto &it : this->data) {
2412 out.append(4, ' ').append_p(ESPHOME_PSTR("data")).append(": ");
2413 it.dump_to(out);
2414 out.append("\n");
2415 }
2416 return out.c_str();
2417}
2419 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantAudio"));
2420 dump_bytes_field(out, ESPHOME_PSTR("data"), this->data, this->data_len);
2421 dump_field(out, ESPHOME_PSTR("end"), this->end);
2422 dump_bytes_field(out, ESPHOME_PSTR("data2"), this->data2, this->data2_len);
2423 return out.c_str();
2424}
2426 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantTimerEventResponse"));
2427 dump_field(out, ESPHOME_PSTR("event_type"), static_cast<enums::VoiceAssistantTimerEvent>(this->event_type));
2428 dump_field(out, ESPHOME_PSTR("timer_id"), this->timer_id);
2429 dump_field(out, ESPHOME_PSTR("name"), this->name);
2430 dump_field(out, ESPHOME_PSTR("total_seconds"), this->total_seconds);
2431 dump_field(out, ESPHOME_PSTR("seconds_left"), this->seconds_left);
2432 dump_field(out, ESPHOME_PSTR("is_active"), this->is_active);
2433 return out.c_str();
2434}
2436 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantAnnounceRequest"));
2437 dump_field(out, ESPHOME_PSTR("media_id"), this->media_id);
2438 dump_field(out, ESPHOME_PSTR("text"), this->text);
2439 dump_field(out, ESPHOME_PSTR("preannounce_media_id"), this->preannounce_media_id);
2440 dump_field(out, ESPHOME_PSTR("start_conversation"), this->start_conversation);
2441 return out.c_str();
2442}
2444 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantAnnounceFinished"));
2445 dump_field(out, ESPHOME_PSTR("success"), this->success);
2446 return out.c_str();
2447}
2449 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantWakeWord"));
2450 dump_field(out, ESPHOME_PSTR("id"), this->id);
2451 dump_field(out, ESPHOME_PSTR("wake_word"), this->wake_word);
2452 for (const auto &it : this->trained_languages) {
2453 dump_field(out, ESPHOME_PSTR("trained_languages"), it, 4);
2454 }
2455 return out.c_str();
2456}
2458 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantExternalWakeWord"));
2459 dump_field(out, ESPHOME_PSTR("id"), this->id);
2460 dump_field(out, ESPHOME_PSTR("wake_word"), this->wake_word);
2461 for (const auto &it : this->trained_languages) {
2462 dump_field(out, ESPHOME_PSTR("trained_languages"), it, 4);
2463 }
2464 dump_field(out, ESPHOME_PSTR("model_type"), this->model_type);
2465 dump_field(out, ESPHOME_PSTR("model_size"), this->model_size);
2466 dump_field(out, ESPHOME_PSTR("model_hash"), this->model_hash);
2467 dump_field(out, ESPHOME_PSTR("url"), this->url);
2468 return out.c_str();
2469}
2471 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantConfigurationRequest"));
2472 for (const auto &it : this->external_wake_words) {
2473 out.append(4, ' ').append_p(ESPHOME_PSTR("external_wake_words")).append(": ");
2474 it.dump_to(out);
2475 out.append("\n");
2476 }
2477 return out.c_str();
2478}
2480 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantConfigurationResponse"));
2481 for (const auto &it : this->available_wake_words) {
2482 out.append(4, ' ').append_p(ESPHOME_PSTR("available_wake_words")).append(": ");
2483 it.dump_to(out);
2484 out.append("\n");
2485 }
2486 for (const auto &it : *this->active_wake_words) {
2487 dump_field(out, ESPHOME_PSTR("active_wake_words"), it, 4);
2488 }
2489 dump_field(out, ESPHOME_PSTR("max_active_wake_words"), this->max_active_wake_words);
2490 return out.c_str();
2491}
2493 MessageDumpHelper helper(out, ESPHOME_PSTR("VoiceAssistantSetConfiguration"));
2494 for (const auto &it : this->active_wake_words) {
2495 dump_field(out, ESPHOME_PSTR("active_wake_words"), it, 4);
2496 }
2497 return out.c_str();
2498}
2499#endif
2500#ifdef USE_ALARM_CONTROL_PANEL
2502 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesAlarmControlPanelResponse"));
2503 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
2504 dump_field(out, ESPHOME_PSTR("key"), this->key);
2505 dump_progmem_string_field(out, ESPHOME_PSTR("name"), this->name);
2506#ifdef USE_ENTITY_ICON
2507 dump_progmem_string_field(out, ESPHOME_PSTR("icon"), this->icon);
2508#endif
2509 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
2510 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
2511 dump_field(out, ESPHOME_PSTR("supported_features"), this->supported_features);
2512 dump_field(out, ESPHOME_PSTR("requires_code"), this->requires_code);
2513 dump_field(out, ESPHOME_PSTR("requires_code_to_arm"), this->requires_code_to_arm);
2514#ifdef USE_DEVICES
2515 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2516#endif
2517 return out.c_str();
2518}
2520 MessageDumpHelper helper(out, ESPHOME_PSTR("AlarmControlPanelStateResponse"));
2521 dump_field(out, ESPHOME_PSTR("key"), this->key);
2522 dump_field(out, ESPHOME_PSTR("state"), static_cast<enums::AlarmControlPanelState>(this->state));
2523#ifdef USE_DEVICES
2524 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2525#endif
2526 return out.c_str();
2527}
2529 MessageDumpHelper helper(out, ESPHOME_PSTR("AlarmControlPanelCommandRequest"));
2530 dump_field(out, ESPHOME_PSTR("key"), this->key);
2531 dump_field(out, ESPHOME_PSTR("command"), static_cast<enums::AlarmControlPanelStateCommand>(this->command));
2532 dump_field(out, ESPHOME_PSTR("code"), this->code);
2533#ifdef USE_DEVICES
2534 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2535#endif
2536 return out.c_str();
2537}
2538#endif
2539#ifdef USE_TEXT
2541 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesTextResponse"));
2542 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
2543 dump_field(out, ESPHOME_PSTR("key"), this->key);
2544 dump_progmem_string_field(out, ESPHOME_PSTR("name"), this->name);
2545#ifdef USE_ENTITY_ICON
2546 dump_progmem_string_field(out, ESPHOME_PSTR("icon"), this->icon);
2547#endif
2548 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
2549 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
2550 dump_field(out, ESPHOME_PSTR("min_length"), this->min_length);
2551 dump_field(out, ESPHOME_PSTR("max_length"), this->max_length);
2552 dump_field(out, ESPHOME_PSTR("pattern"), this->pattern);
2553 dump_field(out, ESPHOME_PSTR("mode"), static_cast<enums::TextMode>(this->mode));
2554#ifdef USE_DEVICES
2555 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2556#endif
2557 return out.c_str();
2558}
2560 MessageDumpHelper helper(out, ESPHOME_PSTR("TextStateResponse"));
2561 dump_field(out, ESPHOME_PSTR("key"), this->key);
2562 dump_field(out, ESPHOME_PSTR("state"), this->state);
2563 dump_field(out, ESPHOME_PSTR("missing_state"), this->missing_state);
2564#ifdef USE_DEVICES
2565 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2566#endif
2567 return out.c_str();
2568}
2570 MessageDumpHelper helper(out, ESPHOME_PSTR("TextCommandRequest"));
2571 dump_field(out, ESPHOME_PSTR("key"), this->key);
2572 dump_field(out, ESPHOME_PSTR("state"), this->state);
2573#ifdef USE_DEVICES
2574 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2575#endif
2576 return out.c_str();
2577}
2578#endif
2579#ifdef USE_DATETIME_DATE
2581 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesDateResponse"));
2582 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
2583 dump_field(out, ESPHOME_PSTR("key"), this->key);
2584 dump_progmem_string_field(out, ESPHOME_PSTR("name"), this->name);
2585#ifdef USE_ENTITY_ICON
2586 dump_progmem_string_field(out, ESPHOME_PSTR("icon"), this->icon);
2587#endif
2588 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
2589 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
2590#ifdef USE_DEVICES
2591 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2592#endif
2593 return out.c_str();
2594}
2596 MessageDumpHelper helper(out, ESPHOME_PSTR("DateStateResponse"));
2597 dump_field(out, ESPHOME_PSTR("key"), this->key);
2598 dump_field(out, ESPHOME_PSTR("missing_state"), this->missing_state);
2599 dump_field(out, ESPHOME_PSTR("year"), this->year);
2600 dump_field(out, ESPHOME_PSTR("month"), this->month);
2601 dump_field(out, ESPHOME_PSTR("day"), this->day);
2602#ifdef USE_DEVICES
2603 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2604#endif
2605 return out.c_str();
2606}
2608 MessageDumpHelper helper(out, ESPHOME_PSTR("DateCommandRequest"));
2609 dump_field(out, ESPHOME_PSTR("key"), this->key);
2610 dump_field(out, ESPHOME_PSTR("year"), this->year);
2611 dump_field(out, ESPHOME_PSTR("month"), this->month);
2612 dump_field(out, ESPHOME_PSTR("day"), this->day);
2613#ifdef USE_DEVICES
2614 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2615#endif
2616 return out.c_str();
2617}
2618#endif
2619#ifdef USE_DATETIME_TIME
2621 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesTimeResponse"));
2622 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
2623 dump_field(out, ESPHOME_PSTR("key"), this->key);
2624 dump_progmem_string_field(out, ESPHOME_PSTR("name"), this->name);
2625#ifdef USE_ENTITY_ICON
2626 dump_progmem_string_field(out, ESPHOME_PSTR("icon"), this->icon);
2627#endif
2628 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
2629 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
2630#ifdef USE_DEVICES
2631 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2632#endif
2633 return out.c_str();
2634}
2636 MessageDumpHelper helper(out, ESPHOME_PSTR("TimeStateResponse"));
2637 dump_field(out, ESPHOME_PSTR("key"), this->key);
2638 dump_field(out, ESPHOME_PSTR("missing_state"), this->missing_state);
2639 dump_field(out, ESPHOME_PSTR("hour"), this->hour);
2640 dump_field(out, ESPHOME_PSTR("minute"), this->minute);
2641 dump_field(out, ESPHOME_PSTR("second"), this->second);
2642#ifdef USE_DEVICES
2643 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2644#endif
2645 return out.c_str();
2646}
2648 MessageDumpHelper helper(out, ESPHOME_PSTR("TimeCommandRequest"));
2649 dump_field(out, ESPHOME_PSTR("key"), this->key);
2650 dump_field(out, ESPHOME_PSTR("hour"), this->hour);
2651 dump_field(out, ESPHOME_PSTR("minute"), this->minute);
2652 dump_field(out, ESPHOME_PSTR("second"), this->second);
2653#ifdef USE_DEVICES
2654 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2655#endif
2656 return out.c_str();
2657}
2658#endif
2659#ifdef USE_EVENT
2661 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesEventResponse"));
2662 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
2663 dump_field(out, ESPHOME_PSTR("key"), this->key);
2664 dump_progmem_string_field(out, ESPHOME_PSTR("name"), this->name);
2665#ifdef USE_ENTITY_ICON
2666 dump_progmem_string_field(out, ESPHOME_PSTR("icon"), this->icon);
2667#endif
2668 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
2669 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
2670 dump_progmem_string_field(out, ESPHOME_PSTR("device_class"), this->device_class);
2671 for (const auto &it : *this->event_types) {
2672 dump_field(out, ESPHOME_PSTR("event_types"), it, 4);
2673 }
2674#ifdef USE_DEVICES
2675 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2676#endif
2677 return out.c_str();
2678}
2680 MessageDumpHelper helper(out, ESPHOME_PSTR("EventResponse"));
2681 dump_field(out, ESPHOME_PSTR("key"), this->key);
2682 dump_field(out, ESPHOME_PSTR("event_type"), this->event_type);
2683#ifdef USE_DEVICES
2684 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2685#endif
2686 return out.c_str();
2687}
2688#endif
2689#ifdef USE_VALVE
2691 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesValveResponse"));
2692 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
2693 dump_field(out, ESPHOME_PSTR("key"), this->key);
2694 dump_progmem_string_field(out, ESPHOME_PSTR("name"), this->name);
2695#ifdef USE_ENTITY_ICON
2696 dump_progmem_string_field(out, ESPHOME_PSTR("icon"), this->icon);
2697#endif
2698 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
2699 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
2700 dump_progmem_string_field(out, ESPHOME_PSTR("device_class"), this->device_class);
2701 dump_field(out, ESPHOME_PSTR("assumed_state"), this->assumed_state);
2702 dump_field(out, ESPHOME_PSTR("supports_position"), this->supports_position);
2703 dump_field(out, ESPHOME_PSTR("supports_stop"), this->supports_stop);
2704#ifdef USE_DEVICES
2705 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2706#endif
2707 return out.c_str();
2708}
2710 MessageDumpHelper helper(out, ESPHOME_PSTR("ValveStateResponse"));
2711 dump_field(out, ESPHOME_PSTR("key"), this->key);
2712 dump_field(out, ESPHOME_PSTR("position"), this->position);
2713 dump_field(out, ESPHOME_PSTR("current_operation"), static_cast<enums::ValveOperation>(this->current_operation));
2714#ifdef USE_DEVICES
2715 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2716#endif
2717 return out.c_str();
2718}
2720 MessageDumpHelper helper(out, ESPHOME_PSTR("ValveCommandRequest"));
2721 dump_field(out, ESPHOME_PSTR("key"), this->key);
2722 dump_field(out, ESPHOME_PSTR("has_position"), this->has_position);
2723 dump_field(out, ESPHOME_PSTR("position"), this->position);
2724 dump_field(out, ESPHOME_PSTR("stop"), this->stop);
2725#ifdef USE_DEVICES
2726 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2727#endif
2728 return out.c_str();
2729}
2730#endif
2731#ifdef USE_DATETIME_DATETIME
2733 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesDateTimeResponse"));
2734 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
2735 dump_field(out, ESPHOME_PSTR("key"), this->key);
2736 dump_progmem_string_field(out, ESPHOME_PSTR("name"), this->name);
2737#ifdef USE_ENTITY_ICON
2738 dump_progmem_string_field(out, ESPHOME_PSTR("icon"), this->icon);
2739#endif
2740 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
2741 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
2742#ifdef USE_DEVICES
2743 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2744#endif
2745 return out.c_str();
2746}
2748 MessageDumpHelper helper(out, ESPHOME_PSTR("DateTimeStateResponse"));
2749 dump_field(out, ESPHOME_PSTR("key"), this->key);
2750 dump_field(out, ESPHOME_PSTR("missing_state"), this->missing_state);
2751 dump_field(out, ESPHOME_PSTR("epoch_seconds"), this->epoch_seconds);
2752#ifdef USE_DEVICES
2753 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2754#endif
2755 return out.c_str();
2756}
2758 MessageDumpHelper helper(out, ESPHOME_PSTR("DateTimeCommandRequest"));
2759 dump_field(out, ESPHOME_PSTR("key"), this->key);
2760 dump_field(out, ESPHOME_PSTR("epoch_seconds"), this->epoch_seconds);
2761#ifdef USE_DEVICES
2762 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2763#endif
2764 return out.c_str();
2765}
2766#endif
2767#ifdef USE_UPDATE
2769 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesUpdateResponse"));
2770 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
2771 dump_field(out, ESPHOME_PSTR("key"), this->key);
2772 dump_progmem_string_field(out, ESPHOME_PSTR("name"), this->name);
2773#ifdef USE_ENTITY_ICON
2774 dump_progmem_string_field(out, ESPHOME_PSTR("icon"), this->icon);
2775#endif
2776 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
2777 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
2778 dump_progmem_string_field(out, ESPHOME_PSTR("device_class"), this->device_class);
2779#ifdef USE_DEVICES
2780 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2781#endif
2782 return out.c_str();
2783}
2785 MessageDumpHelper helper(out, ESPHOME_PSTR("UpdateStateResponse"));
2786 dump_field(out, ESPHOME_PSTR("key"), this->key);
2787 dump_field(out, ESPHOME_PSTR("missing_state"), this->missing_state);
2788 dump_field(out, ESPHOME_PSTR("in_progress"), this->in_progress);
2789 dump_field(out, ESPHOME_PSTR("has_progress"), this->has_progress);
2790 dump_field(out, ESPHOME_PSTR("progress"), this->progress);
2791 dump_field(out, ESPHOME_PSTR("current_version"), this->current_version);
2792 dump_field(out, ESPHOME_PSTR("latest_version"), this->latest_version);
2793 dump_field(out, ESPHOME_PSTR("title"), this->title);
2794 dump_field(out, ESPHOME_PSTR("release_summary"), this->release_summary);
2795 dump_field(out, ESPHOME_PSTR("release_url"), this->release_url);
2796#ifdef USE_DEVICES
2797 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2798#endif
2799 return out.c_str();
2800}
2802 MessageDumpHelper helper(out, ESPHOME_PSTR("UpdateCommandRequest"));
2803 dump_field(out, ESPHOME_PSTR("key"), this->key);
2804 dump_field(out, ESPHOME_PSTR("command"), static_cast<enums::UpdateCommand>(this->command));
2805#ifdef USE_DEVICES
2806 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2807#endif
2808 return out.c_str();
2809}
2810#endif
2811#ifdef USE_ZWAVE_PROXY
2813 MessageDumpHelper helper(out, ESPHOME_PSTR("ZWaveProxyFrame"));
2814 dump_bytes_field(out, ESPHOME_PSTR("data"), this->data, this->data_len);
2815 return out.c_str();
2816}
2818 MessageDumpHelper helper(out, ESPHOME_PSTR("ZWaveProxyRequest"));
2819 dump_field(out, ESPHOME_PSTR("type"), static_cast<enums::ZWaveProxyRequestType>(this->type));
2820 dump_bytes_field(out, ESPHOME_PSTR("data"), this->data, this->data_len);
2821 return out.c_str();
2822}
2824 MessageDumpHelper helper(out, ESPHOME_PSTR("ZWaveProxyRequestResponse"));
2825 dump_field(out, ESPHOME_PSTR("type"), static_cast<enums::ZWaveProxyRequestType>(this->type));
2826 dump_field(out, ESPHOME_PSTR("status"), static_cast<enums::ZWaveProxyStatus>(this->status));
2827 return out.c_str();
2828}
2829#endif
2830#ifdef USE_INFRARED
2832 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesInfraredResponse"));
2833 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
2834 dump_field(out, ESPHOME_PSTR("key"), this->key);
2835 dump_progmem_string_field(out, ESPHOME_PSTR("name"), this->name);
2836#ifdef USE_ENTITY_ICON
2837 dump_progmem_string_field(out, ESPHOME_PSTR("icon"), this->icon);
2838#endif
2839 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
2840 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
2841#ifdef USE_DEVICES
2842 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2843#endif
2844 dump_field(out, ESPHOME_PSTR("capabilities"), this->capabilities);
2845 dump_field(out, ESPHOME_PSTR("receiver_frequency"), this->receiver_frequency);
2846 return out.c_str();
2847}
2848#endif
2849#ifdef USE_IR_RF
2851 MessageDumpHelper helper(out, ESPHOME_PSTR("InfraredRFTransmitRawTimingsRequest"));
2852#ifdef USE_DEVICES
2853 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2854#endif
2855 dump_field(out, ESPHOME_PSTR("key"), this->key);
2856 dump_field(out, ESPHOME_PSTR("carrier_frequency"), this->carrier_frequency);
2857 dump_field(out, ESPHOME_PSTR("repeat_count"), this->repeat_count);
2858 out.append(2, ' ').append_p(ESPHOME_PSTR("timings")).append(": ");
2859 out.append_p(ESPHOME_PSTR("packed buffer ["));
2860 append_uint(out, this->timings_count_);
2861 out.append_p(ESPHOME_PSTR(" values, "));
2862 append_uint(out, this->timings_length_);
2863 out.append_p(ESPHOME_PSTR(" bytes]\n"));
2864 dump_field(out, ESPHOME_PSTR("modulation"), this->modulation);
2865 return out.c_str();
2866}
2868 MessageDumpHelper helper(out, ESPHOME_PSTR("InfraredRFReceiveEvent"));
2869#ifdef USE_DEVICES
2870 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2871#endif
2872 dump_field(out, ESPHOME_PSTR("key"), this->key);
2873 for (const auto &it : *this->timings) {
2874 dump_field(out, ESPHOME_PSTR("timings"), it, 4);
2875 }
2876 return out.c_str();
2877}
2879 MessageDumpHelper helper(out, ESPHOME_PSTR("InfraredRFTransmitCompleteResponse"));
2880#ifdef USE_DEVICES
2881 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2882#endif
2883 dump_field(out, ESPHOME_PSTR("key"), this->key);
2884 dump_field(out, ESPHOME_PSTR("success"), this->success);
2885 return out.c_str();
2886}
2887#endif
2888#ifdef USE_RADIO_FREQUENCY
2890 MessageDumpHelper helper(out, ESPHOME_PSTR("ListEntitiesRadioFrequencyResponse"));
2891 dump_field(out, ESPHOME_PSTR("object_id"), this->object_id);
2892 dump_field(out, ESPHOME_PSTR("key"), this->key);
2893 dump_progmem_string_field(out, ESPHOME_PSTR("name"), this->name);
2894#ifdef USE_ENTITY_ICON
2895 dump_progmem_string_field(out, ESPHOME_PSTR("icon"), this->icon);
2896#endif
2897 dump_field(out, ESPHOME_PSTR("disabled_by_default"), this->disabled_by_default);
2898 dump_field(out, ESPHOME_PSTR("entity_category"), static_cast<enums::EntityCategory>(this->entity_category));
2899#ifdef USE_DEVICES
2900 dump_field(out, ESPHOME_PSTR("device_id"), this->device_id);
2901#endif
2902 dump_field(out, ESPHOME_PSTR("capabilities"), this->capabilities);
2903 dump_field(out, ESPHOME_PSTR("frequency_min"), this->frequency_min);
2904 dump_field(out, ESPHOME_PSTR("frequency_max"), this->frequency_max);
2905 dump_field(out, ESPHOME_PSTR("supported_modulations"), this->supported_modulations);
2906 return out.c_str();
2907}
2908#endif
2909#ifdef USE_SERIAL_PROXY
2911 MessageDumpHelper helper(out, ESPHOME_PSTR("SerialProxyConfigureRequest"));
2912 dump_field(out, ESPHOME_PSTR("instance"), this->instance);
2913 dump_field(out, ESPHOME_PSTR("baudrate"), this->baudrate);
2914 dump_field(out, ESPHOME_PSTR("flow_control"), this->flow_control);
2915 dump_field(out, ESPHOME_PSTR("parity"), static_cast<enums::SerialProxyParity>(this->parity));
2916 dump_field(out, ESPHOME_PSTR("stop_bits"), this->stop_bits);
2917 dump_field(out, ESPHOME_PSTR("data_size"), this->data_size);
2918 return out.c_str();
2919}
2921 MessageDumpHelper helper(out, ESPHOME_PSTR("SerialProxyDataReceived"));
2922 dump_field(out, ESPHOME_PSTR("instance"), this->instance);
2923 dump_bytes_field(out, ESPHOME_PSTR("data"), this->data_ptr_, this->data_len_);
2924 return out.c_str();
2925}
2927 MessageDumpHelper helper(out, ESPHOME_PSTR("SerialProxyWriteRequest"));
2928 dump_field(out, ESPHOME_PSTR("instance"), this->instance);
2929 dump_bytes_field(out, ESPHOME_PSTR("data"), this->data, this->data_len);
2930 return out.c_str();
2931}
2933 MessageDumpHelper helper(out, ESPHOME_PSTR("SerialProxySetModemPinsRequest"));
2934 dump_field(out, ESPHOME_PSTR("instance"), this->instance);
2935 dump_field(out, ESPHOME_PSTR("line_states"), this->line_states);
2936 return out.c_str();
2937}
2939 MessageDumpHelper helper(out, ESPHOME_PSTR("SerialProxyGetModemPinsRequest"));
2940 dump_field(out, ESPHOME_PSTR("instance"), this->instance);
2941 return out.c_str();
2942}
2944 MessageDumpHelper helper(out, ESPHOME_PSTR("SerialProxyGetModemPinsResponse"));
2945 dump_field(out, ESPHOME_PSTR("instance"), this->instance);
2946 dump_field(out, ESPHOME_PSTR("line_states"), this->line_states);
2947 dump_field(out, ESPHOME_PSTR("status"), static_cast<enums::SerialProxyStatus>(this->status));
2948 return out.c_str();
2949}
2951 MessageDumpHelper helper(out, ESPHOME_PSTR("SerialProxyRequest"));
2952 dump_field(out, ESPHOME_PSTR("instance"), this->instance);
2953 dump_field(out, ESPHOME_PSTR("type"), static_cast<enums::SerialProxyRequestType>(this->type));
2954 return out.c_str();
2955}
2957 MessageDumpHelper helper(out, ESPHOME_PSTR("SerialProxyRequestResponse"));
2958 dump_field(out, ESPHOME_PSTR("instance"), this->instance);
2959 dump_field(out, ESPHOME_PSTR("type"), static_cast<enums::SerialProxyRequestType>(this->type));
2960 dump_field(out, ESPHOME_PSTR("status"), static_cast<enums::SerialProxyStatus>(this->status));
2961 dump_field(out, ESPHOME_PSTR("error_message"), this->error_message);
2962 return out.c_str();
2963}
2965 MessageDumpHelper helper(out, ESPHOME_PSTR("SerialProxySetModeRequest"));
2966 dump_field(out, ESPHOME_PSTR("instance"), this->instance);
2967 dump_field(out, ESPHOME_PSTR("mode"), static_cast<enums::SerialProxyMode>(this->mode));
2968 return out.c_str();
2969}
2971 MessageDumpHelper helper(out, ESPHOME_PSTR("UsbDeviceDescriptor"));
2972 dump_field(out, ESPHOME_PSTR("vendor_id"), this->vendor_id);
2973 dump_field(out, ESPHOME_PSTR("product_id"), this->product_id);
2974 dump_field(out, ESPHOME_PSTR("bcd_device"), this->bcd_device);
2975 dump_field(out, ESPHOME_PSTR("interface_number"), this->interface_number);
2976 dump_field(out, ESPHOME_PSTR("interface_class"), this->interface_class);
2977 dump_field(out, ESPHOME_PSTR("port_number"), this->port_number);
2978 return out.c_str();
2979}
2981 MessageDumpHelper helper(out, ESPHOME_PSTR("SerialProxyIdentity"));
2982 dump_field(out, ESPHOME_PSTR("instance"), this->instance);
2983 dump_field(out, ESPHOME_PSTR("source"), static_cast<enums::SerialProxyIdentitySource>(this->source));
2984 dump_field(out, ESPHOME_PSTR("flags"), this->flags);
2985 dump_field(out, ESPHOME_PSTR("manufacturer"), this->manufacturer);
2986 dump_field(out, ESPHOME_PSTR("product"), this->product);
2987 dump_field(out, ESPHOME_PSTR("serial_number"), this->serial_number);
2988 out.append(2, ' ').append_p(ESPHOME_PSTR("usb")).append(": ");
2989 this->usb.dump_to(out);
2990 out.append("\n");
2991 return out.c_str();
2992}
2993#endif
2994#ifdef USE_BLUETOOTH_PROXY_CONNECTIONS
2996 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothSetConnectionParamsRequest"));
2997 dump_field(out, ESPHOME_PSTR("address"), this->address);
2998 dump_field(out, ESPHOME_PSTR("min_interval"), this->min_interval);
2999 dump_field(out, ESPHOME_PSTR("max_interval"), this->max_interval);
3000 dump_field(out, ESPHOME_PSTR("latency"), this->latency);
3001 dump_field(out, ESPHOME_PSTR("timeout"), this->timeout);
3002 return out.c_str();
3003}
3005 MessageDumpHelper helper(out, ESPHOME_PSTR("BluetoothSetConnectionParamsResponse"));
3006 dump_field(out, ESPHOME_PSTR("address"), this->address);
3007 dump_field(out, ESPHOME_PSTR("error"), this->error);
3008 return out.c_str();
3009}
3010#endif
3011#ifdef USE_SENDSPIN
3013 MessageDumpHelper helper(out, ESPHOME_PSTR("SendspinPairingTokenResponse"));
3014 dump_field(out, ESPHOME_PSTR("status"), static_cast<enums::SendspinPairingTokenStatus>(this->status));
3015 dump_field(out, ESPHOME_PSTR("token"), this->token);
3016 return out.c_str();
3017}
3018#endif
3019
3020} // namespace esphome::api
3021
3022#endif // HAS_PROTO_MESSAGE_DUMP
StringRef is a reference to a string owned by something else.
Definition string_ref.h:31
const char * dump_to(DumpBuffer &out) const override
enums::AlarmControlPanelStateCommand command
Definition api_pb2.h:3266
const char * dump_to(DumpBuffer &out) const override
enums::AlarmControlPanelState state
Definition api_pb2.h:3246
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:2730
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:2417
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
FixedVector< BluetoothGATTDescriptor > descriptors
Definition api_pb2.h:2493
const char * dump_to(DumpBuffer &out) const override
std::array< uint64_t, 2 > uuid
Definition api_pb2.h:2490
std::array< uint64_t, 2 > uuid
Definition api_pb2.h:2473
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:2533
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:2511
const char * dump_to(DumpBuffer &out) const override
std::array< uint64_t, 2 > uuid
Definition api_pb2.h:2509
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:2393
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
enums::BluetoothScannerMode mode
Definition api_pb2.h:2904
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
enums::BluetoothScannerMode mode
Definition api_pb2.h:2883
enums::BluetoothScannerState state
Definition api_pb2.h:2882
enums::BluetoothScannerMode configured_mode
Definition api_pb2.h:2884
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
enums::ClimateSwingMode swing_mode
Definition api_pb2.h:1868
enums::ClimateFanMode fan_mode
Definition api_pb2.h:1866
enums::ClimatePreset preset
Definition api_pb2.h:1872
enums::ClimateFanMode fan_mode
Definition api_pb2.h:1830
enums::ClimateSwingMode swing_mode
Definition api_pb2.h:1831
const char * dump_to(DumpBuffer &out) const override
enums::ClimateAction action
Definition api_pb2.h:1829
enums::ClimatePreset preset
Definition api_pb2.h:1833
const char * dump_to(DumpBuffer &out) const override
enums::CoverOperation current_operation
Definition api_pb2.h:946
const char * dump_to(DumpBuffer &out) const override
enums::DSTRuleType type
Definition api_pb2.h:1536
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
std::array< SerialProxyInfo, SERIAL_PROXY_COUNT > serial_proxies
Definition api_pb2.h:789
VoiceAssistantCapabilities voice_assistant
Definition api_pb2.h:783
ZWaveProxyCapabilities zwave_proxy
Definition api_pb2.h:786
const char * dump_to(DumpBuffer &out) const override
BluetoothProxyCapabilities bluetooth_proxy
Definition api_pb2.h:780
enums::DeviceRelation relation
Definition api_pb2.h:574
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
ProgmemStringRef project_name
Definition api_pb2.h:623
ProgmemStringRef esphome_version
Definition api_pb2.h:616
ProgmemStringRef project_version
Definition api_pb2.h:626
std::array< AreaInfo, ESPHOME_AREA_COUNT > areas
Definition api_pb2.h:652
ProgmemStringRef manufacturer
Definition api_pb2.h:634
std::array< SerialProxyInfo, SERIAL_PROXY_COUNT > serial_proxies
Definition api_pb2.h:664
std::array< DeviceInfo, ESPHOME_DEVICE_COUNT > devices
Definition api_pb2.h:649
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
enums::DisconnectReason reason
Definition api_pb2.h:494
const char * dump_to(DumpBuffer &out) const override
Fixed-size buffer for message dumps - avoids heap allocation.
Definition proto.h:677
const char * c_str() const
Definition proto.h:736
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:709
static constexpr size_t CAPACITY
Definition proto.h:680
DumpBuffer & append(const char *str)
Definition proto.h:684
const char * dump_to(DumpBuffer &out) const override
FixedVector< float > float_array
Definition api_pb2.h:1650
FixedVector< std::string > string_array
Definition api_pb2.h:1651
FixedVector< int32_t > int_array
Definition api_pb2.h:1649
const char * dump_to(DumpBuffer &out) const override
FixedVector< ExecuteServiceArgument > args
Definition api_pb2.h:1668
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:1045
enums::FanDirection direction
Definition api_pb2.h:1018
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:1574
const char * dump_to(DumpBuffer &out) const override
ProgmemStringRef server_info
Definition api_pb2.h:473
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
FixedVector< HomeassistantServiceMap > variables
Definition api_pb2.h:1425
FixedVector< HomeassistantServiceMap > data_template
Definition api_pb2.h:1424
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:411
const std::vector< int32_t > * timings
Definition api_pb2.h:3844
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 climate::ClimateSwingModeMask * supported_swing_modes
Definition api_pb2.h:1794
enums::TemperatureUnit temperature_unit
Definition api_pb2.h:1804
const climate::ClimatePresetMask * supported_presets
Definition api_pb2.h:1796
const climate::ClimateFanModeMask * supported_fan_modes
Definition api_pb2.h:1793
const char * dump_to(DumpBuffer &out) const override
const climate::ClimateModeMask * supported_modes
Definition api_pb2.h:1788
const ConstVector< const char *, true > * supported_custom_fan_modes
Definition api_pb2.h:1795
const ConstVector< const char *, true > * supported_custom_presets
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 ConstVector< const char *, true > * event_types
Definition api_pb2.h:3480
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const ConstVector< const char *, true > * supported_preset_modes
Definition api_pb2.h:996
const char * dump_to(DumpBuffer &out) const override
const light::LightEffectNames * effects
Definition api_pb2.h:1072
const char * dump_to(DumpBuffer &out) const override
const light::ColorModeMask * supported_color_modes
Definition api_pb2.h:1069
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:2292
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::span< const char *const > * options
Definition api_pb2.h:2038
const char * dump_to(DumpBuffer &out) const override
enums::SensorStateClass state_class
Definition api_pb2.h:1172
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
enums::SupportsResponseType supports_response
Definition api_pb2.h:1625
FixedVector< ListEntitiesServicesArgument > args
Definition api_pb2.h:1624
const char * dump_to(DumpBuffer &out) const override
const FixedVector< const char * > * tones
Definition api_pb2.h:2099
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:1899
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
enums::LockCommand command
Definition api_pb2.h:2211
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
enums::MediaPlayerCommand command
Definition api_pb2.h:2336
enums::MediaPlayerState state
Definition api_pb2.h:2313
const char * dump_to(DumpBuffer &out) const override
enums::MediaPlayerFormatPurpose purpose
Definition api_pb2.h:2270
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::SendspinPairingTokenStatus status
Definition api_pb2.h:4197
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
enums::SerialProxyParity parity
Definition api_pb2.h:3918
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::SerialProxyIdentitySource source
Definition api_pb2.h:4125
const char * dump_to(DumpBuffer &out) const override
enums::SerialProxyPortType port_type
Definition api_pb2.h:592
const char * dump_to(DumpBuffer &out) const override
enums::SerialProxyRequestType type
Definition api_pb2.h:4044
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
enums::SerialProxyRequestType type
Definition api_pb2.h:4063
enums::SerialProxyStatus status
Definition api_pb2.h:4064
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
const char * dump_to(DumpBuffer &out) const override
enums::UpdateCommand command
Definition api_pb2.h:3696
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::ValveOperation current_operation
Definition api_pb2.h:3546
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
std::vector< VoiceAssistantExternalWakeWord > external_wake_words
Definition api_pb2.h:3164
std::vector< VoiceAssistantWakeWord > available_wake_words
Definition api_pb2.h:3182
const std::vector< std::string > * active_wake_words
Definition api_pb2.h:3183
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:3017
const char * dump_to(DumpBuffer &out) const override
std::vector< std::string > trained_languages
Definition api_pb2.h:3142
const char * dump_to(DumpBuffer &out) const override
VoiceAssistantAudioSettings audio_settings
Definition api_pb2.h:2963
const char * dump_to(DumpBuffer &out) const override
std::vector< std::string > active_wake_words
Definition api_pb2.h:3204
const char * dump_to(DumpBuffer &out) const override
enums::VoiceAssistantTimerEvent event_type
Definition api_pb2.h:3064
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:3125
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::ZWaveProxyRequestType type
Definition api_pb2.h:3741
const char * dump_to(DumpBuffer &out) const override
enums::ZWaveProxyRequestType type
Definition api_pb2.h:3767
enums::ZWaveProxyStatus status
Definition api_pb2.h:3768
const char * dump_to(DumpBuffer &out) const override
StringRef ref
std::vector< uint8_t > & out
Definition gif.cpp:49
@ MEDIA_PLAYER_STATE_ANNOUNCING
Definition api_pb2.h:212
@ ALARM_STATE_ARMED_CUSTOM_BYPASS
Definition api_pb2.h:304
@ SERVICE_ARG_TYPE_BOOL_ARRAY
Definition api_pb2.h:96
@ SERVICE_ARG_TYPE_STRING_ARRAY
Definition api_pb2.h:99
@ SERVICE_ARG_TYPE_FLOAT_ARRAY
Definition api_pb2.h:98
@ SERIAL_PROXY_PORT_TYPE_RS232
Definition api_pb2.h:28
@ SERIAL_PROXY_PORT_TYPE_RS485
Definition api_pb2.h:29
@ SERIAL_PROXY_PORT_TYPE_USB_SERIAL
Definition api_pb2.h:30
@ VOICE_ASSISTANT_REQUEST_USE_WAKE_WORD
Definition api_pb2.h:269
@ VOICE_ASSISTANT_REQUEST_USE_VAD
Definition api_pb2.h:268
@ WATER_HEATER_MODE_PERFORMANCE
Definition api_pb2.h:166
@ WATER_HEATER_MODE_HIGH_DEMAND
Definition api_pb2.h:167
@ SERIAL_PROXY_REQUEST_TYPE_UNSUBSCRIBE
Definition api_pb2.h:360
@ SERIAL_PROXY_REQUEST_TYPE_SET_MODEM_PINS
Definition api_pb2.h:363
@ SERIAL_PROXY_REQUEST_TYPE_SET_MODE
Definition api_pb2.h:364
@ SERIAL_PROXY_REQUEST_TYPE_FLUSH
Definition api_pb2.h:361
@ SERIAL_PROXY_REQUEST_TYPE_CONFIGURE
Definition api_pb2.h:362
@ SERIAL_PROXY_REQUEST_TYPE_SUBSCRIBE
Definition api_pb2.h:359
@ SERIAL_PROXY_IDENTITY_FLAG_CONNECTED
Definition api_pb2.h:387
@ SERIAL_PROXY_IDENTITY_FLAG_ERROR
Definition api_pb2.h:388
@ SERIAL_PROXY_IDENTITY_FLAG_NONE
Definition api_pb2.h:386
@ SENDSPIN_PAIRING_TOKEN_STATUS_OK
Definition api_pb2.h:393
@ SENDSPIN_PAIRING_TOKEN_STATUS_ENCRYPTION_REQUIRED
Definition api_pb2.h:394
@ SENDSPIN_PAIRING_TOKEN_STATUS_FAILED
Definition api_pb2.h:396
@ SENDSPIN_PAIRING_TOKEN_STATUS_DISABLED
Definition api_pb2.h:395
@ SENDSPIN_PAIRING_TOKEN_STATUS_NOT_READY
Definition api_pb2.h:392
@ MEDIA_PLAYER_FORMAT_PURPOSE_ANNOUNCEMENT
Definition api_pb2.h:234
@ MEDIA_PLAYER_FORMAT_PURPOSE_DEFAULT
Definition api_pb2.h:233
@ COLOR_MODE_LEGACY_BRIGHTNESS
Definition api_pb2.h:54
@ COLOR_MODE_RGB_COLOR_TEMPERATURE
Definition api_pb2.h:61
@ COLOR_MODE_COLOR_TEMPERATURE
Definition api_pb2.h:57
@ COLOR_MODE_RGB_COLD_WARM_WHITE
Definition api_pb2.h:62
@ ZWAVE_PROXY_STATUS_NOT_SUPPORTED
Definition api_pb2.h:349
@ VOICE_ASSISTANT_TIMER_UPDATED
Definition api_pb2.h:292
@ VOICE_ASSISTANT_TIMER_STARTED
Definition api_pb2.h:291
@ VOICE_ASSISTANT_TIMER_FINISHED
Definition api_pb2.h:294
@ VOICE_ASSISTANT_TIMER_CANCELLED
Definition api_pb2.h:293
@ MEDIA_PLAYER_COMMAND_REPEAT_ONE
Definition api_pb2.h:226
@ MEDIA_PLAYER_COMMAND_REPEAT_OFF
Definition api_pb2.h:227
@ MEDIA_PLAYER_COMMAND_VOLUME_DOWN
Definition api_pb2.h:224
@ MEDIA_PLAYER_COMMAND_VOLUME_UP
Definition api_pb2.h:223
@ MEDIA_PLAYER_COMMAND_TURN_OFF
Definition api_pb2.h:230
@ MEDIA_PLAYER_COMMAND_CLEAR_PLAYLIST
Definition api_pb2.h:228
@ VOICE_ASSISTANT_WAKE_WORD_START
Definition api_pb2.h:282
@ VOICE_ASSISTANT_TTS_STREAM_END
Definition api_pb2.h:287
@ VOICE_ASSISTANT_STT_VAD_START
Definition api_pb2.h:284
@ VOICE_ASSISTANT_INTENT_PROGRESS
Definition api_pb2.h:288
@ VOICE_ASSISTANT_TTS_STREAM_START
Definition api_pb2.h:286
@ VOICE_ASSISTANT_WAKE_WORD_END
Definition api_pb2.h:283
@ SERIAL_PROXY_IDENTITY_SOURCE_CONFIGURED
Definition api_pb2.h:381
@ SERIAL_PROXY_IDENTITY_SOURCE_NONE
Definition api_pb2.h:380
@ SERIAL_PROXY_IDENTITY_SOURCE_USB
Definition api_pb2.h:382
@ SERIAL_PROXY_STATUS_INVALID_ARGUMENT
Definition api_pb2.h:373
@ SERIAL_PROXY_STATUS_ASSUMED_SUCCESS
Definition api_pb2.h:368
@ SERIAL_PROXY_STATUS_PORT_IN_USE
Definition api_pb2.h:372
@ SERIAL_PROXY_STATUS_NOT_SUPPORTED
Definition api_pb2.h:371
@ DISCONNECT_REASON_PROVISIONING_CLOSED
Definition api_pb2.h:20
@ DISCONNECT_REASON_UNSPECIFIED
Definition api_pb2.h:19
@ BLUETOOTH_DEVICE_REQUEST_TYPE_UNPAIR
Definition api_pb2.h:242
@ BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT_V3_WITH_CACHE
Definition api_pb2.h:243
@ BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT
Definition api_pb2.h:239
@ BLUETOOTH_DEVICE_REQUEST_TYPE_PAIR
Definition api_pb2.h:241
@ BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT_V3_WITHOUT_CACHE
Definition api_pb2.h:244
@ BLUETOOTH_DEVICE_REQUEST_TYPE_CLEAR_CACHE
Definition api_pb2.h:245
@ BLUETOOTH_DEVICE_REQUEST_TYPE_DISCONNECT
Definition api_pb2.h:240
@ BLUETOOTH_SCANNER_MODE_PASSIVE
Definition api_pb2.h:258
@ BLUETOOTH_SCANNER_MODE_ACTIVE
Definition api_pb2.h:259
@ BLUETOOTH_SCANNER_STATE_STOPPED
Definition api_pb2.h:255
@ BLUETOOTH_SCANNER_STATE_STARTING
Definition api_pb2.h:251
@ BLUETOOTH_SCANNER_STATE_STOPPING
Definition api_pb2.h:254
@ BLUETOOTH_SCANNER_STATE_RUNNING
Definition api_pb2.h:252
@ BLUETOOTH_SCANNER_STATE_FAILED
Definition api_pb2.h:253
@ DST_RULE_TYPE_MONTH_WEEK_DAY
Definition api_pb2.h:86
@ DST_RULE_TYPE_JULIAN_NO_LEAP
Definition api_pb2.h:87
@ WATER_HEATER_COMMAND_HAS_ON_STATE
Definition api_pb2.h:179
@ WATER_HEATER_COMMAND_HAS_NONE
Definition api_pb2.h:173
@ WATER_HEATER_COMMAND_HAS_STATE
Definition api_pb2.h:176
@ WATER_HEATER_COMMAND_HAS_AWAY_STATE
Definition api_pb2.h:180
@ WATER_HEATER_COMMAND_HAS_TARGET_TEMPERATURE_LOW
Definition api_pb2.h:177
@ WATER_HEATER_COMMAND_HAS_TARGET_TEMPERATURE
Definition api_pb2.h:175
@ WATER_HEATER_COMMAND_HAS_MODE
Definition api_pb2.h:174
@ WATER_HEATER_COMMAND_HAS_TARGET_TEMPERATURE_HIGH
Definition api_pb2.h:178
@ ZWAVE_PROXY_REQUEST_TYPE_SUBSCRIBE
Definition api_pb2.h:342
@ ZWAVE_PROXY_REQUEST_TYPE_UNSUBSCRIBE
Definition api_pb2.h:343
@ ZWAVE_PROXY_REQUEST_TYPE_HOME_ID_CHANGE
Definition api_pb2.h:344
@ ALARM_CONTROL_PANEL_ARM_NIGHT
Definition api_pb2.h:314
@ ALARM_CONTROL_PANEL_ARM_CUSTOM_BYPASS
Definition api_pb2.h:316
@ ALARM_CONTROL_PANEL_ARM_VACATION
Definition api_pb2.h:315
@ VOICE_ASSISTANT_SUBSCRIBE_API_AUDIO
Definition api_pb2.h:264
@ VOICE_ASSISTANT_SUBSCRIBE_NONE
Definition api_pb2.h:263
@ STATE_CLASS_TOTAL_INCREASING
Definition api_pb2.h:69
@ STATE_CLASS_MEASUREMENT_ANGLE
Definition api_pb2.h:71
const char * proto_enum_to_string< enums::AlarmControlPanelState >(enums::AlarmControlPanelState value)
const char * proto_enum_to_string< enums::TemperatureUnit >(enums::TemperatureUnit value)
const char * proto_enum_to_string< enums::SerialProxyIdentitySource >(enums::SerialProxyIdentitySource value)
const char * proto_enum_to_string< enums::VoiceAssistantEvent >(enums::VoiceAssistantEvent value)
const char * proto_enum_to_string< enums::SendspinPairingTokenStatus >(enums::SendspinPairingTokenStatus value)
const char * proto_enum_to_string< enums::MediaPlayerState >(enums::MediaPlayerState value)
const char * proto_enum_to_string(T value)
const char * proto_enum_to_string< enums::SerialProxyParity >(enums::SerialProxyParity value)
const char * proto_enum_to_string< enums::NumberMode >(enums::NumberMode value)
const char * proto_enum_to_string< enums::ServiceArgType >(enums::ServiceArgType value)
const char * proto_enum_to_string< enums::BluetoothScannerMode >(enums::BluetoothScannerMode value)
const char * proto_enum_to_string< enums::BluetoothScannerState >(enums::BluetoothScannerState value)
const char * proto_enum_to_string< enums::VoiceAssistantSubscribeFlag >(enums::VoiceAssistantSubscribeFlag value)
const char * proto_enum_to_string< enums::ColorMode >(enums::ColorMode value)
const char * proto_enum_to_string< enums::WaterHeaterCommandHasField >(enums::WaterHeaterCommandHasField value)
const char * proto_enum_to_string< enums::LogLevel >(enums::LogLevel value)
const char * proto_enum_to_string< enums::TextMode >(enums::TextMode value)
const char * proto_enum_to_string< enums::LockState >(enums::LockState value)
const char * proto_enum_to_string< enums::ClimateAction >(enums::ClimateAction value)
const char * proto_enum_to_string< enums::SerialProxyPortType >(enums::SerialProxyPortType value)
const char * proto_enum_to_string< enums::FanDirection >(enums::FanDirection value)
const char * proto_enum_to_string< enums::CoverOperation >(enums::CoverOperation value)
const char * proto_enum_to_string< enums::VoiceAssistantRequestFlag >(enums::VoiceAssistantRequestFlag value)
const char * proto_enum_to_string< enums::BluetoothDeviceRequestType >(enums::BluetoothDeviceRequestType value)
const char * proto_enum_to_string< enums::ZWaveProxyStatus >(enums::ZWaveProxyStatus value)
const char * proto_enum_to_string< enums::VoiceAssistantTimerEvent >(enums::VoiceAssistantTimerEvent value)
const char * proto_enum_to_string< enums::AlarmControlPanelStateCommand >(enums::AlarmControlPanelStateCommand value)
const char * proto_enum_to_string< enums::ClimatePreset >(enums::ClimatePreset value)
const char * proto_enum_to_string< enums::MediaPlayerFormatPurpose >(enums::MediaPlayerFormatPurpose value)
const char * proto_enum_to_string< enums::ClimateMode >(enums::ClimateMode value)
const char * proto_enum_to_string< enums::WaterHeaterMode >(enums::WaterHeaterMode value)
const char * proto_enum_to_string< enums::MediaPlayerCommand >(enums::MediaPlayerCommand value)
const char * proto_enum_to_string< enums::DisconnectReason >(enums::DisconnectReason value)
const char * proto_enum_to_string< enums::LockCommand >(enums::LockCommand value)
const char * proto_enum_to_string< enums::ZWaveProxyRequestType >(enums::ZWaveProxyRequestType value)
const char * proto_enum_to_string< enums::ValveOperation >(enums::ValveOperation value)
const char * proto_enum_to_string< enums::UpdateCommand >(enums::UpdateCommand value)
const char * proto_enum_to_string< enums::DeviceRelation >(enums::DeviceRelation 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::SerialProxyMode >(enums::SerialProxyMode value)
const char * proto_enum_to_string< enums::SensorStateClass >(enums::SensorStateClass value)
const char * proto_enum_to_string< enums::SerialProxyIdentityFlag >(enums::SerialProxyIdentityFlag value)
value[LAYOUT.day_index()]
void progmem_memcpy(void *dst, const void *src, size_t len)
Definition hal.h:56
const void size_t len
Definition hal.h:68
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:498
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:1609
const char * pos_
Definition polygon.cpp:54
static void uint32_t