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,
"%" PRIu64, 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";
183 return "STATE_CLASS_MEASUREMENT_ANGLE";
192 return "LOG_LEVEL_NONE";
194 return "LOG_LEVEL_ERROR";
196 return "LOG_LEVEL_WARN";
198 return "LOG_LEVEL_INFO";
200 return "LOG_LEVEL_CONFIG";
202 return "LOG_LEVEL_DEBUG";
204 return "LOG_LEVEL_VERBOSE";
206 return "LOG_LEVEL_VERY_VERBOSE";
211#ifdef USE_API_USER_DEFINED_ACTIONS
215 return "SERVICE_ARG_TYPE_BOOL";
217 return "SERVICE_ARG_TYPE_INT";
219 return "SERVICE_ARG_TYPE_FLOAT";
221 return "SERVICE_ARG_TYPE_STRING";
223 return "SERVICE_ARG_TYPE_BOOL_ARRAY";
225 return "SERVICE_ARG_TYPE_INT_ARRAY";
227 return "SERVICE_ARG_TYPE_FLOAT_ARRAY";
229 return "SERVICE_ARG_TYPE_STRING_ARRAY";
237 return "SUPPORTS_RESPONSE_NONE";
239 return "SUPPORTS_RESPONSE_OPTIONAL";
241 return "SUPPORTS_RESPONSE_ONLY";
243 return "SUPPORTS_RESPONSE_STATUS";
253 return "CLIMATE_MODE_OFF";
255 return "CLIMATE_MODE_HEAT_COOL";
257 return "CLIMATE_MODE_COOL";
259 return "CLIMATE_MODE_HEAT";
261 return "CLIMATE_MODE_FAN_ONLY";
263 return "CLIMATE_MODE_DRY";
265 return "CLIMATE_MODE_AUTO";
273 return "CLIMATE_FAN_ON";
275 return "CLIMATE_FAN_OFF";
277 return "CLIMATE_FAN_AUTO";
279 return "CLIMATE_FAN_LOW";
281 return "CLIMATE_FAN_MEDIUM";
283 return "CLIMATE_FAN_HIGH";
285 return "CLIMATE_FAN_MIDDLE";
287 return "CLIMATE_FAN_FOCUS";
289 return "CLIMATE_FAN_DIFFUSE";
291 return "CLIMATE_FAN_QUIET";
299 return "CLIMATE_SWING_OFF";
301 return "CLIMATE_SWING_BOTH";
303 return "CLIMATE_SWING_VERTICAL";
305 return "CLIMATE_SWING_HORIZONTAL";
313 return "CLIMATE_ACTION_OFF";
315 return "CLIMATE_ACTION_COOLING";
317 return "CLIMATE_ACTION_HEATING";
319 return "CLIMATE_ACTION_IDLE";
321 return "CLIMATE_ACTION_DRYING";
323 return "CLIMATE_ACTION_FAN";
331 return "CLIMATE_PRESET_NONE";
333 return "CLIMATE_PRESET_HOME";
335 return "CLIMATE_PRESET_AWAY";
337 return "CLIMATE_PRESET_BOOST";
339 return "CLIMATE_PRESET_COMFORT";
341 return "CLIMATE_PRESET_ECO";
343 return "CLIMATE_PRESET_SLEEP";
345 return "CLIMATE_PRESET_ACTIVITY";
351#ifdef USE_WATER_HEATER
355 return "WATER_HEATER_MODE_OFF";
357 return "WATER_HEATER_MODE_ECO";
359 return "WATER_HEATER_MODE_ELECTRIC";
361 return "WATER_HEATER_MODE_PERFORMANCE";
363 return "WATER_HEATER_MODE_HIGH_DEMAND";
365 return "WATER_HEATER_MODE_HEAT_PUMP";
367 return "WATER_HEATER_MODE_GAS";
377 return "WATER_HEATER_COMMAND_HAS_NONE";
379 return "WATER_HEATER_COMMAND_HAS_MODE";
381 return "WATER_HEATER_COMMAND_HAS_TARGET_TEMPERATURE";
383 return "WATER_HEATER_COMMAND_HAS_STATE";
385 return "WATER_HEATER_COMMAND_HAS_TARGET_TEMPERATURE_LOW";
387 return "WATER_HEATER_COMMAND_HAS_TARGET_TEMPERATURE_HIGH";
396 return "NUMBER_MODE_AUTO";
398 return "NUMBER_MODE_BOX";
400 return "NUMBER_MODE_SLIDER";
410 return "LOCK_STATE_NONE";
412 return "LOCK_STATE_LOCKED";
414 return "LOCK_STATE_UNLOCKED";
416 return "LOCK_STATE_JAMMED";
418 return "LOCK_STATE_LOCKING";
420 return "LOCK_STATE_UNLOCKING";
428 return "LOCK_UNLOCK";
438#ifdef USE_MEDIA_PLAYER
442 return "MEDIA_PLAYER_STATE_NONE";
444 return "MEDIA_PLAYER_STATE_IDLE";
446 return "MEDIA_PLAYER_STATE_PLAYING";
448 return "MEDIA_PLAYER_STATE_PAUSED";
450 return "MEDIA_PLAYER_STATE_ANNOUNCING";
452 return "MEDIA_PLAYER_STATE_OFF";
454 return "MEDIA_PLAYER_STATE_ON";
462 return "MEDIA_PLAYER_COMMAND_PLAY";
464 return "MEDIA_PLAYER_COMMAND_PAUSE";
466 return "MEDIA_PLAYER_COMMAND_STOP";
468 return "MEDIA_PLAYER_COMMAND_MUTE";
470 return "MEDIA_PLAYER_COMMAND_UNMUTE";
472 return "MEDIA_PLAYER_COMMAND_TOGGLE";
474 return "MEDIA_PLAYER_COMMAND_VOLUME_UP";
476 return "MEDIA_PLAYER_COMMAND_VOLUME_DOWN";
478 return "MEDIA_PLAYER_COMMAND_ENQUEUE";
480 return "MEDIA_PLAYER_COMMAND_REPEAT_ONE";
482 return "MEDIA_PLAYER_COMMAND_REPEAT_OFF";
484 return "MEDIA_PLAYER_COMMAND_CLEAR_PLAYLIST";
486 return "MEDIA_PLAYER_COMMAND_TURN_ON";
488 return "MEDIA_PLAYER_COMMAND_TURN_OFF";
496 return "MEDIA_PLAYER_FORMAT_PURPOSE_DEFAULT";
498 return "MEDIA_PLAYER_FORMAT_PURPOSE_ANNOUNCEMENT";
504#ifdef USE_BLUETOOTH_PROXY
509 return "BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT";
511 return "BLUETOOTH_DEVICE_REQUEST_TYPE_DISCONNECT";
513 return "BLUETOOTH_DEVICE_REQUEST_TYPE_PAIR";
515 return "BLUETOOTH_DEVICE_REQUEST_TYPE_UNPAIR";
517 return "BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT_V3_WITH_CACHE";
519 return "BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT_V3_WITHOUT_CACHE";
521 return "BLUETOOTH_DEVICE_REQUEST_TYPE_CLEAR_CACHE";
529 return "BLUETOOTH_SCANNER_STATE_IDLE";
531 return "BLUETOOTH_SCANNER_STATE_STARTING";
533 return "BLUETOOTH_SCANNER_STATE_RUNNING";
535 return "BLUETOOTH_SCANNER_STATE_FAILED";
537 return "BLUETOOTH_SCANNER_STATE_STOPPING";
539 return "BLUETOOTH_SCANNER_STATE_STOPPED";
547 return "BLUETOOTH_SCANNER_MODE_PASSIVE";
549 return "BLUETOOTH_SCANNER_MODE_ACTIVE";
559 return "VOICE_ASSISTANT_SUBSCRIBE_NONE";
561 return "VOICE_ASSISTANT_SUBSCRIBE_API_AUDIO";
569 return "VOICE_ASSISTANT_REQUEST_NONE";
571 return "VOICE_ASSISTANT_REQUEST_USE_VAD";
573 return "VOICE_ASSISTANT_REQUEST_USE_WAKE_WORD";
578#ifdef USE_VOICE_ASSISTANT
582 return "VOICE_ASSISTANT_ERROR";
584 return "VOICE_ASSISTANT_RUN_START";
586 return "VOICE_ASSISTANT_RUN_END";
588 return "VOICE_ASSISTANT_STT_START";
590 return "VOICE_ASSISTANT_STT_END";
592 return "VOICE_ASSISTANT_INTENT_START";
594 return "VOICE_ASSISTANT_INTENT_END";
596 return "VOICE_ASSISTANT_TTS_START";
598 return "VOICE_ASSISTANT_TTS_END";
600 return "VOICE_ASSISTANT_WAKE_WORD_START";
602 return "VOICE_ASSISTANT_WAKE_WORD_END";
604 return "VOICE_ASSISTANT_STT_VAD_START";
606 return "VOICE_ASSISTANT_STT_VAD_END";
608 return "VOICE_ASSISTANT_TTS_STREAM_START";
610 return "VOICE_ASSISTANT_TTS_STREAM_END";
612 return "VOICE_ASSISTANT_INTENT_PROGRESS";
620 return "VOICE_ASSISTANT_TIMER_STARTED";
622 return "VOICE_ASSISTANT_TIMER_UPDATED";
624 return "VOICE_ASSISTANT_TIMER_CANCELLED";
626 return "VOICE_ASSISTANT_TIMER_FINISHED";
632#ifdef USE_ALARM_CONTROL_PANEL
636 return "ALARM_STATE_DISARMED";
638 return "ALARM_STATE_ARMED_HOME";
640 return "ALARM_STATE_ARMED_AWAY";
642 return "ALARM_STATE_ARMED_NIGHT";
644 return "ALARM_STATE_ARMED_VACATION";
646 return "ALARM_STATE_ARMED_CUSTOM_BYPASS";
648 return "ALARM_STATE_PENDING";
650 return "ALARM_STATE_ARMING";
652 return "ALARM_STATE_DISARMING";
654 return "ALARM_STATE_TRIGGERED";
663 return "ALARM_CONTROL_PANEL_DISARM";
665 return "ALARM_CONTROL_PANEL_ARM_AWAY";
667 return "ALARM_CONTROL_PANEL_ARM_HOME";
669 return "ALARM_CONTROL_PANEL_ARM_NIGHT";
671 return "ALARM_CONTROL_PANEL_ARM_VACATION";
673 return "ALARM_CONTROL_PANEL_ARM_CUSTOM_BYPASS";
675 return "ALARM_CONTROL_PANEL_TRIGGER";
685 return "TEXT_MODE_TEXT";
687 return "TEXT_MODE_PASSWORD";
697 return "VALVE_OPERATION_IDLE";
699 return "VALVE_OPERATION_IS_OPENING";
701 return "VALVE_OPERATION_IS_CLOSING";
711 return "UPDATE_COMMAND_NONE";
713 return "UPDATE_COMMAND_UPDATE";
715 return "UPDATE_COMMAND_CHECK";
721#ifdef USE_ZWAVE_PROXY
725 return "ZWAVE_PROXY_REQUEST_TYPE_SUBSCRIBE";
727 return "ZWAVE_PROXY_REQUEST_TYPE_UNSUBSCRIBE";
729 return "ZWAVE_PROXY_REQUEST_TYPE_HOME_ID_CHANGE";
737 MessageDumpHelper helper(out,
"HelloRequest");
738 out.append(
" client_info: ");
745 MessageDumpHelper helper(out,
"HelloResponse");
749 dump_field(out,
"name", this->
name_ref_);
751#ifdef USE_API_PASSWORD
753 MessageDumpHelper helper(out,
"AuthenticationRequest");
754 out.append(
" password: ");
759 MessageDumpHelper helper(out,
"AuthenticationResponse");
770 MessageDumpHelper helper(out,
"AreaInfo");
771 dump_field(out,
"area_id", this->
area_id);
772 dump_field(out,
"name", this->
name_ref_);
777 MessageDumpHelper helper(out,
"DeviceInfo");
778 dump_field(out,
"device_id", this->
device_id);
779 dump_field(out,
"name", this->
name_ref_);
780 dump_field(out,
"area_id", this->
area_id);
784 MessageDumpHelper helper(out,
"DeviceInfoResponse");
785#ifdef USE_API_PASSWORD
788 dump_field(out,
"name", this->
name_ref_);
796#ifdef ESPHOME_PROJECT_NAME
799#ifdef ESPHOME_PROJECT_NAME
805#ifdef USE_BLUETOOTH_PROXY
810#ifdef USE_VOICE_ASSISTANT
816#ifdef USE_BLUETOOTH_PROXY
823 for (
const auto &it : this->
devices) {
824 out.append(
" devices: ");
830 for (
const auto &it : this->
areas) {
831 out.append(
" areas: ");
837 out.append(
" area: ");
841#ifdef USE_ZWAVE_PROXY
844#ifdef USE_ZWAVE_PROXY
851#ifdef USE_BINARY_SENSOR
853 MessageDumpHelper helper(out,
"ListEntitiesBinarySensorResponse");
855 dump_field(out,
"key", this->
key);
856 dump_field(out,
"name", this->
name_ref_);
860#ifdef USE_ENTITY_ICON
861 dump_field(out,
"icon", this->
icon_ref_);
865 dump_field(out,
"device_id", this->
device_id);
869 MessageDumpHelper helper(out,
"BinarySensorStateResponse");
870 dump_field(out,
"key", this->
key);
871 dump_field(out,
"state", this->
state);
874 dump_field(out,
"device_id", this->
device_id);
880 MessageDumpHelper helper(out,
"ListEntitiesCoverResponse");
882 dump_field(out,
"key", this->
key);
883 dump_field(out,
"name", this->
name_ref_);
889#ifdef USE_ENTITY_ICON
890 dump_field(out,
"icon", this->
icon_ref_);
895 dump_field(out,
"device_id", this->
device_id);
899 MessageDumpHelper helper(out,
"CoverStateResponse");
900 dump_field(out,
"key", this->
key);
901 dump_field(out,
"position", this->
position);
902 dump_field(out,
"tilt", this->
tilt);
905 dump_field(out,
"device_id", this->
device_id);
909 MessageDumpHelper helper(out,
"CoverCommandRequest");
910 dump_field(out,
"key", this->
key);
912 dump_field(out,
"position", this->
position);
913 dump_field(out,
"has_tilt", this->
has_tilt);
914 dump_field(out,
"tilt", this->
tilt);
915 dump_field(out,
"stop", this->
stop);
917 dump_field(out,
"device_id", this->
device_id);
923 MessageDumpHelper helper(out,
"ListEntitiesFanResponse");
925 dump_field(out,
"key", this->
key);
926 dump_field(out,
"name", this->
name_ref_);
932#ifdef USE_ENTITY_ICON
933 dump_field(out,
"icon", this->
icon_ref_);
937 dump_field(out,
"supported_preset_modes", it, 4);
940 dump_field(out,
"device_id", this->
device_id);
944 MessageDumpHelper helper(out,
"FanStateResponse");
945 dump_field(out,
"key", this->
key);
946 dump_field(out,
"state", this->
state);
952 dump_field(out,
"device_id", this->
device_id);
956 MessageDumpHelper helper(out,
"FanCommandRequest");
957 dump_field(out,
"key", this->
key);
958 dump_field(out,
"has_state", this->
has_state);
959 dump_field(out,
"state", this->
state);
967 out.append(
" preset_mode: ");
971 dump_field(out,
"device_id", this->
device_id);
977 MessageDumpHelper helper(out,
"ListEntitiesLightResponse");
979 dump_field(out,
"key", this->
key);
980 dump_field(out,
"name", this->
name_ref_);
982 dump_field(out,
"supported_color_modes",
static_cast<enums::ColorMode>(it), 4);
984 dump_field(out,
"min_mireds", this->
min_mireds);
985 dump_field(out,
"max_mireds", this->
max_mireds);
986 for (
const auto &it : *this->
effects) {
987 dump_field(out,
"effects", it, 4);
990#ifdef USE_ENTITY_ICON
991 dump_field(out,
"icon", this->
icon_ref_);
995 dump_field(out,
"device_id", this->
device_id);
999 MessageDumpHelper helper(out,
"LightStateResponse");
1000 dump_field(out,
"key", this->
key);
1001 dump_field(out,
"state", this->
state);
1002 dump_field(out,
"brightness", this->
brightness);
1005 dump_field(out,
"red", this->
red);
1006 dump_field(out,
"green", this->
green);
1007 dump_field(out,
"blue", this->
blue);
1008 dump_field(out,
"white", this->
white);
1010 dump_field(out,
"cold_white", this->
cold_white);
1011 dump_field(out,
"warm_white", this->
warm_white);
1014 dump_field(out,
"device_id", this->
device_id);
1018 MessageDumpHelper helper(out,
"LightCommandRequest");
1019 dump_field(out,
"key", this->
key);
1020 dump_field(out,
"has_state", this->
has_state);
1021 dump_field(out,
"state", this->
state);
1023 dump_field(out,
"brightness", this->
brightness);
1028 dump_field(out,
"has_rgb", this->
has_rgb);
1029 dump_field(out,
"red", this->
red);
1030 dump_field(out,
"green", this->
green);
1031 dump_field(out,
"blue", this->
blue);
1032 dump_field(out,
"has_white", this->
has_white);
1033 dump_field(out,
"white", this->
white);
1037 dump_field(out,
"cold_white", this->
cold_white);
1039 dump_field(out,
"warm_white", this->
warm_white);
1044 dump_field(out,
"has_effect", this->
has_effect);
1045 out.append(
" effect: ");
1049 dump_field(out,
"device_id", this->
device_id);
1055 MessageDumpHelper helper(out,
"ListEntitiesSensorResponse");
1057 dump_field(out,
"key", this->
key);
1058 dump_field(out,
"name", this->
name_ref_);
1059#ifdef USE_ENTITY_ICON
1060 dump_field(out,
"icon", this->
icon_ref_);
1070 dump_field(out,
"device_id", this->
device_id);
1074 MessageDumpHelper helper(out,
"SensorStateResponse");
1075 dump_field(out,
"key", this->
key);
1076 dump_field(out,
"state", this->
state);
1079 dump_field(out,
"device_id", this->
device_id);
1085 MessageDumpHelper helper(out,
"ListEntitiesSwitchResponse");
1087 dump_field(out,
"key", this->
key);
1088 dump_field(out,
"name", this->
name_ref_);
1089#ifdef USE_ENTITY_ICON
1090 dump_field(out,
"icon", this->
icon_ref_);
1097 dump_field(out,
"device_id", this->
device_id);
1101 MessageDumpHelper helper(out,
"SwitchStateResponse");
1102 dump_field(out,
"key", this->
key);
1103 dump_field(out,
"state", this->
state);
1105 dump_field(out,
"device_id", this->
device_id);
1109 MessageDumpHelper helper(out,
"SwitchCommandRequest");
1110 dump_field(out,
"key", this->
key);
1111 dump_field(out,
"state", this->
state);
1113 dump_field(out,
"device_id", this->
device_id);
1117#ifdef USE_TEXT_SENSOR
1119 MessageDumpHelper helper(out,
"ListEntitiesTextSensorResponse");
1121 dump_field(out,
"key", this->
key);
1122 dump_field(out,
"name", this->
name_ref_);
1123#ifdef USE_ENTITY_ICON
1124 dump_field(out,
"icon", this->
icon_ref_);
1130 dump_field(out,
"device_id", this->
device_id);
1134 MessageDumpHelper helper(out,
"TextSensorStateResponse");
1135 dump_field(out,
"key", this->
key);
1139 dump_field(out,
"device_id", this->
device_id);
1144 MessageDumpHelper helper(out,
"SubscribeLogsRequest");
1146 dump_field(out,
"dump_config", this->
dump_config);
1149 MessageDumpHelper helper(out,
"SubscribeLogsResponse");
1151 out.append(
" message: ");
1157 MessageDumpHelper helper(out,
"NoiseEncryptionSetKeyRequest");
1158 out.append(
" key: ");
1164#ifdef USE_API_HOMEASSISTANT_SERVICES
1166 out.append(
"SubscribeHomeassistantServicesRequest {}");
1169 MessageDumpHelper helper(out,
"HomeassistantServiceMap");
1170 dump_field(out,
"key", this->
key_ref_);
1171 dump_field(out,
"value", this->value);
1174 MessageDumpHelper helper(out,
"HomeassistantActionRequest");
1176 for (
const auto &it : this->
data) {
1177 out.append(
" data: ");
1182 out.append(
" data_template: ");
1186 for (
const auto &it : this->
variables) {
1187 out.append(
" variables: ");
1191 dump_field(out,
"is_event", this->
is_event);
1192#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES
1193 dump_field(out,
"call_id", this->
call_id);
1195#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1198#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1203#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES
1205 MessageDumpHelper helper(out,
"HomeassistantActionResponse");
1206 dump_field(out,
"call_id", this->
call_id);
1207 dump_field(out,
"success", this->
success);
1209#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1210 out.append(
" response_data: ");
1216#ifdef USE_API_HOMEASSISTANT_STATES
1218 out.append(
"SubscribeHomeAssistantStatesRequest {}");
1221 MessageDumpHelper helper(out,
"SubscribeHomeAssistantStateResponse");
1224 dump_field(out,
"once", this->
once);
1227 MessageDumpHelper helper(out,
"HomeAssistantStateResponse");
1228 out.append(
" entity_id: ");
1231 out.append(
" state: ");
1234 out.append(
" attribute: ");
1241 MessageDumpHelper helper(out,
"GetTimeResponse");
1243 out.append(
" timezone: ");
1247#ifdef USE_API_USER_DEFINED_ACTIONS
1249 MessageDumpHelper helper(out,
"ListEntitiesServicesArgument");
1250 dump_field(out,
"name", this->
name_ref_);
1254 MessageDumpHelper helper(out,
"ListEntitiesServicesResponse");
1255 dump_field(out,
"name", this->
name_ref_);
1256 dump_field(out,
"key", this->
key);
1257 for (
const auto &it : this->
args) {
1258 out.append(
" args: ");
1265 MessageDumpHelper helper(out,
"ExecuteServiceArgument");
1266 dump_field(out,
"bool_", this->
bool_);
1267 dump_field(out,
"legacy_int", this->
legacy_int);
1268 dump_field(out,
"float_", this->
float_);
1269 dump_field(out,
"string_", this->
string_);
1270 dump_field(out,
"int_", this->
int_);
1272 dump_field(out,
"bool_array",
static_cast<bool>(it), 4);
1274 for (
const auto &it : this->
int_array) {
1275 dump_field(out,
"int_array", it, 4);
1278 dump_field(out,
"float_array", it, 4);
1281 dump_field(out,
"string_array", it, 4);
1285 MessageDumpHelper helper(out,
"ExecuteServiceRequest");
1286 dump_field(out,
"key", this->
key);
1287 for (
const auto &it : this->
args) {
1288 out.append(
" args: ");
1292#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1293 dump_field(out,
"call_id", this->
call_id);
1295#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1300#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
1302 MessageDumpHelper helper(out,
"ExecuteServiceResponse");
1303 dump_field(out,
"call_id", this->
call_id);
1304 dump_field(out,
"success", this->
success);
1306#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES_JSON
1307 out.append(
" response_data: ");
1315 MessageDumpHelper helper(out,
"ListEntitiesCameraResponse");
1317 dump_field(out,
"key", this->
key);
1318 dump_field(out,
"name", this->
name_ref_);
1320#ifdef USE_ENTITY_ICON
1321 dump_field(out,
"icon", this->
icon_ref_);
1325 dump_field(out,
"device_id", this->
device_id);
1329 MessageDumpHelper helper(out,
"CameraImageResponse");
1330 dump_field(out,
"key", this->
key);
1331 out.append(
" data: ");
1334 dump_field(out,
"done", this->
done);
1336 dump_field(out,
"device_id", this->
device_id);
1340 MessageDumpHelper helper(out,
"CameraImageRequest");
1341 dump_field(out,
"single", this->
single);
1342 dump_field(out,
"stream", this->
stream);
1347 MessageDumpHelper helper(out,
"ListEntitiesClimateResponse");
1349 dump_field(out,
"key", this->
key);
1350 dump_field(out,
"name", this->
name_ref_);
1367 dump_field(out,
"supported_custom_fan_modes", it, 4);
1373 dump_field(out,
"supported_custom_presets", it, 4);
1376#ifdef USE_ENTITY_ICON
1377 dump_field(out,
"icon", this->
icon_ref_);
1386 dump_field(out,
"device_id", this->
device_id);
1391 MessageDumpHelper helper(out,
"ClimateStateResponse");
1392 dump_field(out,
"key", this->
key);
1407 dump_field(out,
"device_id", this->
device_id);
1411 MessageDumpHelper helper(out,
"ClimateCommandRequest");
1412 dump_field(out,
"key", this->
key);
1413 dump_field(out,
"has_mode", this->
has_mode);
1426 out.append(
" custom_fan_mode: ");
1429 dump_field(out,
"has_preset", this->
has_preset);
1432 out.append(
" custom_preset: ");
1438 dump_field(out,
"device_id", this->
device_id);
1442#ifdef USE_WATER_HEATER
1444 MessageDumpHelper helper(out,
"ListEntitiesWaterHeaterResponse");
1446 dump_field(out,
"key", this->
key);
1447 dump_field(out,
"name", this->
name_ref_);
1448#ifdef USE_ENTITY_ICON
1449 dump_field(out,
"icon", this->
icon_ref_);
1454 dump_field(out,
"device_id", this->
device_id);
1465 MessageDumpHelper helper(out,
"WaterHeaterStateResponse");
1466 dump_field(out,
"key", this->
key);
1471 dump_field(out,
"device_id", this->
device_id);
1473 dump_field(out,
"state", this->
state);
1478 MessageDumpHelper helper(out,
"WaterHeaterCommandRequest");
1479 dump_field(out,
"key", this->
key);
1480 dump_field(out,
"has_fields", this->
has_fields);
1484 dump_field(out,
"device_id", this->
device_id);
1486 dump_field(out,
"state", this->
state);
1493 MessageDumpHelper helper(out,
"ListEntitiesNumberResponse");
1495 dump_field(out,
"key", this->
key);
1496 dump_field(out,
"name", this->
name_ref_);
1497#ifdef USE_ENTITY_ICON
1498 dump_field(out,
"icon", this->
icon_ref_);
1500 dump_field(out,
"min_value", this->
min_value);
1501 dump_field(out,
"max_value", this->
max_value);
1502 dump_field(out,
"step", this->
step);
1509 dump_field(out,
"device_id", this->
device_id);
1513 MessageDumpHelper helper(out,
"NumberStateResponse");
1514 dump_field(out,
"key", this->
key);
1515 dump_field(out,
"state", this->
state);
1518 dump_field(out,
"device_id", this->
device_id);
1522 MessageDumpHelper helper(out,
"NumberCommandRequest");
1523 dump_field(out,
"key", this->
key);
1524 dump_field(out,
"state", this->
state);
1526 dump_field(out,
"device_id", this->
device_id);
1532 MessageDumpHelper helper(out,
"ListEntitiesSelectResponse");
1534 dump_field(out,
"key", this->
key);
1535 dump_field(out,
"name", this->
name_ref_);
1536#ifdef USE_ENTITY_ICON
1537 dump_field(out,
"icon", this->
icon_ref_);
1539 for (
const auto &it : *this->
options) {
1540 dump_field(out,
"options", it, 4);
1545 dump_field(out,
"device_id", this->
device_id);
1549 MessageDumpHelper helper(out,
"SelectStateResponse");
1550 dump_field(out,
"key", this->
key);
1554 dump_field(out,
"device_id", this->
device_id);
1558 MessageDumpHelper helper(out,
"SelectCommandRequest");
1559 dump_field(out,
"key", this->
key);
1560 out.append(
" state: ");
1564 dump_field(out,
"device_id", this->
device_id);
1570 MessageDumpHelper helper(out,
"ListEntitiesSirenResponse");
1572 dump_field(out,
"key", this->
key);
1573 dump_field(out,
"name", this->
name_ref_);
1574#ifdef USE_ENTITY_ICON
1575 dump_field(out,
"icon", this->
icon_ref_);
1578 for (
const auto &it : this->
tones) {
1579 dump_field(out,
"tones", it, 4);
1585 dump_field(out,
"device_id", this->
device_id);
1589 MessageDumpHelper helper(out,
"SirenStateResponse");
1590 dump_field(out,
"key", this->
key);
1591 dump_field(out,
"state", this->
state);
1593 dump_field(out,
"device_id", this->
device_id);
1597 MessageDumpHelper helper(out,
"SirenCommandRequest");
1598 dump_field(out,
"key", this->
key);
1599 dump_field(out,
"has_state", this->
has_state);
1600 dump_field(out,
"state", this->
state);
1601 dump_field(out,
"has_tone", this->
has_tone);
1602 dump_field(out,
"tone", this->
tone);
1604 dump_field(out,
"duration", this->
duration);
1605 dump_field(out,
"has_volume", this->
has_volume);
1606 dump_field(out,
"volume", this->
volume);
1608 dump_field(out,
"device_id", this->
device_id);
1614 MessageDumpHelper helper(out,
"ListEntitiesLockResponse");
1616 dump_field(out,
"key", this->
key);
1617 dump_field(out,
"name", this->
name_ref_);
1618#ifdef USE_ENTITY_ICON
1619 dump_field(out,
"icon", this->
icon_ref_);
1628 dump_field(out,
"device_id", this->
device_id);
1632 MessageDumpHelper helper(out,
"LockStateResponse");
1633 dump_field(out,
"key", this->
key);
1636 dump_field(out,
"device_id", this->
device_id);
1640 MessageDumpHelper helper(out,
"LockCommandRequest");
1641 dump_field(out,
"key", this->
key);
1643 dump_field(out,
"has_code", this->
has_code);
1644 dump_field(out,
"code", this->
code);
1646 dump_field(out,
"device_id", this->
device_id);
1652 MessageDumpHelper helper(out,
"ListEntitiesButtonResponse");
1654 dump_field(out,
"key", this->
key);
1655 dump_field(out,
"name", this->
name_ref_);
1656#ifdef USE_ENTITY_ICON
1657 dump_field(out,
"icon", this->
icon_ref_);
1663 dump_field(out,
"device_id", this->
device_id);
1667 MessageDumpHelper helper(out,
"ButtonCommandRequest");
1668 dump_field(out,
"key", this->
key);
1670 dump_field(out,
"device_id", this->
device_id);
1674#ifdef USE_MEDIA_PLAYER
1676 MessageDumpHelper helper(out,
"MediaPlayerSupportedFormat");
1678 dump_field(out,
"sample_rate", this->
sample_rate);
1684 MessageDumpHelper helper(out,
"ListEntitiesMediaPlayerResponse");
1686 dump_field(out,
"key", this->
key);
1687 dump_field(out,
"name", this->
name_ref_);
1688#ifdef USE_ENTITY_ICON
1689 dump_field(out,
"icon", this->
icon_ref_);
1695 out.append(
" supported_formats: ");
1700 dump_field(out,
"device_id", this->
device_id);
1705 MessageDumpHelper helper(out,
"MediaPlayerStateResponse");
1706 dump_field(out,
"key", this->
key);
1708 dump_field(out,
"volume", this->
volume);
1709 dump_field(out,
"muted", this->
muted);
1711 dump_field(out,
"device_id", this->
device_id);
1715 MessageDumpHelper helper(out,
"MediaPlayerCommandRequest");
1716 dump_field(out,
"key", this->
key);
1717 dump_field(out,
"has_command", this->
has_command);
1719 dump_field(out,
"has_volume", this->
has_volume);
1720 dump_field(out,
"volume", this->
volume);
1722 dump_field(out,
"media_url", this->
media_url);
1726 dump_field(out,
"device_id", this->
device_id);
1730#ifdef USE_BLUETOOTH_PROXY
1732 MessageDumpHelper helper(out,
"SubscribeBluetoothLEAdvertisementsRequest");
1733 dump_field(out,
"flags", this->
flags);
1736 MessageDumpHelper helper(out,
"BluetoothLERawAdvertisement");
1737 dump_field(out,
"address", this->
address);
1738 dump_field(out,
"rssi", this->
rssi);
1740 out.append(
" data: ");
1745 MessageDumpHelper helper(out,
"BluetoothLERawAdvertisementsResponse");
1747 out.append(
" advertisements: ");
1753 MessageDumpHelper helper(out,
"BluetoothDeviceRequest");
1754 dump_field(out,
"address", this->
address);
1760 MessageDumpHelper helper(out,
"BluetoothDeviceConnectionResponse");
1761 dump_field(out,
"address", this->
address);
1762 dump_field(out,
"connected", this->
connected);
1763 dump_field(out,
"mtu", this->
mtu);
1764 dump_field(out,
"error", this->
error);
1768 MessageDumpHelper helper(out,
"BluetoothGATTDescriptor");
1769 for (
const auto &it : this->
uuid) {
1770 dump_field(out,
"uuid", it, 4);
1772 dump_field(out,
"handle", this->
handle);
1773 dump_field(out,
"short_uuid", this->
short_uuid);
1776 MessageDumpHelper helper(out,
"BluetoothGATTCharacteristic");
1777 for (
const auto &it : this->
uuid) {
1778 dump_field(out,
"uuid", it, 4);
1780 dump_field(out,
"handle", this->
handle);
1781 dump_field(out,
"properties", this->
properties);
1783 out.append(
" descriptors: ");
1787 dump_field(out,
"short_uuid", this->
short_uuid);
1790 MessageDumpHelper helper(out,
"BluetoothGATTService");
1791 for (
const auto &it : this->
uuid) {
1792 dump_field(out,
"uuid", it, 4);
1794 dump_field(out,
"handle", this->
handle);
1796 out.append(
" characteristics: ");
1800 dump_field(out,
"short_uuid", this->
short_uuid);
1803 MessageDumpHelper helper(out,
"BluetoothGATTGetServicesResponse");
1804 dump_field(out,
"address", this->
address);
1805 for (
const auto &it : this->
services) {
1806 out.append(
" services: ");
1812 MessageDumpHelper helper(out,
"BluetoothGATTGetServicesDoneResponse");
1813 dump_field(out,
"address", this->
address);
1816 MessageDumpHelper helper(out,
"BluetoothGATTReadRequest");
1817 dump_field(out,
"address", this->
address);
1818 dump_field(out,
"handle", this->
handle);
1821 MessageDumpHelper helper(out,
"BluetoothGATTReadResponse");
1822 dump_field(out,
"address", this->
address);
1823 dump_field(out,
"handle", this->
handle);
1824 out.append(
" data: ");
1829 MessageDumpHelper helper(out,
"BluetoothGATTWriteRequest");
1830 dump_field(out,
"address", this->
address);
1831 dump_field(out,
"handle", this->
handle);
1832 dump_field(out,
"response", this->
response);
1833 out.append(
" data: ");
1838 MessageDumpHelper helper(out,
"BluetoothGATTReadDescriptorRequest");
1839 dump_field(out,
"address", this->
address);
1840 dump_field(out,
"handle", this->
handle);
1843 MessageDumpHelper helper(out,
"BluetoothGATTWriteDescriptorRequest");
1844 dump_field(out,
"address", this->
address);
1845 dump_field(out,
"handle", this->
handle);
1846 out.append(
" data: ");
1851 MessageDumpHelper helper(out,
"BluetoothGATTNotifyRequest");
1852 dump_field(out,
"address", this->
address);
1853 dump_field(out,
"handle", this->
handle);
1854 dump_field(out,
"enable", this->
enable);
1857 MessageDumpHelper helper(out,
"BluetoothGATTNotifyDataResponse");
1858 dump_field(out,
"address", this->
address);
1859 dump_field(out,
"handle", this->
handle);
1860 out.append(
" data: ");
1865 out.append(
"SubscribeBluetoothConnectionsFreeRequest {}");
1868 MessageDumpHelper helper(out,
"BluetoothConnectionsFreeResponse");
1869 dump_field(out,
"free", this->
free);
1870 dump_field(out,
"limit", this->
limit);
1871 for (
const auto &it : this->
allocated) {
1872 dump_field(out,
"allocated", it, 4);
1876 MessageDumpHelper helper(out,
"BluetoothGATTErrorResponse");
1877 dump_field(out,
"address", this->
address);
1878 dump_field(out,
"handle", this->
handle);
1879 dump_field(out,
"error", this->
error);
1882 MessageDumpHelper helper(out,
"BluetoothGATTWriteResponse");
1883 dump_field(out,
"address", this->
address);
1884 dump_field(out,
"handle", this->
handle);
1887 MessageDumpHelper helper(out,
"BluetoothGATTNotifyResponse");
1888 dump_field(out,
"address", this->
address);
1889 dump_field(out,
"handle", this->
handle);
1892 MessageDumpHelper helper(out,
"BluetoothDevicePairingResponse");
1893 dump_field(out,
"address", this->
address);
1894 dump_field(out,
"paired", this->
paired);
1895 dump_field(out,
"error", this->
error);
1898 MessageDumpHelper helper(out,
"BluetoothDeviceUnpairingResponse");
1899 dump_field(out,
"address", this->
address);
1900 dump_field(out,
"success", this->
success);
1901 dump_field(out,
"error", this->
error);
1904 out.append(
"UnsubscribeBluetoothLEAdvertisementsRequest {}");
1907 MessageDumpHelper helper(out,
"BluetoothDeviceClearCacheResponse");
1908 dump_field(out,
"address", this->
address);
1909 dump_field(out,
"success", this->
success);
1910 dump_field(out,
"error", this->
error);
1913 MessageDumpHelper helper(out,
"BluetoothScannerStateResponse");
1919 MessageDumpHelper helper(out,
"BluetoothScannerSetModeRequest");
1923#ifdef USE_VOICE_ASSISTANT
1925 MessageDumpHelper helper(out,
"SubscribeVoiceAssistantRequest");
1926 dump_field(out,
"subscribe", this->
subscribe);
1927 dump_field(out,
"flags", this->
flags);
1930 MessageDumpHelper helper(out,
"VoiceAssistantAudioSettings");
1932 dump_field(out,
"auto_gain", this->
auto_gain);
1936 MessageDumpHelper helper(out,
"VoiceAssistantRequest");
1937 dump_field(out,
"start", this->
start);
1939 dump_field(out,
"flags", this->
flags);
1940 out.append(
" audio_settings: ");
1946 MessageDumpHelper helper(out,
"VoiceAssistantResponse");
1947 dump_field(out,
"port", this->
port);
1948 dump_field(out,
"error", this->
error);
1951 MessageDumpHelper helper(out,
"VoiceAssistantEventData");
1952 dump_field(out,
"name", this->
name);
1953 dump_field(out,
"value", this->value);
1956 MessageDumpHelper helper(out,
"VoiceAssistantEventResponse");
1958 for (
const auto &it : this->
data) {
1959 out.append(
" data: ");
1965 MessageDumpHelper helper(out,
"VoiceAssistantAudio");
1966 out.append(
" data: ");
1970 out.append(
format_hex_pretty(
reinterpret_cast<const uint8_t *
>(this->
data.data()), this->data.size()));
1973 dump_field(out,
"end", this->
end);
1976 MessageDumpHelper helper(out,
"VoiceAssistantTimerEventResponse");
1978 dump_field(out,
"timer_id", this->
timer_id);
1979 dump_field(out,
"name", this->
name);
1982 dump_field(out,
"is_active", this->
is_active);
1985 MessageDumpHelper helper(out,
"VoiceAssistantAnnounceRequest");
1986 dump_field(out,
"media_id", this->
media_id);
1987 dump_field(out,
"text", this->
text);
1993 MessageDumpHelper helper(out,
"VoiceAssistantWakeWord");
1994 dump_field(out,
"id", this->
id_ref_);
1997 dump_field(out,
"trained_languages", it, 4);
2001 MessageDumpHelper helper(out,
"VoiceAssistantExternalWakeWord");
2002 dump_field(out,
"id", this->
id);
2003 dump_field(out,
"wake_word", this->
wake_word);
2005 dump_field(out,
"trained_languages", it, 4);
2007 dump_field(out,
"model_type", this->
model_type);
2008 dump_field(out,
"model_size", this->
model_size);
2009 dump_field(out,
"model_hash", this->
model_hash);
2010 dump_field(out,
"url", this->
url);
2013 MessageDumpHelper helper(out,
"VoiceAssistantConfigurationRequest");
2015 out.append(
" external_wake_words: ");
2021 MessageDumpHelper helper(out,
"VoiceAssistantConfigurationResponse");
2023 out.append(
" available_wake_words: ");
2028 dump_field(out,
"active_wake_words", it, 4);
2033 MessageDumpHelper helper(out,
"VoiceAssistantSetConfiguration");
2035 dump_field(out,
"active_wake_words", it, 4);
2039#ifdef USE_ALARM_CONTROL_PANEL
2041 MessageDumpHelper helper(out,
"ListEntitiesAlarmControlPanelResponse");
2043 dump_field(out,
"key", this->
key);
2044 dump_field(out,
"name", this->
name_ref_);
2045#ifdef USE_ENTITY_ICON
2046 dump_field(out,
"icon", this->
icon_ref_);
2054 dump_field(out,
"device_id", this->
device_id);
2058 MessageDumpHelper helper(out,
"AlarmControlPanelStateResponse");
2059 dump_field(out,
"key", this->
key);
2062 dump_field(out,
"device_id", this->
device_id);
2066 MessageDumpHelper helper(out,
"AlarmControlPanelCommandRequest");
2067 dump_field(out,
"key", this->
key);
2069 dump_field(out,
"code", this->
code);
2071 dump_field(out,
"device_id", this->
device_id);
2077 MessageDumpHelper helper(out,
"ListEntitiesTextResponse");
2079 dump_field(out,
"key", this->
key);
2080 dump_field(out,
"name", this->
name_ref_);
2081#ifdef USE_ENTITY_ICON
2082 dump_field(out,
"icon", this->
icon_ref_);
2086 dump_field(out,
"min_length", this->
min_length);
2087 dump_field(out,
"max_length", this->
max_length);
2091 dump_field(out,
"device_id", this->
device_id);
2095 MessageDumpHelper helper(out,
"TextStateResponse");
2096 dump_field(out,
"key", this->
key);
2100 dump_field(out,
"device_id", this->
device_id);
2104 MessageDumpHelper helper(out,
"TextCommandRequest");
2105 dump_field(out,
"key", this->
key);
2106 dump_field(out,
"state", this->
state);
2108 dump_field(out,
"device_id", this->
device_id);
2112#ifdef USE_DATETIME_DATE
2114 MessageDumpHelper helper(out,
"ListEntitiesDateResponse");
2116 dump_field(out,
"key", this->
key);
2117 dump_field(out,
"name", this->
name_ref_);
2118#ifdef USE_ENTITY_ICON
2119 dump_field(out,
"icon", this->
icon_ref_);
2124 dump_field(out,
"device_id", this->
device_id);
2128 MessageDumpHelper helper(out,
"DateStateResponse");
2129 dump_field(out,
"key", this->
key);
2131 dump_field(out,
"year", this->
year);
2132 dump_field(out,
"month", this->
month);
2133 dump_field(out,
"day", this->
day);
2135 dump_field(out,
"device_id", this->
device_id);
2139 MessageDumpHelper helper(out,
"DateCommandRequest");
2140 dump_field(out,
"key", this->
key);
2141 dump_field(out,
"year", this->
year);
2142 dump_field(out,
"month", this->
month);
2143 dump_field(out,
"day", this->
day);
2145 dump_field(out,
"device_id", this->
device_id);
2149#ifdef USE_DATETIME_TIME
2151 MessageDumpHelper helper(out,
"ListEntitiesTimeResponse");
2153 dump_field(out,
"key", this->
key);
2154 dump_field(out,
"name", this->
name_ref_);
2155#ifdef USE_ENTITY_ICON
2156 dump_field(out,
"icon", this->
icon_ref_);
2161 dump_field(out,
"device_id", this->
device_id);
2165 MessageDumpHelper helper(out,
"TimeStateResponse");
2166 dump_field(out,
"key", this->
key);
2168 dump_field(out,
"hour", this->
hour);
2169 dump_field(out,
"minute", this->
minute);
2170 dump_field(out,
"second", this->
second);
2172 dump_field(out,
"device_id", this->
device_id);
2176 MessageDumpHelper helper(out,
"TimeCommandRequest");
2177 dump_field(out,
"key", this->
key);
2178 dump_field(out,
"hour", this->
hour);
2179 dump_field(out,
"minute", this->
minute);
2180 dump_field(out,
"second", this->
second);
2182 dump_field(out,
"device_id", this->
device_id);
2188 MessageDumpHelper helper(out,
"ListEntitiesEventResponse");
2190 dump_field(out,
"key", this->
key);
2191 dump_field(out,
"name", this->
name_ref_);
2192#ifdef USE_ENTITY_ICON
2193 dump_field(out,
"icon", this->
icon_ref_);
2199 dump_field(out,
"event_types", it, 4);
2202 dump_field(out,
"device_id", this->
device_id);
2206 MessageDumpHelper helper(out,
"EventResponse");
2207 dump_field(out,
"key", this->
key);
2210 dump_field(out,
"device_id", this->
device_id);
2216 MessageDumpHelper helper(out,
"ListEntitiesValveResponse");
2218 dump_field(out,
"key", this->
key);
2219 dump_field(out,
"name", this->
name_ref_);
2220#ifdef USE_ENTITY_ICON
2221 dump_field(out,
"icon", this->
icon_ref_);
2230 dump_field(out,
"device_id", this->
device_id);
2234 MessageDumpHelper helper(out,
"ValveStateResponse");
2235 dump_field(out,
"key", this->
key);
2236 dump_field(out,
"position", this->
position);
2239 dump_field(out,
"device_id", this->
device_id);
2243 MessageDumpHelper helper(out,
"ValveCommandRequest");
2244 dump_field(out,
"key", this->
key);
2246 dump_field(out,
"position", this->
position);
2247 dump_field(out,
"stop", this->
stop);
2249 dump_field(out,
"device_id", this->
device_id);
2253#ifdef USE_DATETIME_DATETIME
2255 MessageDumpHelper helper(out,
"ListEntitiesDateTimeResponse");
2257 dump_field(out,
"key", this->
key);
2258 dump_field(out,
"name", this->
name_ref_);
2259#ifdef USE_ENTITY_ICON
2260 dump_field(out,
"icon", this->
icon_ref_);
2265 dump_field(out,
"device_id", this->
device_id);
2269 MessageDumpHelper helper(out,
"DateTimeStateResponse");
2270 dump_field(out,
"key", this->
key);
2274 dump_field(out,
"device_id", this->
device_id);
2278 MessageDumpHelper helper(out,
"DateTimeCommandRequest");
2279 dump_field(out,
"key", this->
key);
2282 dump_field(out,
"device_id", this->
device_id);
2288 MessageDumpHelper helper(out,
"ListEntitiesUpdateResponse");
2290 dump_field(out,
"key", this->
key);
2291 dump_field(out,
"name", this->
name_ref_);
2292#ifdef USE_ENTITY_ICON
2293 dump_field(out,
"icon", this->
icon_ref_);
2299 dump_field(out,
"device_id", this->
device_id);
2303 MessageDumpHelper helper(out,
"UpdateStateResponse");
2304 dump_field(out,
"key", this->
key);
2306 dump_field(out,
"in_progress", this->
in_progress);
2308 dump_field(out,
"progress", this->
progress);
2315 dump_field(out,
"device_id", this->
device_id);
2319 MessageDumpHelper helper(out,
"UpdateCommandRequest");
2320 dump_field(out,
"key", this->
key);
2323 dump_field(out,
"device_id", this->
device_id);
2327#ifdef USE_ZWAVE_PROXY
2329 MessageDumpHelper helper(out,
"ZWaveProxyFrame");
2330 out.append(
" data: ");
2335 MessageDumpHelper helper(out,
"ZWaveProxyRequest");
2337 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
uint16_t custom_fan_mode_len
float target_temperature_high
const uint8_t * custom_preset
const uint8_t * custom_fan_mode
enums::ClimateSwingMode swing_mode
uint16_t custom_preset_len
enums::ClimateFanMode fan_mode
bool has_target_temperature
enums::ClimatePreset 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
void dump_to(std::string &out) const override
StringRef error_message_ref_
uint16_t response_data_len
const uint8_t * response_data
const uint8_t * preset_mode
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
const uint8_t * attribute
const uint8_t * entity_id
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 FixedVector< const char * > * effects
const light::ColorModeMask * supported_color_modes
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
enums::SupportsResponseType supports_response
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
float target_temperature_step
const water_heater::WaterHeaterModeMask * supported_modes
uint32_t supported_features
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
float target_temperature_low
enums::WaterHeaterMode mode
float target_temperature_high
void dump_to(std::string &out) const override
float current_temperature
void dump_to(std::string &out) const override
float target_temperature_low
float target_temperature_high
enums::WaterHeaterMode mode
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
@ WATER_HEATER_MODE_PERFORMANCE
@ WATER_HEATER_MODE_ELECTRIC
@ WATER_HEATER_MODE_HIGH_DEMAND
@ WATER_HEATER_MODE_HEAT_PUMP
@ SUPPORTS_RESPONSE_STATUS
@ SUPPORTS_RESPONSE_OPTIONAL
@ 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
WaterHeaterCommandHasField
@ WATER_HEATER_COMMAND_HAS_NONE
@ WATER_HEATER_COMMAND_HAS_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::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::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::FanDirection >(enums::FanDirection value)
const char * proto_enum_to_string< enums::CoverOperation >(enums::CoverOperation value)
const char * proto_enum_to_string< enums::VoiceAssistantRequestFlag >(enums::VoiceAssistantRequestFlag value)
const char * proto_enum_to_string< enums::BluetoothDeviceRequestType >(enums::BluetoothDeviceRequestType value)
const char * proto_enum_to_string< enums::VoiceAssistantTimerEvent >(enums::VoiceAssistantTimerEvent value)
const char * proto_enum_to_string< enums::AlarmControlPanelStateCommand >(enums::AlarmControlPanelStateCommand value)
const char * proto_enum_to_string< enums::ClimatePreset >(enums::ClimatePreset value)
const char * proto_enum_to_string< enums::MediaPlayerFormatPurpose >(enums::MediaPlayerFormatPurpose value)
const char * proto_enum_to_string< enums::ClimateMode >(enums::ClimateMode value)
const char * proto_enum_to_string< enums::WaterHeaterMode >(enums::WaterHeaterMode value)
const char * proto_enum_to_string< enums::MediaPlayerCommand >(enums::MediaPlayerCommand value)
const char * proto_enum_to_string< enums::LockCommand >(enums::LockCommand value)
const char * proto_enum_to_string< enums::ZWaveProxyRequestType >(enums::ZWaveProxyRequestType value)
const char * proto_enum_to_string< enums::ValveOperation >(enums::ValveOperation value)
const char * proto_enum_to_string< enums::UpdateCommand >(enums::UpdateCommand value)
const char * proto_enum_to_string< enums::SupportsResponseType >(enums::SupportsResponseType 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.