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