9#ifdef HAS_PROTO_MESSAGE_DUMP
16 size_t len = strlen_P(str);
21 memcpy_P(buf_ + pos_, str,
len);
39static inline void append_field_prefix(DumpBuffer &
out,
const char *field_name,
int indent) {
40 out.append(indent,
' ').append_p(field_name).append(
": ");
43static inline void append_uint(DumpBuffer &
out,
uint32_t value) {
49class MessageDumpHelper {
51 MessageDumpHelper(DumpBuffer &
out,
const char *message_name) : out_(
out) {
55 ~MessageDumpHelper() { out_.
append(
" }"); }
64#pragma GCC diagnostic push
65#pragma GCC diagnostic ignored "-Wunused-function"
66static void dump_field(DumpBuffer &
out,
const char *field_name, int32_t value,
int indent = 2) {
67 append_field_prefix(
out, field_name, indent);
71static void dump_field(DumpBuffer &
out,
const char *field_name,
uint32_t value,
int indent = 2) {
72 append_field_prefix(
out, field_name, indent);
76static void dump_field(DumpBuffer &
out,
const char *field_name,
float value,
int indent = 2) {
77 append_field_prefix(
out, field_name, indent);
81static void dump_field(DumpBuffer &
out,
const char *field_name, uint64_t value,
int indent = 2) {
82 append_field_prefix(
out, field_name, indent);
86static void dump_field(DumpBuffer &
out,
const char *field_name,
bool value,
int indent = 2) {
87 append_field_prefix(
out, field_name, indent);
88 out.append(YESNO(value));
92static void dump_field(DumpBuffer &
out,
const char *field_name,
const std::string &value,
int indent = 2) {
93 append_field_prefix(
out, field_name, indent);
94 out.append(
"'").append(value.c_str()).append(
"'");
98static void dump_field(DumpBuffer &
out,
const char *field_name, StringRef value,
int indent = 2) {
99 append_field_prefix(
out, field_name, indent);
100 append_quoted_string(
out, value);
104static void dump_field(DumpBuffer &
out,
const char *field_name,
const char *value,
int indent = 2) {
105 append_field_prefix(
out, field_name, indent);
106 out.append(
"'").append(value).append(
"'");
111template<
typename T>
static void dump_field(DumpBuffer &
out,
const char *field_name, T value,
int indent = 2) {
112 append_field_prefix(
out, field_name, indent);
118static constexpr size_t DUMP_BYTES_MAX = 160;
122static void dump_bytes_field(DumpBuffer &
out,
const char *field_name,
const uint8_t *data,
size_t len,
int indent = 2) {
124 append_field_prefix(
out, field_name, indent);
126 out.append(hex_buf).append(
"\n");
130static void dump_progmem_bytes_field(DumpBuffer &
out,
const char *field_name,
const uint8_t *data,
size_t len,
132 uint8_t data_buf[DUMP_BYTES_MAX];
133 len = std::min(
len,
sizeof(data_buf));
135 dump_bytes_field(
out, field_name, data_buf,
len, indent);
137#pragma GCC diagnostic pop
142 return ESPHOME_PSTR(
"DISCONNECT_REASON_UNSPECIFIED");
144 return ESPHOME_PSTR(
"DISCONNECT_REASON_PROVISIONING_CLOSED");
146 return ESPHOME_PSTR(
"UNKNOWN");
152 return ESPHOME_PSTR(
"SERIAL_PROXY_PORT_TYPE_TTL");
154 return ESPHOME_PSTR(
"SERIAL_PROXY_PORT_TYPE_RS232");
156 return ESPHOME_PSTR(
"SERIAL_PROXY_PORT_TYPE_RS485");
158 return ESPHOME_PSTR(
"SERIAL_PROXY_PORT_TYPE_USB_SERIAL");
160 return ESPHOME_PSTR(
"UNKNOWN");
166 return ESPHOME_PSTR(
"ENTITY_CATEGORY_NONE");
168 return ESPHOME_PSTR(
"ENTITY_CATEGORY_CONFIG");
170 return ESPHOME_PSTR(
"ENTITY_CATEGORY_DIAGNOSTIC");
172 return ESPHOME_PSTR(
"UNKNOWN");
179 return ESPHOME_PSTR(
"COVER_OPERATION_IDLE");
181 return ESPHOME_PSTR(
"COVER_OPERATION_IS_OPENING");
183 return ESPHOME_PSTR(
"COVER_OPERATION_IS_CLOSING");
185 return ESPHOME_PSTR(
"UNKNOWN");
193 return ESPHOME_PSTR(
"FAN_DIRECTION_FORWARD");
195 return ESPHOME_PSTR(
"FAN_DIRECTION_REVERSE");
197 return ESPHOME_PSTR(
"UNKNOWN");
205 return ESPHOME_PSTR(
"COLOR_MODE_UNKNOWN");
207 return ESPHOME_PSTR(
"COLOR_MODE_ON_OFF");
209 return ESPHOME_PSTR(
"COLOR_MODE_LEGACY_BRIGHTNESS");
211 return ESPHOME_PSTR(
"COLOR_MODE_BRIGHTNESS");
213 return ESPHOME_PSTR(
"COLOR_MODE_WHITE");
215 return ESPHOME_PSTR(
"COLOR_MODE_COLOR_TEMPERATURE");
217 return ESPHOME_PSTR(
"COLOR_MODE_COLD_WARM_WHITE");
219 return ESPHOME_PSTR(
"COLOR_MODE_RGB");
221 return ESPHOME_PSTR(
"COLOR_MODE_RGB_WHITE");
223 return ESPHOME_PSTR(
"COLOR_MODE_RGB_COLOR_TEMPERATURE");
225 return ESPHOME_PSTR(
"COLOR_MODE_RGB_COLD_WARM_WHITE");
227 return ESPHOME_PSTR(
"UNKNOWN");
235 return ESPHOME_PSTR(
"STATE_CLASS_NONE");
237 return ESPHOME_PSTR(
"STATE_CLASS_MEASUREMENT");
239 return ESPHOME_PSTR(
"STATE_CLASS_TOTAL_INCREASING");
241 return ESPHOME_PSTR(
"STATE_CLASS_TOTAL");
243 return ESPHOME_PSTR(
"STATE_CLASS_MEASUREMENT_ANGLE");
245 return ESPHOME_PSTR(
"UNKNOWN");
252 return ESPHOME_PSTR(
"LOG_LEVEL_NONE");
254 return ESPHOME_PSTR(
"LOG_LEVEL_ERROR");
256 return ESPHOME_PSTR(
"LOG_LEVEL_WARN");
258 return ESPHOME_PSTR(
"LOG_LEVEL_INFO");
260 return ESPHOME_PSTR(
"LOG_LEVEL_CONFIG");
262 return ESPHOME_PSTR(
"LOG_LEVEL_DEBUG");
264 return ESPHOME_PSTR(
"LOG_LEVEL_VERBOSE");
266 return ESPHOME_PSTR(
"LOG_LEVEL_VERY_VERBOSE");
268 return ESPHOME_PSTR(
"UNKNOWN");
274 return ESPHOME_PSTR(
"DST_RULE_TYPE_NONE");
276 return ESPHOME_PSTR(
"DST_RULE_TYPE_MONTH_WEEK_DAY");
278 return ESPHOME_PSTR(
"DST_RULE_TYPE_JULIAN_NO_LEAP");
280 return ESPHOME_PSTR(
"DST_RULE_TYPE_DAY_OF_YEAR");
282 return ESPHOME_PSTR(
"UNKNOWN");
285#ifdef USE_API_USER_DEFINED_ACTIONS
289 return ESPHOME_PSTR(
"SERVICE_ARG_TYPE_BOOL");
291 return ESPHOME_PSTR(
"SERVICE_ARG_TYPE_INT");
293 return ESPHOME_PSTR(
"SERVICE_ARG_TYPE_FLOAT");
295 return ESPHOME_PSTR(
"SERVICE_ARG_TYPE_STRING");
297 return ESPHOME_PSTR(
"SERVICE_ARG_TYPE_BOOL_ARRAY");
299 return ESPHOME_PSTR(
"SERVICE_ARG_TYPE_INT_ARRAY");
301 return ESPHOME_PSTR(
"SERVICE_ARG_TYPE_FLOAT_ARRAY");
303 return ESPHOME_PSTR(
"SERVICE_ARG_TYPE_STRING_ARRAY");
305 return ESPHOME_PSTR(
"UNKNOWN");
311 return ESPHOME_PSTR(
"SUPPORTS_RESPONSE_NONE");
313 return ESPHOME_PSTR(
"SUPPORTS_RESPONSE_OPTIONAL");
315 return ESPHOME_PSTR(
"SUPPORTS_RESPONSE_ONLY");
317 return ESPHOME_PSTR(
"SUPPORTS_RESPONSE_STATUS");
319 return ESPHOME_PSTR(
"UNKNOWN");
326 return ESPHOME_PSTR(
"TEMPERATURE_UNIT_CELSIUS");
328 return ESPHOME_PSTR(
"TEMPERATURE_UNIT_FAHRENHEIT");
330 return ESPHOME_PSTR(
"TEMPERATURE_UNIT_KELVIN");
332 return ESPHOME_PSTR(
"UNKNOWN");
339 return ESPHOME_PSTR(
"CLIMATE_MODE_OFF");
341 return ESPHOME_PSTR(
"CLIMATE_MODE_HEAT_COOL");
343 return ESPHOME_PSTR(
"CLIMATE_MODE_COOL");
345 return ESPHOME_PSTR(
"CLIMATE_MODE_HEAT");
347 return ESPHOME_PSTR(
"CLIMATE_MODE_FAN_ONLY");
349 return ESPHOME_PSTR(
"CLIMATE_MODE_DRY");
351 return ESPHOME_PSTR(
"CLIMATE_MODE_AUTO");
353 return ESPHOME_PSTR(
"UNKNOWN");
359 return ESPHOME_PSTR(
"CLIMATE_FAN_ON");
361 return ESPHOME_PSTR(
"CLIMATE_FAN_OFF");
363 return ESPHOME_PSTR(
"CLIMATE_FAN_AUTO");
365 return ESPHOME_PSTR(
"CLIMATE_FAN_LOW");
367 return ESPHOME_PSTR(
"CLIMATE_FAN_MEDIUM");
369 return ESPHOME_PSTR(
"CLIMATE_FAN_HIGH");
371 return ESPHOME_PSTR(
"CLIMATE_FAN_MIDDLE");
373 return ESPHOME_PSTR(
"CLIMATE_FAN_FOCUS");
375 return ESPHOME_PSTR(
"CLIMATE_FAN_DIFFUSE");
377 return ESPHOME_PSTR(
"CLIMATE_FAN_QUIET");
379 return ESPHOME_PSTR(
"UNKNOWN");
385 return ESPHOME_PSTR(
"CLIMATE_SWING_OFF");
387 return ESPHOME_PSTR(
"CLIMATE_SWING_BOTH");
389 return ESPHOME_PSTR(
"CLIMATE_SWING_VERTICAL");
391 return ESPHOME_PSTR(
"CLIMATE_SWING_HORIZONTAL");
393 return ESPHOME_PSTR(
"UNKNOWN");
399 return ESPHOME_PSTR(
"CLIMATE_ACTION_OFF");
401 return ESPHOME_PSTR(
"CLIMATE_ACTION_COOLING");
403 return ESPHOME_PSTR(
"CLIMATE_ACTION_HEATING");
405 return ESPHOME_PSTR(
"CLIMATE_ACTION_IDLE");
407 return ESPHOME_PSTR(
"CLIMATE_ACTION_DRYING");
409 return ESPHOME_PSTR(
"CLIMATE_ACTION_FAN");
411 return ESPHOME_PSTR(
"CLIMATE_ACTION_DEFROSTING");
413 return ESPHOME_PSTR(
"UNKNOWN");
419 return ESPHOME_PSTR(
"CLIMATE_PRESET_NONE");
421 return ESPHOME_PSTR(
"CLIMATE_PRESET_HOME");
423 return ESPHOME_PSTR(
"CLIMATE_PRESET_AWAY");
425 return ESPHOME_PSTR(
"CLIMATE_PRESET_BOOST");
427 return ESPHOME_PSTR(
"CLIMATE_PRESET_COMFORT");
429 return ESPHOME_PSTR(
"CLIMATE_PRESET_ECO");
431 return ESPHOME_PSTR(
"CLIMATE_PRESET_SLEEP");
433 return ESPHOME_PSTR(
"CLIMATE_PRESET_ACTIVITY");
435 return ESPHOME_PSTR(
"UNKNOWN");
439#ifdef USE_WATER_HEATER
443 return ESPHOME_PSTR(
"WATER_HEATER_MODE_OFF");
445 return ESPHOME_PSTR(
"WATER_HEATER_MODE_ECO");
447 return ESPHOME_PSTR(
"WATER_HEATER_MODE_ELECTRIC");
449 return ESPHOME_PSTR(
"WATER_HEATER_MODE_PERFORMANCE");
451 return ESPHOME_PSTR(
"WATER_HEATER_MODE_HIGH_DEMAND");
453 return ESPHOME_PSTR(
"WATER_HEATER_MODE_HEAT_PUMP");
455 return ESPHOME_PSTR(
"WATER_HEATER_MODE_GAS");
457 return ESPHOME_PSTR(
"UNKNOWN");
465 return ESPHOME_PSTR(
"WATER_HEATER_COMMAND_HAS_NONE");
467 return ESPHOME_PSTR(
"WATER_HEATER_COMMAND_HAS_MODE");
469 return ESPHOME_PSTR(
"WATER_HEATER_COMMAND_HAS_TARGET_TEMPERATURE");
471 return ESPHOME_PSTR(
"WATER_HEATER_COMMAND_HAS_STATE");
473 return ESPHOME_PSTR(
"WATER_HEATER_COMMAND_HAS_TARGET_TEMPERATURE_LOW");
475 return ESPHOME_PSTR(
"WATER_HEATER_COMMAND_HAS_TARGET_TEMPERATURE_HIGH");
477 return ESPHOME_PSTR(
"WATER_HEATER_COMMAND_HAS_ON_STATE");
479 return ESPHOME_PSTR(
"WATER_HEATER_COMMAND_HAS_AWAY_STATE");
481 return ESPHOME_PSTR(
"UNKNOWN");
488 return ESPHOME_PSTR(
"NUMBER_MODE_AUTO");
490 return ESPHOME_PSTR(
"NUMBER_MODE_BOX");
492 return ESPHOME_PSTR(
"NUMBER_MODE_SLIDER");
494 return ESPHOME_PSTR(
"UNKNOWN");
502 return ESPHOME_PSTR(
"LOCK_STATE_NONE");
504 return ESPHOME_PSTR(
"LOCK_STATE_LOCKED");
506 return ESPHOME_PSTR(
"LOCK_STATE_UNLOCKED");
508 return ESPHOME_PSTR(
"LOCK_STATE_JAMMED");
510 return ESPHOME_PSTR(
"LOCK_STATE_LOCKING");
512 return ESPHOME_PSTR(
"LOCK_STATE_UNLOCKING");
514 return ESPHOME_PSTR(
"LOCK_STATE_OPENING");
516 return ESPHOME_PSTR(
"LOCK_STATE_OPEN");
518 return ESPHOME_PSTR(
"UNKNOWN");
524 return ESPHOME_PSTR(
"LOCK_UNLOCK");
526 return ESPHOME_PSTR(
"LOCK_LOCK");
528 return ESPHOME_PSTR(
"LOCK_OPEN");
530 return ESPHOME_PSTR(
"UNKNOWN");
534#ifdef USE_MEDIA_PLAYER
538 return ESPHOME_PSTR(
"MEDIA_PLAYER_STATE_NONE");
540 return ESPHOME_PSTR(
"MEDIA_PLAYER_STATE_IDLE");
542 return ESPHOME_PSTR(
"MEDIA_PLAYER_STATE_PLAYING");
544 return ESPHOME_PSTR(
"MEDIA_PLAYER_STATE_PAUSED");
546 return ESPHOME_PSTR(
"MEDIA_PLAYER_STATE_ANNOUNCING");
548 return ESPHOME_PSTR(
"MEDIA_PLAYER_STATE_OFF");
550 return ESPHOME_PSTR(
"MEDIA_PLAYER_STATE_ON");
552 return ESPHOME_PSTR(
"UNKNOWN");
558 return ESPHOME_PSTR(
"MEDIA_PLAYER_COMMAND_PLAY");
560 return ESPHOME_PSTR(
"MEDIA_PLAYER_COMMAND_PAUSE");
562 return ESPHOME_PSTR(
"MEDIA_PLAYER_COMMAND_STOP");
564 return ESPHOME_PSTR(
"MEDIA_PLAYER_COMMAND_MUTE");
566 return ESPHOME_PSTR(
"MEDIA_PLAYER_COMMAND_UNMUTE");
568 return ESPHOME_PSTR(
"MEDIA_PLAYER_COMMAND_TOGGLE");
570 return ESPHOME_PSTR(
"MEDIA_PLAYER_COMMAND_VOLUME_UP");
572 return ESPHOME_PSTR(
"MEDIA_PLAYER_COMMAND_VOLUME_DOWN");
574 return ESPHOME_PSTR(
"MEDIA_PLAYER_COMMAND_ENQUEUE");
576 return ESPHOME_PSTR(
"MEDIA_PLAYER_COMMAND_REPEAT_ONE");
578 return ESPHOME_PSTR(
"MEDIA_PLAYER_COMMAND_REPEAT_OFF");
580 return ESPHOME_PSTR(
"MEDIA_PLAYER_COMMAND_CLEAR_PLAYLIST");
582 return ESPHOME_PSTR(
"MEDIA_PLAYER_COMMAND_TURN_ON");
584 return ESPHOME_PSTR(
"MEDIA_PLAYER_COMMAND_TURN_OFF");
586 return ESPHOME_PSTR(
"UNKNOWN");
592 return ESPHOME_PSTR(
"MEDIA_PLAYER_FORMAT_PURPOSE_DEFAULT");
594 return ESPHOME_PSTR(
"MEDIA_PLAYER_FORMAT_PURPOSE_ANNOUNCEMENT");
596 return ESPHOME_PSTR(
"UNKNOWN");
600#ifdef USE_BLUETOOTH_PROXY_CONNECTIONS
605 return ESPHOME_PSTR(
"BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT");
607 return ESPHOME_PSTR(
"BLUETOOTH_DEVICE_REQUEST_TYPE_DISCONNECT");
609 return ESPHOME_PSTR(
"BLUETOOTH_DEVICE_REQUEST_TYPE_PAIR");
611 return ESPHOME_PSTR(
"BLUETOOTH_DEVICE_REQUEST_TYPE_UNPAIR");
613 return ESPHOME_PSTR(
"BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT_V3_WITH_CACHE");
615 return ESPHOME_PSTR(
"BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT_V3_WITHOUT_CACHE");
617 return ESPHOME_PSTR(
"BLUETOOTH_DEVICE_REQUEST_TYPE_CLEAR_CACHE");
619 return ESPHOME_PSTR(
"UNKNOWN");
623#ifdef USE_BLUETOOTH_PROXY
627 return ESPHOME_PSTR(
"BLUETOOTH_SCANNER_STATE_IDLE");
629 return ESPHOME_PSTR(
"BLUETOOTH_SCANNER_STATE_STARTING");
631 return ESPHOME_PSTR(
"BLUETOOTH_SCANNER_STATE_RUNNING");
633 return ESPHOME_PSTR(
"BLUETOOTH_SCANNER_STATE_FAILED");
635 return ESPHOME_PSTR(
"BLUETOOTH_SCANNER_STATE_STOPPING");
637 return ESPHOME_PSTR(
"BLUETOOTH_SCANNER_STATE_STOPPED");
639 return ESPHOME_PSTR(
"UNKNOWN");
645 return ESPHOME_PSTR(
"BLUETOOTH_SCANNER_MODE_PASSIVE");
647 return ESPHOME_PSTR(
"BLUETOOTH_SCANNER_MODE_ACTIVE");
649 return ESPHOME_PSTR(
"UNKNOWN");
657 return ESPHOME_PSTR(
"VOICE_ASSISTANT_SUBSCRIBE_NONE");
659 return ESPHOME_PSTR(
"VOICE_ASSISTANT_SUBSCRIBE_API_AUDIO");
661 return ESPHOME_PSTR(
"UNKNOWN");
667 return ESPHOME_PSTR(
"VOICE_ASSISTANT_REQUEST_NONE");
669 return ESPHOME_PSTR(
"VOICE_ASSISTANT_REQUEST_USE_VAD");
671 return ESPHOME_PSTR(
"VOICE_ASSISTANT_REQUEST_USE_WAKE_WORD");
673 return ESPHOME_PSTR(
"UNKNOWN");
676#ifdef USE_VOICE_ASSISTANT
680 return ESPHOME_PSTR(
"VOICE_ASSISTANT_ERROR");
682 return ESPHOME_PSTR(
"VOICE_ASSISTANT_RUN_START");
684 return ESPHOME_PSTR(
"VOICE_ASSISTANT_RUN_END");
686 return ESPHOME_PSTR(
"VOICE_ASSISTANT_STT_START");
688 return ESPHOME_PSTR(
"VOICE_ASSISTANT_STT_END");
690 return ESPHOME_PSTR(
"VOICE_ASSISTANT_INTENT_START");
692 return ESPHOME_PSTR(
"VOICE_ASSISTANT_INTENT_END");
694 return ESPHOME_PSTR(
"VOICE_ASSISTANT_TTS_START");
696 return ESPHOME_PSTR(
"VOICE_ASSISTANT_TTS_END");
698 return ESPHOME_PSTR(
"VOICE_ASSISTANT_WAKE_WORD_START");
700 return ESPHOME_PSTR(
"VOICE_ASSISTANT_WAKE_WORD_END");
702 return ESPHOME_PSTR(
"VOICE_ASSISTANT_STT_VAD_START");
704 return ESPHOME_PSTR(
"VOICE_ASSISTANT_STT_VAD_END");
706 return ESPHOME_PSTR(
"VOICE_ASSISTANT_TTS_STREAM_START");
708 return ESPHOME_PSTR(
"VOICE_ASSISTANT_TTS_STREAM_END");
710 return ESPHOME_PSTR(
"VOICE_ASSISTANT_INTENT_PROGRESS");
712 return ESPHOME_PSTR(
"UNKNOWN");
718 return ESPHOME_PSTR(
"VOICE_ASSISTANT_TIMER_STARTED");
720 return ESPHOME_PSTR(
"VOICE_ASSISTANT_TIMER_UPDATED");
722 return ESPHOME_PSTR(
"VOICE_ASSISTANT_TIMER_CANCELLED");
724 return ESPHOME_PSTR(
"VOICE_ASSISTANT_TIMER_FINISHED");
726 return ESPHOME_PSTR(
"UNKNOWN");
730#ifdef USE_ALARM_CONTROL_PANEL
734 return ESPHOME_PSTR(
"ALARM_STATE_DISARMED");
736 return ESPHOME_PSTR(
"ALARM_STATE_ARMED_HOME");
738 return ESPHOME_PSTR(
"ALARM_STATE_ARMED_AWAY");
740 return ESPHOME_PSTR(
"ALARM_STATE_ARMED_NIGHT");
742 return ESPHOME_PSTR(
"ALARM_STATE_ARMED_VACATION");
744 return ESPHOME_PSTR(
"ALARM_STATE_ARMED_CUSTOM_BYPASS");
746 return ESPHOME_PSTR(
"ALARM_STATE_PENDING");
748 return ESPHOME_PSTR(
"ALARM_STATE_ARMING");
750 return ESPHOME_PSTR(
"ALARM_STATE_DISARMING");
752 return ESPHOME_PSTR(
"ALARM_STATE_TRIGGERED");
754 return ESPHOME_PSTR(
"UNKNOWN");
761 return ESPHOME_PSTR(
"ALARM_CONTROL_PANEL_DISARM");
763 return ESPHOME_PSTR(
"ALARM_CONTROL_PANEL_ARM_AWAY");
765 return ESPHOME_PSTR(
"ALARM_CONTROL_PANEL_ARM_HOME");
767 return ESPHOME_PSTR(
"ALARM_CONTROL_PANEL_ARM_NIGHT");
769 return ESPHOME_PSTR(
"ALARM_CONTROL_PANEL_ARM_VACATION");
771 return ESPHOME_PSTR(
"ALARM_CONTROL_PANEL_ARM_CUSTOM_BYPASS");
773 return ESPHOME_PSTR(
"ALARM_CONTROL_PANEL_TRIGGER");
775 return ESPHOME_PSTR(
"UNKNOWN");
783 return ESPHOME_PSTR(
"TEXT_MODE_TEXT");
785 return ESPHOME_PSTR(
"TEXT_MODE_PASSWORD");
787 return ESPHOME_PSTR(
"UNKNOWN");
795 return ESPHOME_PSTR(
"VALVE_OPERATION_IDLE");
797 return ESPHOME_PSTR(
"VALVE_OPERATION_IS_OPENING");
799 return ESPHOME_PSTR(
"VALVE_OPERATION_IS_CLOSING");
801 return ESPHOME_PSTR(
"UNKNOWN");
809 return ESPHOME_PSTR(
"UPDATE_COMMAND_NONE");
811 return ESPHOME_PSTR(
"UPDATE_COMMAND_UPDATE");
813 return ESPHOME_PSTR(
"UPDATE_COMMAND_CHECK");
815 return ESPHOME_PSTR(
"UNKNOWN");
819#ifdef USE_ZWAVE_PROXY
823 return ESPHOME_PSTR(
"ZWAVE_PROXY_REQUEST_TYPE_SUBSCRIBE");
825 return ESPHOME_PSTR(
"ZWAVE_PROXY_REQUEST_TYPE_UNSUBSCRIBE");
827 return ESPHOME_PSTR(
"ZWAVE_PROXY_REQUEST_TYPE_HOME_ID_CHANGE");
829 return ESPHOME_PSTR(
"UNKNOWN");
835 return ESPHOME_PSTR(
"ZWAVE_PROXY_STATUS_OK");
837 return ESPHOME_PSTR(
"ZWAVE_PROXY_STATUS_IN_USE");
839 return ESPHOME_PSTR(
"ZWAVE_PROXY_STATUS_NOT_SUPPORTED");
841 return ESPHOME_PSTR(
"UNKNOWN");
845#ifdef USE_SERIAL_PROXY
849 return ESPHOME_PSTR(
"SERIAL_PROXY_PARITY_NONE");
851 return ESPHOME_PSTR(
"SERIAL_PROXY_PARITY_EVEN");
853 return ESPHOME_PSTR(
"SERIAL_PROXY_PARITY_ODD");
855 return ESPHOME_PSTR(
"UNKNOWN");
861 return ESPHOME_PSTR(
"SERIAL_PROXY_REQUEST_TYPE_SUBSCRIBE");
863 return ESPHOME_PSTR(
"SERIAL_PROXY_REQUEST_TYPE_UNSUBSCRIBE");
865 return ESPHOME_PSTR(
"SERIAL_PROXY_REQUEST_TYPE_FLUSH");
867 return ESPHOME_PSTR(
"SERIAL_PROXY_REQUEST_TYPE_CONFIGURE");
869 return ESPHOME_PSTR(
"SERIAL_PROXY_REQUEST_TYPE_SET_MODEM_PINS");
871 return ESPHOME_PSTR(
"SERIAL_PROXY_REQUEST_TYPE_SET_MODE");
873 return ESPHOME_PSTR(
"UNKNOWN");
879 return ESPHOME_PSTR(
"SERIAL_PROXY_STATUS_OK");
881 return ESPHOME_PSTR(
"SERIAL_PROXY_STATUS_ASSUMED_SUCCESS");
883 return ESPHOME_PSTR(
"SERIAL_PROXY_STATUS_ERROR");
885 return ESPHOME_PSTR(
"SERIAL_PROXY_STATUS_TIMEOUT");
887 return ESPHOME_PSTR(
"SERIAL_PROXY_STATUS_NOT_SUPPORTED");
889 return ESPHOME_PSTR(
"SERIAL_PROXY_STATUS_PORT_IN_USE");
891 return ESPHOME_PSTR(
"SERIAL_PROXY_STATUS_INVALID_ARGUMENT");
893 return ESPHOME_PSTR(
"UNKNOWN");
899 return ESPHOME_PSTR(
"SERIAL_PROXY_MODE_RAW");
901 return ESPHOME_PSTR(
"SERIAL_PROXY_MODE_PROTOCOL");
903 return ESPHOME_PSTR(
"UNKNOWN");
909 return ESPHOME_PSTR(
"SERIAL_PROXY_IDENTITY_SOURCE_NONE");
911 return ESPHOME_PSTR(
"SERIAL_PROXY_IDENTITY_SOURCE_CONFIGURED");
913 return ESPHOME_PSTR(
"SERIAL_PROXY_IDENTITY_SOURCE_USB");
915 return ESPHOME_PSTR(
"UNKNOWN");
922 return ESPHOME_PSTR(
"SERIAL_PROXY_IDENTITY_FLAG_NONE");
924 return ESPHOME_PSTR(
"SERIAL_PROXY_IDENTITY_FLAG_CONNECTED");
926 return ESPHOME_PSTR(
"SERIAL_PROXY_IDENTITY_FLAG_ERROR");
928 return ESPHOME_PSTR(
"UNKNOWN");
936 return ESPHOME_PSTR(
"SENDSPIN_PAIRING_TOKEN_STATUS_NOT_READY");
938 return ESPHOME_PSTR(
"SENDSPIN_PAIRING_TOKEN_STATUS_OK");
940 return ESPHOME_PSTR(
"SENDSPIN_PAIRING_TOKEN_STATUS_ENCRYPTION_REQUIRED");
942 return ESPHOME_PSTR(
"SENDSPIN_PAIRING_TOKEN_STATUS_DISABLED");
944 return ESPHOME_PSTR(
"SENDSPIN_PAIRING_TOKEN_STATUS_FAILED");
946 return ESPHOME_PSTR(
"UNKNOWN");
952 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"HelloRequest"));
956#ifdef USE_API_OUTGOING_CONNECTION
962 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"HelloResponse"));
966 dump_field(
out, ESPHOME_PSTR(
"name"), this->
name);
970 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"DisconnectRequest"));
975 out.append_p(ESPHOME_PSTR(
"DisconnectResponse {}"));
979 out.append_p(ESPHOME_PSTR(
"PingRequest {}"));
983 out.append_p(ESPHOME_PSTR(
"PingResponse {}"));
988 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"AreaInfo"));
989 dump_field(
out, ESPHOME_PSTR(
"area_id"), this->
area_id);
990 dump_field(
out, ESPHOME_PSTR(
"name"), this->
name);
996 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"DeviceInfo"));
997 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
998 dump_field(
out, ESPHOME_PSTR(
"name"), this->
name);
999 dump_field(
out, ESPHOME_PSTR(
"area_id"), this->
area_id);
1003#ifdef USE_SERIAL_PROXY
1005 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"SerialProxyInfo"));
1006 dump_field(
out, ESPHOME_PSTR(
"name"), this->
name);
1013 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"DeviceInfoResponse"));
1014 dump_field(
out, ESPHOME_PSTR(
"name"), this->
name);
1018 dump_field(
out, ESPHOME_PSTR(
"model"), this->
model);
1019#ifdef USE_DEEP_SLEEP
1022#ifdef ESPHOME_PROJECT_NAME
1025#ifdef ESPHOME_PROJECT_NAME
1031#ifdef USE_BLUETOOTH_PROXY
1036#ifdef USE_VOICE_ASSISTANT
1042#ifdef USE_BLUETOOTH_PROXY
1049 for (
const auto &it : this->
devices) {
1056 for (
const auto &it : this->
areas) {
1063 out.append(2,
' ').append_p(ESPHOME_PSTR(
"area")).append(
": ");
1067#ifdef USE_ZWAVE_PROXY
1070#ifdef USE_ZWAVE_PROXY
1073#ifdef USE_SERIAL_PROXY
1083#ifdef USE_API_OUTGOING_CONNECTION
1088#ifdef USE_BLUETOOTH_PROXY
1090 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BluetoothProxyCapabilities"));
1096#ifdef USE_VOICE_ASSISTANT
1098 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"VoiceAssistantCapabilities"));
1103#ifdef USE_ZWAVE_PROXY
1105 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ZWaveProxyCapabilities"));
1107 dump_field(
out, ESPHOME_PSTR(
"home_id"), this->
home_id);
1111#ifdef USE_API_WIZARD
1113 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"WizardCapabilities"));
1114 dump_field(
out, ESPHOME_PSTR(
"configured"), this->
configured);
1120 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"SendspinCapabilities"));
1122 dump_field(
out, ESPHOME_PSTR(
"client_id"), this->
client_id);
1127 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"DeviceCapabilitiesResponse"));
1128#ifdef USE_BLUETOOTH_PROXY
1129 out.append(2,
' ').append_p(ESPHOME_PSTR(
"bluetooth_proxy")).append(
": ");
1133#ifdef USE_VOICE_ASSISTANT
1134 out.append(2,
' ').append_p(ESPHOME_PSTR(
"voice_assistant")).append(
": ");
1138#ifdef USE_ZWAVE_PROXY
1139 out.append(2,
' ').append_p(ESPHOME_PSTR(
"zwave_proxy")).append(
": ");
1143#ifdef USE_SERIAL_PROXY
1150#ifdef USE_API_WIZARD
1151 out.append(2,
' ').append_p(ESPHOME_PSTR(
"wizard")).append(
": ");
1156 out.append(2,
' ').append_p(ESPHOME_PSTR(
"sendspin")).append(
": ");
1162#ifdef USE_API_WIZARD
1164 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"DeviceWizardResponse"));
1165 dump_progmem_bytes_field(
out, ESPHOME_PSTR(
"data"), this->data, this->
data_len);
1169#ifdef USE_API_WIZARD_INPUTS
1171 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"WizardInputSetRequest"));
1172 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1173 dump_field(
out, ESPHOME_PSTR(
"entity_id"), this->
entity_id);
1178 out.append_p(ESPHOME_PSTR(
"ListEntitiesDoneResponse {}"));
1181#ifdef USE_BINARY_SENSOR
1183 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ListEntitiesBinarySensorResponse"));
1184 dump_field(
out, ESPHOME_PSTR(
"object_id"), this->
object_id);
1185 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1186 dump_field(
out, ESPHOME_PSTR(
"name"), this->
name);
1190#ifdef USE_ENTITY_ICON
1191 dump_field(
out, ESPHOME_PSTR(
"icon"), this->
icon);
1195 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1200 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BinarySensorStateResponse"));
1201 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1202 dump_field(
out, ESPHOME_PSTR(
"state"), this->
state);
1205 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1212 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ListEntitiesCoverResponse"));
1213 dump_field(
out, ESPHOME_PSTR(
"object_id"), this->
object_id);
1214 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1215 dump_field(
out, ESPHOME_PSTR(
"name"), this->
name);
1221#ifdef USE_ENTITY_ICON
1222 dump_field(
out, ESPHOME_PSTR(
"icon"), this->
icon);
1227 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1232 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"CoverStateResponse"));
1233 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1234 dump_field(
out, ESPHOME_PSTR(
"position"), this->
position);
1235 dump_field(
out, ESPHOME_PSTR(
"tilt"), this->
tilt);
1238 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1243 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"CoverCommandRequest"));
1244 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1246 dump_field(
out, ESPHOME_PSTR(
"position"), this->
position);
1247 dump_field(
out, ESPHOME_PSTR(
"has_tilt"), this->
has_tilt);
1248 dump_field(
out, ESPHOME_PSTR(
"tilt"), this->
tilt);
1249 dump_field(
out, ESPHOME_PSTR(
"stop"), this->
stop);
1251 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1258 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ListEntitiesFanResponse"));
1259 dump_field(
out, ESPHOME_PSTR(
"object_id"), this->
object_id);
1260 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1261 dump_field(
out, ESPHOME_PSTR(
"name"), this->
name);
1267#ifdef USE_ENTITY_ICON
1268 dump_field(
out, ESPHOME_PSTR(
"icon"), this->
icon);
1272 dump_field(
out, ESPHOME_PSTR(
"supported_preset_modes"), it, 4);
1275 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1280 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"FanStateResponse"));
1281 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1282 dump_field(
out, ESPHOME_PSTR(
"state"), this->
state);
1288 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1293 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"FanCommandRequest"));
1294 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1295 dump_field(
out, ESPHOME_PSTR(
"has_state"), this->
has_state);
1296 dump_field(
out, ESPHOME_PSTR(
"state"), this->
state);
1306 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1313 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ListEntitiesLightResponse"));
1314 dump_field(
out, ESPHOME_PSTR(
"object_id"), this->
object_id);
1315 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1316 dump_field(
out, ESPHOME_PSTR(
"name"), this->
name);
1318 dump_field(
out, ESPHOME_PSTR(
"supported_color_modes"),
static_cast<enums::ColorMode>(it), 4);
1320 dump_field(
out, ESPHOME_PSTR(
"min_mireds"), this->
min_mireds);
1321 dump_field(
out, ESPHOME_PSTR(
"max_mireds"), this->
max_mireds);
1322 for (
const auto &it : *this->
effects) {
1323 dump_field(
out, ESPHOME_PSTR(
"effects"), it, 4);
1326#ifdef USE_ENTITY_ICON
1327 dump_field(
out, ESPHOME_PSTR(
"icon"), this->
icon);
1331 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1336 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"LightStateResponse"));
1337 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1338 dump_field(
out, ESPHOME_PSTR(
"state"), this->
state);
1339 dump_field(
out, ESPHOME_PSTR(
"brightness"), this->
brightness);
1342 dump_field(
out, ESPHOME_PSTR(
"red"), this->
red);
1343 dump_field(
out, ESPHOME_PSTR(
"green"), this->
green);
1344 dump_field(
out, ESPHOME_PSTR(
"blue"), this->
blue);
1345 dump_field(
out, ESPHOME_PSTR(
"white"), this->
white);
1347 dump_field(
out, ESPHOME_PSTR(
"cold_white"), this->
cold_white);
1348 dump_field(
out, ESPHOME_PSTR(
"warm_white"), this->
warm_white);
1349 dump_field(
out, ESPHOME_PSTR(
"effect"), this->
effect);
1351 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1356 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"LightCommandRequest"));
1357 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1358 dump_field(
out, ESPHOME_PSTR(
"has_state"), this->
has_state);
1359 dump_field(
out, ESPHOME_PSTR(
"state"), this->
state);
1361 dump_field(
out, ESPHOME_PSTR(
"brightness"), this->
brightness);
1366 dump_field(
out, ESPHOME_PSTR(
"has_rgb"), this->
has_rgb);
1367 dump_field(
out, ESPHOME_PSTR(
"red"), this->
red);
1368 dump_field(
out, ESPHOME_PSTR(
"green"), this->
green);
1369 dump_field(
out, ESPHOME_PSTR(
"blue"), this->
blue);
1370 dump_field(
out, ESPHOME_PSTR(
"has_white"), this->
has_white);
1371 dump_field(
out, ESPHOME_PSTR(
"white"), this->
white);
1375 dump_field(
out, ESPHOME_PSTR(
"cold_white"), this->
cold_white);
1377 dump_field(
out, ESPHOME_PSTR(
"warm_white"), this->
warm_white);
1382 dump_field(
out, ESPHOME_PSTR(
"has_effect"), this->
has_effect);
1383 dump_field(
out, ESPHOME_PSTR(
"effect"), this->
effect);
1385 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1392 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ListEntitiesSensorResponse"));
1393 dump_field(
out, ESPHOME_PSTR(
"object_id"), this->
object_id);
1394 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1395 dump_field(
out, ESPHOME_PSTR(
"name"), this->
name);
1396#ifdef USE_ENTITY_ICON
1397 dump_field(
out, ESPHOME_PSTR(
"icon"), this->
icon);
1407 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1412 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"SensorStateResponse"));
1413 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1414 dump_field(
out, ESPHOME_PSTR(
"state"), this->
state);
1417 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1424 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ListEntitiesSwitchResponse"));
1425 dump_field(
out, ESPHOME_PSTR(
"object_id"), this->
object_id);
1426 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1427 dump_field(
out, ESPHOME_PSTR(
"name"), this->
name);
1428#ifdef USE_ENTITY_ICON
1429 dump_field(
out, ESPHOME_PSTR(
"icon"), this->
icon);
1436 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1441 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"SwitchStateResponse"));
1442 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1443 dump_field(
out, ESPHOME_PSTR(
"state"), this->
state);
1445 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1451 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"SwitchCommandRequest"));
1452 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1453 dump_field(
out, ESPHOME_PSTR(
"state"), this->
state);
1455 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1460#ifdef USE_TEXT_SENSOR
1462 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ListEntitiesTextSensorResponse"));
1463 dump_field(
out, ESPHOME_PSTR(
"object_id"), this->
object_id);
1464 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1465 dump_field(
out, ESPHOME_PSTR(
"name"), this->
name);
1466#ifdef USE_ENTITY_ICON
1467 dump_field(
out, ESPHOME_PSTR(
"icon"), this->
icon);
1473 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1478 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"TextSensorStateResponse"));
1479 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1480 dump_field(
out, ESPHOME_PSTR(
"state"), this->
state);
1483 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1489 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"SubscribeLogsRequest"));
1495 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"SubscribeLogsResponse"));
1502 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"NoiseEncryptionSetKeyRequest"));
1503 dump_bytes_field(
out, ESPHOME_PSTR(
"key"), this->
key, this->
key_len);
1507 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"NoiseEncryptionSetKeyResponse"));
1508 dump_field(
out, ESPHOME_PSTR(
"success"), this->
success);
1512#ifdef USE_API_HOMEASSISTANT_SERVICES
1514 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"HomeassistantServiceMap"));
1515 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1516 dump_field(
out, ESPHOME_PSTR(
"value"), this->value);
1520 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"HomeassistantActionRequest"));
1521 dump_field(
out, ESPHOME_PSTR(
"service"), this->
service);
1522 for (
const auto &it : this->data) {
1523 out.append(4,
' ').append_p(ESPHOME_PSTR(
"data")).append(
": ");
1532 for (
const auto &it : this->
variables) {
1537 dump_field(
out, ESPHOME_PSTR(
"is_event"), this->
is_event);
1538#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES
1539 dump_field(
out, ESPHOME_PSTR(
"call_id"), this->
call_id);
1541#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1544#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1550#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES
1552 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"HomeassistantActionResponse"));
1553 dump_field(
out, ESPHOME_PSTR(
"call_id"), this->
call_id);
1554 dump_field(
out, ESPHOME_PSTR(
"success"), this->
success);
1556#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1562#ifdef USE_API_HOMEASSISTANT_STATES
1564 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"SubscribeHomeAssistantStateResponse"));
1565 dump_field(
out, ESPHOME_PSTR(
"entity_id"), this->
entity_id);
1566 dump_field(
out, ESPHOME_PSTR(
"attribute"), this->
attribute);
1567 dump_field(
out, ESPHOME_PSTR(
"once"), this->
once);
1571 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"HomeAssistantStateResponse"));
1572 dump_field(
out, ESPHOME_PSTR(
"entity_id"), this->
entity_id);
1573 dump_field(
out, ESPHOME_PSTR(
"state"), this->
state);
1574 dump_field(
out, ESPHOME_PSTR(
"attribute"), this->
attribute);
1579 out.append_p(ESPHOME_PSTR(
"GetTimeRequest {}"));
1583 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"DSTRule"));
1585 dump_field(
out, ESPHOME_PSTR(
"day"), this->
day);
1587 dump_field(
out, ESPHOME_PSTR(
"month"), this->
month);
1588 dump_field(
out, ESPHOME_PSTR(
"week"), this->
week);
1593 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ParsedTimezone"));
1599 out.append(2,
' ').append_p(ESPHOME_PSTR(
"dst_end")).append(
": ");
1605 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"GetTimeResponse"));
1613#ifdef USE_API_USER_DEFINED_ACTIONS
1615 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ListEntitiesServicesArgument"));
1616 dump_field(
out, ESPHOME_PSTR(
"name"), this->
name);
1618#ifdef USE_API_USER_DEFINED_ACTION_METADATA
1621#ifdef USE_API_USER_DEFINED_ACTION_METADATA
1622 dump_field(
out, ESPHOME_PSTR(
"example"), this->
example);
1627 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ListEntitiesServicesResponse"));
1628 dump_field(
out, ESPHOME_PSTR(
"name"), this->
name);
1629 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1630 for (
const auto &it : this->
args) {
1636#ifdef USE_API_USER_DEFINED_ACTION_METADATA
1642 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ExecuteServiceArgument"));
1643 dump_field(
out, ESPHOME_PSTR(
"bool_"), this->
bool_);
1644 dump_field(
out, ESPHOME_PSTR(
"legacy_int"), this->
legacy_int);
1645 dump_field(
out, ESPHOME_PSTR(
"float_"), this->
float_);
1646 dump_field(
out, ESPHOME_PSTR(
"string_"), this->
string_);
1647 dump_field(
out, ESPHOME_PSTR(
"int_"), this->
int_);
1649 dump_field(
out, ESPHOME_PSTR(
"bool_array"),
static_cast<bool>(it), 4);
1651 for (
const auto &it : this->
int_array) {
1652 dump_field(
out, ESPHOME_PSTR(
"int_array"), it, 4);
1655 dump_field(
out, ESPHOME_PSTR(
"float_array"), it, 4);
1658 dump_field(
out, ESPHOME_PSTR(
"string_array"), it, 4);
1663 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ExecuteServiceRequest"));
1664 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1665 for (
const auto &it : this->
args) {
1670#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1671 dump_field(
out, ESPHOME_PSTR(
"call_id"), this->
call_id);
1673#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1679#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1681 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ExecuteServiceResponse"));
1682 dump_field(
out, ESPHOME_PSTR(
"call_id"), this->
call_id);
1683 dump_field(
out, ESPHOME_PSTR(
"success"), this->
success);
1685#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES_JSON
1693 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ListEntitiesCameraResponse"));
1694 dump_field(
out, ESPHOME_PSTR(
"object_id"), this->
object_id);
1695 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1696 dump_field(
out, ESPHOME_PSTR(
"name"), this->
name);
1698#ifdef USE_ENTITY_ICON
1699 dump_field(
out, ESPHOME_PSTR(
"icon"), this->
icon);
1703 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1708 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"CameraImageResponse"));
1709 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1711 dump_field(
out, ESPHOME_PSTR(
"done"), this->
done);
1713 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1718 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"CameraImageRequest"));
1719 dump_field(
out, ESPHOME_PSTR(
"single"), this->
single);
1720 dump_field(
out, ESPHOME_PSTR(
"stream"), this->
stream);
1726 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ListEntitiesClimateResponse"));
1727 dump_field(
out, ESPHOME_PSTR(
"object_id"), this->
object_id);
1728 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1729 dump_field(
out, ESPHOME_PSTR(
"name"), this->
name);
1746 dump_field(
out, ESPHOME_PSTR(
"supported_custom_fan_modes"), it, 4);
1752 dump_field(
out, ESPHOME_PSTR(
"supported_custom_presets"), it, 4);
1755#ifdef USE_ENTITY_ICON
1756 dump_field(
out, ESPHOME_PSTR(
"icon"), this->
icon);
1765 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1772 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ClimateStateResponse"));
1773 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1788 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1794 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ClimateCommandRequest"));
1795 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1796 dump_field(
out, ESPHOME_PSTR(
"has_mode"), this->
has_mode);
1810 dump_field(
out, ESPHOME_PSTR(
"has_preset"), this->
has_preset);
1817 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1822#ifdef USE_WATER_HEATER
1824 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ListEntitiesWaterHeaterResponse"));
1825 dump_field(
out, ESPHOME_PSTR(
"object_id"), this->
object_id);
1826 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1827 dump_field(
out, ESPHOME_PSTR(
"name"), this->
name);
1828#ifdef USE_ENTITY_ICON
1829 dump_field(
out, ESPHOME_PSTR(
"icon"), this->
icon);
1834 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1847 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"WaterHeaterStateResponse"));
1848 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1853 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1855 dump_field(
out, ESPHOME_PSTR(
"state"), this->
state);
1862 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"WaterHeaterCommandRequest"));
1863 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1864 dump_field(
out, ESPHOME_PSTR(
"has_fields"), this->
has_fields);
1868 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1870 dump_field(
out, ESPHOME_PSTR(
"state"), this->
state);
1878 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ListEntitiesNumberResponse"));
1879 dump_field(
out, ESPHOME_PSTR(
"object_id"), this->
object_id);
1880 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1881 dump_field(
out, ESPHOME_PSTR(
"name"), this->
name);
1882#ifdef USE_ENTITY_ICON
1883 dump_field(
out, ESPHOME_PSTR(
"icon"), this->
icon);
1885 dump_field(
out, ESPHOME_PSTR(
"min_value"), this->
min_value);
1886 dump_field(
out, ESPHOME_PSTR(
"max_value"), this->
max_value);
1887 dump_field(
out, ESPHOME_PSTR(
"step"), this->
step);
1894 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1899 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"NumberStateResponse"));
1900 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1901 dump_field(
out, ESPHOME_PSTR(
"state"), this->
state);
1904 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1909 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"NumberCommandRequest"));
1910 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1911 dump_field(
out, ESPHOME_PSTR(
"state"), this->
state);
1913 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1920 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ListEntitiesSelectResponse"));
1921 dump_field(
out, ESPHOME_PSTR(
"object_id"), this->
object_id);
1922 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1923 dump_field(
out, ESPHOME_PSTR(
"name"), this->
name);
1924#ifdef USE_ENTITY_ICON
1925 dump_field(
out, ESPHOME_PSTR(
"icon"), this->
icon);
1927 for (
const auto &it : *this->
options) {
1928 dump_field(
out, ESPHOME_PSTR(
"options"), it, 4);
1933 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1938 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"SelectStateResponse"));
1939 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1940 dump_field(
out, ESPHOME_PSTR(
"state"), this->
state);
1943 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1948 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"SelectCommandRequest"));
1949 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1950 dump_field(
out, ESPHOME_PSTR(
"state"), this->
state);
1952 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1959 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ListEntitiesSirenResponse"));
1960 dump_field(
out, ESPHOME_PSTR(
"object_id"), this->
object_id);
1961 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1962 dump_field(
out, ESPHOME_PSTR(
"name"), this->
name);
1963#ifdef USE_ENTITY_ICON
1964 dump_field(
out, ESPHOME_PSTR(
"icon"), this->
icon);
1967 for (
const auto &it : *this->
tones) {
1968 dump_field(
out, ESPHOME_PSTR(
"tones"), it, 4);
1974 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1979 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"SirenStateResponse"));
1980 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1981 dump_field(
out, ESPHOME_PSTR(
"state"), this->
state);
1983 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
1988 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"SirenCommandRequest"));
1989 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
1990 dump_field(
out, ESPHOME_PSTR(
"has_state"), this->
has_state);
1991 dump_field(
out, ESPHOME_PSTR(
"state"), this->
state);
1992 dump_field(
out, ESPHOME_PSTR(
"has_tone"), this->
has_tone);
1993 dump_field(
out, ESPHOME_PSTR(
"tone"), this->
tone);
1995 dump_field(
out, ESPHOME_PSTR(
"duration"), this->
duration);
1996 dump_field(
out, ESPHOME_PSTR(
"has_volume"), this->
has_volume);
1997 dump_field(
out, ESPHOME_PSTR(
"volume"), this->
volume);
1999 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2006 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ListEntitiesLockResponse"));
2007 dump_field(
out, ESPHOME_PSTR(
"object_id"), this->
object_id);
2008 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2009 dump_field(
out, ESPHOME_PSTR(
"name"), this->
name);
2010#ifdef USE_ENTITY_ICON
2011 dump_field(
out, ESPHOME_PSTR(
"icon"), this->
icon);
2020 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2025 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"LockStateResponse"));
2026 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2029 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2034 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"LockCommandRequest"));
2035 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2037 dump_field(
out, ESPHOME_PSTR(
"has_code"), this->
has_code);
2038 dump_field(
out, ESPHOME_PSTR(
"code"), this->
code);
2040 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2047 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ListEntitiesButtonResponse"));
2048 dump_field(
out, ESPHOME_PSTR(
"object_id"), this->
object_id);
2049 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2050 dump_field(
out, ESPHOME_PSTR(
"name"), this->
name);
2051#ifdef USE_ENTITY_ICON
2052 dump_field(
out, ESPHOME_PSTR(
"icon"), this->
icon);
2058 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2063 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ButtonCommandRequest"));
2064 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2066 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2071#ifdef USE_MEDIA_PLAYER
2073 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"MediaPlayerSupportedFormat"));
2074 dump_field(
out, ESPHOME_PSTR(
"format"), this->
format);
2082 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ListEntitiesMediaPlayerResponse"));
2083 dump_field(
out, ESPHOME_PSTR(
"object_id"), this->
object_id);
2084 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2085 dump_field(
out, ESPHOME_PSTR(
"name"), this->
name);
2086#ifdef USE_ENTITY_ICON
2087 dump_field(
out, ESPHOME_PSTR(
"icon"), this->
icon);
2097 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2103 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"MediaPlayerStateResponse"));
2104 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2106 dump_field(
out, ESPHOME_PSTR(
"volume"), this->
volume);
2107 dump_field(
out, ESPHOME_PSTR(
"muted"), this->
muted);
2109 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2114 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"MediaPlayerCommandRequest"));
2115 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2118 dump_field(
out, ESPHOME_PSTR(
"has_volume"), this->
has_volume);
2119 dump_field(
out, ESPHOME_PSTR(
"volume"), this->
volume);
2121 dump_field(
out, ESPHOME_PSTR(
"media_url"), this->
media_url);
2125 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2130#ifdef USE_BLUETOOTH_PROXY
2132 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"SubscribeBluetoothLEAdvertisementsRequest"));
2133 dump_field(
out, ESPHOME_PSTR(
"flags"), this->
flags);
2137 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BluetoothLERawAdvertisement"));
2138 dump_field(
out, ESPHOME_PSTR(
"address"), this->
address);
2139 dump_field(
out, ESPHOME_PSTR(
"rssi"), this->
rssi);
2141 dump_bytes_field(
out, ESPHOME_PSTR(
"data"), this->data, this->
data_len);
2145 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BluetoothLERawAdvertisementsResponse"));
2147 out.append(4,
' ').append_p(ESPHOME_PSTR(
"advertisements")).append(
": ");
2154#ifdef USE_BLUETOOTH_PROXY_CONNECTIONS
2156 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BluetoothDeviceRequest"));
2157 dump_field(
out, ESPHOME_PSTR(
"address"), this->
address);
2164 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BluetoothDeviceConnectionResponse"));
2165 dump_field(
out, ESPHOME_PSTR(
"address"), this->
address);
2166 dump_field(
out, ESPHOME_PSTR(
"connected"), this->
connected);
2167 dump_field(
out, ESPHOME_PSTR(
"mtu"), this->
mtu);
2168 dump_field(
out, ESPHOME_PSTR(
"error"), this->
error);
2172 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BluetoothGATTGetServicesRequest"));
2173 dump_field(
out, ESPHOME_PSTR(
"address"), this->
address);
2177 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BluetoothGATTDescriptor"));
2178 for (
const auto &it : this->
uuid) {
2179 dump_field(
out, ESPHOME_PSTR(
"uuid"), it, 4);
2181 dump_field(
out, ESPHOME_PSTR(
"handle"), this->
handle);
2182 dump_field(
out, ESPHOME_PSTR(
"short_uuid"), this->
short_uuid);
2186 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BluetoothGATTCharacteristic"));
2187 for (
const auto &it : this->
uuid) {
2188 dump_field(
out, ESPHOME_PSTR(
"uuid"), it, 4);
2190 dump_field(
out, ESPHOME_PSTR(
"handle"), this->
handle);
2191 dump_field(
out, ESPHOME_PSTR(
"properties"), this->
properties);
2197 dump_field(
out, ESPHOME_PSTR(
"short_uuid"), this->
short_uuid);
2201 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BluetoothGATTService"));
2202 for (
const auto &it : this->
uuid) {
2203 dump_field(
out, ESPHOME_PSTR(
"uuid"), it, 4);
2205 dump_field(
out, ESPHOME_PSTR(
"handle"), this->
handle);
2211 dump_field(
out, ESPHOME_PSTR(
"short_uuid"), this->
short_uuid);
2215 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BluetoothGATTGetServicesResponse"));
2216 dump_field(
out, ESPHOME_PSTR(
"address"), this->
address);
2217 for (
const auto &it : this->
services) {
2225 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BluetoothGATTGetServicesDoneResponse"));
2226 dump_field(
out, ESPHOME_PSTR(
"address"), this->
address);
2230 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BluetoothGATTReadRequest"));
2231 dump_field(
out, ESPHOME_PSTR(
"address"), this->
address);
2232 dump_field(
out, ESPHOME_PSTR(
"handle"), this->
handle);
2236 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BluetoothGATTReadResponse"));
2237 dump_field(
out, ESPHOME_PSTR(
"address"), this->
address);
2238 dump_field(
out, ESPHOME_PSTR(
"handle"), this->
handle);
2243 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BluetoothGATTWriteRequest"));
2244 dump_field(
out, ESPHOME_PSTR(
"address"), this->
address);
2245 dump_field(
out, ESPHOME_PSTR(
"handle"), this->
handle);
2246 dump_field(
out, ESPHOME_PSTR(
"response"), this->
response);
2247 dump_bytes_field(
out, ESPHOME_PSTR(
"data"), this->data, this->
data_len);
2251 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BluetoothGATTReadDescriptorRequest"));
2252 dump_field(
out, ESPHOME_PSTR(
"address"), this->
address);
2253 dump_field(
out, ESPHOME_PSTR(
"handle"), this->
handle);
2257 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BluetoothGATTWriteDescriptorRequest"));
2258 dump_field(
out, ESPHOME_PSTR(
"address"), this->
address);
2259 dump_field(
out, ESPHOME_PSTR(
"handle"), this->
handle);
2260 dump_bytes_field(
out, ESPHOME_PSTR(
"data"), this->data, this->
data_len);
2264 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BluetoothGATTNotifyRequest"));
2265 dump_field(
out, ESPHOME_PSTR(
"address"), this->
address);
2266 dump_field(
out, ESPHOME_PSTR(
"handle"), this->
handle);
2267 dump_field(
out, ESPHOME_PSTR(
"enable"), this->
enable);
2271 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BluetoothGATTNotifyDataResponse"));
2272 dump_field(
out, ESPHOME_PSTR(
"address"), this->
address);
2273 dump_field(
out, ESPHOME_PSTR(
"handle"), this->
handle);
2278 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BluetoothConnectionsFreeResponse"));
2279 dump_field(
out, ESPHOME_PSTR(
"free"), this->
free);
2280 dump_field(
out, ESPHOME_PSTR(
"limit"), this->
limit);
2281 for (
const auto &it : this->
allocated) {
2282 dump_field(
out, ESPHOME_PSTR(
"allocated"), it, 4);
2287 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BluetoothGATTErrorResponse"));
2288 dump_field(
out, ESPHOME_PSTR(
"address"), this->
address);
2289 dump_field(
out, ESPHOME_PSTR(
"handle"), this->
handle);
2290 dump_field(
out, ESPHOME_PSTR(
"error"), this->
error);
2294 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BluetoothGATTWriteResponse"));
2295 dump_field(
out, ESPHOME_PSTR(
"address"), this->
address);
2296 dump_field(
out, ESPHOME_PSTR(
"handle"), this->
handle);
2300 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BluetoothGATTNotifyResponse"));
2301 dump_field(
out, ESPHOME_PSTR(
"address"), this->
address);
2302 dump_field(
out, ESPHOME_PSTR(
"handle"), this->
handle);
2306 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BluetoothDevicePairingResponse"));
2307 dump_field(
out, ESPHOME_PSTR(
"address"), this->
address);
2308 dump_field(
out, ESPHOME_PSTR(
"paired"), this->
paired);
2309 dump_field(
out, ESPHOME_PSTR(
"error"), this->
error);
2313 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BluetoothDeviceUnpairingResponse"));
2314 dump_field(
out, ESPHOME_PSTR(
"address"), this->
address);
2315 dump_field(
out, ESPHOME_PSTR(
"success"), this->
success);
2316 dump_field(
out, ESPHOME_PSTR(
"error"), this->
error);
2320 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BluetoothDeviceClearCacheResponse"));
2321 dump_field(
out, ESPHOME_PSTR(
"address"), this->
address);
2322 dump_field(
out, ESPHOME_PSTR(
"success"), this->
success);
2323 dump_field(
out, ESPHOME_PSTR(
"error"), this->
error);
2327#ifdef USE_BLUETOOTH_PROXY
2329 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BluetoothScannerStateResponse"));
2336 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BluetoothScannerSetModeRequest"));
2341#ifdef USE_VOICE_ASSISTANT
2343 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"SubscribeVoiceAssistantRequest"));
2344 dump_field(
out, ESPHOME_PSTR(
"subscribe"), this->
subscribe);
2345 dump_field(
out, ESPHOME_PSTR(
"flags"), this->
flags);
2349 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"VoiceAssistantAudioSettings"));
2351 dump_field(
out, ESPHOME_PSTR(
"auto_gain"), this->
auto_gain);
2356 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"VoiceAssistantRequest"));
2357 dump_field(
out, ESPHOME_PSTR(
"start"), this->
start);
2359 dump_field(
out, ESPHOME_PSTR(
"flags"), this->
flags);
2367 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"VoiceAssistantResponse"));
2368 dump_field(
out, ESPHOME_PSTR(
"port"), this->
port);
2369 dump_field(
out, ESPHOME_PSTR(
"error"), this->
error);
2373 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"VoiceAssistantEventData"));
2374 dump_field(
out, ESPHOME_PSTR(
"name"), this->
name);
2375 dump_field(
out, ESPHOME_PSTR(
"value"), this->value);
2379 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"VoiceAssistantEventResponse"));
2381 for (
const auto &it : this->data) {
2382 out.append(4,
' ').append_p(ESPHOME_PSTR(
"data")).append(
": ");
2389 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"VoiceAssistantAudio"));
2390 dump_bytes_field(
out, ESPHOME_PSTR(
"data"), this->data, this->
data_len);
2391 dump_field(
out, ESPHOME_PSTR(
"end"), this->
end);
2396 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"VoiceAssistantTimerEventResponse"));
2398 dump_field(
out, ESPHOME_PSTR(
"timer_id"), this->
timer_id);
2399 dump_field(
out, ESPHOME_PSTR(
"name"), this->
name);
2402 dump_field(
out, ESPHOME_PSTR(
"is_active"), this->
is_active);
2406 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"VoiceAssistantAnnounceRequest"));
2407 dump_field(
out, ESPHOME_PSTR(
"media_id"), this->
media_id);
2408 dump_field(
out, ESPHOME_PSTR(
"text"), this->
text);
2414 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"VoiceAssistantAnnounceFinished"));
2415 dump_field(
out, ESPHOME_PSTR(
"success"), this->
success);
2419 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"VoiceAssistantWakeWord"));
2420 dump_field(
out, ESPHOME_PSTR(
"id"), this->
id);
2421 dump_field(
out, ESPHOME_PSTR(
"wake_word"), this->
wake_word);
2423 dump_field(
out, ESPHOME_PSTR(
"trained_languages"), it, 4);
2428 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"VoiceAssistantExternalWakeWord"));
2429 dump_field(
out, ESPHOME_PSTR(
"id"), this->
id);
2430 dump_field(
out, ESPHOME_PSTR(
"wake_word"), this->
wake_word);
2432 dump_field(
out, ESPHOME_PSTR(
"trained_languages"), it, 4);
2434 dump_field(
out, ESPHOME_PSTR(
"model_type"), this->
model_type);
2435 dump_field(
out, ESPHOME_PSTR(
"model_size"), this->
model_size);
2436 dump_field(
out, ESPHOME_PSTR(
"model_hash"), this->
model_hash);
2437 dump_field(
out, ESPHOME_PSTR(
"url"), this->
url);
2441 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"VoiceAssistantConfigurationRequest"));
2450 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"VoiceAssistantConfigurationResponse"));
2457 dump_field(
out, ESPHOME_PSTR(
"active_wake_words"), it, 4);
2463 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"VoiceAssistantSetConfiguration"));
2465 dump_field(
out, ESPHOME_PSTR(
"active_wake_words"), it, 4);
2470#ifdef USE_ALARM_CONTROL_PANEL
2472 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ListEntitiesAlarmControlPanelResponse"));
2473 dump_field(
out, ESPHOME_PSTR(
"object_id"), this->
object_id);
2474 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2475 dump_field(
out, ESPHOME_PSTR(
"name"), this->
name);
2476#ifdef USE_ENTITY_ICON
2477 dump_field(
out, ESPHOME_PSTR(
"icon"), this->
icon);
2485 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2490 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"AlarmControlPanelStateResponse"));
2491 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2494 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2499 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"AlarmControlPanelCommandRequest"));
2500 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2502 dump_field(
out, ESPHOME_PSTR(
"code"), this->
code);
2504 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2511 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ListEntitiesTextResponse"));
2512 dump_field(
out, ESPHOME_PSTR(
"object_id"), this->
object_id);
2513 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2514 dump_field(
out, ESPHOME_PSTR(
"name"), this->
name);
2515#ifdef USE_ENTITY_ICON
2516 dump_field(
out, ESPHOME_PSTR(
"icon"), this->
icon);
2520 dump_field(
out, ESPHOME_PSTR(
"min_length"), this->
min_length);
2521 dump_field(
out, ESPHOME_PSTR(
"max_length"), this->
max_length);
2522 dump_field(
out, ESPHOME_PSTR(
"pattern"), this->
pattern);
2525 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2530 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"TextStateResponse"));
2531 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2532 dump_field(
out, ESPHOME_PSTR(
"state"), this->
state);
2535 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2540 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"TextCommandRequest"));
2541 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2542 dump_field(
out, ESPHOME_PSTR(
"state"), this->
state);
2544 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2549#ifdef USE_DATETIME_DATE
2551 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ListEntitiesDateResponse"));
2552 dump_field(
out, ESPHOME_PSTR(
"object_id"), this->
object_id);
2553 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2554 dump_field(
out, ESPHOME_PSTR(
"name"), this->
name);
2555#ifdef USE_ENTITY_ICON
2556 dump_field(
out, ESPHOME_PSTR(
"icon"), this->
icon);
2561 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2566 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"DateStateResponse"));
2567 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2569 dump_field(
out, ESPHOME_PSTR(
"year"), this->
year);
2570 dump_field(
out, ESPHOME_PSTR(
"month"), this->
month);
2571 dump_field(
out, ESPHOME_PSTR(
"day"), this->
day);
2573 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2578 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"DateCommandRequest"));
2579 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2580 dump_field(
out, ESPHOME_PSTR(
"year"), this->
year);
2581 dump_field(
out, ESPHOME_PSTR(
"month"), this->
month);
2582 dump_field(
out, ESPHOME_PSTR(
"day"), this->
day);
2584 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2589#ifdef USE_DATETIME_TIME
2591 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ListEntitiesTimeResponse"));
2592 dump_field(
out, ESPHOME_PSTR(
"object_id"), this->
object_id);
2593 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2594 dump_field(
out, ESPHOME_PSTR(
"name"), this->
name);
2595#ifdef USE_ENTITY_ICON
2596 dump_field(
out, ESPHOME_PSTR(
"icon"), this->
icon);
2601 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2606 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"TimeStateResponse"));
2607 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2609 dump_field(
out, ESPHOME_PSTR(
"hour"), this->
hour);
2610 dump_field(
out, ESPHOME_PSTR(
"minute"), this->
minute);
2611 dump_field(
out, ESPHOME_PSTR(
"second"), this->
second);
2613 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2618 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"TimeCommandRequest"));
2619 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2620 dump_field(
out, ESPHOME_PSTR(
"hour"), this->
hour);
2621 dump_field(
out, ESPHOME_PSTR(
"minute"), this->
minute);
2622 dump_field(
out, ESPHOME_PSTR(
"second"), this->
second);
2624 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2631 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ListEntitiesEventResponse"));
2632 dump_field(
out, ESPHOME_PSTR(
"object_id"), this->
object_id);
2633 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2634 dump_field(
out, ESPHOME_PSTR(
"name"), this->
name);
2635#ifdef USE_ENTITY_ICON
2636 dump_field(
out, ESPHOME_PSTR(
"icon"), this->
icon);
2642 dump_field(
out, ESPHOME_PSTR(
"event_types"), it, 4);
2645 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2650 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"EventResponse"));
2651 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2652 dump_field(
out, ESPHOME_PSTR(
"event_type"), this->
event_type);
2654 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2661 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ListEntitiesValveResponse"));
2662 dump_field(
out, ESPHOME_PSTR(
"object_id"), this->
object_id);
2663 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2664 dump_field(
out, ESPHOME_PSTR(
"name"), this->
name);
2665#ifdef USE_ENTITY_ICON
2666 dump_field(
out, ESPHOME_PSTR(
"icon"), this->
icon);
2675 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2680 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ValveStateResponse"));
2681 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2682 dump_field(
out, ESPHOME_PSTR(
"position"), this->
position);
2685 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2690 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ValveCommandRequest"));
2691 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2693 dump_field(
out, ESPHOME_PSTR(
"position"), this->
position);
2694 dump_field(
out, ESPHOME_PSTR(
"stop"), this->
stop);
2696 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2701#ifdef USE_DATETIME_DATETIME
2703 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ListEntitiesDateTimeResponse"));
2704 dump_field(
out, ESPHOME_PSTR(
"object_id"), this->
object_id);
2705 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2706 dump_field(
out, ESPHOME_PSTR(
"name"), this->
name);
2707#ifdef USE_ENTITY_ICON
2708 dump_field(
out, ESPHOME_PSTR(
"icon"), this->
icon);
2713 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2718 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"DateTimeStateResponse"));
2719 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2723 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2728 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"DateTimeCommandRequest"));
2729 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2732 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2739 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ListEntitiesUpdateResponse"));
2740 dump_field(
out, ESPHOME_PSTR(
"object_id"), this->
object_id);
2741 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2742 dump_field(
out, ESPHOME_PSTR(
"name"), this->
name);
2743#ifdef USE_ENTITY_ICON
2744 dump_field(
out, ESPHOME_PSTR(
"icon"), this->
icon);
2750 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2755 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"UpdateStateResponse"));
2756 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2760 dump_field(
out, ESPHOME_PSTR(
"progress"), this->
progress);
2763 dump_field(
out, ESPHOME_PSTR(
"title"), this->
title);
2767 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2772 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"UpdateCommandRequest"));
2773 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2776 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2781#ifdef USE_ZWAVE_PROXY
2783 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ZWaveProxyFrame"));
2784 dump_bytes_field(
out, ESPHOME_PSTR(
"data"), this->data, this->
data_len);
2788 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ZWaveProxyRequest"));
2790 dump_bytes_field(
out, ESPHOME_PSTR(
"data"), this->data, this->
data_len);
2794 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ZWaveProxyRequestResponse"));
2802 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ListEntitiesInfraredResponse"));
2803 dump_field(
out, ESPHOME_PSTR(
"object_id"), this->
object_id);
2804 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2805 dump_field(
out, ESPHOME_PSTR(
"name"), this->
name);
2806#ifdef USE_ENTITY_ICON
2807 dump_field(
out, ESPHOME_PSTR(
"icon"), this->
icon);
2812 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2821 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"InfraredRFTransmitRawTimingsRequest"));
2823 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2825 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2829 out.append_p(ESPHOME_PSTR(
"packed buffer ["));
2831 out.
append_p(ESPHOME_PSTR(
" values, "));
2833 out.
append_p(ESPHOME_PSTR(
" bytes]\n"));
2834 dump_field(
out, ESPHOME_PSTR(
"modulation"), this->
modulation);
2838 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"InfraredRFReceiveEvent"));
2840 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2842 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2843 for (
const auto &it : *this->
timings) {
2844 dump_field(
out, ESPHOME_PSTR(
"timings"), it, 4);
2849 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"InfraredRFTransmitCompleteResponse"));
2851 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2853 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2854 dump_field(
out, ESPHOME_PSTR(
"success"), this->
success);
2858#ifdef USE_RADIO_FREQUENCY
2860 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"ListEntitiesRadioFrequencyResponse"));
2861 dump_field(
out, ESPHOME_PSTR(
"object_id"), this->
object_id);
2862 dump_field(
out, ESPHOME_PSTR(
"key"), this->
key);
2863 dump_field(
out, ESPHOME_PSTR(
"name"), this->
name);
2864#ifdef USE_ENTITY_ICON
2865 dump_field(
out, ESPHOME_PSTR(
"icon"), this->
icon);
2870 dump_field(
out, ESPHOME_PSTR(
"device_id"), this->
device_id);
2879#ifdef USE_SERIAL_PROXY
2881 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"SerialProxyConfigureRequest"));
2882 dump_field(
out, ESPHOME_PSTR(
"instance"), this->
instance);
2883 dump_field(
out, ESPHOME_PSTR(
"baudrate"), this->
baudrate);
2886 dump_field(
out, ESPHOME_PSTR(
"stop_bits"), this->
stop_bits);
2887 dump_field(
out, ESPHOME_PSTR(
"data_size"), this->
data_size);
2891 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"SerialProxyDataReceived"));
2892 dump_field(
out, ESPHOME_PSTR(
"instance"), this->
instance);
2897 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"SerialProxyWriteRequest"));
2898 dump_field(
out, ESPHOME_PSTR(
"instance"), this->
instance);
2899 dump_bytes_field(
out, ESPHOME_PSTR(
"data"), this->data, this->
data_len);
2903 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"SerialProxySetModemPinsRequest"));
2904 dump_field(
out, ESPHOME_PSTR(
"instance"), this->
instance);
2909 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"SerialProxyGetModemPinsRequest"));
2910 dump_field(
out, ESPHOME_PSTR(
"instance"), this->
instance);
2914 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"SerialProxyGetModemPinsResponse"));
2915 dump_field(
out, ESPHOME_PSTR(
"instance"), this->
instance);
2921 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"SerialProxyRequest"));
2922 dump_field(
out, ESPHOME_PSTR(
"instance"), this->
instance);
2927 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"SerialProxyRequestResponse"));
2928 dump_field(
out, ESPHOME_PSTR(
"instance"), this->
instance);
2935 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"SerialProxySetModeRequest"));
2936 dump_field(
out, ESPHOME_PSTR(
"instance"), this->
instance);
2941 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"UsbDeviceDescriptor"));
2942 dump_field(
out, ESPHOME_PSTR(
"vendor_id"), this->
vendor_id);
2943 dump_field(
out, ESPHOME_PSTR(
"product_id"), this->
product_id);
2944 dump_field(
out, ESPHOME_PSTR(
"bcd_device"), this->
bcd_device);
2951 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"SerialProxyIdentity"));
2952 dump_field(
out, ESPHOME_PSTR(
"instance"), this->
instance);
2954 dump_field(
out, ESPHOME_PSTR(
"flags"), this->
flags);
2956 dump_field(
out, ESPHOME_PSTR(
"product"), this->
product);
2964#ifdef USE_BLUETOOTH_PROXY_CONNECTIONS
2966 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BluetoothSetConnectionParamsRequest"));
2967 dump_field(
out, ESPHOME_PSTR(
"address"), this->
address);
2970 dump_field(
out, ESPHOME_PSTR(
"latency"), this->
latency);
2971 dump_field(
out, ESPHOME_PSTR(
"timeout"), this->
timeout);
2975 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"BluetoothSetConnectionParamsResponse"));
2976 dump_field(
out, ESPHOME_PSTR(
"address"), this->
address);
2977 dump_field(
out, ESPHOME_PSTR(
"error"), this->
error);
2983 MessageDumpHelper helper(
out, ESPHOME_PSTR(
"SendspinPairingTokenResponse"));
2985 dump_field(
out, ESPHOME_PSTR(
"token"), this->
token);
StringRef is a reference to a string owned by something else.
constexpr const char * c_str() const
constexpr bool empty() const
constexpr size_type size() const
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
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
bool api_outgoing_connection_supported
bool api_encryption_provisionable
StringRef project_version
uint32_t zwave_proxy_feature_flags
StringRef esphome_version
std::array< AreaInfo, ESPHOME_AREA_COUNT > areas
StringRef bluetooth_mac_address
uint32_t bluetooth_proxy_feature_flags
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
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
const char * dump_to(DumpBuffer &out) const override
const std::vector< const char * > * supported_custom_presets
const climate::ClimateSwingModeMask * supported_swing_modes
enums::TemperatureUnit temperature_unit
float visual_max_humidity
const std::vector< const char * > * supported_custom_fan_modes
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
float visual_min_temperature
float visual_current_temperature_step
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
const FixedVector< const char * > * event_types
const char * dump_to(DumpBuffer &out) const override
const std::vector< const char * > * supported_preset_modes
const char * dump_to(DumpBuffer &out) const override
int32_t supported_speed_count
bool supports_oscillation
const char * dump_to(DumpBuffer &out) const override
uint32_t receiver_frequency
const char * dump_to(DumpBuffer &out) const override
const FixedVector< const char * > * effects
const light::ColorModeMask * supported_color_modes
const char * dump_to(DumpBuffer &out) const override
const char * dump_to(DumpBuffer &out) const override
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
int32_t accuracy_decimals
StringRef unit_of_measurement
const char * dump_to(DumpBuffer &out) const override
enums::SensorStateClass state_class
const char * dump_to(DumpBuffer &out) const override
enums::ServiceArgType type
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
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::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::SerialProxyRequestType >(enums::SerialProxyRequestType value)
const char * proto_enum_to_string< enums::SupportsResponseType >(enums::SupportsResponseType value)
const char * proto_enum_to_string< enums::ClimateFanMode >(enums::ClimateFanMode value)
const char * proto_enum_to_string< enums::SerialProxyStatus >(enums::SerialProxyStatus value)
const char * proto_enum_to_string< enums::DSTRuleType >(enums::DSTRuleType value)
const char * proto_enum_to_string< enums::ClimateSwingMode >(enums::ClimateSwingMode value)
const char * proto_enum_to_string< enums::EntityCategory >(enums::EntityCategory value)
const char * proto_enum_to_string< enums::SerialProxyMode >(enums::SerialProxyMode value)
const char * proto_enum_to_string< enums::SensorStateClass >(enums::SensorStateClass value)
const char * proto_enum_to_string< enums::SerialProxyIdentityFlag >(enums::SerialProxyIdentityFlag value)
void progmem_memcpy(void *dst, const void *src, size_t len)
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".