9#ifdef HAS_PROTO_MESSAGE_DUMP
22 memcpy_P(buf_ +
pos_, str,
len);
40static inline void append_field_prefix(DumpBuffer &
out,
const char *field_name,
int indent) {
41 out.append(indent,
' ').append_p(field_name).append(
": ");
44static inline void append_uint(DumpBuffer &
out,
uint32_t value) {
50class MessageDumpHelper {
52 MessageDumpHelper(DumpBuffer &
out,
const char *message_name) : out_(
out) {
56 ~MessageDumpHelper() { out_.
append(
" }"); }
65#pragma GCC diagnostic push
66#pragma GCC diagnostic ignored "-Wunused-function"
67static void dump_field(DumpBuffer &
out,
const char *field_name, int32_t value,
int indent = 2) {
68 append_field_prefix(
out, field_name, indent);
72static void dump_field(DumpBuffer &
out,
const char *field_name,
uint32_t value,
int indent = 2) {
73 append_field_prefix(
out, field_name, indent);
77static void dump_field(DumpBuffer &
out,
const char *field_name,
float value,
int indent = 2) {
78 append_field_prefix(
out, field_name, indent);
82static void dump_field(DumpBuffer &
out,
const char *field_name, uint64_t value,
int indent = 2) {
83 append_field_prefix(
out, field_name, indent);
87static void dump_field(DumpBuffer &
out,
const char *field_name,
bool value,
int indent = 2) {
88 append_field_prefix(
out, field_name, indent);
89 out.append(YESNO(value));
93static void dump_field(DumpBuffer &
out,
const char *field_name,
const std::string &value,
int indent = 2) {
94 append_field_prefix(
out, field_name, indent);
95 out.append(
"'").append(
value.c_str()).append(
"'");
99static void dump_field(DumpBuffer &
out,
const char *field_name, StringRef value,
int indent = 2) {
100 append_field_prefix(
out, field_name, indent);
101 append_quoted_string(
out, value);
105static void dump_field(DumpBuffer &
out,
const char *field_name,
const char *value,
int indent = 2) {
106 append_field_prefix(
out, field_name, indent);
107 out.append(
"'").append(value).append(
"'");
112template<
typename T>
static void dump_field(DumpBuffer &
out,
const char *field_name, T value,
int indent = 2) {
113 append_field_prefix(
out, field_name, indent);
119static constexpr size_t DUMP_BYTES_MAX = 160;
123static void dump_bytes_field(DumpBuffer &
out,
const char *field_name,
const uint8_t *data,
size_t len,
int indent = 2) {
125 append_field_prefix(
out, field_name, indent);
127 out.append(hex_buf).append(
"\n");
131static void dump_progmem_bytes_field(DumpBuffer &
out,
const char *field_name,
const uint8_t *data,
size_t len,
133 uint8_t data_buf[DUMP_BYTES_MAX];
134 len = std::min(
len,
sizeof(data_buf));
136 dump_bytes_field(
out, field_name, data_buf,
len, indent);
140static void dump_progmem_string_field(DumpBuffer &
out,
const char *field_name,
const ProgmemStringRef &value,
142 append_field_prefix(
out, field_name, indent);
143 out.append(
"'").append_p(
value.progmem_ptr(),
value.size()).append(
"'\n");
145#pragma GCC diagnostic pop
150 return ESPHOME_PSTR(
"DISCONNECT_REASON_UNSPECIFIED");
152 return ESPHOME_PSTR(
"DISCONNECT_REASON_PROVISIONING_CLOSED");
154 return ESPHOME_PSTR(
"UNKNOWN");
160 return ESPHOME_PSTR(
"DEVICE_RELATION_VIA");
162 return ESPHOME_PSTR(
"DEVICE_RELATION_CHILD");
164 return ESPHOME_PSTR(
"UNKNOWN");
170 return ESPHOME_PSTR(
"SERIAL_PROXY_PORT_TYPE_TTL");
172 return ESPHOME_PSTR(
"SERIAL_PROXY_PORT_TYPE_RS232");
174 return ESPHOME_PSTR(
"SERIAL_PROXY_PORT_TYPE_RS485");
176 return ESPHOME_PSTR(
"SERIAL_PROXY_PORT_TYPE_USB_SERIAL");
178 return ESPHOME_PSTR(
"UNKNOWN");
184 return ESPHOME_PSTR(
"ENTITY_CATEGORY_NONE");
186 return ESPHOME_PSTR(
"ENTITY_CATEGORY_CONFIG");
188 return ESPHOME_PSTR(
"ENTITY_CATEGORY_DIAGNOSTIC");
190 return ESPHOME_PSTR(
"UNKNOWN");
197 return ESPHOME_PSTR(
"COVER_OPERATION_IDLE");
199 return ESPHOME_PSTR(
"COVER_OPERATION_IS_OPENING");
201 return ESPHOME_PSTR(
"COVER_OPERATION_IS_CLOSING");
203 return ESPHOME_PSTR(
"UNKNOWN");
211 return ESPHOME_PSTR(
"FAN_DIRECTION_FORWARD");
213 return ESPHOME_PSTR(
"FAN_DIRECTION_REVERSE");
215 return ESPHOME_PSTR(
"UNKNOWN");
223 return ESPHOME_PSTR(
"COLOR_MODE_UNKNOWN");
225 return ESPHOME_PSTR(
"COLOR_MODE_ON_OFF");
227 return ESPHOME_PSTR(
"COLOR_MODE_LEGACY_BRIGHTNESS");
229 return ESPHOME_PSTR(
"COLOR_MODE_BRIGHTNESS");
231 return ESPHOME_PSTR(
"COLOR_MODE_WHITE");
233 return ESPHOME_PSTR(
"COLOR_MODE_COLOR_TEMPERATURE");
235 return ESPHOME_PSTR(
"COLOR_MODE_COLD_WARM_WHITE");
237 return ESPHOME_PSTR(
"COLOR_MODE_RGB");
239 return ESPHOME_PSTR(
"COLOR_MODE_RGB_WHITE");
241 return ESPHOME_PSTR(
"COLOR_MODE_RGB_COLOR_TEMPERATURE");
243 return ESPHOME_PSTR(
"COLOR_MODE_RGB_COLD_WARM_WHITE");
245 return ESPHOME_PSTR(
"UNKNOWN");
253 return ESPHOME_PSTR(
"STATE_CLASS_NONE");
255 return ESPHOME_PSTR(
"STATE_CLASS_MEASUREMENT");
257 return ESPHOME_PSTR(
"STATE_CLASS_TOTAL_INCREASING");
259 return ESPHOME_PSTR(
"STATE_CLASS_TOTAL");
261 return ESPHOME_PSTR(
"STATE_CLASS_MEASUREMENT_ANGLE");
263 return ESPHOME_PSTR(
"UNKNOWN");
270 return ESPHOME_PSTR(
"LOG_LEVEL_NONE");
272 return ESPHOME_PSTR(
"LOG_LEVEL_ERROR");
274 return ESPHOME_PSTR(
"LOG_LEVEL_WARN");
276 return ESPHOME_PSTR(
"LOG_LEVEL_INFO");
278 return ESPHOME_PSTR(
"LOG_LEVEL_CONFIG");
280 return ESPHOME_PSTR(
"LOG_LEVEL_DEBUG");
282 return ESPHOME_PSTR(
"LOG_LEVEL_VERBOSE");
284 return ESPHOME_PSTR(
"LOG_LEVEL_VERY_VERBOSE");
286 return ESPHOME_PSTR(
"UNKNOWN");
292 return ESPHOME_PSTR(
"DST_RULE_TYPE_NONE");
294 return ESPHOME_PSTR(
"DST_RULE_TYPE_MONTH_WEEK_DAY");
296 return ESPHOME_PSTR(
"DST_RULE_TYPE_JULIAN_NO_LEAP");
298 return ESPHOME_PSTR(
"DST_RULE_TYPE_DAY_OF_YEAR");
300 return ESPHOME_PSTR(
"UNKNOWN");
303#ifdef USE_API_USER_DEFINED_ACTIONS
307 return ESPHOME_PSTR(
"SERVICE_ARG_TYPE_BOOL");
309 return ESPHOME_PSTR(
"SERVICE_ARG_TYPE_INT");
311 return ESPHOME_PSTR(
"SERVICE_ARG_TYPE_FLOAT");
313 return ESPHOME_PSTR(
"SERVICE_ARG_TYPE_STRING");
315 return ESPHOME_PSTR(
"SERVICE_ARG_TYPE_BOOL_ARRAY");
317 return ESPHOME_PSTR(
"SERVICE_ARG_TYPE_INT_ARRAY");
319 return ESPHOME_PSTR(
"SERVICE_ARG_TYPE_FLOAT_ARRAY");
321 return ESPHOME_PSTR(
"SERVICE_ARG_TYPE_STRING_ARRAY");
323 return ESPHOME_PSTR(
"UNKNOWN");
329 return ESPHOME_PSTR(
"SUPPORTS_RESPONSE_NONE");
331 return ESPHOME_PSTR(
"SUPPORTS_RESPONSE_OPTIONAL");
333 return ESPHOME_PSTR(
"SUPPORTS_RESPONSE_ONLY");
335 return ESPHOME_PSTR(
"SUPPORTS_RESPONSE_STATUS");
337 return ESPHOME_PSTR(
"UNKNOWN");
344 return ESPHOME_PSTR(
"TEMPERATURE_UNIT_CELSIUS");
346 return ESPHOME_PSTR(
"TEMPERATURE_UNIT_FAHRENHEIT");
348 return ESPHOME_PSTR(
"TEMPERATURE_UNIT_KELVIN");
350 return ESPHOME_PSTR(
"UNKNOWN");
357 return ESPHOME_PSTR(
"CLIMATE_MODE_OFF");
359 return ESPHOME_PSTR(
"CLIMATE_MODE_HEAT_COOL");
361 return ESPHOME_PSTR(
"CLIMATE_MODE_COOL");
363 return ESPHOME_PSTR(
"CLIMATE_MODE_HEAT");
365 return ESPHOME_PSTR(
"CLIMATE_MODE_FAN_ONLY");
367 return ESPHOME_PSTR(
"CLIMATE_MODE_DRY");
369 return ESPHOME_PSTR(
"CLIMATE_MODE_AUTO");
371 return ESPHOME_PSTR(
"UNKNOWN");
377 return ESPHOME_PSTR(
"CLIMATE_FAN_ON");
379 return ESPHOME_PSTR(
"CLIMATE_FAN_OFF");
381 return ESPHOME_PSTR(
"CLIMATE_FAN_AUTO");
383 return ESPHOME_PSTR(
"CLIMATE_FAN_LOW");
385 return ESPHOME_PSTR(
"CLIMATE_FAN_MEDIUM");
387 return ESPHOME_PSTR(
"CLIMATE_FAN_HIGH");
389 return ESPHOME_PSTR(
"CLIMATE_FAN_MIDDLE");
391 return ESPHOME_PSTR(
"CLIMATE_FAN_FOCUS");
393 return ESPHOME_PSTR(
"CLIMATE_FAN_DIFFUSE");
395 return ESPHOME_PSTR(
"CLIMATE_FAN_QUIET");
397 return ESPHOME_PSTR(
"UNKNOWN");
403 return ESPHOME_PSTR(
"CLIMATE_SWING_OFF");
405 return ESPHOME_PSTR(
"CLIMATE_SWING_BOTH");
407 return ESPHOME_PSTR(
"CLIMATE_SWING_VERTICAL");
409 return ESPHOME_PSTR(
"CLIMATE_SWING_HORIZONTAL");
411 return ESPHOME_PSTR(
"UNKNOWN");
417 return ESPHOME_PSTR(
"CLIMATE_ACTION_OFF");
419 return ESPHOME_PSTR(
"CLIMATE_ACTION_COOLING");
421 return ESPHOME_PSTR(
"CLIMATE_ACTION_HEATING");
423 return ESPHOME_PSTR(
"CLIMATE_ACTION_IDLE");
425 return ESPHOME_PSTR(
"CLIMATE_ACTION_DRYING");
427 return ESPHOME_PSTR(
"CLIMATE_ACTION_FAN");
429 return ESPHOME_PSTR(
"CLIMATE_ACTION_DEFROSTING");
431 return ESPHOME_PSTR(
"UNKNOWN");
437 return ESPHOME_PSTR(
"CLIMATE_PRESET_NONE");
439 return ESPHOME_PSTR(
"CLIMATE_PRESET_HOME");
441 return ESPHOME_PSTR(
"CLIMATE_PRESET_AWAY");
443 return ESPHOME_PSTR(
"CLIMATE_PRESET_BOOST");
445 return ESPHOME_PSTR(
"CLIMATE_PRESET_COMFORT");
447 return ESPHOME_PSTR(
"CLIMATE_PRESET_ECO");
449 return ESPHOME_PSTR(
"CLIMATE_PRESET_SLEEP");
451 return ESPHOME_PSTR(
"CLIMATE_PRESET_ACTIVITY");
453 return ESPHOME_PSTR(
"UNKNOWN");
457#ifdef USE_WATER_HEATER
461 return ESPHOME_PSTR(
"WATER_HEATER_MODE_OFF");
463 return ESPHOME_PSTR(
"WATER_HEATER_MODE_ECO");
465 return ESPHOME_PSTR(
"WATER_HEATER_MODE_ELECTRIC");
467 return ESPHOME_PSTR(
"WATER_HEATER_MODE_PERFORMANCE");
469 return ESPHOME_PSTR(
"WATER_HEATER_MODE_HIGH_DEMAND");
471 return ESPHOME_PSTR(
"WATER_HEATER_MODE_HEAT_PUMP");
473 return ESPHOME_PSTR(
"WATER_HEATER_MODE_GAS");
475 return ESPHOME_PSTR(
"UNKNOWN");
483 return ESPHOME_PSTR(
"WATER_HEATER_COMMAND_HAS_NONE");
485 return ESPHOME_PSTR(
"WATER_HEATER_COMMAND_HAS_MODE");
487 return ESPHOME_PSTR(
"WATER_HEATER_COMMAND_HAS_TARGET_TEMPERATURE");
489 return ESPHOME_PSTR(
"WATER_HEATER_COMMAND_HAS_STATE");
491 return ESPHOME_PSTR(
"WATER_HEATER_COMMAND_HAS_TARGET_TEMPERATURE_LOW");
493 return ESPHOME_PSTR(
"WATER_HEATER_COMMAND_HAS_TARGET_TEMPERATURE_HIGH");
495 return ESPHOME_PSTR(
"WATER_HEATER_COMMAND_HAS_ON_STATE");
497 return ESPHOME_PSTR(
"WATER_HEATER_COMMAND_HAS_AWAY_STATE");
499 return ESPHOME_PSTR(
"UNKNOWN");
506 return ESPHOME_PSTR(
"NUMBER_MODE_AUTO");
508 return ESPHOME_PSTR(
"NUMBER_MODE_BOX");
510 return ESPHOME_PSTR(
"NUMBER_MODE_SLIDER");
512 return ESPHOME_PSTR(
"UNKNOWN");
520 return ESPHOME_PSTR(
"LOCK_STATE_NONE");
522 return ESPHOME_PSTR(
"LOCK_STATE_LOCKED");
524 return ESPHOME_PSTR(
"LOCK_STATE_UNLOCKED");
526 return ESPHOME_PSTR(
"LOCK_STATE_JAMMED");
528 return ESPHOME_PSTR(
"LOCK_STATE_LOCKING");
530 return ESPHOME_PSTR(
"LOCK_STATE_UNLOCKING");
532 return ESPHOME_PSTR(
"LOCK_STATE_OPENING");
534 return ESPHOME_PSTR(
"LOCK_STATE_OPEN");
536 return ESPHOME_PSTR(
"UNKNOWN");
542 return ESPHOME_PSTR(
"LOCK_UNLOCK");
544 return ESPHOME_PSTR(
"LOCK_LOCK");
546 return ESPHOME_PSTR(
"LOCK_OPEN");
548 return ESPHOME_PSTR(
"UNKNOWN");
552#ifdef USE_MEDIA_PLAYER
556 return ESPHOME_PSTR(
"MEDIA_PLAYER_STATE_NONE");
558 return ESPHOME_PSTR(
"MEDIA_PLAYER_STATE_IDLE");
560 return ESPHOME_PSTR(
"MEDIA_PLAYER_STATE_PLAYING");
562 return ESPHOME_PSTR(
"MEDIA_PLAYER_STATE_PAUSED");
564 return ESPHOME_PSTR(
"MEDIA_PLAYER_STATE_ANNOUNCING");
566 return ESPHOME_PSTR(
"MEDIA_PLAYER_STATE_OFF");
568 return ESPHOME_PSTR(
"MEDIA_PLAYER_STATE_ON");
570 return ESPHOME_PSTR(
"UNKNOWN");
576 return ESPHOME_PSTR(
"MEDIA_PLAYER_COMMAND_PLAY");
578 return ESPHOME_PSTR(
"MEDIA_PLAYER_COMMAND_PAUSE");
580 return ESPHOME_PSTR(
"MEDIA_PLAYER_COMMAND_STOP");
582 return ESPHOME_PSTR(
"MEDIA_PLAYER_COMMAND_MUTE");
584 return ESPHOME_PSTR(
"MEDIA_PLAYER_COMMAND_UNMUTE");
586 return ESPHOME_PSTR(
"MEDIA_PLAYER_COMMAND_TOGGLE");
588 return ESPHOME_PSTR(
"MEDIA_PLAYER_COMMAND_VOLUME_UP");
590 return ESPHOME_PSTR(
"MEDIA_PLAYER_COMMAND_VOLUME_DOWN");
592 return ESPHOME_PSTR(
"MEDIA_PLAYER_COMMAND_ENQUEUE");
594 return ESPHOME_PSTR(
"MEDIA_PLAYER_COMMAND_REPEAT_ONE");
596 return ESPHOME_PSTR(
"MEDIA_PLAYER_COMMAND_REPEAT_OFF");
598 return ESPHOME_PSTR(
"MEDIA_PLAYER_COMMAND_CLEAR_PLAYLIST");
600 return ESPHOME_PSTR(
"MEDIA_PLAYER_COMMAND_TURN_ON");
602 return ESPHOME_PSTR(
"MEDIA_PLAYER_COMMAND_TURN_OFF");
604 return ESPHOME_PSTR(
"UNKNOWN");
610 return ESPHOME_PSTR(
"MEDIA_PLAYER_FORMAT_PURPOSE_DEFAULT");
612 return ESPHOME_PSTR(
"MEDIA_PLAYER_FORMAT_PURPOSE_ANNOUNCEMENT");
614 return ESPHOME_PSTR(
"UNKNOWN");
618#ifdef USE_BLUETOOTH_PROXY_CONNECTIONS
623 return ESPHOME_PSTR(
"BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT");
625 return ESPHOME_PSTR(
"BLUETOOTH_DEVICE_REQUEST_TYPE_DISCONNECT");
627 return ESPHOME_PSTR(
"BLUETOOTH_DEVICE_REQUEST_TYPE_PAIR");
629 return ESPHOME_PSTR(
"BLUETOOTH_DEVICE_REQUEST_TYPE_UNPAIR");
631 return ESPHOME_PSTR(
"BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT_V3_WITH_CACHE");
633 return ESPHOME_PSTR(
"BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT_V3_WITHOUT_CACHE");
635 return ESPHOME_PSTR(
"BLUETOOTH_DEVICE_REQUEST_TYPE_CLEAR_CACHE");
637 return ESPHOME_PSTR(
"UNKNOWN");
641#ifdef USE_BLUETOOTH_PROXY
645 return ESPHOME_PSTR(
"BLUETOOTH_SCANNER_STATE_IDLE");
647 return ESPHOME_PSTR(
"BLUETOOTH_SCANNER_STATE_STARTING");
649 return ESPHOME_PSTR(
"BLUETOOTH_SCANNER_STATE_RUNNING");
651 return ESPHOME_PSTR(
"BLUETOOTH_SCANNER_STATE_FAILED");
653 return ESPHOME_PSTR(
"BLUETOOTH_SCANNER_STATE_STOPPING");
655 return ESPHOME_PSTR(
"BLUETOOTH_SCANNER_STATE_STOPPED");
657 return ESPHOME_PSTR(
"UNKNOWN");
663 return ESPHOME_PSTR(
"BLUETOOTH_SCANNER_MODE_PASSIVE");
665 return ESPHOME_PSTR(
"BLUETOOTH_SCANNER_MODE_ACTIVE");
667 return ESPHOME_PSTR(
"UNKNOWN");
675 return ESPHOME_PSTR(
"VOICE_ASSISTANT_SUBSCRIBE_NONE");
677 return ESPHOME_PSTR(
"VOICE_ASSISTANT_SUBSCRIBE_API_AUDIO");
679 return ESPHOME_PSTR(
"UNKNOWN");
685 return ESPHOME_PSTR(
"VOICE_ASSISTANT_REQUEST_NONE");
687 return ESPHOME_PSTR(
"VOICE_ASSISTANT_REQUEST_USE_VAD");
689 return ESPHOME_PSTR(
"VOICE_ASSISTANT_REQUEST_USE_WAKE_WORD");
691 return ESPHOME_PSTR(
"UNKNOWN");
694#ifdef USE_VOICE_ASSISTANT
698 return ESPHOME_PSTR(
"VOICE_ASSISTANT_ERROR");
700 return ESPHOME_PSTR(
"VOICE_ASSISTANT_RUN_START");
702 return ESPHOME_PSTR(
"VOICE_ASSISTANT_RUN_END");
704 return ESPHOME_PSTR(
"VOICE_ASSISTANT_STT_START");
706 return ESPHOME_PSTR(
"VOICE_ASSISTANT_STT_END");
708 return ESPHOME_PSTR(
"VOICE_ASSISTANT_INTENT_START");
710 return ESPHOME_PSTR(
"VOICE_ASSISTANT_INTENT_END");
712 return ESPHOME_PSTR(
"VOICE_ASSISTANT_TTS_START");
714 return ESPHOME_PSTR(
"VOICE_ASSISTANT_TTS_END");
716 return ESPHOME_PSTR(
"VOICE_ASSISTANT_WAKE_WORD_START");
718 return ESPHOME_PSTR(
"VOICE_ASSISTANT_WAKE_WORD_END");
720 return ESPHOME_PSTR(
"VOICE_ASSISTANT_STT_VAD_START");
722 return ESPHOME_PSTR(
"VOICE_ASSISTANT_STT_VAD_END");
724 return ESPHOME_PSTR(
"VOICE_ASSISTANT_TTS_STREAM_START");
726 return ESPHOME_PSTR(
"VOICE_ASSISTANT_TTS_STREAM_END");
728 return ESPHOME_PSTR(
"VOICE_ASSISTANT_INTENT_PROGRESS");
730 return ESPHOME_PSTR(
"UNKNOWN");
736 return ESPHOME_PSTR(
"VOICE_ASSISTANT_TIMER_STARTED");
738 return ESPHOME_PSTR(
"VOICE_ASSISTANT_TIMER_UPDATED");
740 return ESPHOME_PSTR(
"VOICE_ASSISTANT_TIMER_CANCELLED");
742 return ESPHOME_PSTR(
"VOICE_ASSISTANT_TIMER_FINISHED");
744 return ESPHOME_PSTR(
"UNKNOWN");
748#ifdef USE_ALARM_CONTROL_PANEL
752 return ESPHOME_PSTR(
"ALARM_STATE_DISARMED");
754 return ESPHOME_PSTR(
"ALARM_STATE_ARMED_HOME");
756 return ESPHOME_PSTR(
"ALARM_STATE_ARMED_AWAY");
758 return ESPHOME_PSTR(
"ALARM_STATE_ARMED_NIGHT");
760 return ESPHOME_PSTR(
"ALARM_STATE_ARMED_VACATION");
762 return ESPHOME_PSTR(
"ALARM_STATE_ARMED_CUSTOM_BYPASS");
764 return ESPHOME_PSTR(
"ALARM_STATE_PENDING");
766 return ESPHOME_PSTR(
"ALARM_STATE_ARMING");
768 return ESPHOME_PSTR(
"ALARM_STATE_DISARMING");
770 return ESPHOME_PSTR(
"ALARM_STATE_TRIGGERED");
772 return ESPHOME_PSTR(
"UNKNOWN");
779 return ESPHOME_PSTR(
"ALARM_CONTROL_PANEL_DISARM");
781 return ESPHOME_PSTR(
"ALARM_CONTROL_PANEL_ARM_AWAY");
783 return ESPHOME_PSTR(
"ALARM_CONTROL_PANEL_ARM_HOME");
785 return ESPHOME_PSTR(
"ALARM_CONTROL_PANEL_ARM_NIGHT");
787 return ESPHOME_PSTR(
"ALARM_CONTROL_PANEL_ARM_VACATION");
789 return ESPHOME_PSTR(
"ALARM_CONTROL_PANEL_ARM_CUSTOM_BYPASS");
791 return ESPHOME_PSTR(
"ALARM_CONTROL_PANEL_TRIGGER");
793 return ESPHOME_PSTR(
"UNKNOWN");
801 return ESPHOME_PSTR(
"TEXT_MODE_TEXT");
803 return ESPHOME_PSTR(
"TEXT_MODE_PASSWORD");
805 return ESPHOME_PSTR(
"UNKNOWN");
813 return ESPHOME_PSTR(
"VALVE_OPERATION_IDLE");
815 return ESPHOME_PSTR(
"VALVE_OPERATION_IS_OPENING");
817 return ESPHOME_PSTR(
"VALVE_OPERATION_IS_CLOSING");
819 return ESPHOME_PSTR(
"UNKNOWN");
827 return ESPHOME_PSTR(
"UPDATE_COMMAND_NONE");
829 return ESPHOME_PSTR(
"UPDATE_COMMAND_UPDATE");
831 return ESPHOME_PSTR(
"UPDATE_COMMAND_CHECK");
833 return ESPHOME_PSTR(
"UNKNOWN");
837#ifdef USE_ZWAVE_PROXY
841 return ESPHOME_PSTR(
"ZWAVE_PROXY_REQUEST_TYPE_SUBSCRIBE");
843 return ESPHOME_PSTR(
"ZWAVE_PROXY_REQUEST_TYPE_UNSUBSCRIBE");
845 return ESPHOME_PSTR(
"ZWAVE_PROXY_REQUEST_TYPE_HOME_ID_CHANGE");
847 return ESPHOME_PSTR(
"UNKNOWN");
853 return ESPHOME_PSTR(
"ZWAVE_PROXY_STATUS_OK");
855 return ESPHOME_PSTR(
"ZWAVE_PROXY_STATUS_IN_USE");
857 return ESPHOME_PSTR(
"ZWAVE_PROXY_STATUS_NOT_SUPPORTED");
859 return ESPHOME_PSTR(
"UNKNOWN");
863#ifdef USE_SERIAL_PROXY
867 return ESPHOME_PSTR(
"SERIAL_PROXY_PARITY_NONE");
869 return ESPHOME_PSTR(
"SERIAL_PROXY_PARITY_EVEN");
871 return ESPHOME_PSTR(
"SERIAL_PROXY_PARITY_ODD");
873 return ESPHOME_PSTR(
"UNKNOWN");
879 return ESPHOME_PSTR(
"SERIAL_PROXY_REQUEST_TYPE_SUBSCRIBE");
881 return ESPHOME_PSTR(
"SERIAL_PROXY_REQUEST_TYPE_UNSUBSCRIBE");
883 return ESPHOME_PSTR(
"SERIAL_PROXY_REQUEST_TYPE_FLUSH");
885 return ESPHOME_PSTR(
"SERIAL_PROXY_REQUEST_TYPE_CONFIGURE");
887 return ESPHOME_PSTR(
"SERIAL_PROXY_REQUEST_TYPE_SET_MODEM_PINS");
889 return ESPHOME_PSTR(
"SERIAL_PROXY_REQUEST_TYPE_SET_MODE");
891 return ESPHOME_PSTR(
"UNKNOWN");
897 return ESPHOME_PSTR(
"SERIAL_PROXY_STATUS_OK");
899 return ESPHOME_PSTR(
"SERIAL_PROXY_STATUS_ASSUMED_SUCCESS");
901 return ESPHOME_PSTR(
"SERIAL_PROXY_STATUS_ERROR");
903 return ESPHOME_PSTR(
"SERIAL_PROXY_STATUS_TIMEOUT");
905 return ESPHOME_PSTR(
"SERIAL_PROXY_STATUS_NOT_SUPPORTED");
907 return ESPHOME_PSTR(
"SERIAL_PROXY_STATUS_PORT_IN_USE");
909 return ESPHOME_PSTR(
"SERIAL_PROXY_STATUS_INVALID_ARGUMENT");
911 return ESPHOME_PSTR(
"UNKNOWN");
917 return ESPHOME_PSTR(
"SERIAL_PROXY_MODE_RAW");
919 return ESPHOME_PSTR(
"SERIAL_PROXY_MODE_PROTOCOL");
921 return ESPHOME_PSTR(
"UNKNOWN");
927 return ESPHOME_PSTR(
"SERIAL_PROXY_IDENTITY_SOURCE_NONE");
929 return ESPHOME_PSTR(
"SERIAL_PROXY_IDENTITY_SOURCE_CONFIGURED");
931 return ESPHOME_PSTR(
"SERIAL_PROXY_IDENTITY_SOURCE_USB");
933 return ESPHOME_PSTR(
"UNKNOWN");
940 return ESPHOME_PSTR(
"SERIAL_PROXY_IDENTITY_FLAG_NONE");
942 return ESPHOME_PSTR(
"SERIAL_PROXY_IDENTITY_FLAG_CONNECTED");
944 return ESPHOME_PSTR(
"SERIAL_PROXY_IDENTITY_FLAG_ERROR");
946 return ESPHOME_PSTR(
"UNKNOWN");
954 return ESPHOME_PSTR(
"SENDSPIN_PAIRING_TOKEN_STATUS_NOT_READY");
956 return ESPHOME_PSTR(
"SENDSPIN_PAIRING_TOKEN_STATUS_OK");
958 return ESPHOME_PSTR(
"SENDSPIN_PAIRING_TOKEN_STATUS_ENCRYPTION_REQUIRED");
960 return ESPHOME_PSTR(
"SENDSPIN_PAIRING_TOKEN_STATUS_DISABLED");
962 return ESPHOME_PSTR(
"SENDSPIN_PAIRING_TOKEN_STATUS_FAILED");
964 return ESPHOME_PSTR(
"UNKNOWN");
970 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"HelloRequest"));
974#ifdef USE_API_OUTGOING_CONNECTION
980 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"HelloResponse"));
983 dump_progmem_string_field(
out, ESPHOME_PSTR(
"server_info"), this->
server_info);
984 dump_field(
out, ESPHOME_PSTR(
"name"), this->
name);
988 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"DisconnectRequest"));
993 out.append_p(ESPHOME_PSTR(
"DisconnectResponse {}"));
997 out.append_p(ESPHOME_PSTR(
"PingRequest {}"));
1001 out.append_p(ESPHOME_PSTR(
"PingResponse {}"));
1006 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"AreaInfo"));
1007 dump_field(
out, ESPHOME_PSTR(
"area_id"), this->
area_id);
1008 dump_field(
out, ESPHOME_PSTR(
"name"), this->
name);
1014 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"DeviceInfo"));
1015 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1016 dump_field(
out, ESPHOME_PSTR(
"name"), this->
name);
1017 dump_field(
out, ESPHOME_PSTR(
"area_id"), this->
area_id);
1022#ifdef USE_SERIAL_PROXY
1024 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"SerialProxyInfo"));
1025 dump_field(
out, ESPHOME_PSTR(
"name"), this->
name);
1032 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"DeviceInfoResponse"));
1033 dump_field(
out, ESPHOME_PSTR(
"name"), this->
name);
1035 dump_progmem_string_field(
out, ESPHOME_PSTR(
"esphome_version"), this->
esphome_version);
1037 dump_progmem_string_field(
out, ESPHOME_PSTR(
"model"), this->
model);
1038#ifdef USE_DEEP_SLEEP
1041#ifdef ESPHOME_PROJECT_NAME
1042 dump_progmem_string_field(
out, ESPHOME_PSTR(
"project_name"), this->
project_name);
1044#ifdef ESPHOME_PROJECT_NAME
1045 dump_progmem_string_field(
out, ESPHOME_PSTR(
"project_version"), this->
project_version);
1050#ifdef USE_BLUETOOTH_PROXY
1053 dump_progmem_string_field(
out, ESPHOME_PSTR(
"manufacturer"), this->
manufacturer);
1055#ifdef USE_VOICE_ASSISTANT
1061#ifdef USE_BLUETOOTH_PROXY
1068 for (
const auto &it : this->
devices) {
1075 for (
const auto &it : this->
areas) {
1082 out.append(2,
' ').append_p(ESPHOME_PSTR(
"area")).append(
": ");
1086#ifdef USE_ZWAVE_PROXY
1089#ifdef USE_ZWAVE_PROXY
1092#ifdef USE_SERIAL_PROXY
1102#ifdef USE_API_OUTGOING_CONNECTION
1107#ifdef USE_BLUETOOTH_PROXY
1109 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BluetoothProxyCapabilities"));
1115#ifdef USE_VOICE_ASSISTANT
1117 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"VoiceAssistantCapabilities"));
1122#ifdef USE_ZWAVE_PROXY
1124 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ZWaveProxyCapabilities"));
1126 dump_field(
out, ESPHOME_PSTR(
"home_id"), this->
home_id);
1130#ifdef USE_API_WIZARD
1132 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"WizardCapabilities"));
1133 dump_field(
out, ESPHOME_PSTR(
"configured"), this->
configured);
1139 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"SendspinCapabilities"));
1141 dump_field(
out, ESPHOME_PSTR(
"client_id"), this->
client_id);
1146 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"DeviceCapabilitiesResponse"));
1147#ifdef USE_BLUETOOTH_PROXY
1148 out.append(2,
' ').append_p(ESPHOME_PSTR(
"bluetooth_proxy")).append(
": ");
1152#ifdef USE_VOICE_ASSISTANT
1153 out.append(2,
' ').append_p(ESPHOME_PSTR(
"voice_assistant")).append(
": ");
1157#ifdef USE_ZWAVE_PROXY
1158 out.append(2,
' ').append_p(ESPHOME_PSTR(
"zwave_proxy")).append(
": ");
1162#ifdef USE_SERIAL_PROXY
1169#ifdef USE_API_WIZARD
1170 out.append(2,
' ').append_p(ESPHOME_PSTR(
"wizard")).append(
": ");
1175 out.append(2,
' ').append_p(ESPHOME_PSTR(
"sendspin")).append(
": ");
1181#ifdef USE_API_WIZARD
1183 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"DeviceWizardResponse"));
1184 dump_progmem_bytes_field(
out, ESPHOME_PSTR(
"data"), this->data, this->
data_len);
1188#ifdef USE_API_WIZARD_INPUTS
1190 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"WizardInputSetRequest"));
1191 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1192 dump_field(
out, ESPHOME_PSTR(
"entity_id"), this->
entity_id);
1197 out.append_p(ESPHOME_PSTR(
"ListEntitiesDoneResponse {}"));
1200#ifdef USE_BINARY_SENSOR
1202 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ListEntitiesBinarySensorResponse"));
1203 dump_field(
out, ESPHOME_PSTR(
"object_id"), this->
object_id);
1204 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1205 dump_progmem_string_field(
out, ESPHOME_PSTR(
"name"), this->
name);
1206 dump_progmem_string_field(
out, ESPHOME_PSTR(
"device_class"), this->
device_class);
1209#ifdef USE_ENTITY_ICON
1210 dump_progmem_string_field(
out, ESPHOME_PSTR(
"icon"), this->
icon);
1214 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1219 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BinarySensorStateResponse"));
1220 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1221 dump_field(
out, ESPHOME_PSTR(
"state"), this->
state);
1224 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1231 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ListEntitiesCoverResponse"));
1232 dump_field(
out, ESPHOME_PSTR(
"object_id"), this->
object_id);
1233 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1234 dump_progmem_string_field(
out, ESPHOME_PSTR(
"name"), this->
name);
1238 dump_progmem_string_field(
out, ESPHOME_PSTR(
"device_class"), this->
device_class);
1240#ifdef USE_ENTITY_ICON
1241 dump_progmem_string_field(
out, ESPHOME_PSTR(
"icon"), this->
icon);
1246 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1253 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"CoverStateResponse"));
1254 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1255 dump_field(
out, ESPHOME_PSTR(
"position"), this->
position);
1256 dump_field(
out, ESPHOME_PSTR(
"tilt"), this->
tilt);
1259 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1264 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"CoverCommandRequest"));
1265 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1267 dump_field(
out, ESPHOME_PSTR(
"position"), this->
position);
1268 dump_field(
out, ESPHOME_PSTR(
"has_tilt"), this->
has_tilt);
1269 dump_field(
out, ESPHOME_PSTR(
"tilt"), this->
tilt);
1270 dump_field(
out, ESPHOME_PSTR(
"stop"), this->
stop);
1272 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1274 dump_field(
out, ESPHOME_PSTR(
"stop_tilt"), this->
stop_tilt);
1275 dump_field(
out, ESPHOME_PSTR(
"toggle"), this->
toggle);
1281 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ListEntitiesFanResponse"));
1282 dump_field(
out, ESPHOME_PSTR(
"object_id"), this->
object_id);
1283 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1284 dump_progmem_string_field(
out, ESPHOME_PSTR(
"name"), this->
name);
1290#ifdef USE_ENTITY_ICON
1291 dump_progmem_string_field(
out, ESPHOME_PSTR(
"icon"), this->
icon);
1295 dump_field(
out, ESPHOME_PSTR(
"supported_preset_modes"), it, 4);
1298 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1303 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"FanStateResponse"));
1304 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1305 dump_field(
out, ESPHOME_PSTR(
"state"), this->
state);
1311 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1316 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"FanCommandRequest"));
1317 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1318 dump_field(
out, ESPHOME_PSTR(
"has_state"), this->
has_state);
1319 dump_field(
out, ESPHOME_PSTR(
"state"), this->
state);
1329 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1336 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ListEntitiesLightResponse"));
1337 dump_field(
out, ESPHOME_PSTR(
"object_id"), this->
object_id);
1338 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1339 dump_progmem_string_field(
out, ESPHOME_PSTR(
"name"), this->
name);
1341 dump_field(
out, ESPHOME_PSTR(
"supported_color_modes"),
static_cast<enums::ColorMode>(it), 4);
1343 dump_field(
out, ESPHOME_PSTR(
"min_mireds"), this->
min_mireds);
1344 dump_field(
out, ESPHOME_PSTR(
"max_mireds"), this->
max_mireds);
1345 for (
const auto &it : *this->
effects) {
1346 dump_field(
out, ESPHOME_PSTR(
"effects"), it, 4);
1349#ifdef USE_ENTITY_ICON
1350 dump_progmem_string_field(
out, ESPHOME_PSTR(
"icon"), this->
icon);
1354 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1359 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"LightStateResponse"));
1360 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1361 dump_field(
out, ESPHOME_PSTR(
"state"), this->
state);
1362 dump_field(
out, ESPHOME_PSTR(
"brightness"), this->
brightness);
1365 dump_field(
out, ESPHOME_PSTR(
"red"), this->
red);
1366 dump_field(
out, ESPHOME_PSTR(
"green"), this->
green);
1367 dump_field(
out, ESPHOME_PSTR(
"blue"), this->
blue);
1368 dump_field(
out, ESPHOME_PSTR(
"white"), this->
white);
1370 dump_field(
out, ESPHOME_PSTR(
"cold_white"), this->
cold_white);
1371 dump_field(
out, ESPHOME_PSTR(
"warm_white"), this->
warm_white);
1372 dump_field(
out, ESPHOME_PSTR(
"effect"), this->
effect);
1374 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1379 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"LightCommandRequest"));
1380 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1381 dump_field(
out, ESPHOME_PSTR(
"has_state"), this->
has_state);
1382 dump_field(
out, ESPHOME_PSTR(
"state"), this->
state);
1384 dump_field(
out, ESPHOME_PSTR(
"brightness"), this->
brightness);
1389 dump_field(
out, ESPHOME_PSTR(
"has_rgb"), this->
has_rgb);
1390 dump_field(
out, ESPHOME_PSTR(
"red"), this->
red);
1391 dump_field(
out, ESPHOME_PSTR(
"green"), this->
green);
1392 dump_field(
out, ESPHOME_PSTR(
"blue"), this->
blue);
1393 dump_field(
out, ESPHOME_PSTR(
"has_white"), this->
has_white);
1394 dump_field(
out, ESPHOME_PSTR(
"white"), this->
white);
1398 dump_field(
out, ESPHOME_PSTR(
"cold_white"), this->
cold_white);
1400 dump_field(
out, ESPHOME_PSTR(
"warm_white"), this->
warm_white);
1405 dump_field(
out, ESPHOME_PSTR(
"has_effect"), this->
has_effect);
1406 dump_field(
out, ESPHOME_PSTR(
"effect"), this->
effect);
1408 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1415 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ListEntitiesSensorResponse"));
1416 dump_field(
out, ESPHOME_PSTR(
"object_id"), this->
object_id);
1417 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1418 dump_progmem_string_field(
out, ESPHOME_PSTR(
"name"), this->
name);
1419#ifdef USE_ENTITY_ICON
1420 dump_progmem_string_field(
out, ESPHOME_PSTR(
"icon"), this->
icon);
1425 dump_progmem_string_field(
out, ESPHOME_PSTR(
"device_class"), this->
device_class);
1430 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1435 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"SensorStateResponse"));
1436 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1437 dump_field(
out, ESPHOME_PSTR(
"state"), this->
state);
1440 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1447 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ListEntitiesSwitchResponse"));
1448 dump_field(
out, ESPHOME_PSTR(
"object_id"), this->
object_id);
1449 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1450 dump_progmem_string_field(
out, ESPHOME_PSTR(
"name"), this->
name);
1451#ifdef USE_ENTITY_ICON
1452 dump_progmem_string_field(
out, ESPHOME_PSTR(
"icon"), this->
icon);
1457 dump_progmem_string_field(
out, ESPHOME_PSTR(
"device_class"), this->
device_class);
1459 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1464 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"SwitchStateResponse"));
1465 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1466 dump_field(
out, ESPHOME_PSTR(
"state"), this->
state);
1468 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1474 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"SwitchCommandRequest"));
1475 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1476 dump_field(
out, ESPHOME_PSTR(
"state"), this->
state);
1478 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1483#ifdef USE_TEXT_SENSOR
1485 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ListEntitiesTextSensorResponse"));
1486 dump_field(
out, ESPHOME_PSTR(
"object_id"), this->
object_id);
1487 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1488 dump_progmem_string_field(
out, ESPHOME_PSTR(
"name"), this->
name);
1489#ifdef USE_ENTITY_ICON
1490 dump_progmem_string_field(
out, ESPHOME_PSTR(
"icon"), this->
icon);
1494 dump_progmem_string_field(
out, ESPHOME_PSTR(
"device_class"), this->
device_class);
1496 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1501 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"TextSensorStateResponse"));
1502 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1503 dump_field(
out, ESPHOME_PSTR(
"state"), this->
state);
1506 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1512 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"SubscribeLogsRequest"));
1518 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"SubscribeLogsResponse"));
1525 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"NoiseEncryptionSetKeyRequest"));
1526 dump_bytes_field(
out, ESPHOME_PSTR(
"key"), this->
key, this->
key_len);
1530 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"NoiseEncryptionSetKeyResponse"));
1531 dump_field(
out, ESPHOME_PSTR(
"success"), this->
success);
1535#ifdef USE_API_HOMEASSISTANT_SERVICES
1537 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"HomeassistantServiceMap"));
1538 dump_progmem_string_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1539 dump_progmem_string_field(
out, ESPHOME_PSTR(
"value"), this->value);
1543 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"HomeassistantActionRequest"));
1544 dump_progmem_string_field(
out, ESPHOME_PSTR(
"service"), this->
service);
1545 for (
const auto &it : this->data) {
1546 out.append(4,
' ').append_p(ESPHOME_PSTR(
"data")).append(
": ");
1555 for (
const auto &it : this->
variables) {
1560 dump_field(
out, ESPHOME_PSTR(
"is_event"), this->
is_event);
1561#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES
1562 dump_field(
out, ESPHOME_PSTR(
"call_id"), this->
call_id);
1564#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1567#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1573#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES
1575 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"HomeassistantActionResponse"));
1576 dump_field(
out, ESPHOME_PSTR(
"call_id"), this->
call_id);
1577 dump_field(
out, ESPHOME_PSTR(
"success"), this->
success);
1579#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1585#ifdef USE_API_HOMEASSISTANT_STATES
1587 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"SubscribeHomeAssistantStateResponse"));
1588 dump_field(
out, ESPHOME_PSTR(
"entity_id"), this->
entity_id);
1589 dump_field(
out, ESPHOME_PSTR(
"attribute"), this->
attribute);
1590 dump_field(
out, ESPHOME_PSTR(
"once"), this->
once);
1594 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"HomeAssistantStateResponse"));
1595 dump_field(
out, ESPHOME_PSTR(
"entity_id"), this->
entity_id);
1596 dump_field(
out, ESPHOME_PSTR(
"state"), this->
state);
1597 dump_field(
out, ESPHOME_PSTR(
"attribute"), this->
attribute);
1602 out.append_p(ESPHOME_PSTR(
"GetTimeRequest {}"));
1606 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"DSTRule"));
1608 dump_field(
out, ESPHOME_PSTR(
"day"), this->
day);
1610 dump_field(
out, ESPHOME_PSTR(
"month"), this->
month);
1611 dump_field(
out, ESPHOME_PSTR(
"week"), this->
week);
1616 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ParsedTimezone"));
1622 out.append(2,
' ').append_p(ESPHOME_PSTR(
"dst_end")).append(
": ");
1628 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"GetTimeResponse"));
1636#ifdef USE_API_USER_DEFINED_ACTIONS
1638 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ListEntitiesServicesArgument"));
1639 dump_progmem_string_field(
out, ESPHOME_PSTR(
"name"), this->
name);
1641#ifdef USE_API_USER_DEFINED_ACTION_METADATA
1642 dump_progmem_string_field(
out, ESPHOME_PSTR(
"description"), this->
description);
1644#ifdef USE_API_USER_DEFINED_ACTION_METADATA
1645 dump_progmem_string_field(
out, ESPHOME_PSTR(
"example"), this->
example);
1647#ifdef USE_API_USER_DEFINED_ACTION_OPTIONAL_ARGS
1648 dump_field(
out, ESPHOME_PSTR(
"optional"), this->optional);
1650#ifdef USE_API_USER_DEFINED_ACTION_OPTIONAL_ARGS
1651 dump_progmem_string_field(
out, ESPHOME_PSTR(
"default_value"), this->
default_value);
1656 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ListEntitiesServicesResponse"));
1657 dump_progmem_string_field(
out, ESPHOME_PSTR(
"name"), this->
name);
1658 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1659 for (
const auto &it : this->
args) {
1665#ifdef USE_API_USER_DEFINED_ACTION_METADATA
1666 dump_progmem_string_field(
out, ESPHOME_PSTR(
"description"), this->
description);
1671 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ExecuteServiceArgument"));
1672 dump_field(
out, ESPHOME_PSTR(
"bool_"), this->
bool_);
1673 dump_field(
out, ESPHOME_PSTR(
"legacy_int"), this->
legacy_int);
1674 dump_field(
out, ESPHOME_PSTR(
"float_"), this->
float_);
1675 dump_field(
out, ESPHOME_PSTR(
"string_"), this->
string_);
1676 dump_field(
out, ESPHOME_PSTR(
"int_"), this->
int_);
1678 dump_field(
out, ESPHOME_PSTR(
"bool_array"),
static_cast<bool>(it), 4);
1680 for (
const auto &it : this->
int_array) {
1681 dump_field(
out, ESPHOME_PSTR(
"int_array"), it, 4);
1684 dump_field(
out, ESPHOME_PSTR(
"float_array"), it, 4);
1687 dump_field(
out, ESPHOME_PSTR(
"string_array"), it, 4);
1692 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ExecuteServiceRequest"));
1693 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1694 for (
const auto &it : this->
args) {
1699#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1700 dump_field(
out, ESPHOME_PSTR(
"call_id"), this->
call_id);
1702#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1708#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1710 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ExecuteServiceResponse"));
1711 dump_field(
out, ESPHOME_PSTR(
"call_id"), this->
call_id);
1712 dump_field(
out, ESPHOME_PSTR(
"success"), this->
success);
1714#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES_JSON
1722 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ListEntitiesCameraResponse"));
1723 dump_field(
out, ESPHOME_PSTR(
"object_id"), this->
object_id);
1724 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1725 dump_progmem_string_field(
out, ESPHOME_PSTR(
"name"), this->
name);
1727#ifdef USE_ENTITY_ICON
1728 dump_progmem_string_field(
out, ESPHOME_PSTR(
"icon"), this->
icon);
1732 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1737 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"CameraImageResponse"));
1738 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1740 dump_field(
out, ESPHOME_PSTR(
"done"), this->
done);
1742 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1747 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"CameraImageRequest"));
1748 dump_field(
out, ESPHOME_PSTR(
"single"), this->
single);
1749 dump_field(
out, ESPHOME_PSTR(
"stream"), this->
stream);
1755 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ListEntitiesClimateResponse"));
1756 dump_field(
out, ESPHOME_PSTR(
"object_id"), this->
object_id);
1757 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1758 dump_progmem_string_field(
out, ESPHOME_PSTR(
"name"), this->
name);
1775 dump_field(
out, ESPHOME_PSTR(
"supported_custom_fan_modes"), it, 4);
1781 dump_field(
out, ESPHOME_PSTR(
"supported_custom_presets"), it, 4);
1784#ifdef USE_ENTITY_ICON
1785 dump_progmem_string_field(
out, ESPHOME_PSTR(
"icon"), this->
icon);
1794 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1801 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ClimateStateResponse"));
1802 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1817 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1823 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ClimateCommandRequest"));
1824 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1825 dump_field(
out, ESPHOME_PSTR(
"has_mode"), this->
has_mode);
1839 dump_field(
out, ESPHOME_PSTR(
"has_preset"), this->
has_preset);
1846 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1851#ifdef USE_WATER_HEATER
1853 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ListEntitiesWaterHeaterResponse"));
1854 dump_field(
out, ESPHOME_PSTR(
"object_id"), this->
object_id);
1855 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1856 dump_progmem_string_field(
out, ESPHOME_PSTR(
"name"), this->
name);
1857#ifdef USE_ENTITY_ICON
1858 dump_progmem_string_field(
out, ESPHOME_PSTR(
"icon"), this->
icon);
1863 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1876 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"WaterHeaterStateResponse"));
1877 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1882 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1884 dump_field(
out, ESPHOME_PSTR(
"state"), this->
state);
1891 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"WaterHeaterCommandRequest"));
1892 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1893 dump_field(
out, ESPHOME_PSTR(
"has_fields"), this->
has_fields);
1897 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1899 dump_field(
out, ESPHOME_PSTR(
"state"), this->
state);
1907 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ListEntitiesNumberResponse"));
1908 dump_field(
out, ESPHOME_PSTR(
"object_id"), this->
object_id);
1909 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1910 dump_progmem_string_field(
out, ESPHOME_PSTR(
"name"), this->
name);
1911#ifdef USE_ENTITY_ICON
1912 dump_progmem_string_field(
out, ESPHOME_PSTR(
"icon"), this->
icon);
1914 dump_field(
out, ESPHOME_PSTR(
"min_value"), this->
min_value);
1915 dump_field(
out, ESPHOME_PSTR(
"max_value"), this->
max_value);
1916 dump_field(
out, ESPHOME_PSTR(
"step"), this->
step);
1921 dump_progmem_string_field(
out, ESPHOME_PSTR(
"device_class"), this->
device_class);
1923 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1928 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"NumberStateResponse"));
1929 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1930 dump_field(
out, ESPHOME_PSTR(
"state"), this->
state);
1933 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1938 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"NumberCommandRequest"));
1939 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1940 dump_field(
out, ESPHOME_PSTR(
"state"), this->
state);
1942 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1949 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ListEntitiesSelectResponse"));
1950 dump_field(
out, ESPHOME_PSTR(
"object_id"), this->
object_id);
1951 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1952 dump_progmem_string_field(
out, ESPHOME_PSTR(
"name"), this->
name);
1953#ifdef USE_ENTITY_ICON
1954 dump_progmem_string_field(
out, ESPHOME_PSTR(
"icon"), this->
icon);
1956 for (
const auto &it : *this->
options) {
1957 dump_field(
out, ESPHOME_PSTR(
"options"), it, 4);
1962 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1967 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"SelectStateResponse"));
1968 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1969 dump_field(
out, ESPHOME_PSTR(
"state"), this->
state);
1972 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1977 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"SelectCommandRequest"));
1978 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1979 dump_field(
out, ESPHOME_PSTR(
"state"), this->
state);
1981 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1988 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ListEntitiesSirenResponse"));
1989 dump_field(
out, ESPHOME_PSTR(
"object_id"), this->
object_id);
1990 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1991 dump_progmem_string_field(
out, ESPHOME_PSTR(
"name"), this->
name);
1992#ifdef USE_ENTITY_ICON
1993 dump_progmem_string_field(
out, ESPHOME_PSTR(
"icon"), this->
icon);
1996 for (
const auto &it : *this->
tones) {
1997 dump_field(
out, ESPHOME_PSTR(
"tones"), it, 4);
2003 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2008 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"SirenStateResponse"));
2009 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2010 dump_field(
out, ESPHOME_PSTR(
"state"), this->
state);
2012 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2017 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"SirenCommandRequest"));
2018 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2019 dump_field(
out, ESPHOME_PSTR(
"has_state"), this->
has_state);
2020 dump_field(
out, ESPHOME_PSTR(
"state"), this->
state);
2021 dump_field(
out, ESPHOME_PSTR(
"has_tone"), this->
has_tone);
2022 dump_field(
out, ESPHOME_PSTR(
"tone"), this->
tone);
2024 dump_field(
out, ESPHOME_PSTR(
"duration"), this->
duration);
2025 dump_field(
out, ESPHOME_PSTR(
"has_volume"), this->
has_volume);
2026 dump_field(
out, ESPHOME_PSTR(
"volume"), this->
volume);
2028 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2035 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ListEntitiesLockResponse"));
2036 dump_field(
out, ESPHOME_PSTR(
"object_id"), this->
object_id);
2037 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2038 dump_progmem_string_field(
out, ESPHOME_PSTR(
"name"), this->
name);
2039#ifdef USE_ENTITY_ICON
2040 dump_progmem_string_field(
out, ESPHOME_PSTR(
"icon"), this->
icon);
2049 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2054 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"LockStateResponse"));
2055 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2058 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2063 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"LockCommandRequest"));
2064 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2066 dump_field(
out, ESPHOME_PSTR(
"has_code"), this->
has_code);
2067 dump_field(
out, ESPHOME_PSTR(
"code"), this->
code);
2069 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2076 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ListEntitiesButtonResponse"));
2077 dump_field(
out, ESPHOME_PSTR(
"object_id"), this->
object_id);
2078 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2079 dump_progmem_string_field(
out, ESPHOME_PSTR(
"name"), this->
name);
2080#ifdef USE_ENTITY_ICON
2081 dump_progmem_string_field(
out, ESPHOME_PSTR(
"icon"), this->
icon);
2085 dump_progmem_string_field(
out, ESPHOME_PSTR(
"device_class"), this->
device_class);
2087 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2092 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ButtonCommandRequest"));
2093 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2095 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2100#ifdef USE_MEDIA_PLAYER
2102 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"MediaPlayerSupportedFormat"));
2103 dump_field(
out, ESPHOME_PSTR(
"format"), this->
format);
2108 dump_field(
out, ESPHOME_PSTR(
"bitrate"), this->
bitrate);
2112 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ListEntitiesMediaPlayerResponse"));
2113 dump_field(
out, ESPHOME_PSTR(
"object_id"), this->
object_id);
2114 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2115 dump_progmem_string_field(
out, ESPHOME_PSTR(
"name"), this->
name);
2116#ifdef USE_ENTITY_ICON
2117 dump_progmem_string_field(
out, ESPHOME_PSTR(
"icon"), this->
icon);
2127 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2133 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"MediaPlayerStateResponse"));
2134 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2136 dump_field(
out, ESPHOME_PSTR(
"volume"), this->
volume);
2137 dump_field(
out, ESPHOME_PSTR(
"muted"), this->
muted);
2139 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2144 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"MediaPlayerCommandRequest"));
2145 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2148 dump_field(
out, ESPHOME_PSTR(
"has_volume"), this->
has_volume);
2149 dump_field(
out, ESPHOME_PSTR(
"volume"), this->
volume);
2151 dump_field(
out, ESPHOME_PSTR(
"media_url"), this->
media_url);
2155 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2160#ifdef USE_BLUETOOTH_PROXY
2162 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"SubscribeBluetoothLEAdvertisementsRequest"));
2163 dump_field(
out, ESPHOME_PSTR(
"flags"), this->
flags);
2167 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BluetoothLERawAdvertisement"));
2168 dump_field(
out, ESPHOME_PSTR(
"address"), this->
address);
2169 dump_field(
out, ESPHOME_PSTR(
"rssi"), this->
rssi);
2171 dump_bytes_field(
out, ESPHOME_PSTR(
"data"), this->data, this->
data_len);
2175 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BluetoothLERawAdvertisementsResponse"));
2177 out.append(4,
' ').append_p(ESPHOME_PSTR(
"advertisements")).append(
": ");
2184#ifdef USE_BLUETOOTH_PROXY_CONNECTIONS
2186 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BluetoothDeviceRequest"));
2187 dump_field(
out, ESPHOME_PSTR(
"address"), this->
address);
2194 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BluetoothDeviceConnectionResponse"));
2195 dump_field(
out, ESPHOME_PSTR(
"address"), this->
address);
2196 dump_field(
out, ESPHOME_PSTR(
"connected"), this->
connected);
2197 dump_field(
out, ESPHOME_PSTR(
"mtu"), this->
mtu);
2198 dump_field(
out, ESPHOME_PSTR(
"error"), this->
error);
2202 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BluetoothGATTGetServicesRequest"));
2203 dump_field(
out, ESPHOME_PSTR(
"address"), this->
address);
2207 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BluetoothGATTDescriptor"));
2208 for (
const auto &it : this->
uuid) {
2209 dump_field(
out, ESPHOME_PSTR(
"uuid"), it, 4);
2211 dump_field(
out, ESPHOME_PSTR(
"handle"), this->
handle);
2212 dump_field(
out, ESPHOME_PSTR(
"short_uuid"), this->
short_uuid);
2216 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BluetoothGATTCharacteristic"));
2217 for (
const auto &it : this->
uuid) {
2218 dump_field(
out, ESPHOME_PSTR(
"uuid"), it, 4);
2220 dump_field(
out, ESPHOME_PSTR(
"handle"), this->
handle);
2221 dump_field(
out, ESPHOME_PSTR(
"properties"), this->
properties);
2227 dump_field(
out, ESPHOME_PSTR(
"short_uuid"), this->
short_uuid);
2231 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BluetoothGATTService"));
2232 for (
const auto &it : this->
uuid) {
2233 dump_field(
out, ESPHOME_PSTR(
"uuid"), it, 4);
2235 dump_field(
out, ESPHOME_PSTR(
"handle"), this->
handle);
2241 dump_field(
out, ESPHOME_PSTR(
"short_uuid"), this->
short_uuid);
2245 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BluetoothGATTGetServicesResponse"));
2246 dump_field(
out, ESPHOME_PSTR(
"address"), this->
address);
2247 for (
const auto &it : this->
services) {
2255 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BluetoothGATTGetServicesDoneResponse"));
2256 dump_field(
out, ESPHOME_PSTR(
"address"), this->
address);
2260 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BluetoothGATTReadRequest"));
2261 dump_field(
out, ESPHOME_PSTR(
"address"), this->
address);
2262 dump_field(
out, ESPHOME_PSTR(
"handle"), this->
handle);
2266 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BluetoothGATTReadResponse"));
2267 dump_field(
out, ESPHOME_PSTR(
"address"), this->
address);
2268 dump_field(
out, ESPHOME_PSTR(
"handle"), this->
handle);
2273 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BluetoothGATTWriteRequest"));
2274 dump_field(
out, ESPHOME_PSTR(
"address"), this->
address);
2275 dump_field(
out, ESPHOME_PSTR(
"handle"), this->
handle);
2276 dump_field(
out, ESPHOME_PSTR(
"response"), this->
response);
2277 dump_bytes_field(
out, ESPHOME_PSTR(
"data"), this->data, this->
data_len);
2281 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BluetoothGATTReadDescriptorRequest"));
2282 dump_field(
out, ESPHOME_PSTR(
"address"), this->
address);
2283 dump_field(
out, ESPHOME_PSTR(
"handle"), this->
handle);
2287 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BluetoothGATTWriteDescriptorRequest"));
2288 dump_field(
out, ESPHOME_PSTR(
"address"), this->
address);
2289 dump_field(
out, ESPHOME_PSTR(
"handle"), this->
handle);
2290 dump_bytes_field(
out, ESPHOME_PSTR(
"data"), this->data, this->
data_len);
2294 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BluetoothGATTNotifyRequest"));
2295 dump_field(
out, ESPHOME_PSTR(
"address"), this->
address);
2296 dump_field(
out, ESPHOME_PSTR(
"handle"), this->
handle);
2297 dump_field(
out, ESPHOME_PSTR(
"enable"), this->
enable);
2301 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BluetoothGATTNotifyDataResponse"));
2302 dump_field(
out, ESPHOME_PSTR(
"address"), this->
address);
2303 dump_field(
out, ESPHOME_PSTR(
"handle"), this->
handle);
2308 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BluetoothConnectionsFreeResponse"));
2309 dump_field(
out, ESPHOME_PSTR(
"free"), this->
free);
2310 dump_field(
out, ESPHOME_PSTR(
"limit"), this->
limit);
2311 for (
const auto &it : this->
allocated) {
2312 dump_field(
out, ESPHOME_PSTR(
"allocated"), it, 4);
2317 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BluetoothGATTErrorResponse"));
2318 dump_field(
out, ESPHOME_PSTR(
"address"), this->
address);
2319 dump_field(
out, ESPHOME_PSTR(
"handle"), this->
handle);
2320 dump_field(
out, ESPHOME_PSTR(
"error"), this->
error);
2324 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BluetoothGATTWriteResponse"));
2325 dump_field(
out, ESPHOME_PSTR(
"address"), this->
address);
2326 dump_field(
out, ESPHOME_PSTR(
"handle"), this->
handle);
2330 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BluetoothGATTNotifyResponse"));
2331 dump_field(
out, ESPHOME_PSTR(
"address"), this->
address);
2332 dump_field(
out, ESPHOME_PSTR(
"handle"), this->
handle);
2336 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BluetoothDevicePairingResponse"));
2337 dump_field(
out, ESPHOME_PSTR(
"address"), this->
address);
2338 dump_field(
out, ESPHOME_PSTR(
"paired"), this->
paired);
2339 dump_field(
out, ESPHOME_PSTR(
"error"), this->
error);
2343 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BluetoothDeviceUnpairingResponse"));
2344 dump_field(
out, ESPHOME_PSTR(
"address"), this->
address);
2345 dump_field(
out, ESPHOME_PSTR(
"success"), this->
success);
2346 dump_field(
out, ESPHOME_PSTR(
"error"), this->
error);
2350 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BluetoothDeviceClearCacheResponse"));
2351 dump_field(
out, ESPHOME_PSTR(
"address"), this->
address);
2352 dump_field(
out, ESPHOME_PSTR(
"success"), this->
success);
2353 dump_field(
out, ESPHOME_PSTR(
"error"), this->
error);
2357#ifdef USE_BLUETOOTH_PROXY
2359 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BluetoothScannerStateResponse"));
2366 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BluetoothScannerSetModeRequest"));
2371#ifdef USE_VOICE_ASSISTANT
2373 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"SubscribeVoiceAssistantRequest"));
2374 dump_field(
out, ESPHOME_PSTR(
"subscribe"), this->subscribe);
2375 dump_field(
out, ESPHOME_PSTR(
"flags"), this->
flags);
2379 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"VoiceAssistantAudioSettings"));
2381 dump_field(
out, ESPHOME_PSTR(
"auto_gain"), this->
auto_gain);
2386 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"VoiceAssistantRequest"));
2387 dump_field(
out, ESPHOME_PSTR(
"start"), this->
start);
2389 dump_field(
out, ESPHOME_PSTR(
"flags"), this->
flags);
2397 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"VoiceAssistantResponse"));
2398 dump_field(
out, ESPHOME_PSTR(
"port"), this->
port);
2399 dump_field(
out, ESPHOME_PSTR(
"error"), this->
error);
2403 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"VoiceAssistantEventData"));
2404 dump_field(
out, ESPHOME_PSTR(
"name"), this->
name);
2405 dump_field(
out, ESPHOME_PSTR(
"value"), this->value);
2409 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"VoiceAssistantEventResponse"));
2411 for (
const auto &it : this->data) {
2412 out.append(4,
' ').append_p(ESPHOME_PSTR(
"data")).append(
": ");
2419 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"VoiceAssistantAudio"));
2420 dump_bytes_field(
out, ESPHOME_PSTR(
"data"), this->data, this->
data_len);
2421 dump_field(
out, ESPHOME_PSTR(
"end"), this->
end);
2426 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"VoiceAssistantTimerEventResponse"));
2428 dump_field(
out, ESPHOME_PSTR(
"timer_id"), this->
timer_id);
2429 dump_field(
out, ESPHOME_PSTR(
"name"), this->
name);
2432 dump_field(
out, ESPHOME_PSTR(
"is_active"), this->
is_active);
2436 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"VoiceAssistantAnnounceRequest"));
2437 dump_field(
out, ESPHOME_PSTR(
"media_id"), this->
media_id);
2438 dump_field(
out, ESPHOME_PSTR(
"text"), this->
text);
2444 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"VoiceAssistantAnnounceFinished"));
2445 dump_field(
out, ESPHOME_PSTR(
"success"), this->
success);
2449 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"VoiceAssistantWakeWord"));
2450 dump_field(
out, ESPHOME_PSTR(
"id"), this->
id);
2451 dump_field(
out, ESPHOME_PSTR(
"wake_word"), this->
wake_word);
2453 dump_field(
out, ESPHOME_PSTR(
"trained_languages"), it, 4);
2458 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"VoiceAssistantExternalWakeWord"));
2459 dump_field(
out, ESPHOME_PSTR(
"id"), this->
id);
2460 dump_field(
out, ESPHOME_PSTR(
"wake_word"), this->
wake_word);
2462 dump_field(
out, ESPHOME_PSTR(
"trained_languages"), it, 4);
2464 dump_field(
out, ESPHOME_PSTR(
"model_type"), this->
model_type);
2465 dump_field(
out, ESPHOME_PSTR(
"model_size"), this->
model_size);
2466 dump_field(
out, ESPHOME_PSTR(
"model_hash"), this->
model_hash);
2467 dump_field(
out, ESPHOME_PSTR(
"url"), this->
url);
2471 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"VoiceAssistantConfigurationRequest"));
2480 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"VoiceAssistantConfigurationResponse"));
2487 dump_field(
out, ESPHOME_PSTR(
"active_wake_words"), it, 4);
2493 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"VoiceAssistantSetConfiguration"));
2495 dump_field(
out, ESPHOME_PSTR(
"active_wake_words"), it, 4);
2500#ifdef USE_ALARM_CONTROL_PANEL
2502 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ListEntitiesAlarmControlPanelResponse"));
2503 dump_field(
out, ESPHOME_PSTR(
"object_id"), this->
object_id);
2504 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2505 dump_progmem_string_field(
out, ESPHOME_PSTR(
"name"), this->
name);
2506#ifdef USE_ENTITY_ICON
2507 dump_progmem_string_field(
out, ESPHOME_PSTR(
"icon"), this->
icon);
2515 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2520 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"AlarmControlPanelStateResponse"));
2521 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2524 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2529 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"AlarmControlPanelCommandRequest"));
2530 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2532 dump_field(
out, ESPHOME_PSTR(
"code"), this->
code);
2534 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2541 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ListEntitiesTextResponse"));
2542 dump_field(
out, ESPHOME_PSTR(
"object_id"), this->
object_id);
2543 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2544 dump_progmem_string_field(
out, ESPHOME_PSTR(
"name"), this->
name);
2545#ifdef USE_ENTITY_ICON
2546 dump_progmem_string_field(
out, ESPHOME_PSTR(
"icon"), this->
icon);
2550 dump_field(
out, ESPHOME_PSTR(
"min_length"), this->
min_length);
2551 dump_field(
out, ESPHOME_PSTR(
"max_length"), this->
max_length);
2552 dump_field(
out, ESPHOME_PSTR(
"pattern"), this->
pattern);
2555 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2560 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"TextStateResponse"));
2561 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2562 dump_field(
out, ESPHOME_PSTR(
"state"), this->
state);
2565 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2570 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"TextCommandRequest"));
2571 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2572 dump_field(
out, ESPHOME_PSTR(
"state"), this->
state);
2574 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2579#ifdef USE_DATETIME_DATE
2581 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ListEntitiesDateResponse"));
2582 dump_field(
out, ESPHOME_PSTR(
"object_id"), this->
object_id);
2583 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2584 dump_progmem_string_field(
out, ESPHOME_PSTR(
"name"), this->
name);
2585#ifdef USE_ENTITY_ICON
2586 dump_progmem_string_field(
out, ESPHOME_PSTR(
"icon"), this->
icon);
2591 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2596 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"DateStateResponse"));
2597 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2599 dump_field(
out, ESPHOME_PSTR(
"year"), this->
year);
2600 dump_field(
out, ESPHOME_PSTR(
"month"), this->
month);
2601 dump_field(
out, ESPHOME_PSTR(
"day"), this->
day);
2603 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2608 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"DateCommandRequest"));
2609 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2610 dump_field(
out, ESPHOME_PSTR(
"year"), this->
year);
2611 dump_field(
out, ESPHOME_PSTR(
"month"), this->
month);
2612 dump_field(
out, ESPHOME_PSTR(
"day"), this->
day);
2614 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2619#ifdef USE_DATETIME_TIME
2621 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ListEntitiesTimeResponse"));
2622 dump_field(
out, ESPHOME_PSTR(
"object_id"), this->
object_id);
2623 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2624 dump_progmem_string_field(
out, ESPHOME_PSTR(
"name"), this->
name);
2625#ifdef USE_ENTITY_ICON
2626 dump_progmem_string_field(
out, ESPHOME_PSTR(
"icon"), this->
icon);
2631 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2636 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"TimeStateResponse"));
2637 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2639 dump_field(
out, ESPHOME_PSTR(
"hour"), this->
hour);
2640 dump_field(
out, ESPHOME_PSTR(
"minute"), this->
minute);
2641 dump_field(
out, ESPHOME_PSTR(
"second"), this->
second);
2643 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2648 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"TimeCommandRequest"));
2649 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2650 dump_field(
out, ESPHOME_PSTR(
"hour"), this->
hour);
2651 dump_field(
out, ESPHOME_PSTR(
"minute"), this->
minute);
2652 dump_field(
out, ESPHOME_PSTR(
"second"), this->
second);
2654 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2661 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ListEntitiesEventResponse"));
2662 dump_field(
out, ESPHOME_PSTR(
"object_id"), this->
object_id);
2663 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2664 dump_progmem_string_field(
out, ESPHOME_PSTR(
"name"), this->
name);
2665#ifdef USE_ENTITY_ICON
2666 dump_progmem_string_field(
out, ESPHOME_PSTR(
"icon"), this->
icon);
2670 dump_progmem_string_field(
out, ESPHOME_PSTR(
"device_class"), this->
device_class);
2672 dump_field(
out, ESPHOME_PSTR(
"event_types"), it, 4);
2675 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2680 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"EventResponse"));
2681 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2682 dump_field(
out, ESPHOME_PSTR(
"event_type"), this->
event_type);
2684 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2691 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ListEntitiesValveResponse"));
2692 dump_field(
out, ESPHOME_PSTR(
"object_id"), this->
object_id);
2693 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2694 dump_progmem_string_field(
out, ESPHOME_PSTR(
"name"), this->
name);
2695#ifdef USE_ENTITY_ICON
2696 dump_progmem_string_field(
out, ESPHOME_PSTR(
"icon"), this->
icon);
2700 dump_progmem_string_field(
out, ESPHOME_PSTR(
"device_class"), this->
device_class);
2705 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2710 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ValveStateResponse"));
2711 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2712 dump_field(
out, ESPHOME_PSTR(
"position"), this->
position);
2715 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2720 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ValveCommandRequest"));
2721 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2723 dump_field(
out, ESPHOME_PSTR(
"position"), this->
position);
2724 dump_field(
out, ESPHOME_PSTR(
"stop"), this->
stop);
2726 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2731#ifdef USE_DATETIME_DATETIME
2733 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ListEntitiesDateTimeResponse"));
2734 dump_field(
out, ESPHOME_PSTR(
"object_id"), this->
object_id);
2735 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2736 dump_progmem_string_field(
out, ESPHOME_PSTR(
"name"), this->
name);
2737#ifdef USE_ENTITY_ICON
2738 dump_progmem_string_field(
out, ESPHOME_PSTR(
"icon"), this->
icon);
2743 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2748 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"DateTimeStateResponse"));
2749 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2753 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2758 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"DateTimeCommandRequest"));
2759 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2762 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2769 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ListEntitiesUpdateResponse"));
2770 dump_field(
out, ESPHOME_PSTR(
"object_id"), this->
object_id);
2771 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2772 dump_progmem_string_field(
out, ESPHOME_PSTR(
"name"), this->
name);
2773#ifdef USE_ENTITY_ICON
2774 dump_progmem_string_field(
out, ESPHOME_PSTR(
"icon"), this->
icon);
2778 dump_progmem_string_field(
out, ESPHOME_PSTR(
"device_class"), this->
device_class);
2780 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2785 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"UpdateStateResponse"));
2786 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2790 dump_field(
out, ESPHOME_PSTR(
"progress"), this->
progress);
2793 dump_field(
out, ESPHOME_PSTR(
"title"), this->
title);
2797 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2802 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"UpdateCommandRequest"));
2803 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2806 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2811#ifdef USE_ZWAVE_PROXY
2813 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ZWaveProxyFrame"));
2814 dump_bytes_field(
out, ESPHOME_PSTR(
"data"), this->data, this->
data_len);
2818 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ZWaveProxyRequest"));
2820 dump_bytes_field(
out, ESPHOME_PSTR(
"data"), this->data, this->
data_len);
2824 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ZWaveProxyRequestResponse"));
2832 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ListEntitiesInfraredResponse"));
2833 dump_field(
out, ESPHOME_PSTR(
"object_id"), this->
object_id);
2834 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2835 dump_progmem_string_field(
out, ESPHOME_PSTR(
"name"), this->
name);
2836#ifdef USE_ENTITY_ICON
2837 dump_progmem_string_field(
out, ESPHOME_PSTR(
"icon"), this->
icon);
2842 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2851 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"InfraredRFTransmitRawTimingsRequest"));
2853 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2855 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2859 out.append_p(ESPHOME_PSTR(
"packed buffer ["));
2861 out.
append_p(ESPHOME_PSTR(
" values, "));
2863 out.
append_p(ESPHOME_PSTR(
" bytes]\n"));
2864 dump_field(
out, ESPHOME_PSTR(
"modulation"), this->
modulation);
2868 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"InfraredRFReceiveEvent"));
2870 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2872 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2873 for (
const auto &it : *this->
timings) {
2874 dump_field(
out, ESPHOME_PSTR(
"timings"), it, 4);
2879 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"InfraredRFTransmitCompleteResponse"));
2881 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2883 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2884 dump_field(
out, ESPHOME_PSTR(
"success"), this->
success);
2888#ifdef USE_RADIO_FREQUENCY
2890 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ListEntitiesRadioFrequencyResponse"));
2891 dump_field(
out, ESPHOME_PSTR(
"object_id"), this->
object_id);
2892 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2893 dump_progmem_string_field(
out, ESPHOME_PSTR(
"name"), this->
name);
2894#ifdef USE_ENTITY_ICON
2895 dump_progmem_string_field(
out, ESPHOME_PSTR(
"icon"), this->
icon);
2900 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2909#ifdef USE_SERIAL_PROXY
2911 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"SerialProxyConfigureRequest"));
2912 dump_field(
out, ESPHOME_PSTR(
"instance"), this->
instance);
2913 dump_field(
out, ESPHOME_PSTR(
"baudrate"), this->
baudrate);
2916 dump_field(
out, ESPHOME_PSTR(
"stop_bits"), this->
stop_bits);
2917 dump_field(
out, ESPHOME_PSTR(
"data_size"), this->
data_size);
2921 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"SerialProxyDataReceived"));
2922 dump_field(
out, ESPHOME_PSTR(
"instance"), this->
instance);
2927 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"SerialProxyWriteRequest"));
2928 dump_field(
out, ESPHOME_PSTR(
"instance"), this->
instance);
2929 dump_bytes_field(
out, ESPHOME_PSTR(
"data"), this->data, this->
data_len);
2933 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"SerialProxySetModemPinsRequest"));
2934 dump_field(
out, ESPHOME_PSTR(
"instance"), this->
instance);
2939 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"SerialProxyGetModemPinsRequest"));
2940 dump_field(
out, ESPHOME_PSTR(
"instance"), this->
instance);
2944 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"SerialProxyGetModemPinsResponse"));
2945 dump_field(
out, ESPHOME_PSTR(
"instance"), this->
instance);
2951 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"SerialProxyRequest"));
2952 dump_field(
out, ESPHOME_PSTR(
"instance"), this->
instance);
2957 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"SerialProxyRequestResponse"));
2958 dump_field(
out, ESPHOME_PSTR(
"instance"), this->
instance);
2965 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"SerialProxySetModeRequest"));
2966 dump_field(
out, ESPHOME_PSTR(
"instance"), this->
instance);
2971 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"UsbDeviceDescriptor"));
2972 dump_field(
out, ESPHOME_PSTR(
"vendor_id"), this->
vendor_id);
2973 dump_field(
out, ESPHOME_PSTR(
"product_id"), this->
product_id);
2974 dump_field(
out, ESPHOME_PSTR(
"bcd_device"), this->
bcd_device);
2981 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"SerialProxyIdentity"));
2982 dump_field(
out, ESPHOME_PSTR(
"instance"), this->
instance);
2984 dump_field(
out, ESPHOME_PSTR(
"flags"), this->
flags);
2986 dump_field(
out, ESPHOME_PSTR(
"product"), this->
product);
2994#ifdef USE_BLUETOOTH_PROXY_CONNECTIONS
2996 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BluetoothSetConnectionParamsRequest"));
2997 dump_field(
out, ESPHOME_PSTR(
"address"), this->
address);
3000 dump_field(
out, ESPHOME_PSTR(
"latency"), this->
latency);
3001 dump_field(
out, ESPHOME_PSTR(
"timeout"), this->
timeout);
3005 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BluetoothSetConnectionParamsResponse"));
3006 dump_field(
out, ESPHOME_PSTR(
"address"), this->
address);
3007 dump_field(
out, ESPHOME_PSTR(
"error"), this->
error);
3013 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"SendspinPairingTokenResponse"));
3015 dump_field(
out, ESPHOME_PSTR(
"token"), this->
token);
StringRef is a reference to a string owned by something else.
const char * dump_to(DumpBuffer &out) const override
enums::AlarmControlPanelStateCommand command
const char * dump_to(DumpBuffer &out) const override
enums::AlarmControlPanelState state
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
const 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
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
FixedVector< BluetoothGATTDescriptor > descriptors
const char * dump_to(DumpBuffer &out) const override
std::array< uint64_t, 2 > uuid
std::array< uint64_t, 2 > uuid
const 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
const char * dump_to(DumpBuffer &out) const override
const uint8_t * data_ptr_
const 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 uint8_t * data_ptr_
FixedVector< BluetoothGATTCharacteristic > characteristics
const char * dump_to(DumpBuffer &out) const override
std::array< uint64_t, 2 > uuid
const 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
const char * dump_to(DumpBuffer &out) const override
uint16_t advertisements_len
const char * dump_to(DumpBuffer &out) const override
enums::BluetoothScannerMode mode
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
enums::BluetoothScannerMode mode
enums::BluetoothScannerState state
enums::BluetoothScannerMode configured_mode
const 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 uint8_t * data_ptr_
bool has_target_temperature_high
float target_temperature_low
bool has_target_temperature_low
StringRef custom_fan_mode
float target_temperature_high
const char * dump_to(DumpBuffer &out) const override
enums::ClimateSwingMode swing_mode
enums::ClimateFanMode fan_mode
bool has_target_temperature
enums::ClimatePreset preset
enums::ClimateFanMode fan_mode
float target_temperature_low
enums::ClimateSwingMode swing_mode
const char * dump_to(DumpBuffer &out) const override
enums::ClimateAction action
enums::ClimatePreset preset
StringRef custom_fan_mode
float current_temperature
float target_temperature_high
const char * dump_to(DumpBuffer &out) const override
enums::CoverOperation current_operation
const 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< SerialProxyInfo, SERIAL_PROXY_COUNT > serial_proxies
VoiceAssistantCapabilities voice_assistant
WizardCapabilities wizard
ZWaveProxyCapabilities zwave_proxy
const char * dump_to(DumpBuffer &out) const override
SendspinCapabilities sendspin
BluetoothProxyCapabilities bluetooth_proxy
enums::DeviceRelation relation
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
bool api_outgoing_connection_supported
ProgmemStringRef project_name
ProgmemStringRef esphome_version
bool api_encryption_provisionable
uint32_t zwave_proxy_feature_flags
ProgmemStringRef project_version
std::array< AreaInfo, ESPHOME_AREA_COUNT > areas
StringRef bluetooth_mac_address
uint32_t bluetooth_proxy_feature_flags
ProgmemStringRef manufacturer
StringRef compilation_time
uint32_t voice_assistant_feature_flags
bool api_encryption_supported
std::array< SerialProxyInfo, SERIAL_PROXY_COUNT > serial_proxies
std::array< DeviceInfo, ESPHOME_DEVICE_COUNT > devices
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
enums::DisconnectReason reason
const char * dump_to(DumpBuffer &out) const override
Fixed-size buffer for message dumps - avoids heap allocation.
const char * c_str() const
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)
static constexpr size_t CAPACITY
DumpBuffer & append(const char *str)
const char * dump_to(DumpBuffer &out) const override
FixedVector< bool > bool_array
FixedVector< float > float_array
FixedVector< std::string > string_array
FixedVector< int32_t > int_array
const char * dump_to(DumpBuffer &out) const override
FixedVector< ExecuteServiceArgument > args
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
uint16_t response_data_len
const uint8_t * response_data
const char * dump_to(DumpBuffer &out) const override
enums::FanDirection direction
enums::FanDirection direction
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
uint32_t api_version_major
uint32_t api_version_minor
bool outgoing_connection_target
const char * dump_to(DumpBuffer &out) const override
uint32_t api_version_minor
ProgmemStringRef server_info
const char * dump_to(DumpBuffer &out) const override
uint32_t api_version_major
const char * dump_to(DumpBuffer &out) const override
FixedVector< HomeassistantServiceMap > variables
StringRef response_template
FixedVector< HomeassistantServiceMap > data_template
const char * dump_to(DumpBuffer &out) const override
const uint8_t * response_data
const char * dump_to(DumpBuffer &out) const override
uint16_t response_data_len
const char * dump_to(DumpBuffer &out) const override
enums::EntityCategory entity_category
const std::vector< int32_t > * timings
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
uint32_t carrier_frequency
bool has_color_temperature
enums::ColorMode color_mode
const char * dump_to(DumpBuffer &out) const override
bool has_transition_length
uint32_t transition_length
bool has_color_brightness
enums::ColorMode color_mode
const char * dump_to(DumpBuffer &out) const override
bool requires_code_to_arm
const char * dump_to(DumpBuffer &out) const override
uint32_t supported_features
bool is_status_binary_sensor
const char * dump_to(DumpBuffer &out) const override
ProgmemStringRef device_class
const char * dump_to(DumpBuffer &out) const override
const climate::ClimateSwingModeMask * supported_swing_modes
enums::TemperatureUnit temperature_unit
float visual_max_humidity
bool supports_current_temperature
bool supports_current_humidity
bool supports_target_humidity
float visual_min_humidity
float visual_max_temperature
float visual_target_temperature_step
bool supports_two_point_target_temperature
const climate::ClimatePresetMask * supported_presets
const climate::ClimateFanModeMask * supported_fan_modes
const char * dump_to(DumpBuffer &out) const override
const climate::ClimateModeMask * supported_modes
const ConstVector< const char *, true > * supported_custom_fan_modes
float visual_min_temperature
const ConstVector< const char *, true > * supported_custom_presets
float visual_current_temperature_step
const char * dump_to(DumpBuffer &out) const override
ProgmemStringRef device_class
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
ProgmemStringRef device_class
const ConstVector< const char *, true > * event_types
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const ConstVector< const char *, true > * supported_preset_modes
int32_t supported_speed_count
bool supports_oscillation
const char * dump_to(DumpBuffer &out) const override
uint32_t receiver_frequency
const light::LightEffectNames * effects
const char * dump_to(DumpBuffer &out) const override
const light::ColorModeMask * supported_color_modes
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
ProgmemStringRef device_class
StringRef unit_of_measurement
const char * dump_to(DumpBuffer &out) const override
uint32_t supported_modulations
const char * dump_to(DumpBuffer &out) const override
const std::span< const char *const > * options
ProgmemStringRef device_class
int32_t accuracy_decimals
StringRef unit_of_measurement
const char * dump_to(DumpBuffer &out) const override
enums::SensorStateClass state_class
ProgmemStringRef description
const char * dump_to(DumpBuffer &out) const override
ProgmemStringRef default_value
enums::ServiceArgType type
ProgmemStringRef description
const char * dump_to(DumpBuffer &out) const override
enums::SupportsResponseType supports_response
FixedVector< ListEntitiesServicesArgument > args
const char * dump_to(DumpBuffer &out) const override
const FixedVector< const char * > * tones
const char * dump_to(DumpBuffer &out) const override
ProgmemStringRef device_class
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
ProgmemStringRef device_class
const char * dump_to(DumpBuffer &out) const override
ProgmemStringRef device_class
const char * dump_to(DumpBuffer &out) const override
ProgmemStringRef device_class
const char * dump_to(DumpBuffer &out) const override
enums::TemperatureUnit temperature_unit
float target_temperature_step
const water_heater::WaterHeaterModeMask * supported_modes
uint32_t supported_features
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
enums::LockCommand command
const 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
int32_t std_offset_seconds
const char * dump_to(DumpBuffer &out) const override
int32_t dst_offset_seconds
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
enums::SendspinPairingTokenStatus status
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const uint8_t * data_ptr_
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
enums::SerialProxyStatus status
const char * dump_to(DumpBuffer &out) const override
enums::SerialProxyIdentitySource source
const char * dump_to(DumpBuffer &out) const override
uint32_t configured_line_states
enums::SerialProxyPortType port_type
const char * dump_to(DumpBuffer &out) const override
enums::SerialProxyRequestType type
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
enums::SerialProxyRequestType type
enums::SerialProxyStatus status
const char * dump_to(DumpBuffer &out) const override
enums::SerialProxyMode mode
const 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 uint8_t * message_ptr_
const 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
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
StringRef current_version
StringRef release_summary
uint32_t interface_number
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
enums::ValveOperation current_operation
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
StringRef preannounce_media_id
const char * dump_to(DumpBuffer &out) const override
uint32_t noise_suppression_level
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
std::vector< VoiceAssistantWakeWord > available_wake_words
uint32_t max_active_wake_words
const std::vector< std::string > * active_wake_words
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
const char * dump_to(DumpBuffer &out) const override
std::vector< std::string > trained_languages
StringRef conversation_id
const char * dump_to(DumpBuffer &out) const override
StringRef wake_word_phrase
VoiceAssistantAudioSettings audio_settings
const char * dump_to(DumpBuffer &out) const override
std::vector< std::string > active_wake_words
const char * dump_to(DumpBuffer &out) const override
enums::VoiceAssistantTimerEvent event_type
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
std::vector< std::string > trained_languages
float target_temperature_low
enums::WaterHeaterMode mode
float target_temperature_high
const char * dump_to(DumpBuffer &out) const override
float current_temperature
float target_temperature_low
float target_temperature_high
enums::WaterHeaterMode mode
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
enums::ZWaveProxyRequestType type
const char * dump_to(DumpBuffer &out) const override
enums::ZWaveProxyRequestType type
enums::ZWaveProxyStatus status
const char * dump_to(DumpBuffer &out) const override
std::vector< uint8_t > & out
@ MEDIA_PLAYER_STATE_NONE
@ MEDIA_PLAYER_STATE_IDLE
@ MEDIA_PLAYER_STATE_ANNOUNCING
@ MEDIA_PLAYER_STATE_PAUSED
@ MEDIA_PLAYER_STATE_PLAYING
@ ALARM_STATE_ARMED_VACATION
@ ALARM_STATE_ARMED_NIGHT
@ ALARM_STATE_ARMED_CUSTOM_BYPASS
@ SERVICE_ARG_TYPE_INT_ARRAY
@ SERVICE_ARG_TYPE_BOOL_ARRAY
@ SERVICE_ARG_TYPE_STRING
@ SERVICE_ARG_TYPE_STRING_ARRAY
@ SERVICE_ARG_TYPE_FLOAT_ARRAY
@ SERIAL_PROXY_PORT_TYPE_RS232
@ SERIAL_PROXY_PORT_TYPE_RS485
@ SERIAL_PROXY_PORT_TYPE_USB_SERIAL
@ SERIAL_PROXY_PORT_TYPE_TTL
@ VALVE_OPERATION_IS_OPENING
@ VALVE_OPERATION_IS_CLOSING
VoiceAssistantRequestFlag
@ VOICE_ASSISTANT_REQUEST_USE_WAKE_WORD
@ VOICE_ASSISTANT_REQUEST_NONE
@ VOICE_ASSISTANT_REQUEST_USE_VAD
@ WATER_HEATER_MODE_PERFORMANCE
@ WATER_HEATER_MODE_ELECTRIC
@ WATER_HEATER_MODE_HIGH_DEMAND
@ WATER_HEATER_MODE_HEAT_PUMP
@ SUPPORTS_RESPONSE_STATUS
@ SUPPORTS_RESPONSE_OPTIONAL
@ SERIAL_PROXY_REQUEST_TYPE_UNSUBSCRIBE
@ SERIAL_PROXY_REQUEST_TYPE_SET_MODEM_PINS
@ SERIAL_PROXY_REQUEST_TYPE_SET_MODE
@ SERIAL_PROXY_REQUEST_TYPE_FLUSH
@ SERIAL_PROXY_REQUEST_TYPE_CONFIGURE
@ SERIAL_PROXY_REQUEST_TYPE_SUBSCRIBE
@ SERIAL_PROXY_IDENTITY_FLAG_CONNECTED
@ SERIAL_PROXY_IDENTITY_FLAG_ERROR
@ SERIAL_PROXY_IDENTITY_FLAG_NONE
SendspinPairingTokenStatus
@ SENDSPIN_PAIRING_TOKEN_STATUS_OK
@ SENDSPIN_PAIRING_TOKEN_STATUS_ENCRYPTION_REQUIRED
@ SENDSPIN_PAIRING_TOKEN_STATUS_FAILED
@ SENDSPIN_PAIRING_TOKEN_STATUS_DISABLED
@ SENDSPIN_PAIRING_TOKEN_STATUS_NOT_READY
@ MEDIA_PLAYER_FORMAT_PURPOSE_ANNOUNCEMENT
@ MEDIA_PLAYER_FORMAT_PURPOSE_DEFAULT
@ SERIAL_PROXY_PARITY_EVEN
@ SERIAL_PROXY_PARITY_ODD
@ SERIAL_PROXY_PARITY_NONE
@ COLOR_MODE_LEGACY_BRIGHTNESS
@ COLOR_MODE_RGB_COLOR_TEMPERATURE
@ COLOR_MODE_COLD_WARM_WHITE
@ COLOR_MODE_COLOR_TEMPERATURE
@ COLOR_MODE_RGB_COLD_WARM_WHITE
@ ZWAVE_PROXY_STATUS_NOT_SUPPORTED
@ ZWAVE_PROXY_STATUS_IN_USE
@ CLIMATE_ACTION_DEFROSTING
@ VOICE_ASSISTANT_TIMER_UPDATED
@ VOICE_ASSISTANT_TIMER_STARTED
@ VOICE_ASSISTANT_TIMER_FINISHED
@ VOICE_ASSISTANT_TIMER_CANCELLED
@ MEDIA_PLAYER_COMMAND_UNMUTE
@ MEDIA_PLAYER_COMMAND_TURN_ON
@ MEDIA_PLAYER_COMMAND_REPEAT_ONE
@ MEDIA_PLAYER_COMMAND_PLAY
@ MEDIA_PLAYER_COMMAND_STOP
@ MEDIA_PLAYER_COMMAND_REPEAT_OFF
@ MEDIA_PLAYER_COMMAND_VOLUME_DOWN
@ MEDIA_PLAYER_COMMAND_PAUSE
@ MEDIA_PLAYER_COMMAND_VOLUME_UP
@ MEDIA_PLAYER_COMMAND_TOGGLE
@ MEDIA_PLAYER_COMMAND_TURN_OFF
@ MEDIA_PLAYER_COMMAND_CLEAR_PLAYLIST
@ MEDIA_PLAYER_COMMAND_MUTE
@ MEDIA_PLAYER_COMMAND_ENQUEUE
@ VOICE_ASSISTANT_INTENT_END
@ VOICE_ASSISTANT_RUN_START
@ VOICE_ASSISTANT_TTS_END
@ VOICE_ASSISTANT_RUN_END
@ VOICE_ASSISTANT_WAKE_WORD_START
@ VOICE_ASSISTANT_TTS_STREAM_END
@ VOICE_ASSISTANT_STT_END
@ VOICE_ASSISTANT_STT_VAD_START
@ VOICE_ASSISTANT_INTENT_PROGRESS
@ VOICE_ASSISTANT_TTS_START
@ VOICE_ASSISTANT_STT_START
@ VOICE_ASSISTANT_INTENT_START
@ VOICE_ASSISTANT_TTS_STREAM_START
@ VOICE_ASSISTANT_STT_VAD_END
@ VOICE_ASSISTANT_WAKE_WORD_END
SerialProxyIdentitySource
@ SERIAL_PROXY_IDENTITY_SOURCE_CONFIGURED
@ SERIAL_PROXY_IDENTITY_SOURCE_NONE
@ SERIAL_PROXY_IDENTITY_SOURCE_USB
@ SERIAL_PROXY_STATUS_TIMEOUT
@ SERIAL_PROXY_STATUS_INVALID_ARGUMENT
@ SERIAL_PROXY_STATUS_ASSUMED_SUCCESS
@ SERIAL_PROXY_STATUS_PORT_IN_USE
@ SERIAL_PROXY_STATUS_NOT_SUPPORTED
@ SERIAL_PROXY_STATUS_ERROR
@ DISCONNECT_REASON_PROVISIONING_CLOSED
@ DISCONNECT_REASON_UNSPECIFIED
@ SERIAL_PROXY_MODE_PROTOCOL
BluetoothDeviceRequestType
@ BLUETOOTH_DEVICE_REQUEST_TYPE_UNPAIR
@ BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT_V3_WITH_CACHE
@ BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT
@ BLUETOOTH_DEVICE_REQUEST_TYPE_PAIR
@ BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT_V3_WITHOUT_CACHE
@ BLUETOOTH_DEVICE_REQUEST_TYPE_CLEAR_CACHE
@ BLUETOOTH_DEVICE_REQUEST_TYPE_DISCONNECT
@ BLUETOOTH_SCANNER_MODE_PASSIVE
@ BLUETOOTH_SCANNER_MODE_ACTIVE
@ BLUETOOTH_SCANNER_STATE_IDLE
@ BLUETOOTH_SCANNER_STATE_STOPPED
@ BLUETOOTH_SCANNER_STATE_STARTING
@ BLUETOOTH_SCANNER_STATE_STOPPING
@ BLUETOOTH_SCANNER_STATE_RUNNING
@ BLUETOOTH_SCANNER_STATE_FAILED
@ CLIMATE_PRESET_ACTIVITY
@ DST_RULE_TYPE_MONTH_WEEK_DAY
@ DST_RULE_TYPE_DAY_OF_YEAR
@ DST_RULE_TYPE_JULIAN_NO_LEAP
@ TEMPERATURE_UNIT_KELVIN
@ TEMPERATURE_UNIT_CELSIUS
@ TEMPERATURE_UNIT_FAHRENHEIT
WaterHeaterCommandHasField
@ WATER_HEATER_COMMAND_HAS_ON_STATE
@ WATER_HEATER_COMMAND_HAS_NONE
@ WATER_HEATER_COMMAND_HAS_STATE
@ WATER_HEATER_COMMAND_HAS_AWAY_STATE
@ WATER_HEATER_COMMAND_HAS_TARGET_TEMPERATURE_LOW
@ WATER_HEATER_COMMAND_HAS_TARGET_TEMPERATURE
@ WATER_HEATER_COMMAND_HAS_MODE
@ WATER_HEATER_COMMAND_HAS_TARGET_TEMPERATURE_HIGH
@ ZWAVE_PROXY_REQUEST_TYPE_SUBSCRIBE
@ ZWAVE_PROXY_REQUEST_TYPE_UNSUBSCRIBE
@ ZWAVE_PROXY_REQUEST_TYPE_HOME_ID_CHANGE
AlarmControlPanelStateCommand
@ ALARM_CONTROL_PANEL_DISARM
@ ALARM_CONTROL_PANEL_ARM_NIGHT
@ ALARM_CONTROL_PANEL_TRIGGER
@ ALARM_CONTROL_PANEL_ARM_AWAY
@ ALARM_CONTROL_PANEL_ARM_CUSTOM_BYPASS
@ ALARM_CONTROL_PANEL_ARM_HOME
@ ALARM_CONTROL_PANEL_ARM_VACATION
@ COVER_OPERATION_IS_OPENING
@ COVER_OPERATION_IS_CLOSING
@ ENTITY_CATEGORY_DIAGNOSTIC
@ CLIMATE_SWING_HORIZONTAL
VoiceAssistantSubscribeFlag
@ VOICE_ASSISTANT_SUBSCRIBE_API_AUDIO
@ VOICE_ASSISTANT_SUBSCRIBE_NONE
@ STATE_CLASS_TOTAL_INCREASING
@ STATE_CLASS_MEASUREMENT
@ STATE_CLASS_MEASUREMENT_ANGLE
const char * proto_enum_to_string< enums::AlarmControlPanelState >(enums::AlarmControlPanelState value)
const char * proto_enum_to_string< enums::TemperatureUnit >(enums::TemperatureUnit value)
const char * proto_enum_to_string< enums::SerialProxyIdentitySource >(enums::SerialProxyIdentitySource value)
const char * proto_enum_to_string< enums::VoiceAssistantEvent >(enums::VoiceAssistantEvent value)
const char * proto_enum_to_string< enums::SendspinPairingTokenStatus >(enums::SendspinPairingTokenStatus value)
const char * proto_enum_to_string< enums::MediaPlayerState >(enums::MediaPlayerState value)
const char * proto_enum_to_string(T value)
const char * proto_enum_to_string< enums::SerialProxyParity >(enums::SerialProxyParity value)
const char * proto_enum_to_string< enums::NumberMode >(enums::NumberMode value)
const char * proto_enum_to_string< enums::ServiceArgType >(enums::ServiceArgType value)
const char * proto_enum_to_string< enums::BluetoothScannerMode >(enums::BluetoothScannerMode value)
const char * proto_enum_to_string< enums::BluetoothScannerState >(enums::BluetoothScannerState value)
const char * proto_enum_to_string< enums::VoiceAssistantSubscribeFlag >(enums::VoiceAssistantSubscribeFlag value)
const char * proto_enum_to_string< enums::ColorMode >(enums::ColorMode value)
const char * proto_enum_to_string< enums::WaterHeaterCommandHasField >(enums::WaterHeaterCommandHasField value)
const char * proto_enum_to_string< enums::LogLevel >(enums::LogLevel value)
const char * proto_enum_to_string< enums::TextMode >(enums::TextMode value)
const char * proto_enum_to_string< enums::LockState >(enums::LockState value)
const char * proto_enum_to_string< enums::ClimateAction >(enums::ClimateAction value)
const char * proto_enum_to_string< enums::SerialProxyPortType >(enums::SerialProxyPortType value)
const char * proto_enum_to_string< enums::FanDirection >(enums::FanDirection value)
const char * proto_enum_to_string< enums::CoverOperation >(enums::CoverOperation value)
const char * proto_enum_to_string< enums::VoiceAssistantRequestFlag >(enums::VoiceAssistantRequestFlag value)
const char * proto_enum_to_string< enums::BluetoothDeviceRequestType >(enums::BluetoothDeviceRequestType value)
const char * proto_enum_to_string< enums::ZWaveProxyStatus >(enums::ZWaveProxyStatus value)
const char * proto_enum_to_string< enums::VoiceAssistantTimerEvent >(enums::VoiceAssistantTimerEvent value)
const char * proto_enum_to_string< enums::AlarmControlPanelStateCommand >(enums::AlarmControlPanelStateCommand value)
const char * proto_enum_to_string< enums::ClimatePreset >(enums::ClimatePreset value)
const char * proto_enum_to_string< enums::MediaPlayerFormatPurpose >(enums::MediaPlayerFormatPurpose value)
const char * proto_enum_to_string< enums::ClimateMode >(enums::ClimateMode value)
const char * proto_enum_to_string< enums::WaterHeaterMode >(enums::WaterHeaterMode value)
const char * proto_enum_to_string< enums::MediaPlayerCommand >(enums::MediaPlayerCommand value)
const char * proto_enum_to_string< enums::DisconnectReason >(enums::DisconnectReason value)
const char * proto_enum_to_string< enums::LockCommand >(enums::LockCommand value)
const char * proto_enum_to_string< enums::ZWaveProxyRequestType >(enums::ZWaveProxyRequestType value)
const char * proto_enum_to_string< enums::ValveOperation >(enums::ValveOperation value)
const char * proto_enum_to_string< enums::UpdateCommand >(enums::UpdateCommand value)
const char * proto_enum_to_string< enums::DeviceRelation >(enums::DeviceRelation value)
const char * proto_enum_to_string< enums::SerialProxyRequestType >(enums::SerialProxyRequestType value)
const char * proto_enum_to_string< enums::SupportsResponseType >(enums::SupportsResponseType value)
const char * proto_enum_to_string< enums::ClimateFanMode >(enums::ClimateFanMode value)
const char * proto_enum_to_string< enums::SerialProxyStatus >(enums::SerialProxyStatus value)
const char * proto_enum_to_string< enums::DSTRuleType >(enums::DSTRuleType value)
const char * proto_enum_to_string< enums::ClimateSwingMode >(enums::ClimateSwingMode value)
const char * proto_enum_to_string< enums::EntityCategory >(enums::EntityCategory value)
const char * proto_enum_to_string< enums::SerialProxyMode >(enums::SerialProxyMode value)
const char * proto_enum_to_string< enums::SensorStateClass >(enums::SensorStateClass value)
const char * proto_enum_to_string< enums::SerialProxyIdentityFlag >(enums::SerialProxyIdentityFlag value)
value[LAYOUT.day_index()]
void progmem_memcpy(void *dst, const void *src, size_t len)
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).
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".