8#ifdef HAS_PROTO_MESSAGE_DUMP
13static inline void append_quoted_string(std::string &out,
const StringRef &ref) {
16 out.append(ref.c_str());
22static inline void append_field_prefix(std::string &out,
const char *field_name,
int indent) {
23 out.append(indent,
' ').append(field_name).append(
": ");
26static inline void append_with_newline(std::string &out,
const char *str) {
32class MessageDumpHelper {
34 MessageDumpHelper(std::string &out,
const char *message_name) : out_(out) {
35 out_.append(message_name);
38 ~MessageDumpHelper() { out_.append(
" }"); }
45static void dump_field(std::string &out,
const char *field_name, int32_t value,
int indent = 2) {
47 append_field_prefix(out, field_name, indent);
48 snprintf(buffer, 64,
"%" PRId32, value);
49 append_with_newline(out, buffer);
52static void dump_field(std::string &out,
const char *field_name, uint32_t value,
int indent = 2) {
54 append_field_prefix(out, field_name, indent);
55 snprintf(buffer, 64,
"%" PRIu32, value);
56 append_with_newline(out, buffer);
59static void dump_field(std::string &out,
const char *field_name,
float value,
int indent = 2) {
61 append_field_prefix(out, field_name, indent);
62 snprintf(buffer, 64,
"%g", value);
63 append_with_newline(out, buffer);
66static void dump_field(std::string &out,
const char *field_name, uint64_t value,
int indent = 2) {
68 append_field_prefix(out, field_name, indent);
69 snprintf(buffer, 64,
"%llu", value);
70 append_with_newline(out, buffer);
73static void dump_field(std::string &out,
const char *field_name,
bool value,
int indent = 2) {
74 append_field_prefix(out, field_name, indent);
75 out.append(YESNO(value));
79static void dump_field(std::string &out,
const char *field_name,
const std::string &value,
int indent = 2) {
80 append_field_prefix(out, field_name, indent);
81 out.append(
"'").append(value).append(
"'");
85static void dump_field(std::string &out,
const char *field_name, StringRef value,
int indent = 2) {
86 append_field_prefix(out, field_name, indent);
87 append_quoted_string(out, value);
91static void dump_field(std::string &out,
const char *field_name,
const char *value,
int indent = 2) {
92 append_field_prefix(out, field_name, indent);
93 out.append(
"'").append(value).append(
"'");
97template<
typename T>
static void dump_field(std::string &out,
const char *field_name, T value,
int indent = 2) {
98 append_field_prefix(out, field_name, indent);
106 return "ENTITY_CATEGORY_NONE";
108 return "ENTITY_CATEGORY_CONFIG";
110 return "ENTITY_CATEGORY_DIAGNOSTIC";
119 return "COVER_OPERATION_IDLE";
121 return "COVER_OPERATION_IS_OPENING";
123 return "COVER_OPERATION_IS_CLOSING";
133 return "FAN_DIRECTION_FORWARD";
135 return "FAN_DIRECTION_REVERSE";
145 return "COLOR_MODE_UNKNOWN";
147 return "COLOR_MODE_ON_OFF";
149 return "COLOR_MODE_LEGACY_BRIGHTNESS";
151 return "COLOR_MODE_BRIGHTNESS";
153 return "COLOR_MODE_WHITE";
155 return "COLOR_MODE_COLOR_TEMPERATURE";
157 return "COLOR_MODE_COLD_WARM_WHITE";
159 return "COLOR_MODE_RGB";
161 return "COLOR_MODE_RGB_WHITE";
163 return "COLOR_MODE_RGB_COLOR_TEMPERATURE";
165 return "COLOR_MODE_RGB_COLD_WARM_WHITE";
175 return "STATE_CLASS_NONE";
177 return "STATE_CLASS_MEASUREMENT";
179 return "STATE_CLASS_TOTAL_INCREASING";
181 return "STATE_CLASS_TOTAL";
190 return "LOG_LEVEL_NONE";
192 return "LOG_LEVEL_ERROR";
194 return "LOG_LEVEL_WARN";
196 return "LOG_LEVEL_INFO";
198 return "LOG_LEVEL_CONFIG";
200 return "LOG_LEVEL_DEBUG";
202 return "LOG_LEVEL_VERBOSE";
204 return "LOG_LEVEL_VERY_VERBOSE";
209#ifdef USE_API_SERVICES
213 return "SERVICE_ARG_TYPE_BOOL";
215 return "SERVICE_ARG_TYPE_INT";
217 return "SERVICE_ARG_TYPE_FLOAT";
219 return "SERVICE_ARG_TYPE_STRING";
221 return "SERVICE_ARG_TYPE_BOOL_ARRAY";
223 return "SERVICE_ARG_TYPE_INT_ARRAY";
225 return "SERVICE_ARG_TYPE_FLOAT_ARRAY";
227 return "SERVICE_ARG_TYPE_STRING_ARRAY";
237 return "CLIMATE_MODE_OFF";
239 return "CLIMATE_MODE_HEAT_COOL";
241 return "CLIMATE_MODE_COOL";
243 return "CLIMATE_MODE_HEAT";
245 return "CLIMATE_MODE_FAN_ONLY";
247 return "CLIMATE_MODE_DRY";
249 return "CLIMATE_MODE_AUTO";
257 return "CLIMATE_FAN_ON";
259 return "CLIMATE_FAN_OFF";
261 return "CLIMATE_FAN_AUTO";
263 return "CLIMATE_FAN_LOW";
265 return "CLIMATE_FAN_MEDIUM";
267 return "CLIMATE_FAN_HIGH";
269 return "CLIMATE_FAN_MIDDLE";
271 return "CLIMATE_FAN_FOCUS";
273 return "CLIMATE_FAN_DIFFUSE";
275 return "CLIMATE_FAN_QUIET";
283 return "CLIMATE_SWING_OFF";
285 return "CLIMATE_SWING_BOTH";
287 return "CLIMATE_SWING_VERTICAL";
289 return "CLIMATE_SWING_HORIZONTAL";
297 return "CLIMATE_ACTION_OFF";
299 return "CLIMATE_ACTION_COOLING";
301 return "CLIMATE_ACTION_HEATING";
303 return "CLIMATE_ACTION_IDLE";
305 return "CLIMATE_ACTION_DRYING";
307 return "CLIMATE_ACTION_FAN";
315 return "CLIMATE_PRESET_NONE";
317 return "CLIMATE_PRESET_HOME";
319 return "CLIMATE_PRESET_AWAY";
321 return "CLIMATE_PRESET_BOOST";
323 return "CLIMATE_PRESET_COMFORT";
325 return "CLIMATE_PRESET_ECO";
327 return "CLIMATE_PRESET_SLEEP";
329 return "CLIMATE_PRESET_ACTIVITY";
339 return "NUMBER_MODE_AUTO";
341 return "NUMBER_MODE_BOX";
343 return "NUMBER_MODE_SLIDER";
353 return "LOCK_STATE_NONE";
355 return "LOCK_STATE_LOCKED";
357 return "LOCK_STATE_UNLOCKED";
359 return "LOCK_STATE_JAMMED";
361 return "LOCK_STATE_LOCKING";
363 return "LOCK_STATE_UNLOCKING";
371 return "LOCK_UNLOCK";
381#ifdef USE_MEDIA_PLAYER
385 return "MEDIA_PLAYER_STATE_NONE";
387 return "MEDIA_PLAYER_STATE_IDLE";
389 return "MEDIA_PLAYER_STATE_PLAYING";
391 return "MEDIA_PLAYER_STATE_PAUSED";
393 return "MEDIA_PLAYER_STATE_ANNOUNCING";
395 return "MEDIA_PLAYER_STATE_OFF";
397 return "MEDIA_PLAYER_STATE_ON";
405 return "MEDIA_PLAYER_COMMAND_PLAY";
407 return "MEDIA_PLAYER_COMMAND_PAUSE";
409 return "MEDIA_PLAYER_COMMAND_STOP";
411 return "MEDIA_PLAYER_COMMAND_MUTE";
413 return "MEDIA_PLAYER_COMMAND_UNMUTE";
415 return "MEDIA_PLAYER_COMMAND_TOGGLE";
417 return "MEDIA_PLAYER_COMMAND_VOLUME_UP";
419 return "MEDIA_PLAYER_COMMAND_VOLUME_DOWN";
421 return "MEDIA_PLAYER_COMMAND_ENQUEUE";
423 return "MEDIA_PLAYER_COMMAND_REPEAT_ONE";
425 return "MEDIA_PLAYER_COMMAND_REPEAT_OFF";
427 return "MEDIA_PLAYER_COMMAND_CLEAR_PLAYLIST";
429 return "MEDIA_PLAYER_COMMAND_TURN_ON";
431 return "MEDIA_PLAYER_COMMAND_TURN_OFF";
439 return "MEDIA_PLAYER_FORMAT_PURPOSE_DEFAULT";
441 return "MEDIA_PLAYER_FORMAT_PURPOSE_ANNOUNCEMENT";
447#ifdef USE_BLUETOOTH_PROXY
452 return "BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT";
454 return "BLUETOOTH_DEVICE_REQUEST_TYPE_DISCONNECT";
456 return "BLUETOOTH_DEVICE_REQUEST_TYPE_PAIR";
458 return "BLUETOOTH_DEVICE_REQUEST_TYPE_UNPAIR";
460 return "BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT_V3_WITH_CACHE";
462 return "BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT_V3_WITHOUT_CACHE";
464 return "BLUETOOTH_DEVICE_REQUEST_TYPE_CLEAR_CACHE";
472 return "BLUETOOTH_SCANNER_STATE_IDLE";
474 return "BLUETOOTH_SCANNER_STATE_STARTING";
476 return "BLUETOOTH_SCANNER_STATE_RUNNING";
478 return "BLUETOOTH_SCANNER_STATE_FAILED";
480 return "BLUETOOTH_SCANNER_STATE_STOPPING";
482 return "BLUETOOTH_SCANNER_STATE_STOPPED";
490 return "BLUETOOTH_SCANNER_MODE_PASSIVE";
492 return "BLUETOOTH_SCANNER_MODE_ACTIVE";
502 return "VOICE_ASSISTANT_SUBSCRIBE_NONE";
504 return "VOICE_ASSISTANT_SUBSCRIBE_API_AUDIO";
512 return "VOICE_ASSISTANT_REQUEST_NONE";
514 return "VOICE_ASSISTANT_REQUEST_USE_VAD";
516 return "VOICE_ASSISTANT_REQUEST_USE_WAKE_WORD";
521#ifdef USE_VOICE_ASSISTANT
525 return "VOICE_ASSISTANT_ERROR";
527 return "VOICE_ASSISTANT_RUN_START";
529 return "VOICE_ASSISTANT_RUN_END";
531 return "VOICE_ASSISTANT_STT_START";
533 return "VOICE_ASSISTANT_STT_END";
535 return "VOICE_ASSISTANT_INTENT_START";
537 return "VOICE_ASSISTANT_INTENT_END";
539 return "VOICE_ASSISTANT_TTS_START";
541 return "VOICE_ASSISTANT_TTS_END";
543 return "VOICE_ASSISTANT_WAKE_WORD_START";
545 return "VOICE_ASSISTANT_WAKE_WORD_END";
547 return "VOICE_ASSISTANT_STT_VAD_START";
549 return "VOICE_ASSISTANT_STT_VAD_END";
551 return "VOICE_ASSISTANT_TTS_STREAM_START";
553 return "VOICE_ASSISTANT_TTS_STREAM_END";
555 return "VOICE_ASSISTANT_INTENT_PROGRESS";
563 return "VOICE_ASSISTANT_TIMER_STARTED";
565 return "VOICE_ASSISTANT_TIMER_UPDATED";
567 return "VOICE_ASSISTANT_TIMER_CANCELLED";
569 return "VOICE_ASSISTANT_TIMER_FINISHED";
575#ifdef USE_ALARM_CONTROL_PANEL
579 return "ALARM_STATE_DISARMED";
581 return "ALARM_STATE_ARMED_HOME";
583 return "ALARM_STATE_ARMED_AWAY";
585 return "ALARM_STATE_ARMED_NIGHT";
587 return "ALARM_STATE_ARMED_VACATION";
589 return "ALARM_STATE_ARMED_CUSTOM_BYPASS";
591 return "ALARM_STATE_PENDING";
593 return "ALARM_STATE_ARMING";
595 return "ALARM_STATE_DISARMING";
597 return "ALARM_STATE_TRIGGERED";
606 return "ALARM_CONTROL_PANEL_DISARM";
608 return "ALARM_CONTROL_PANEL_ARM_AWAY";
610 return "ALARM_CONTROL_PANEL_ARM_HOME";
612 return "ALARM_CONTROL_PANEL_ARM_NIGHT";
614 return "ALARM_CONTROL_PANEL_ARM_VACATION";
616 return "ALARM_CONTROL_PANEL_ARM_CUSTOM_BYPASS";
618 return "ALARM_CONTROL_PANEL_TRIGGER";
628 return "TEXT_MODE_TEXT";
630 return "TEXT_MODE_PASSWORD";
640 return "VALVE_OPERATION_IDLE";
642 return "VALVE_OPERATION_IS_OPENING";
644 return "VALVE_OPERATION_IS_CLOSING";
654 return "UPDATE_COMMAND_NONE";
656 return "UPDATE_COMMAND_UPDATE";
658 return "UPDATE_COMMAND_CHECK";
664#ifdef USE_ZWAVE_PROXY
668 return "ZWAVE_PROXY_REQUEST_TYPE_SUBSCRIBE";
670 return "ZWAVE_PROXY_REQUEST_TYPE_UNSUBSCRIBE";
672 return "ZWAVE_PROXY_REQUEST_TYPE_HOME_ID_CHANGE";
680 MessageDumpHelper helper(out,
"HelloRequest");
681 out.append(
" client_info: ");
688 MessageDumpHelper helper(out,
"HelloResponse");
692 dump_field(out,
"name", this->
name_ref_);
694#ifdef USE_API_PASSWORD
696 MessageDumpHelper helper(out,
"AuthenticationRequest");
697 out.append(
" password: ");
702 MessageDumpHelper helper(out,
"AuthenticationResponse");
713 MessageDumpHelper helper(out,
"AreaInfo");
714 dump_field(out,
"area_id", this->
area_id);
715 dump_field(out,
"name", this->
name_ref_);
720 MessageDumpHelper helper(out,
"DeviceInfo");
721 dump_field(out,
"device_id", this->
device_id);
722 dump_field(out,
"name", this->
name_ref_);
723 dump_field(out,
"area_id", this->
area_id);
727 MessageDumpHelper helper(out,
"DeviceInfoResponse");
728#ifdef USE_API_PASSWORD
731 dump_field(out,
"name", this->
name_ref_);
739#ifdef ESPHOME_PROJECT_NAME
742#ifdef ESPHOME_PROJECT_NAME
748#ifdef USE_BLUETOOTH_PROXY
753#ifdef USE_VOICE_ASSISTANT
759#ifdef USE_BLUETOOTH_PROXY
766 for (
const auto &it : this->
devices) {
767 out.append(
" devices: ");
773 for (
const auto &it : this->
areas) {
774 out.append(
" areas: ");
780 out.append(
" area: ");
784#ifdef USE_ZWAVE_PROXY
787#ifdef USE_ZWAVE_PROXY
794#ifdef USE_BINARY_SENSOR
796 MessageDumpHelper helper(out,
"ListEntitiesBinarySensorResponse");
798 dump_field(out,
"key", this->
key);
799 dump_field(out,
"name", this->
name_ref_);
803#ifdef USE_ENTITY_ICON
804 dump_field(out,
"icon", this->
icon_ref_);
808 dump_field(out,
"device_id", this->
device_id);
812 MessageDumpHelper helper(out,
"BinarySensorStateResponse");
813 dump_field(out,
"key", this->
key);
814 dump_field(out,
"state", this->
state);
817 dump_field(out,
"device_id", this->
device_id);
823 MessageDumpHelper helper(out,
"ListEntitiesCoverResponse");
825 dump_field(out,
"key", this->
key);
826 dump_field(out,
"name", this->
name_ref_);
832#ifdef USE_ENTITY_ICON
833 dump_field(out,
"icon", this->
icon_ref_);
838 dump_field(out,
"device_id", this->
device_id);
842 MessageDumpHelper helper(out,
"CoverStateResponse");
843 dump_field(out,
"key", this->
key);
844 dump_field(out,
"position", this->
position);
845 dump_field(out,
"tilt", this->
tilt);
848 dump_field(out,
"device_id", this->
device_id);
852 MessageDumpHelper helper(out,
"CoverCommandRequest");
853 dump_field(out,
"key", this->
key);
855 dump_field(out,
"position", this->
position);
856 dump_field(out,
"has_tilt", this->
has_tilt);
857 dump_field(out,
"tilt", this->
tilt);
858 dump_field(out,
"stop", this->
stop);
860 dump_field(out,
"device_id", this->
device_id);
866 MessageDumpHelper helper(out,
"ListEntitiesFanResponse");
868 dump_field(out,
"key", this->
key);
869 dump_field(out,
"name", this->
name_ref_);
875#ifdef USE_ENTITY_ICON
876 dump_field(out,
"icon", this->
icon_ref_);
880 dump_field(out,
"supported_preset_modes", it, 4);
883 dump_field(out,
"device_id", this->
device_id);
887 MessageDumpHelper helper(out,
"FanStateResponse");
888 dump_field(out,
"key", this->
key);
889 dump_field(out,
"state", this->
state);
895 dump_field(out,
"device_id", this->
device_id);
899 MessageDumpHelper helper(out,
"FanCommandRequest");
900 dump_field(out,
"key", this->
key);
901 dump_field(out,
"has_state", this->
has_state);
902 dump_field(out,
"state", this->
state);
912 dump_field(out,
"device_id", this->
device_id);
918 MessageDumpHelper helper(out,
"ListEntitiesLightResponse");
920 dump_field(out,
"key", this->
key);
921 dump_field(out,
"name", this->
name_ref_);
923 dump_field(out,
"supported_color_modes",
static_cast<enums::ColorMode>(it), 4);
925 dump_field(out,
"min_mireds", this->
min_mireds);
926 dump_field(out,
"max_mireds", this->
max_mireds);
927 for (
const auto &it : this->
effects) {
928 dump_field(out,
"effects", it, 4);
931#ifdef USE_ENTITY_ICON
932 dump_field(out,
"icon", this->
icon_ref_);
936 dump_field(out,
"device_id", this->
device_id);
940 MessageDumpHelper helper(out,
"LightStateResponse");
941 dump_field(out,
"key", this->
key);
942 dump_field(out,
"state", this->
state);
943 dump_field(out,
"brightness", this->
brightness);
946 dump_field(out,
"red", this->
red);
947 dump_field(out,
"green", this->
green);
948 dump_field(out,
"blue", this->
blue);
949 dump_field(out,
"white", this->
white);
951 dump_field(out,
"cold_white", this->
cold_white);
952 dump_field(out,
"warm_white", this->
warm_white);
955 dump_field(out,
"device_id", this->
device_id);
959 MessageDumpHelper helper(out,
"LightCommandRequest");
960 dump_field(out,
"key", this->
key);
961 dump_field(out,
"has_state", this->
has_state);
962 dump_field(out,
"state", this->
state);
964 dump_field(out,
"brightness", this->
brightness);
969 dump_field(out,
"has_rgb", this->
has_rgb);
970 dump_field(out,
"red", this->
red);
971 dump_field(out,
"green", this->
green);
972 dump_field(out,
"blue", this->
blue);
973 dump_field(out,
"has_white", this->
has_white);
974 dump_field(out,
"white", this->
white);
978 dump_field(out,
"cold_white", this->
cold_white);
980 dump_field(out,
"warm_white", this->
warm_white);
985 dump_field(out,
"has_effect", this->
has_effect);
986 dump_field(out,
"effect", this->
effect);
988 dump_field(out,
"device_id", this->
device_id);
994 MessageDumpHelper helper(out,
"ListEntitiesSensorResponse");
996 dump_field(out,
"key", this->
key);
997 dump_field(out,
"name", this->
name_ref_);
998#ifdef USE_ENTITY_ICON
999 dump_field(out,
"icon", this->
icon_ref_);
1009 dump_field(out,
"device_id", this->
device_id);
1013 MessageDumpHelper helper(out,
"SensorStateResponse");
1014 dump_field(out,
"key", this->
key);
1015 dump_field(out,
"state", this->
state);
1018 dump_field(out,
"device_id", this->
device_id);
1024 MessageDumpHelper helper(out,
"ListEntitiesSwitchResponse");
1026 dump_field(out,
"key", this->
key);
1027 dump_field(out,
"name", this->
name_ref_);
1028#ifdef USE_ENTITY_ICON
1029 dump_field(out,
"icon", this->
icon_ref_);
1036 dump_field(out,
"device_id", this->
device_id);
1040 MessageDumpHelper helper(out,
"SwitchStateResponse");
1041 dump_field(out,
"key", this->
key);
1042 dump_field(out,
"state", this->
state);
1044 dump_field(out,
"device_id", this->
device_id);
1048 MessageDumpHelper helper(out,
"SwitchCommandRequest");
1049 dump_field(out,
"key", this->
key);
1050 dump_field(out,
"state", this->
state);
1052 dump_field(out,
"device_id", this->
device_id);
1056#ifdef USE_TEXT_SENSOR
1058 MessageDumpHelper helper(out,
"ListEntitiesTextSensorResponse");
1060 dump_field(out,
"key", this->
key);
1061 dump_field(out,
"name", this->
name_ref_);
1062#ifdef USE_ENTITY_ICON
1063 dump_field(out,
"icon", this->
icon_ref_);
1069 dump_field(out,
"device_id", this->
device_id);
1073 MessageDumpHelper helper(out,
"TextSensorStateResponse");
1074 dump_field(out,
"key", this->
key);
1078 dump_field(out,
"device_id", this->
device_id);
1083 MessageDumpHelper helper(out,
"SubscribeLogsRequest");
1085 dump_field(out,
"dump_config", this->
dump_config);
1088 MessageDumpHelper helper(out,
"SubscribeLogsResponse");
1090 out.append(
" message: ");
1096 MessageDumpHelper helper(out,
"NoiseEncryptionSetKeyRequest");
1097 out.append(
" key: ");
1098 out.append(
format_hex_pretty(
reinterpret_cast<const uint8_t *
>(this->
key.data()), this->key.size()));
1103#ifdef USE_API_HOMEASSISTANT_SERVICES
1105 out.append(
"SubscribeHomeassistantServicesRequest {}");
1108 MessageDumpHelper helper(out,
"HomeassistantServiceMap");
1109 dump_field(out,
"key", this->
key_ref_);
1110 dump_field(out,
"value", this->value);
1113 MessageDumpHelper helper(out,
"HomeassistantActionRequest");
1115 for (
const auto &it : this->
data) {
1116 out.append(
" data: ");
1121 out.append(
" data_template: ");
1125 for (
const auto &it : this->
variables) {
1126 out.append(
" variables: ");
1130 dump_field(out,
"is_event", this->
is_event);
1131#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES
1132 dump_field(out,
"call_id", this->
call_id);
1134#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1137#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1142#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES
1144 MessageDumpHelper helper(out,
"HomeassistantActionResponse");
1145 dump_field(out,
"call_id", this->
call_id);
1146 dump_field(out,
"success", this->
success);
1148#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1149 out.append(
" response_data: ");
1155#ifdef USE_API_HOMEASSISTANT_STATES
1157 out.append(
"SubscribeHomeAssistantStatesRequest {}");
1160 MessageDumpHelper helper(out,
"SubscribeHomeAssistantStateResponse");
1163 dump_field(out,
"once", this->
once);
1166 MessageDumpHelper helper(out,
"HomeAssistantStateResponse");
1167 dump_field(out,
"entity_id", this->
entity_id);
1168 dump_field(out,
"state", this->
state);
1169 dump_field(out,
"attribute", this->
attribute);
1174 MessageDumpHelper helper(out,
"GetTimeResponse");
1176 out.append(
" timezone: ");
1180#ifdef USE_API_SERVICES
1182 MessageDumpHelper helper(out,
"ListEntitiesServicesArgument");
1183 dump_field(out,
"name", this->
name_ref_);
1187 MessageDumpHelper helper(out,
"ListEntitiesServicesResponse");
1188 dump_field(out,
"name", this->
name_ref_);
1189 dump_field(out,
"key", this->
key);
1190 for (
const auto &it : this->
args) {
1191 out.append(
" args: ");
1197 MessageDumpHelper helper(out,
"ExecuteServiceArgument");
1198 dump_field(out,
"bool_", this->
bool_);
1199 dump_field(out,
"legacy_int", this->
legacy_int);
1200 dump_field(out,
"float_", this->
float_);
1201 dump_field(out,
"string_", this->
string_);
1202 dump_field(out,
"int_", this->
int_);
1204 dump_field(out,
"bool_array",
static_cast<bool>(it), 4);
1206 for (
const auto &it : this->
int_array) {
1207 dump_field(out,
"int_array", it, 4);
1210 dump_field(out,
"float_array", it, 4);
1213 dump_field(out,
"string_array", it, 4);
1217 MessageDumpHelper helper(out,
"ExecuteServiceRequest");
1218 dump_field(out,
"key", this->
key);
1219 for (
const auto &it : this->
args) {
1220 out.append(
" args: ");
1228 MessageDumpHelper helper(out,
"ListEntitiesCameraResponse");
1230 dump_field(out,
"key", this->
key);
1231 dump_field(out,
"name", this->
name_ref_);
1233#ifdef USE_ENTITY_ICON
1234 dump_field(out,
"icon", this->
icon_ref_);
1238 dump_field(out,
"device_id", this->
device_id);
1242 MessageDumpHelper helper(out,
"CameraImageResponse");
1243 dump_field(out,
"key", this->
key);
1244 out.append(
" data: ");
1247 dump_field(out,
"done", this->
done);
1249 dump_field(out,
"device_id", this->
device_id);
1253 MessageDumpHelper helper(out,
"CameraImageRequest");
1254 dump_field(out,
"single", this->
single);
1255 dump_field(out,
"stream", this->
stream);
1260 MessageDumpHelper helper(out,
"ListEntitiesClimateResponse");
1262 dump_field(out,
"key", this->
key);
1263 dump_field(out,
"name", this->
name_ref_);
1280 dump_field(out,
"supported_custom_fan_modes", it, 4);
1286 dump_field(out,
"supported_custom_presets", it, 4);
1289#ifdef USE_ENTITY_ICON
1290 dump_field(out,
"icon", this->
icon_ref_);
1299 dump_field(out,
"device_id", this->
device_id);
1304 MessageDumpHelper helper(out,
"ClimateStateResponse");
1305 dump_field(out,
"key", this->
key);
1320 dump_field(out,
"device_id", this->
device_id);
1324 MessageDumpHelper helper(out,
"ClimateCommandRequest");
1325 dump_field(out,
"key", this->
key);
1326 dump_field(out,
"has_mode", this->
has_mode);
1340 dump_field(out,
"has_preset", this->
has_preset);
1347 dump_field(out,
"device_id", this->
device_id);
1353 MessageDumpHelper helper(out,
"ListEntitiesNumberResponse");
1355 dump_field(out,
"key", this->
key);
1356 dump_field(out,
"name", this->
name_ref_);
1357#ifdef USE_ENTITY_ICON
1358 dump_field(out,
"icon", this->
icon_ref_);
1360 dump_field(out,
"min_value", this->
min_value);
1361 dump_field(out,
"max_value", this->
max_value);
1362 dump_field(out,
"step", this->
step);
1369 dump_field(out,
"device_id", this->
device_id);
1373 MessageDumpHelper helper(out,
"NumberStateResponse");
1374 dump_field(out,
"key", this->
key);
1375 dump_field(out,
"state", this->
state);
1378 dump_field(out,
"device_id", this->
device_id);
1382 MessageDumpHelper helper(out,
"NumberCommandRequest");
1383 dump_field(out,
"key", this->
key);
1384 dump_field(out,
"state", this->
state);
1386 dump_field(out,
"device_id", this->
device_id);
1392 MessageDumpHelper helper(out,
"ListEntitiesSelectResponse");
1394 dump_field(out,
"key", this->
key);
1395 dump_field(out,
"name", this->
name_ref_);
1396#ifdef USE_ENTITY_ICON
1397 dump_field(out,
"icon", this->
icon_ref_);
1399 for (
const auto &it : *this->
options) {
1400 dump_field(out,
"options", it, 4);
1405 dump_field(out,
"device_id", this->
device_id);
1409 MessageDumpHelper helper(out,
"SelectStateResponse");
1410 dump_field(out,
"key", this->
key);
1414 dump_field(out,
"device_id", this->
device_id);
1418 MessageDumpHelper helper(out,
"SelectCommandRequest");
1419 dump_field(out,
"key", this->
key);
1420 dump_field(out,
"state", this->
state);
1422 dump_field(out,
"device_id", this->
device_id);
1428 MessageDumpHelper helper(out,
"ListEntitiesSirenResponse");
1430 dump_field(out,
"key", this->
key);
1431 dump_field(out,
"name", this->
name_ref_);
1432#ifdef USE_ENTITY_ICON
1433 dump_field(out,
"icon", this->
icon_ref_);
1436 for (
const auto &it : this->
tones) {
1437 dump_field(out,
"tones", it, 4);
1443 dump_field(out,
"device_id", this->
device_id);
1447 MessageDumpHelper helper(out,
"SirenStateResponse");
1448 dump_field(out,
"key", this->
key);
1449 dump_field(out,
"state", this->
state);
1451 dump_field(out,
"device_id", this->
device_id);
1455 MessageDumpHelper helper(out,
"SirenCommandRequest");
1456 dump_field(out,
"key", this->
key);
1457 dump_field(out,
"has_state", this->
has_state);
1458 dump_field(out,
"state", this->
state);
1459 dump_field(out,
"has_tone", this->
has_tone);
1460 dump_field(out,
"tone", this->
tone);
1462 dump_field(out,
"duration", this->
duration);
1463 dump_field(out,
"has_volume", this->
has_volume);
1464 dump_field(out,
"volume", this->
volume);
1466 dump_field(out,
"device_id", this->
device_id);
1472 MessageDumpHelper helper(out,
"ListEntitiesLockResponse");
1474 dump_field(out,
"key", this->
key);
1475 dump_field(out,
"name", this->
name_ref_);
1476#ifdef USE_ENTITY_ICON
1477 dump_field(out,
"icon", this->
icon_ref_);
1486 dump_field(out,
"device_id", this->
device_id);
1490 MessageDumpHelper helper(out,
"LockStateResponse");
1491 dump_field(out,
"key", this->
key);
1494 dump_field(out,
"device_id", this->
device_id);
1498 MessageDumpHelper helper(out,
"LockCommandRequest");
1499 dump_field(out,
"key", this->
key);
1501 dump_field(out,
"has_code", this->
has_code);
1502 dump_field(out,
"code", this->
code);
1504 dump_field(out,
"device_id", this->
device_id);
1510 MessageDumpHelper helper(out,
"ListEntitiesButtonResponse");
1512 dump_field(out,
"key", this->
key);
1513 dump_field(out,
"name", this->
name_ref_);
1514#ifdef USE_ENTITY_ICON
1515 dump_field(out,
"icon", this->
icon_ref_);
1521 dump_field(out,
"device_id", this->
device_id);
1525 MessageDumpHelper helper(out,
"ButtonCommandRequest");
1526 dump_field(out,
"key", this->
key);
1528 dump_field(out,
"device_id", this->
device_id);
1532#ifdef USE_MEDIA_PLAYER
1534 MessageDumpHelper helper(out,
"MediaPlayerSupportedFormat");
1536 dump_field(out,
"sample_rate", this->
sample_rate);
1542 MessageDumpHelper helper(out,
"ListEntitiesMediaPlayerResponse");
1544 dump_field(out,
"key", this->
key);
1545 dump_field(out,
"name", this->
name_ref_);
1546#ifdef USE_ENTITY_ICON
1547 dump_field(out,
"icon", this->
icon_ref_);
1553 out.append(
" supported_formats: ");
1558 dump_field(out,
"device_id", this->
device_id);
1563 MessageDumpHelper helper(out,
"MediaPlayerStateResponse");
1564 dump_field(out,
"key", this->
key);
1566 dump_field(out,
"volume", this->
volume);
1567 dump_field(out,
"muted", this->
muted);
1569 dump_field(out,
"device_id", this->
device_id);
1573 MessageDumpHelper helper(out,
"MediaPlayerCommandRequest");
1574 dump_field(out,
"key", this->
key);
1575 dump_field(out,
"has_command", this->
has_command);
1577 dump_field(out,
"has_volume", this->
has_volume);
1578 dump_field(out,
"volume", this->
volume);
1580 dump_field(out,
"media_url", this->
media_url);
1584 dump_field(out,
"device_id", this->
device_id);
1588#ifdef USE_BLUETOOTH_PROXY
1590 MessageDumpHelper helper(out,
"SubscribeBluetoothLEAdvertisementsRequest");
1591 dump_field(out,
"flags", this->
flags);
1594 MessageDumpHelper helper(out,
"BluetoothLERawAdvertisement");
1595 dump_field(out,
"address", this->
address);
1596 dump_field(out,
"rssi", this->
rssi);
1598 out.append(
" data: ");
1603 MessageDumpHelper helper(out,
"BluetoothLERawAdvertisementsResponse");
1605 out.append(
" advertisements: ");
1611 MessageDumpHelper helper(out,
"BluetoothDeviceRequest");
1612 dump_field(out,
"address", this->
address);
1618 MessageDumpHelper helper(out,
"BluetoothDeviceConnectionResponse");
1619 dump_field(out,
"address", this->
address);
1620 dump_field(out,
"connected", this->
connected);
1621 dump_field(out,
"mtu", this->
mtu);
1622 dump_field(out,
"error", this->
error);
1626 MessageDumpHelper helper(out,
"BluetoothGATTDescriptor");
1627 for (
const auto &it : this->
uuid) {
1628 dump_field(out,
"uuid", it, 4);
1630 dump_field(out,
"handle", this->
handle);
1631 dump_field(out,
"short_uuid", this->
short_uuid);
1634 MessageDumpHelper helper(out,
"BluetoothGATTCharacteristic");
1635 for (
const auto &it : this->
uuid) {
1636 dump_field(out,
"uuid", it, 4);
1638 dump_field(out,
"handle", this->
handle);
1639 dump_field(out,
"properties", this->
properties);
1641 out.append(
" descriptors: ");
1645 dump_field(out,
"short_uuid", this->
short_uuid);
1648 MessageDumpHelper helper(out,
"BluetoothGATTService");
1649 for (
const auto &it : this->
uuid) {
1650 dump_field(out,
"uuid", it, 4);
1652 dump_field(out,
"handle", this->
handle);
1654 out.append(
" characteristics: ");
1658 dump_field(out,
"short_uuid", this->
short_uuid);
1661 MessageDumpHelper helper(out,
"BluetoothGATTGetServicesResponse");
1662 dump_field(out,
"address", this->
address);
1663 for (
const auto &it : this->
services) {
1664 out.append(
" services: ");
1670 MessageDumpHelper helper(out,
"BluetoothGATTGetServicesDoneResponse");
1671 dump_field(out,
"address", this->
address);
1674 MessageDumpHelper helper(out,
"BluetoothGATTReadRequest");
1675 dump_field(out,
"address", this->
address);
1676 dump_field(out,
"handle", this->
handle);
1679 MessageDumpHelper helper(out,
"BluetoothGATTReadResponse");
1680 dump_field(out,
"address", this->
address);
1681 dump_field(out,
"handle", this->
handle);
1682 out.append(
" data: ");
1687 MessageDumpHelper helper(out,
"BluetoothGATTWriteRequest");
1688 dump_field(out,
"address", this->
address);
1689 dump_field(out,
"handle", this->
handle);
1690 dump_field(out,
"response", this->
response);
1691 out.append(
" data: ");
1696 MessageDumpHelper helper(out,
"BluetoothGATTReadDescriptorRequest");
1697 dump_field(out,
"address", this->
address);
1698 dump_field(out,
"handle", this->
handle);
1701 MessageDumpHelper helper(out,
"BluetoothGATTWriteDescriptorRequest");
1702 dump_field(out,
"address", this->
address);
1703 dump_field(out,
"handle", this->
handle);
1704 out.append(
" data: ");
1709 MessageDumpHelper helper(out,
"BluetoothGATTNotifyRequest");
1710 dump_field(out,
"address", this->
address);
1711 dump_field(out,
"handle", this->
handle);
1712 dump_field(out,
"enable", this->
enable);
1715 MessageDumpHelper helper(out,
"BluetoothGATTNotifyDataResponse");
1716 dump_field(out,
"address", this->
address);
1717 dump_field(out,
"handle", this->
handle);
1718 out.append(
" data: ");
1723 out.append(
"SubscribeBluetoothConnectionsFreeRequest {}");
1726 MessageDumpHelper helper(out,
"BluetoothConnectionsFreeResponse");
1727 dump_field(out,
"free", this->
free);
1728 dump_field(out,
"limit", this->
limit);
1729 for (
const auto &it : this->
allocated) {
1730 dump_field(out,
"allocated", it, 4);
1734 MessageDumpHelper helper(out,
"BluetoothGATTErrorResponse");
1735 dump_field(out,
"address", this->
address);
1736 dump_field(out,
"handle", this->
handle);
1737 dump_field(out,
"error", this->
error);
1740 MessageDumpHelper helper(out,
"BluetoothGATTWriteResponse");
1741 dump_field(out,
"address", this->
address);
1742 dump_field(out,
"handle", this->
handle);
1745 MessageDumpHelper helper(out,
"BluetoothGATTNotifyResponse");
1746 dump_field(out,
"address", this->
address);
1747 dump_field(out,
"handle", this->
handle);
1750 MessageDumpHelper helper(out,
"BluetoothDevicePairingResponse");
1751 dump_field(out,
"address", this->
address);
1752 dump_field(out,
"paired", this->
paired);
1753 dump_field(out,
"error", this->
error);
1756 MessageDumpHelper helper(out,
"BluetoothDeviceUnpairingResponse");
1757 dump_field(out,
"address", this->
address);
1758 dump_field(out,
"success", this->
success);
1759 dump_field(out,
"error", this->
error);
1762 out.append(
"UnsubscribeBluetoothLEAdvertisementsRequest {}");
1765 MessageDumpHelper helper(out,
"BluetoothDeviceClearCacheResponse");
1766 dump_field(out,
"address", this->
address);
1767 dump_field(out,
"success", this->
success);
1768 dump_field(out,
"error", this->
error);
1771 MessageDumpHelper helper(out,
"BluetoothScannerStateResponse");
1777 MessageDumpHelper helper(out,
"BluetoothScannerSetModeRequest");
1781#ifdef USE_VOICE_ASSISTANT
1783 MessageDumpHelper helper(out,
"SubscribeVoiceAssistantRequest");
1784 dump_field(out,
"subscribe", this->
subscribe);
1785 dump_field(out,
"flags", this->
flags);
1788 MessageDumpHelper helper(out,
"VoiceAssistantAudioSettings");
1790 dump_field(out,
"auto_gain", this->
auto_gain);
1794 MessageDumpHelper helper(out,
"VoiceAssistantRequest");
1795 dump_field(out,
"start", this->
start);
1797 dump_field(out,
"flags", this->
flags);
1798 out.append(
" audio_settings: ");
1804 MessageDumpHelper helper(out,
"VoiceAssistantResponse");
1805 dump_field(out,
"port", this->
port);
1806 dump_field(out,
"error", this->
error);
1809 MessageDumpHelper helper(out,
"VoiceAssistantEventData");
1810 dump_field(out,
"name", this->
name);
1811 dump_field(out,
"value", this->value);
1814 MessageDumpHelper helper(out,
"VoiceAssistantEventResponse");
1816 for (
const auto &it : this->
data) {
1817 out.append(
" data: ");
1823 MessageDumpHelper helper(out,
"VoiceAssistantAudio");
1824 out.append(
" data: ");
1828 out.append(
format_hex_pretty(
reinterpret_cast<const uint8_t *
>(this->
data.data()), this->data.size()));
1831 dump_field(out,
"end", this->
end);
1834 MessageDumpHelper helper(out,
"VoiceAssistantTimerEventResponse");
1836 dump_field(out,
"timer_id", this->
timer_id);
1837 dump_field(out,
"name", this->
name);
1840 dump_field(out,
"is_active", this->
is_active);
1843 MessageDumpHelper helper(out,
"VoiceAssistantAnnounceRequest");
1844 dump_field(out,
"media_id", this->
media_id);
1845 dump_field(out,
"text", this->
text);
1851 MessageDumpHelper helper(out,
"VoiceAssistantWakeWord");
1852 dump_field(out,
"id", this->
id_ref_);
1855 dump_field(out,
"trained_languages", it, 4);
1859 MessageDumpHelper helper(out,
"VoiceAssistantExternalWakeWord");
1860 dump_field(out,
"id", this->
id);
1861 dump_field(out,
"wake_word", this->
wake_word);
1863 dump_field(out,
"trained_languages", it, 4);
1865 dump_field(out,
"model_type", this->
model_type);
1866 dump_field(out,
"model_size", this->
model_size);
1867 dump_field(out,
"model_hash", this->
model_hash);
1868 dump_field(out,
"url", this->
url);
1871 MessageDumpHelper helper(out,
"VoiceAssistantConfigurationRequest");
1873 out.append(
" external_wake_words: ");
1879 MessageDumpHelper helper(out,
"VoiceAssistantConfigurationResponse");
1881 out.append(
" available_wake_words: ");
1886 dump_field(out,
"active_wake_words", it, 4);
1891 MessageDumpHelper helper(out,
"VoiceAssistantSetConfiguration");
1893 dump_field(out,
"active_wake_words", it, 4);
1897#ifdef USE_ALARM_CONTROL_PANEL
1899 MessageDumpHelper helper(out,
"ListEntitiesAlarmControlPanelResponse");
1901 dump_field(out,
"key", this->
key);
1902 dump_field(out,
"name", this->
name_ref_);
1903#ifdef USE_ENTITY_ICON
1904 dump_field(out,
"icon", this->
icon_ref_);
1912 dump_field(out,
"device_id", this->
device_id);
1916 MessageDumpHelper helper(out,
"AlarmControlPanelStateResponse");
1917 dump_field(out,
"key", this->
key);
1920 dump_field(out,
"device_id", this->
device_id);
1924 MessageDumpHelper helper(out,
"AlarmControlPanelCommandRequest");
1925 dump_field(out,
"key", this->
key);
1927 dump_field(out,
"code", this->
code);
1929 dump_field(out,
"device_id", this->
device_id);
1935 MessageDumpHelper helper(out,
"ListEntitiesTextResponse");
1937 dump_field(out,
"key", this->
key);
1938 dump_field(out,
"name", this->
name_ref_);
1939#ifdef USE_ENTITY_ICON
1940 dump_field(out,
"icon", this->
icon_ref_);
1944 dump_field(out,
"min_length", this->
min_length);
1945 dump_field(out,
"max_length", this->
max_length);
1949 dump_field(out,
"device_id", this->
device_id);
1953 MessageDumpHelper helper(out,
"TextStateResponse");
1954 dump_field(out,
"key", this->
key);
1958 dump_field(out,
"device_id", this->
device_id);
1962 MessageDumpHelper helper(out,
"TextCommandRequest");
1963 dump_field(out,
"key", this->
key);
1964 dump_field(out,
"state", this->
state);
1966 dump_field(out,
"device_id", this->
device_id);
1970#ifdef USE_DATETIME_DATE
1972 MessageDumpHelper helper(out,
"ListEntitiesDateResponse");
1974 dump_field(out,
"key", this->
key);
1975 dump_field(out,
"name", this->
name_ref_);
1976#ifdef USE_ENTITY_ICON
1977 dump_field(out,
"icon", this->
icon_ref_);
1982 dump_field(out,
"device_id", this->
device_id);
1986 MessageDumpHelper helper(out,
"DateStateResponse");
1987 dump_field(out,
"key", this->
key);
1989 dump_field(out,
"year", this->
year);
1990 dump_field(out,
"month", this->
month);
1991 dump_field(out,
"day", this->
day);
1993 dump_field(out,
"device_id", this->
device_id);
1997 MessageDumpHelper helper(out,
"DateCommandRequest");
1998 dump_field(out,
"key", this->
key);
1999 dump_field(out,
"year", this->
year);
2000 dump_field(out,
"month", this->
month);
2001 dump_field(out,
"day", this->
day);
2003 dump_field(out,
"device_id", this->
device_id);
2007#ifdef USE_DATETIME_TIME
2009 MessageDumpHelper helper(out,
"ListEntitiesTimeResponse");
2011 dump_field(out,
"key", this->
key);
2012 dump_field(out,
"name", this->
name_ref_);
2013#ifdef USE_ENTITY_ICON
2014 dump_field(out,
"icon", this->
icon_ref_);
2019 dump_field(out,
"device_id", this->
device_id);
2023 MessageDumpHelper helper(out,
"TimeStateResponse");
2024 dump_field(out,
"key", this->
key);
2026 dump_field(out,
"hour", this->
hour);
2027 dump_field(out,
"minute", this->
minute);
2028 dump_field(out,
"second", this->
second);
2030 dump_field(out,
"device_id", this->
device_id);
2034 MessageDumpHelper helper(out,
"TimeCommandRequest");
2035 dump_field(out,
"key", this->
key);
2036 dump_field(out,
"hour", this->
hour);
2037 dump_field(out,
"minute", this->
minute);
2038 dump_field(out,
"second", this->
second);
2040 dump_field(out,
"device_id", this->
device_id);
2046 MessageDumpHelper helper(out,
"ListEntitiesEventResponse");
2048 dump_field(out,
"key", this->
key);
2049 dump_field(out,
"name", this->
name_ref_);
2050#ifdef USE_ENTITY_ICON
2051 dump_field(out,
"icon", this->
icon_ref_);
2057 dump_field(out,
"event_types", it, 4);
2060 dump_field(out,
"device_id", this->
device_id);
2064 MessageDumpHelper helper(out,
"EventResponse");
2065 dump_field(out,
"key", this->
key);
2068 dump_field(out,
"device_id", this->
device_id);
2074 MessageDumpHelper helper(out,
"ListEntitiesValveResponse");
2076 dump_field(out,
"key", this->
key);
2077 dump_field(out,
"name", this->
name_ref_);
2078#ifdef USE_ENTITY_ICON
2079 dump_field(out,
"icon", this->
icon_ref_);
2088 dump_field(out,
"device_id", this->
device_id);
2092 MessageDumpHelper helper(out,
"ValveStateResponse");
2093 dump_field(out,
"key", this->
key);
2094 dump_field(out,
"position", this->
position);
2097 dump_field(out,
"device_id", this->
device_id);
2101 MessageDumpHelper helper(out,
"ValveCommandRequest");
2102 dump_field(out,
"key", this->
key);
2104 dump_field(out,
"position", this->
position);
2105 dump_field(out,
"stop", this->
stop);
2107 dump_field(out,
"device_id", this->
device_id);
2111#ifdef USE_DATETIME_DATETIME
2113 MessageDumpHelper helper(out,
"ListEntitiesDateTimeResponse");
2115 dump_field(out,
"key", this->
key);
2116 dump_field(out,
"name", this->
name_ref_);
2117#ifdef USE_ENTITY_ICON
2118 dump_field(out,
"icon", this->
icon_ref_);
2123 dump_field(out,
"device_id", this->
device_id);
2127 MessageDumpHelper helper(out,
"DateTimeStateResponse");
2128 dump_field(out,
"key", this->
key);
2132 dump_field(out,
"device_id", this->
device_id);
2136 MessageDumpHelper helper(out,
"DateTimeCommandRequest");
2137 dump_field(out,
"key", this->
key);
2140 dump_field(out,
"device_id", this->
device_id);
2146 MessageDumpHelper helper(out,
"ListEntitiesUpdateResponse");
2148 dump_field(out,
"key", this->
key);
2149 dump_field(out,
"name", this->
name_ref_);
2150#ifdef USE_ENTITY_ICON
2151 dump_field(out,
"icon", this->
icon_ref_);
2157 dump_field(out,
"device_id", this->
device_id);
2161 MessageDumpHelper helper(out,
"UpdateStateResponse");
2162 dump_field(out,
"key", this->
key);
2164 dump_field(out,
"in_progress", this->
in_progress);
2166 dump_field(out,
"progress", this->
progress);
2173 dump_field(out,
"device_id", this->
device_id);
2177 MessageDumpHelper helper(out,
"UpdateCommandRequest");
2178 dump_field(out,
"key", this->
key);
2181 dump_field(out,
"device_id", this->
device_id);
2185#ifdef USE_ZWAVE_PROXY
2187 MessageDumpHelper helper(out,
"ZWaveProxyFrame");
2188 out.append(
" data: ");
2193 MessageDumpHelper helper(out,
"ZWaveProxyRequest");
2195 out.append(
" data: ");
void dump_to(std::string &out) const override
enums::AlarmControlPanelStateCommand command
enums::AlarmControlPanelState state
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
std::array< uint64_t, BLUETOOTH_PROXY_MAX_CONNECTIONS > allocated
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
enums::BluetoothDeviceRequestType request_type
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
FixedVector< BluetoothGATTDescriptor > descriptors
std::array< uint64_t, 2 > uuid
void dump_to(std::string &out) const override
std::array< uint64_t, 2 > uuid
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
std::vector< BluetoothGATTService > services
void dump_to(std::string &out) const override
const uint8_t * data_ptr_
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
const uint8_t * data_ptr_
FixedVector< BluetoothGATTCharacteristic > characteristics
void dump_to(std::string &out) const override
std::array< uint64_t, 2 > uuid
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
std::array< BluetoothLERawAdvertisement, BLUETOOTH_PROXY_ADVERTISEMENT_BATCH_SIZE > advertisements
void dump_to(std::string &out) const override
uint16_t advertisements_len
enums::BluetoothScannerMode mode
void dump_to(std::string &out) const override
enums::BluetoothScannerMode mode
void dump_to(std::string &out) const override
enums::BluetoothScannerState state
enums::BluetoothScannerMode configured_mode
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
const uint8_t * data_ptr_
bool has_target_temperature_high
float target_temperature_low
bool has_target_temperature_low
float target_temperature_high
enums::ClimateSwingMode swing_mode
enums::ClimateFanMode fan_mode
bool has_target_temperature
std::string custom_fan_mode
enums::ClimatePreset preset
std::string custom_preset
void dump_to(std::string &out) const override
enums::ClimateFanMode fan_mode
void dump_to(std::string &out) const override
float target_temperature_low
enums::ClimateSwingMode swing_mode
StringRef custom_preset_ref_
enums::ClimateAction action
StringRef custom_fan_mode_ref_
enums::ClimatePreset preset
float current_temperature
float target_temperature_high
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
enums::CoverOperation current_operation
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
StringRef project_name_ref_
uint32_t zwave_proxy_feature_flags
StringRef manufacturer_ref_
StringRef suggested_area_ref_
StringRef compilation_time_ref_
std::array< AreaInfo, ESPHOME_AREA_COUNT > areas
uint32_t bluetooth_proxy_feature_flags
StringRef esphome_version_ref_
StringRef mac_address_ref_
uint32_t voice_assistant_feature_flags
bool api_encryption_supported
std::array< DeviceInfo, ESPHOME_DEVICE_COUNT > devices
StringRef friendly_name_ref_
StringRef bluetooth_mac_address_ref_
StringRef project_version_ref_
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
StringRef event_type_ref_
void dump_to(std::string &out) const override
FixedVector< bool > bool_array
FixedVector< float > float_array
FixedVector< std::string > string_array
void dump_to(std::string &out) const override
FixedVector< int32_t > int_array
FixedVector< ExecuteServiceArgument > args
void dump_to(std::string &out) const override
enums::FanDirection direction
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
enums::FanDirection direction
StringRef preset_mode_ref_
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
const uint8_t * client_info
uint32_t api_version_major
uint32_t api_version_minor
StringRef server_info_ref_
uint32_t api_version_minor
void dump_to(std::string &out) const override
uint32_t api_version_major
void dump_to(std::string &out) const override
FixedVector< HomeassistantServiceMap > variables
FixedVector< HomeassistantServiceMap > data
std::string response_template
FixedVector< HomeassistantServiceMap > data_template
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
const uint8_t * response_data
std::string error_message
uint16_t response_data_len
void dump_to(std::string &out) const override
enums::EntityCategory entity_category
bool has_color_temperature
enums::ColorMode color_mode
bool has_transition_length
void dump_to(std::string &out) const override
uint32_t transition_length
bool has_color_brightness
void dump_to(std::string &out) const override
enums::ColorMode color_mode
bool requires_code_to_arm
void dump_to(std::string &out) const override
uint32_t supported_features
void dump_to(std::string &out) const override
bool is_status_binary_sensor
StringRef device_class_ref_
void dump_to(std::string &out) const override
const std::vector< const char * > * supported_custom_presets
const climate::ClimateSwingModeMask * supported_swing_modes
void dump_to(std::string &out) const override
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 climate::ClimateModeMask * supported_modes
float visual_min_temperature
float visual_current_temperature_step
void dump_to(std::string &out) const override
StringRef device_class_ref_
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
StringRef device_class_ref_
const FixedVector< const char * > * event_types
const std::vector< const char * > * supported_preset_modes
void dump_to(std::string &out) const override
int32_t supported_speed_count
bool supports_oscillation
void dump_to(std::string &out) const override
const light::ColorModeMask * supported_color_modes
std::vector< std::string > effects
StringRef code_format_ref_
void dump_to(std::string &out) const override
StringRef unit_of_measurement_ref_
StringRef device_class_ref_
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
const FixedVector< const char * > * options
StringRef unit_of_measurement_ref_
StringRef device_class_ref_
int32_t accuracy_decimals
void dump_to(std::string &out) const override
enums::SensorStateClass state_class
void dump_to(std::string &out) const override
enums::ServiceArgType type
void dump_to(std::string &out) const override
FixedVector< ListEntitiesServicesArgument > args
void dump_to(std::string &out) const override
std::vector< std::string > tones
StringRef device_class_ref_
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
StringRef device_class_ref_
void dump_to(std::string &out) const override
StringRef device_class_ref_
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
StringRef device_class_ref_
void dump_to(std::string &out) const override
enums::LockCommand command
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
const uint8_t * message_ptr_
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
enums::UpdateCommand command
void dump_to(std::string &out) const override
StringRef current_version_ref_
StringRef latest_version_ref_
StringRef release_url_ref_
StringRef release_summary_ref_
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
enums::ValveOperation current_operation
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
std::string preannounce_media_id
const uint8_t * data_ptr_
void dump_to(std::string &out) const override
uint32_t noise_suppression_level
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
std::vector< VoiceAssistantExternalWakeWord > external_wake_words
std::vector< VoiceAssistantWakeWord > available_wake_words
void dump_to(std::string &out) const override
uint32_t max_active_wake_words
const std::vector< std::string > * active_wake_words
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
enums::VoiceAssistantEvent event_type
std::vector< VoiceAssistantEventData > data
void dump_to(std::string &out) const override
std::vector< std::string > trained_languages
StringRef wake_word_phrase_ref_
VoiceAssistantAudioSettings audio_settings
StringRef conversation_id_ref_
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
std::vector< std::string > active_wake_words
void dump_to(std::string &out) const override
enums::VoiceAssistantTimerEvent event_type
void dump_to(std::string &out) const override
std::vector< std::string > trained_languages
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
enums::ZWaveProxyRequestType type
@ 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
@ VALVE_OPERATION_IS_OPENING
@ VALVE_OPERATION_IS_CLOSING
VoiceAssistantRequestFlag
@ VOICE_ASSISTANT_REQUEST_USE_WAKE_WORD
@ VOICE_ASSISTANT_REQUEST_NONE
@ VOICE_ASSISTANT_REQUEST_USE_VAD
@ MEDIA_PLAYER_FORMAT_PURPOSE_ANNOUNCEMENT
@ MEDIA_PLAYER_FORMAT_PURPOSE_DEFAULT
@ COLOR_MODE_LEGACY_BRIGHTNESS
@ COLOR_MODE_RGB_COLOR_TEMPERATURE
@ COLOR_MODE_COLD_WARM_WHITE
@ COLOR_MODE_COLOR_TEMPERATURE
@ COLOR_MODE_RGB_COLD_WARM_WHITE
@ 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
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
@ 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
const char * proto_enum_to_string< enums::AlarmControlPanelState >(enums::AlarmControlPanelState value)
const char * proto_enum_to_string< enums::VoiceAssistantEvent >(enums::VoiceAssistantEvent value)
const char * proto_enum_to_string< enums::MediaPlayerState >(enums::MediaPlayerState value)
const char * proto_enum_to_string(T value)
const char * proto_enum_to_string< enums::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::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::FanDirection >(enums::FanDirection value)
const char * proto_enum_to_string< enums::CoverOperation >(enums::CoverOperation value)
const char * proto_enum_to_string< enums::VoiceAssistantRequestFlag >(enums::VoiceAssistantRequestFlag value)
const char * proto_enum_to_string< enums::BluetoothDeviceRequestType >(enums::BluetoothDeviceRequestType value)
const char * proto_enum_to_string< enums::VoiceAssistantTimerEvent >(enums::VoiceAssistantTimerEvent value)
const char * proto_enum_to_string< enums::AlarmControlPanelStateCommand >(enums::AlarmControlPanelStateCommand value)
const char * proto_enum_to_string< enums::ClimatePreset >(enums::ClimatePreset value)
const char * proto_enum_to_string< enums::MediaPlayerFormatPurpose >(enums::MediaPlayerFormatPurpose value)
const char * proto_enum_to_string< enums::ClimateMode >(enums::ClimateMode value)
const char * proto_enum_to_string< enums::MediaPlayerCommand >(enums::MediaPlayerCommand value)
const char * proto_enum_to_string< enums::LockCommand >(enums::LockCommand value)
const char * proto_enum_to_string< enums::ZWaveProxyRequestType >(enums::ZWaveProxyRequestType value)
const char * proto_enum_to_string< enums::ValveOperation >(enums::ValveOperation value)
const char * proto_enum_to_string< enums::UpdateCommand >(enums::UpdateCommand value)
const char * proto_enum_to_string< enums::ClimateFanMode >(enums::ClimateFanMode value)
const char * proto_enum_to_string< enums::ClimateSwingMode >(enums::ClimateSwingMode value)
const char * proto_enum_to_string< enums::EntityCategory >(enums::EntityCategory value)
const char * proto_enum_to_string< enums::SensorStateClass >(enums::SensorStateClass value)
std::string format_hex_pretty(const uint8_t *data, size_t length, char separator, bool show_length)
Format a byte array in pretty-printed, human-readable hex format.