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