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);
91template<
typename T>
static void dump_field(std::string &out,
const char *field_name, T value,
int indent = 2) {
92 append_field_prefix(out, field_name, indent);
100 return "ENTITY_CATEGORY_NONE";
102 return "ENTITY_CATEGORY_CONFIG";
104 return "ENTITY_CATEGORY_DIAGNOSTIC";
113 return "COVER_OPERATION_IDLE";
115 return "COVER_OPERATION_IS_OPENING";
117 return "COVER_OPERATION_IS_CLOSING";
127 return "FAN_DIRECTION_FORWARD";
129 return "FAN_DIRECTION_REVERSE";
139 return "COLOR_MODE_UNKNOWN";
141 return "COLOR_MODE_ON_OFF";
143 return "COLOR_MODE_LEGACY_BRIGHTNESS";
145 return "COLOR_MODE_BRIGHTNESS";
147 return "COLOR_MODE_WHITE";
149 return "COLOR_MODE_COLOR_TEMPERATURE";
151 return "COLOR_MODE_COLD_WARM_WHITE";
153 return "COLOR_MODE_RGB";
155 return "COLOR_MODE_RGB_WHITE";
157 return "COLOR_MODE_RGB_COLOR_TEMPERATURE";
159 return "COLOR_MODE_RGB_COLD_WARM_WHITE";
169 return "STATE_CLASS_NONE";
171 return "STATE_CLASS_MEASUREMENT";
173 return "STATE_CLASS_TOTAL_INCREASING";
175 return "STATE_CLASS_TOTAL";
184 return "LOG_LEVEL_NONE";
186 return "LOG_LEVEL_ERROR";
188 return "LOG_LEVEL_WARN";
190 return "LOG_LEVEL_INFO";
192 return "LOG_LEVEL_CONFIG";
194 return "LOG_LEVEL_DEBUG";
196 return "LOG_LEVEL_VERBOSE";
198 return "LOG_LEVEL_VERY_VERBOSE";
203#ifdef USE_API_SERVICES
207 return "SERVICE_ARG_TYPE_BOOL";
209 return "SERVICE_ARG_TYPE_INT";
211 return "SERVICE_ARG_TYPE_FLOAT";
213 return "SERVICE_ARG_TYPE_STRING";
215 return "SERVICE_ARG_TYPE_BOOL_ARRAY";
217 return "SERVICE_ARG_TYPE_INT_ARRAY";
219 return "SERVICE_ARG_TYPE_FLOAT_ARRAY";
221 return "SERVICE_ARG_TYPE_STRING_ARRAY";
231 return "CLIMATE_MODE_OFF";
233 return "CLIMATE_MODE_HEAT_COOL";
235 return "CLIMATE_MODE_COOL";
237 return "CLIMATE_MODE_HEAT";
239 return "CLIMATE_MODE_FAN_ONLY";
241 return "CLIMATE_MODE_DRY";
243 return "CLIMATE_MODE_AUTO";
251 return "CLIMATE_FAN_ON";
253 return "CLIMATE_FAN_OFF";
255 return "CLIMATE_FAN_AUTO";
257 return "CLIMATE_FAN_LOW";
259 return "CLIMATE_FAN_MEDIUM";
261 return "CLIMATE_FAN_HIGH";
263 return "CLIMATE_FAN_MIDDLE";
265 return "CLIMATE_FAN_FOCUS";
267 return "CLIMATE_FAN_DIFFUSE";
269 return "CLIMATE_FAN_QUIET";
277 return "CLIMATE_SWING_OFF";
279 return "CLIMATE_SWING_BOTH";
281 return "CLIMATE_SWING_VERTICAL";
283 return "CLIMATE_SWING_HORIZONTAL";
291 return "CLIMATE_ACTION_OFF";
293 return "CLIMATE_ACTION_COOLING";
295 return "CLIMATE_ACTION_HEATING";
297 return "CLIMATE_ACTION_IDLE";
299 return "CLIMATE_ACTION_DRYING";
301 return "CLIMATE_ACTION_FAN";
309 return "CLIMATE_PRESET_NONE";
311 return "CLIMATE_PRESET_HOME";
313 return "CLIMATE_PRESET_AWAY";
315 return "CLIMATE_PRESET_BOOST";
317 return "CLIMATE_PRESET_COMFORT";
319 return "CLIMATE_PRESET_ECO";
321 return "CLIMATE_PRESET_SLEEP";
323 return "CLIMATE_PRESET_ACTIVITY";
333 return "NUMBER_MODE_AUTO";
335 return "NUMBER_MODE_BOX";
337 return "NUMBER_MODE_SLIDER";
347 return "LOCK_STATE_NONE";
349 return "LOCK_STATE_LOCKED";
351 return "LOCK_STATE_UNLOCKED";
353 return "LOCK_STATE_JAMMED";
355 return "LOCK_STATE_LOCKING";
357 return "LOCK_STATE_UNLOCKING";
365 return "LOCK_UNLOCK";
375#ifdef USE_MEDIA_PLAYER
379 return "MEDIA_PLAYER_STATE_NONE";
381 return "MEDIA_PLAYER_STATE_IDLE";
383 return "MEDIA_PLAYER_STATE_PLAYING";
385 return "MEDIA_PLAYER_STATE_PAUSED";
387 return "MEDIA_PLAYER_STATE_ANNOUNCING";
389 return "MEDIA_PLAYER_STATE_OFF";
391 return "MEDIA_PLAYER_STATE_ON";
399 return "MEDIA_PLAYER_COMMAND_PLAY";
401 return "MEDIA_PLAYER_COMMAND_PAUSE";
403 return "MEDIA_PLAYER_COMMAND_STOP";
405 return "MEDIA_PLAYER_COMMAND_MUTE";
407 return "MEDIA_PLAYER_COMMAND_UNMUTE";
409 return "MEDIA_PLAYER_COMMAND_TOGGLE";
411 return "MEDIA_PLAYER_COMMAND_VOLUME_UP";
413 return "MEDIA_PLAYER_COMMAND_VOLUME_DOWN";
415 return "MEDIA_PLAYER_COMMAND_ENQUEUE";
417 return "MEDIA_PLAYER_COMMAND_REPEAT_ONE";
419 return "MEDIA_PLAYER_COMMAND_REPEAT_OFF";
421 return "MEDIA_PLAYER_COMMAND_CLEAR_PLAYLIST";
423 return "MEDIA_PLAYER_COMMAND_TURN_ON";
425 return "MEDIA_PLAYER_COMMAND_TURN_OFF";
433 return "MEDIA_PLAYER_FORMAT_PURPOSE_DEFAULT";
435 return "MEDIA_PLAYER_FORMAT_PURPOSE_ANNOUNCEMENT";
441#ifdef USE_BLUETOOTH_PROXY
446 return "BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT";
448 return "BLUETOOTH_DEVICE_REQUEST_TYPE_DISCONNECT";
450 return "BLUETOOTH_DEVICE_REQUEST_TYPE_PAIR";
452 return "BLUETOOTH_DEVICE_REQUEST_TYPE_UNPAIR";
454 return "BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT_V3_WITH_CACHE";
456 return "BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT_V3_WITHOUT_CACHE";
458 return "BLUETOOTH_DEVICE_REQUEST_TYPE_CLEAR_CACHE";
466 return "BLUETOOTH_SCANNER_STATE_IDLE";
468 return "BLUETOOTH_SCANNER_STATE_STARTING";
470 return "BLUETOOTH_SCANNER_STATE_RUNNING";
472 return "BLUETOOTH_SCANNER_STATE_FAILED";
474 return "BLUETOOTH_SCANNER_STATE_STOPPING";
476 return "BLUETOOTH_SCANNER_STATE_STOPPED";
484 return "BLUETOOTH_SCANNER_MODE_PASSIVE";
486 return "BLUETOOTH_SCANNER_MODE_ACTIVE";
496 return "VOICE_ASSISTANT_SUBSCRIBE_NONE";
498 return "VOICE_ASSISTANT_SUBSCRIBE_API_AUDIO";
506 return "VOICE_ASSISTANT_REQUEST_NONE";
508 return "VOICE_ASSISTANT_REQUEST_USE_VAD";
510 return "VOICE_ASSISTANT_REQUEST_USE_WAKE_WORD";
515#ifdef USE_VOICE_ASSISTANT
519 return "VOICE_ASSISTANT_ERROR";
521 return "VOICE_ASSISTANT_RUN_START";
523 return "VOICE_ASSISTANT_RUN_END";
525 return "VOICE_ASSISTANT_STT_START";
527 return "VOICE_ASSISTANT_STT_END";
529 return "VOICE_ASSISTANT_INTENT_START";
531 return "VOICE_ASSISTANT_INTENT_END";
533 return "VOICE_ASSISTANT_TTS_START";
535 return "VOICE_ASSISTANT_TTS_END";
537 return "VOICE_ASSISTANT_WAKE_WORD_START";
539 return "VOICE_ASSISTANT_WAKE_WORD_END";
541 return "VOICE_ASSISTANT_STT_VAD_START";
543 return "VOICE_ASSISTANT_STT_VAD_END";
545 return "VOICE_ASSISTANT_TTS_STREAM_START";
547 return "VOICE_ASSISTANT_TTS_STREAM_END";
549 return "VOICE_ASSISTANT_INTENT_PROGRESS";
557 return "VOICE_ASSISTANT_TIMER_STARTED";
559 return "VOICE_ASSISTANT_TIMER_UPDATED";
561 return "VOICE_ASSISTANT_TIMER_CANCELLED";
563 return "VOICE_ASSISTANT_TIMER_FINISHED";
569#ifdef USE_ALARM_CONTROL_PANEL
573 return "ALARM_STATE_DISARMED";
575 return "ALARM_STATE_ARMED_HOME";
577 return "ALARM_STATE_ARMED_AWAY";
579 return "ALARM_STATE_ARMED_NIGHT";
581 return "ALARM_STATE_ARMED_VACATION";
583 return "ALARM_STATE_ARMED_CUSTOM_BYPASS";
585 return "ALARM_STATE_PENDING";
587 return "ALARM_STATE_ARMING";
589 return "ALARM_STATE_DISARMING";
591 return "ALARM_STATE_TRIGGERED";
600 return "ALARM_CONTROL_PANEL_DISARM";
602 return "ALARM_CONTROL_PANEL_ARM_AWAY";
604 return "ALARM_CONTROL_PANEL_ARM_HOME";
606 return "ALARM_CONTROL_PANEL_ARM_NIGHT";
608 return "ALARM_CONTROL_PANEL_ARM_VACATION";
610 return "ALARM_CONTROL_PANEL_ARM_CUSTOM_BYPASS";
612 return "ALARM_CONTROL_PANEL_TRIGGER";
622 return "TEXT_MODE_TEXT";
624 return "TEXT_MODE_PASSWORD";
634 return "VALVE_OPERATION_IDLE";
636 return "VALVE_OPERATION_IS_OPENING";
638 return "VALVE_OPERATION_IS_CLOSING";
648 return "UPDATE_COMMAND_NONE";
650 return "UPDATE_COMMAND_UPDATE";
652 return "UPDATE_COMMAND_CHECK";
658#ifdef USE_ZWAVE_PROXY
662 return "ZWAVE_PROXY_REQUEST_TYPE_SUBSCRIBE";
664 return "ZWAVE_PROXY_REQUEST_TYPE_UNSUBSCRIBE";
666 return "ZWAVE_PROXY_REQUEST_TYPE_HOME_ID_CHANGE";
674 MessageDumpHelper helper(out,
"HelloRequest");
675 out.append(
" client_info: ");
682 MessageDumpHelper helper(out,
"HelloResponse");
686 dump_field(out,
"name", this->
name_ref_);
688#ifdef USE_API_PASSWORD
690 MessageDumpHelper helper(out,
"AuthenticationRequest");
691 out.append(
" password: ");
696 MessageDumpHelper helper(out,
"AuthenticationResponse");
707 MessageDumpHelper helper(out,
"AreaInfo");
708 dump_field(out,
"area_id", this->
area_id);
709 dump_field(out,
"name", this->
name_ref_);
714 MessageDumpHelper helper(out,
"DeviceInfo");
715 dump_field(out,
"device_id", this->
device_id);
716 dump_field(out,
"name", this->
name_ref_);
717 dump_field(out,
"area_id", this->
area_id);
721 MessageDumpHelper helper(out,
"DeviceInfoResponse");
722#ifdef USE_API_PASSWORD
725 dump_field(out,
"name", this->
name_ref_);
733#ifdef ESPHOME_PROJECT_NAME
736#ifdef ESPHOME_PROJECT_NAME
742#ifdef USE_BLUETOOTH_PROXY
747#ifdef USE_VOICE_ASSISTANT
753#ifdef USE_BLUETOOTH_PROXY
760 for (
const auto &it : this->
devices) {
761 out.append(
" devices: ");
767 for (
const auto &it : this->
areas) {
768 out.append(
" areas: ");
774 out.append(
" area: ");
778#ifdef USE_ZWAVE_PROXY
781#ifdef USE_ZWAVE_PROXY
788#ifdef USE_BINARY_SENSOR
790 MessageDumpHelper helper(out,
"ListEntitiesBinarySensorResponse");
792 dump_field(out,
"key", this->
key);
793 dump_field(out,
"name", this->
name_ref_);
797#ifdef USE_ENTITY_ICON
798 dump_field(out,
"icon", this->
icon_ref_);
802 dump_field(out,
"device_id", this->
device_id);
806 MessageDumpHelper helper(out,
"BinarySensorStateResponse");
807 dump_field(out,
"key", this->
key);
808 dump_field(out,
"state", this->
state);
811 dump_field(out,
"device_id", this->
device_id);
817 MessageDumpHelper helper(out,
"ListEntitiesCoverResponse");
819 dump_field(out,
"key", this->
key);
820 dump_field(out,
"name", this->
name_ref_);
826#ifdef USE_ENTITY_ICON
827 dump_field(out,
"icon", this->
icon_ref_);
832 dump_field(out,
"device_id", this->
device_id);
836 MessageDumpHelper helper(out,
"CoverStateResponse");
837 dump_field(out,
"key", this->
key);
838 dump_field(out,
"position", this->
position);
839 dump_field(out,
"tilt", this->
tilt);
842 dump_field(out,
"device_id", this->
device_id);
846 MessageDumpHelper helper(out,
"CoverCommandRequest");
847 dump_field(out,
"key", this->
key);
849 dump_field(out,
"position", this->
position);
850 dump_field(out,
"has_tilt", this->
has_tilt);
851 dump_field(out,
"tilt", this->
tilt);
852 dump_field(out,
"stop", this->
stop);
854 dump_field(out,
"device_id", this->
device_id);
860 MessageDumpHelper helper(out,
"ListEntitiesFanResponse");
862 dump_field(out,
"key", this->
key);
863 dump_field(out,
"name", this->
name_ref_);
869#ifdef USE_ENTITY_ICON
870 dump_field(out,
"icon", this->
icon_ref_);
874 dump_field(out,
"supported_preset_modes", it, 4);
877 dump_field(out,
"device_id", this->
device_id);
881 MessageDumpHelper helper(out,
"FanStateResponse");
882 dump_field(out,
"key", this->
key);
883 dump_field(out,
"state", this->
state);
889 dump_field(out,
"device_id", this->
device_id);
893 MessageDumpHelper helper(out,
"FanCommandRequest");
894 dump_field(out,
"key", this->
key);
895 dump_field(out,
"has_state", this->
has_state);
896 dump_field(out,
"state", this->
state);
906 dump_field(out,
"device_id", this->
device_id);
912 MessageDumpHelper helper(out,
"ListEntitiesLightResponse");
914 dump_field(out,
"key", this->
key);
915 dump_field(out,
"name", this->
name_ref_);
917 dump_field(out,
"supported_color_modes",
static_cast<enums::ColorMode>(it), 4);
919 dump_field(out,
"min_mireds", this->
min_mireds);
920 dump_field(out,
"max_mireds", this->
max_mireds);
921 for (
const auto &it : this->
effects) {
922 dump_field(out,
"effects", it, 4);
925#ifdef USE_ENTITY_ICON
926 dump_field(out,
"icon", this->
icon_ref_);
930 dump_field(out,
"device_id", this->
device_id);
934 MessageDumpHelper helper(out,
"LightStateResponse");
935 dump_field(out,
"key", this->
key);
936 dump_field(out,
"state", this->
state);
937 dump_field(out,
"brightness", this->
brightness);
940 dump_field(out,
"red", this->
red);
941 dump_field(out,
"green", this->
green);
942 dump_field(out,
"blue", this->
blue);
943 dump_field(out,
"white", this->
white);
945 dump_field(out,
"cold_white", this->
cold_white);
946 dump_field(out,
"warm_white", this->
warm_white);
949 dump_field(out,
"device_id", this->
device_id);
953 MessageDumpHelper helper(out,
"LightCommandRequest");
954 dump_field(out,
"key", this->
key);
955 dump_field(out,
"has_state", this->
has_state);
956 dump_field(out,
"state", this->
state);
958 dump_field(out,
"brightness", this->
brightness);
963 dump_field(out,
"has_rgb", this->
has_rgb);
964 dump_field(out,
"red", this->
red);
965 dump_field(out,
"green", this->
green);
966 dump_field(out,
"blue", this->
blue);
967 dump_field(out,
"has_white", this->
has_white);
968 dump_field(out,
"white", this->
white);
972 dump_field(out,
"cold_white", this->
cold_white);
974 dump_field(out,
"warm_white", this->
warm_white);
979 dump_field(out,
"has_effect", this->
has_effect);
980 dump_field(out,
"effect", this->
effect);
982 dump_field(out,
"device_id", this->
device_id);
988 MessageDumpHelper helper(out,
"ListEntitiesSensorResponse");
990 dump_field(out,
"key", this->
key);
991 dump_field(out,
"name", this->
name_ref_);
992#ifdef USE_ENTITY_ICON
993 dump_field(out,
"icon", this->
icon_ref_);
1003 dump_field(out,
"device_id", this->
device_id);
1007 MessageDumpHelper helper(out,
"SensorStateResponse");
1008 dump_field(out,
"key", this->
key);
1009 dump_field(out,
"state", this->
state);
1012 dump_field(out,
"device_id", this->
device_id);
1018 MessageDumpHelper helper(out,
"ListEntitiesSwitchResponse");
1020 dump_field(out,
"key", this->
key);
1021 dump_field(out,
"name", this->
name_ref_);
1022#ifdef USE_ENTITY_ICON
1023 dump_field(out,
"icon", this->
icon_ref_);
1030 dump_field(out,
"device_id", this->
device_id);
1034 MessageDumpHelper helper(out,
"SwitchStateResponse");
1035 dump_field(out,
"key", this->
key);
1036 dump_field(out,
"state", this->
state);
1038 dump_field(out,
"device_id", this->
device_id);
1042 MessageDumpHelper helper(out,
"SwitchCommandRequest");
1043 dump_field(out,
"key", this->
key);
1044 dump_field(out,
"state", this->
state);
1046 dump_field(out,
"device_id", this->
device_id);
1050#ifdef USE_TEXT_SENSOR
1052 MessageDumpHelper helper(out,
"ListEntitiesTextSensorResponse");
1054 dump_field(out,
"key", this->
key);
1055 dump_field(out,
"name", this->
name_ref_);
1056#ifdef USE_ENTITY_ICON
1057 dump_field(out,
"icon", this->
icon_ref_);
1063 dump_field(out,
"device_id", this->
device_id);
1067 MessageDumpHelper helper(out,
"TextSensorStateResponse");
1068 dump_field(out,
"key", this->
key);
1072 dump_field(out,
"device_id", this->
device_id);
1077 MessageDumpHelper helper(out,
"SubscribeLogsRequest");
1079 dump_field(out,
"dump_config", this->
dump_config);
1082 MessageDumpHelper helper(out,
"SubscribeLogsResponse");
1084 out.append(
" message: ");
1090 MessageDumpHelper helper(out,
"NoiseEncryptionSetKeyRequest");
1091 out.append(
" key: ");
1092 out.append(
format_hex_pretty(
reinterpret_cast<const uint8_t *
>(this->
key.data()), this->key.size()));
1097#ifdef USE_API_HOMEASSISTANT_SERVICES
1099 out.append(
"SubscribeHomeassistantServicesRequest {}");
1102 MessageDumpHelper helper(out,
"HomeassistantServiceMap");
1103 dump_field(out,
"key", this->
key_ref_);
1104 dump_field(out,
"value", this->value);
1107 MessageDumpHelper helper(out,
"HomeassistantActionRequest");
1109 for (
const auto &it : this->
data) {
1110 out.append(
" data: ");
1115 out.append(
" data_template: ");
1119 for (
const auto &it : this->
variables) {
1120 out.append(
" variables: ");
1124 dump_field(out,
"is_event", this->
is_event);
1125#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES
1126 dump_field(out,
"call_id", this->
call_id);
1128#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1131#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1136#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES
1138 MessageDumpHelper helper(out,
"HomeassistantActionResponse");
1139 dump_field(out,
"call_id", this->
call_id);
1140 dump_field(out,
"success", this->
success);
1142#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
1143 out.append(
" response_data: ");
1149#ifdef USE_API_HOMEASSISTANT_STATES
1151 out.append(
"SubscribeHomeAssistantStatesRequest {}");
1154 MessageDumpHelper helper(out,
"SubscribeHomeAssistantStateResponse");
1157 dump_field(out,
"once", this->
once);
1160 MessageDumpHelper helper(out,
"HomeAssistantStateResponse");
1161 dump_field(out,
"entity_id", this->
entity_id);
1162 dump_field(out,
"state", this->
state);
1163 dump_field(out,
"attribute", this->
attribute);
1168 MessageDumpHelper helper(out,
"GetTimeResponse");
1170 out.append(
" timezone: ");
1174#ifdef USE_API_SERVICES
1176 MessageDumpHelper helper(out,
"ListEntitiesServicesArgument");
1177 dump_field(out,
"name", this->
name_ref_);
1181 MessageDumpHelper helper(out,
"ListEntitiesServicesResponse");
1182 dump_field(out,
"name", this->
name_ref_);
1183 dump_field(out,
"key", this->
key);
1184 for (
const auto &it : this->
args) {
1185 out.append(
" args: ");
1191 MessageDumpHelper helper(out,
"ExecuteServiceArgument");
1192 dump_field(out,
"bool_", this->
bool_);
1193 dump_field(out,
"legacy_int", this->
legacy_int);
1194 dump_field(out,
"float_", this->
float_);
1195 dump_field(out,
"string_", this->
string_);
1196 dump_field(out,
"int_", this->
int_);
1198 dump_field(out,
"bool_array",
static_cast<bool>(it), 4);
1200 for (
const auto &it : this->
int_array) {
1201 dump_field(out,
"int_array", it, 4);
1204 dump_field(out,
"float_array", it, 4);
1207 dump_field(out,
"string_array", it, 4);
1211 MessageDumpHelper helper(out,
"ExecuteServiceRequest");
1212 dump_field(out,
"key", this->
key);
1213 for (
const auto &it : this->
args) {
1214 out.append(
" args: ");
1222 MessageDumpHelper helper(out,
"ListEntitiesCameraResponse");
1224 dump_field(out,
"key", this->
key);
1225 dump_field(out,
"name", this->
name_ref_);
1227#ifdef USE_ENTITY_ICON
1228 dump_field(out,
"icon", this->
icon_ref_);
1232 dump_field(out,
"device_id", this->
device_id);
1236 MessageDumpHelper helper(out,
"CameraImageResponse");
1237 dump_field(out,
"key", this->
key);
1238 out.append(
" data: ");
1241 dump_field(out,
"done", this->
done);
1243 dump_field(out,
"device_id", this->
device_id);
1247 MessageDumpHelper helper(out,
"CameraImageRequest");
1248 dump_field(out,
"single", this->
single);
1249 dump_field(out,
"stream", this->
stream);
1254 MessageDumpHelper helper(out,
"ListEntitiesClimateResponse");
1256 dump_field(out,
"key", this->
key);
1257 dump_field(out,
"name", this->
name_ref_);
1274 dump_field(out,
"supported_custom_fan_modes", it, 4);
1280 dump_field(out,
"supported_custom_presets", it, 4);
1283#ifdef USE_ENTITY_ICON
1284 dump_field(out,
"icon", this->
icon_ref_);
1293 dump_field(out,
"device_id", this->
device_id);
1297 MessageDumpHelper helper(out,
"ClimateStateResponse");
1298 dump_field(out,
"key", this->
key);
1313 dump_field(out,
"device_id", this->
device_id);
1317 MessageDumpHelper helper(out,
"ClimateCommandRequest");
1318 dump_field(out,
"key", this->
key);
1319 dump_field(out,
"has_mode", this->
has_mode);
1333 dump_field(out,
"has_preset", this->
has_preset);
1340 dump_field(out,
"device_id", this->
device_id);
1346 MessageDumpHelper helper(out,
"ListEntitiesNumberResponse");
1348 dump_field(out,
"key", this->
key);
1349 dump_field(out,
"name", this->
name_ref_);
1350#ifdef USE_ENTITY_ICON
1351 dump_field(out,
"icon", this->
icon_ref_);
1353 dump_field(out,
"min_value", this->
min_value);
1354 dump_field(out,
"max_value", this->
max_value);
1355 dump_field(out,
"step", this->
step);
1362 dump_field(out,
"device_id", this->
device_id);
1366 MessageDumpHelper helper(out,
"NumberStateResponse");
1367 dump_field(out,
"key", this->
key);
1368 dump_field(out,
"state", this->
state);
1371 dump_field(out,
"device_id", this->
device_id);
1375 MessageDumpHelper helper(out,
"NumberCommandRequest");
1376 dump_field(out,
"key", this->
key);
1377 dump_field(out,
"state", this->
state);
1379 dump_field(out,
"device_id", this->
device_id);
1385 MessageDumpHelper helper(out,
"ListEntitiesSelectResponse");
1387 dump_field(out,
"key", this->
key);
1388 dump_field(out,
"name", this->
name_ref_);
1389#ifdef USE_ENTITY_ICON
1390 dump_field(out,
"icon", this->
icon_ref_);
1392 for (
const auto &it : *this->
options) {
1393 dump_field(out,
"options", it, 4);
1398 dump_field(out,
"device_id", this->
device_id);
1402 MessageDumpHelper helper(out,
"SelectStateResponse");
1403 dump_field(out,
"key", this->
key);
1407 dump_field(out,
"device_id", this->
device_id);
1411 MessageDumpHelper helper(out,
"SelectCommandRequest");
1412 dump_field(out,
"key", this->
key);
1413 dump_field(out,
"state", this->
state);
1415 dump_field(out,
"device_id", this->
device_id);
1421 MessageDumpHelper helper(out,
"ListEntitiesSirenResponse");
1423 dump_field(out,
"key", this->
key);
1424 dump_field(out,
"name", this->
name_ref_);
1425#ifdef USE_ENTITY_ICON
1426 dump_field(out,
"icon", this->
icon_ref_);
1429 for (
const auto &it : this->
tones) {
1430 dump_field(out,
"tones", it, 4);
1436 dump_field(out,
"device_id", this->
device_id);
1440 MessageDumpHelper helper(out,
"SirenStateResponse");
1441 dump_field(out,
"key", this->
key);
1442 dump_field(out,
"state", this->
state);
1444 dump_field(out,
"device_id", this->
device_id);
1448 MessageDumpHelper helper(out,
"SirenCommandRequest");
1449 dump_field(out,
"key", this->
key);
1450 dump_field(out,
"has_state", this->
has_state);
1451 dump_field(out,
"state", this->
state);
1452 dump_field(out,
"has_tone", this->
has_tone);
1453 dump_field(out,
"tone", this->
tone);
1455 dump_field(out,
"duration", this->
duration);
1456 dump_field(out,
"has_volume", this->
has_volume);
1457 dump_field(out,
"volume", this->
volume);
1459 dump_field(out,
"device_id", this->
device_id);
1465 MessageDumpHelper helper(out,
"ListEntitiesLockResponse");
1467 dump_field(out,
"key", this->
key);
1468 dump_field(out,
"name", this->
name_ref_);
1469#ifdef USE_ENTITY_ICON
1470 dump_field(out,
"icon", this->
icon_ref_);
1479 dump_field(out,
"device_id", this->
device_id);
1483 MessageDumpHelper helper(out,
"LockStateResponse");
1484 dump_field(out,
"key", this->
key);
1487 dump_field(out,
"device_id", this->
device_id);
1491 MessageDumpHelper helper(out,
"LockCommandRequest");
1492 dump_field(out,
"key", this->
key);
1494 dump_field(out,
"has_code", this->
has_code);
1495 dump_field(out,
"code", this->
code);
1497 dump_field(out,
"device_id", this->
device_id);
1503 MessageDumpHelper helper(out,
"ListEntitiesButtonResponse");
1505 dump_field(out,
"key", this->
key);
1506 dump_field(out,
"name", this->
name_ref_);
1507#ifdef USE_ENTITY_ICON
1508 dump_field(out,
"icon", this->
icon_ref_);
1514 dump_field(out,
"device_id", this->
device_id);
1518 MessageDumpHelper helper(out,
"ButtonCommandRequest");
1519 dump_field(out,
"key", this->
key);
1521 dump_field(out,
"device_id", this->
device_id);
1525#ifdef USE_MEDIA_PLAYER
1527 MessageDumpHelper helper(out,
"MediaPlayerSupportedFormat");
1529 dump_field(out,
"sample_rate", this->
sample_rate);
1535 MessageDumpHelper helper(out,
"ListEntitiesMediaPlayerResponse");
1537 dump_field(out,
"key", this->
key);
1538 dump_field(out,
"name", this->
name_ref_);
1539#ifdef USE_ENTITY_ICON
1540 dump_field(out,
"icon", this->
icon_ref_);
1546 out.append(
" supported_formats: ");
1551 dump_field(out,
"device_id", this->
device_id);
1556 MessageDumpHelper helper(out,
"MediaPlayerStateResponse");
1557 dump_field(out,
"key", this->
key);
1559 dump_field(out,
"volume", this->
volume);
1560 dump_field(out,
"muted", this->
muted);
1562 dump_field(out,
"device_id", this->
device_id);
1566 MessageDumpHelper helper(out,
"MediaPlayerCommandRequest");
1567 dump_field(out,
"key", this->
key);
1568 dump_field(out,
"has_command", this->
has_command);
1570 dump_field(out,
"has_volume", this->
has_volume);
1571 dump_field(out,
"volume", this->
volume);
1573 dump_field(out,
"media_url", this->
media_url);
1577 dump_field(out,
"device_id", this->
device_id);
1581#ifdef USE_BLUETOOTH_PROXY
1583 MessageDumpHelper helper(out,
"SubscribeBluetoothLEAdvertisementsRequest");
1584 dump_field(out,
"flags", this->
flags);
1587 MessageDumpHelper helper(out,
"BluetoothLERawAdvertisement");
1588 dump_field(out,
"address", this->
address);
1589 dump_field(out,
"rssi", this->
rssi);
1591 out.append(
" data: ");
1596 MessageDumpHelper helper(out,
"BluetoothLERawAdvertisementsResponse");
1598 out.append(
" advertisements: ");
1604 MessageDumpHelper helper(out,
"BluetoothDeviceRequest");
1605 dump_field(out,
"address", this->
address);
1611 MessageDumpHelper helper(out,
"BluetoothDeviceConnectionResponse");
1612 dump_field(out,
"address", this->
address);
1613 dump_field(out,
"connected", this->
connected);
1614 dump_field(out,
"mtu", this->
mtu);
1615 dump_field(out,
"error", this->
error);
1619 MessageDumpHelper helper(out,
"BluetoothGATTDescriptor");
1620 for (
const auto &it : this->
uuid) {
1621 dump_field(out,
"uuid", it, 4);
1623 dump_field(out,
"handle", this->
handle);
1624 dump_field(out,
"short_uuid", this->
short_uuid);
1627 MessageDumpHelper helper(out,
"BluetoothGATTCharacteristic");
1628 for (
const auto &it : this->
uuid) {
1629 dump_field(out,
"uuid", it, 4);
1631 dump_field(out,
"handle", this->
handle);
1632 dump_field(out,
"properties", this->
properties);
1634 out.append(
" descriptors: ");
1638 dump_field(out,
"short_uuid", this->
short_uuid);
1641 MessageDumpHelper helper(out,
"BluetoothGATTService");
1642 for (
const auto &it : this->
uuid) {
1643 dump_field(out,
"uuid", it, 4);
1645 dump_field(out,
"handle", this->
handle);
1647 out.append(
" characteristics: ");
1651 dump_field(out,
"short_uuid", this->
short_uuid);
1654 MessageDumpHelper helper(out,
"BluetoothGATTGetServicesResponse");
1655 dump_field(out,
"address", this->
address);
1656 for (
const auto &it : this->
services) {
1657 out.append(
" services: ");
1663 MessageDumpHelper helper(out,
"BluetoothGATTGetServicesDoneResponse");
1664 dump_field(out,
"address", this->
address);
1667 MessageDumpHelper helper(out,
"BluetoothGATTReadRequest");
1668 dump_field(out,
"address", this->
address);
1669 dump_field(out,
"handle", this->
handle);
1672 MessageDumpHelper helper(out,
"BluetoothGATTReadResponse");
1673 dump_field(out,
"address", this->
address);
1674 dump_field(out,
"handle", this->
handle);
1675 out.append(
" data: ");
1680 MessageDumpHelper helper(out,
"BluetoothGATTWriteRequest");
1681 dump_field(out,
"address", this->
address);
1682 dump_field(out,
"handle", this->
handle);
1683 dump_field(out,
"response", this->
response);
1684 out.append(
" data: ");
1689 MessageDumpHelper helper(out,
"BluetoothGATTReadDescriptorRequest");
1690 dump_field(out,
"address", this->
address);
1691 dump_field(out,
"handle", this->
handle);
1694 MessageDumpHelper helper(out,
"BluetoothGATTWriteDescriptorRequest");
1695 dump_field(out,
"address", this->
address);
1696 dump_field(out,
"handle", this->
handle);
1697 out.append(
" data: ");
1702 MessageDumpHelper helper(out,
"BluetoothGATTNotifyRequest");
1703 dump_field(out,
"address", this->
address);
1704 dump_field(out,
"handle", this->
handle);
1705 dump_field(out,
"enable", this->
enable);
1708 MessageDumpHelper helper(out,
"BluetoothGATTNotifyDataResponse");
1709 dump_field(out,
"address", this->
address);
1710 dump_field(out,
"handle", this->
handle);
1711 out.append(
" data: ");
1716 out.append(
"SubscribeBluetoothConnectionsFreeRequest {}");
1719 MessageDumpHelper helper(out,
"BluetoothConnectionsFreeResponse");
1720 dump_field(out,
"free", this->
free);
1721 dump_field(out,
"limit", this->
limit);
1722 for (
const auto &it : this->
allocated) {
1723 dump_field(out,
"allocated", it, 4);
1727 MessageDumpHelper helper(out,
"BluetoothGATTErrorResponse");
1728 dump_field(out,
"address", this->
address);
1729 dump_field(out,
"handle", this->
handle);
1730 dump_field(out,
"error", this->
error);
1733 MessageDumpHelper helper(out,
"BluetoothGATTWriteResponse");
1734 dump_field(out,
"address", this->
address);
1735 dump_field(out,
"handle", this->
handle);
1738 MessageDumpHelper helper(out,
"BluetoothGATTNotifyResponse");
1739 dump_field(out,
"address", this->
address);
1740 dump_field(out,
"handle", this->
handle);
1743 MessageDumpHelper helper(out,
"BluetoothDevicePairingResponse");
1744 dump_field(out,
"address", this->
address);
1745 dump_field(out,
"paired", this->
paired);
1746 dump_field(out,
"error", this->
error);
1749 MessageDumpHelper helper(out,
"BluetoothDeviceUnpairingResponse");
1750 dump_field(out,
"address", this->
address);
1751 dump_field(out,
"success", this->
success);
1752 dump_field(out,
"error", this->
error);
1755 out.append(
"UnsubscribeBluetoothLEAdvertisementsRequest {}");
1758 MessageDumpHelper helper(out,
"BluetoothDeviceClearCacheResponse");
1759 dump_field(out,
"address", this->
address);
1760 dump_field(out,
"success", this->
success);
1761 dump_field(out,
"error", this->
error);
1764 MessageDumpHelper helper(out,
"BluetoothScannerStateResponse");
1770 MessageDumpHelper helper(out,
"BluetoothScannerSetModeRequest");
1774#ifdef USE_VOICE_ASSISTANT
1776 MessageDumpHelper helper(out,
"SubscribeVoiceAssistantRequest");
1777 dump_field(out,
"subscribe", this->
subscribe);
1778 dump_field(out,
"flags", this->
flags);
1781 MessageDumpHelper helper(out,
"VoiceAssistantAudioSettings");
1783 dump_field(out,
"auto_gain", this->
auto_gain);
1787 MessageDumpHelper helper(out,
"VoiceAssistantRequest");
1788 dump_field(out,
"start", this->
start);
1790 dump_field(out,
"flags", this->
flags);
1791 out.append(
" audio_settings: ");
1797 MessageDumpHelper helper(out,
"VoiceAssistantResponse");
1798 dump_field(out,
"port", this->
port);
1799 dump_field(out,
"error", this->
error);
1802 MessageDumpHelper helper(out,
"VoiceAssistantEventData");
1803 dump_field(out,
"name", this->
name);
1804 dump_field(out,
"value", this->value);
1807 MessageDumpHelper helper(out,
"VoiceAssistantEventResponse");
1809 for (
const auto &it : this->
data) {
1810 out.append(
" data: ");
1816 MessageDumpHelper helper(out,
"VoiceAssistantAudio");
1817 out.append(
" data: ");
1821 out.append(
format_hex_pretty(
reinterpret_cast<const uint8_t *
>(this->
data.data()), this->data.size()));
1824 dump_field(out,
"end", this->
end);
1827 MessageDumpHelper helper(out,
"VoiceAssistantTimerEventResponse");
1829 dump_field(out,
"timer_id", this->
timer_id);
1830 dump_field(out,
"name", this->
name);
1833 dump_field(out,
"is_active", this->
is_active);
1836 MessageDumpHelper helper(out,
"VoiceAssistantAnnounceRequest");
1837 dump_field(out,
"media_id", this->
media_id);
1838 dump_field(out,
"text", this->
text);
1844 MessageDumpHelper helper(out,
"VoiceAssistantWakeWord");
1845 dump_field(out,
"id", this->
id_ref_);
1848 dump_field(out,
"trained_languages", it, 4);
1852 MessageDumpHelper helper(out,
"VoiceAssistantExternalWakeWord");
1853 dump_field(out,
"id", this->
id);
1854 dump_field(out,
"wake_word", this->
wake_word);
1856 dump_field(out,
"trained_languages", it, 4);
1858 dump_field(out,
"model_type", this->
model_type);
1859 dump_field(out,
"model_size", this->
model_size);
1860 dump_field(out,
"model_hash", this->
model_hash);
1861 dump_field(out,
"url", this->
url);
1864 MessageDumpHelper helper(out,
"VoiceAssistantConfigurationRequest");
1866 out.append(
" external_wake_words: ");
1872 MessageDumpHelper helper(out,
"VoiceAssistantConfigurationResponse");
1874 out.append(
" available_wake_words: ");
1879 dump_field(out,
"active_wake_words", it, 4);
1884 MessageDumpHelper helper(out,
"VoiceAssistantSetConfiguration");
1886 dump_field(out,
"active_wake_words", it, 4);
1890#ifdef USE_ALARM_CONTROL_PANEL
1892 MessageDumpHelper helper(out,
"ListEntitiesAlarmControlPanelResponse");
1894 dump_field(out,
"key", this->
key);
1895 dump_field(out,
"name", this->
name_ref_);
1896#ifdef USE_ENTITY_ICON
1897 dump_field(out,
"icon", this->
icon_ref_);
1905 dump_field(out,
"device_id", this->
device_id);
1909 MessageDumpHelper helper(out,
"AlarmControlPanelStateResponse");
1910 dump_field(out,
"key", this->
key);
1913 dump_field(out,
"device_id", this->
device_id);
1917 MessageDumpHelper helper(out,
"AlarmControlPanelCommandRequest");
1918 dump_field(out,
"key", this->
key);
1920 dump_field(out,
"code", this->
code);
1922 dump_field(out,
"device_id", this->
device_id);
1928 MessageDumpHelper helper(out,
"ListEntitiesTextResponse");
1930 dump_field(out,
"key", this->
key);
1931 dump_field(out,
"name", this->
name_ref_);
1932#ifdef USE_ENTITY_ICON
1933 dump_field(out,
"icon", this->
icon_ref_);
1937 dump_field(out,
"min_length", this->
min_length);
1938 dump_field(out,
"max_length", this->
max_length);
1942 dump_field(out,
"device_id", this->
device_id);
1946 MessageDumpHelper helper(out,
"TextStateResponse");
1947 dump_field(out,
"key", this->
key);
1951 dump_field(out,
"device_id", this->
device_id);
1955 MessageDumpHelper helper(out,
"TextCommandRequest");
1956 dump_field(out,
"key", this->
key);
1957 dump_field(out,
"state", this->
state);
1959 dump_field(out,
"device_id", this->
device_id);
1963#ifdef USE_DATETIME_DATE
1965 MessageDumpHelper helper(out,
"ListEntitiesDateResponse");
1967 dump_field(out,
"key", this->
key);
1968 dump_field(out,
"name", this->
name_ref_);
1969#ifdef USE_ENTITY_ICON
1970 dump_field(out,
"icon", this->
icon_ref_);
1975 dump_field(out,
"device_id", this->
device_id);
1979 MessageDumpHelper helper(out,
"DateStateResponse");
1980 dump_field(out,
"key", this->
key);
1982 dump_field(out,
"year", this->
year);
1983 dump_field(out,
"month", this->
month);
1984 dump_field(out,
"day", this->
day);
1986 dump_field(out,
"device_id", this->
device_id);
1990 MessageDumpHelper helper(out,
"DateCommandRequest");
1991 dump_field(out,
"key", this->
key);
1992 dump_field(out,
"year", this->
year);
1993 dump_field(out,
"month", this->
month);
1994 dump_field(out,
"day", this->
day);
1996 dump_field(out,
"device_id", this->
device_id);
2000#ifdef USE_DATETIME_TIME
2002 MessageDumpHelper helper(out,
"ListEntitiesTimeResponse");
2004 dump_field(out,
"key", this->
key);
2005 dump_field(out,
"name", this->
name_ref_);
2006#ifdef USE_ENTITY_ICON
2007 dump_field(out,
"icon", this->
icon_ref_);
2012 dump_field(out,
"device_id", this->
device_id);
2016 MessageDumpHelper helper(out,
"TimeStateResponse");
2017 dump_field(out,
"key", this->
key);
2019 dump_field(out,
"hour", this->
hour);
2020 dump_field(out,
"minute", this->
minute);
2021 dump_field(out,
"second", this->
second);
2023 dump_field(out,
"device_id", this->
device_id);
2027 MessageDumpHelper helper(out,
"TimeCommandRequest");
2028 dump_field(out,
"key", this->
key);
2029 dump_field(out,
"hour", this->
hour);
2030 dump_field(out,
"minute", this->
minute);
2031 dump_field(out,
"second", this->
second);
2033 dump_field(out,
"device_id", this->
device_id);
2039 MessageDumpHelper helper(out,
"ListEntitiesEventResponse");
2041 dump_field(out,
"key", this->
key);
2042 dump_field(out,
"name", this->
name_ref_);
2043#ifdef USE_ENTITY_ICON
2044 dump_field(out,
"icon", this->
icon_ref_);
2050 dump_field(out,
"event_types", it, 4);
2053 dump_field(out,
"device_id", this->
device_id);
2057 MessageDumpHelper helper(out,
"EventResponse");
2058 dump_field(out,
"key", this->
key);
2061 dump_field(out,
"device_id", this->
device_id);
2067 MessageDumpHelper helper(out,
"ListEntitiesValveResponse");
2069 dump_field(out,
"key", this->
key);
2070 dump_field(out,
"name", this->
name_ref_);
2071#ifdef USE_ENTITY_ICON
2072 dump_field(out,
"icon", this->
icon_ref_);
2081 dump_field(out,
"device_id", this->
device_id);
2085 MessageDumpHelper helper(out,
"ValveStateResponse");
2086 dump_field(out,
"key", this->
key);
2087 dump_field(out,
"position", this->
position);
2090 dump_field(out,
"device_id", this->
device_id);
2094 MessageDumpHelper helper(out,
"ValveCommandRequest");
2095 dump_field(out,
"key", this->
key);
2097 dump_field(out,
"position", this->
position);
2098 dump_field(out,
"stop", this->
stop);
2100 dump_field(out,
"device_id", this->
device_id);
2104#ifdef USE_DATETIME_DATETIME
2106 MessageDumpHelper helper(out,
"ListEntitiesDateTimeResponse");
2108 dump_field(out,
"key", this->
key);
2109 dump_field(out,
"name", this->
name_ref_);
2110#ifdef USE_ENTITY_ICON
2111 dump_field(out,
"icon", this->
icon_ref_);
2116 dump_field(out,
"device_id", this->
device_id);
2120 MessageDumpHelper helper(out,
"DateTimeStateResponse");
2121 dump_field(out,
"key", this->
key);
2125 dump_field(out,
"device_id", this->
device_id);
2129 MessageDumpHelper helper(out,
"DateTimeCommandRequest");
2130 dump_field(out,
"key", this->
key);
2133 dump_field(out,
"device_id", this->
device_id);
2139 MessageDumpHelper helper(out,
"ListEntitiesUpdateResponse");
2141 dump_field(out,
"key", this->
key);
2142 dump_field(out,
"name", this->
name_ref_);
2143#ifdef USE_ENTITY_ICON
2144 dump_field(out,
"icon", this->
icon_ref_);
2150 dump_field(out,
"device_id", this->
device_id);
2154 MessageDumpHelper helper(out,
"UpdateStateResponse");
2155 dump_field(out,
"key", this->
key);
2157 dump_field(out,
"in_progress", this->
in_progress);
2159 dump_field(out,
"progress", this->
progress);
2166 dump_field(out,
"device_id", this->
device_id);
2170 MessageDumpHelper helper(out,
"UpdateCommandRequest");
2171 dump_field(out,
"key", this->
key);
2174 dump_field(out,
"device_id", this->
device_id);
2178#ifdef USE_ZWAVE_PROXY
2180 MessageDumpHelper helper(out,
"ZWaveProxyFrame");
2181 out.append(
" data: ");
2186 MessageDumpHelper helper(out,
"ZWaveProxyRequest");
2188 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
std::vector< 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_
std::vector< 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
std::vector< int32_t > int_array
std::vector< bool > bool_array
void dump_to(std::string &out) const override
std::vector< std::string > string_array
std::vector< float > float_array
void dump_to(std::string &out) const override
std::vector< ExecuteServiceArgument > args
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
std::vector< HomeassistantServiceMap > data_template
std::vector< HomeassistantServiceMap > data
std::vector< HomeassistantServiceMap > variables
std::string response_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
void dump_to(std::string &out) const override
float visual_max_humidity
const std::set< std::string > * supported_custom_presets
bool supports_current_temperature
bool supports_current_humidity
bool supports_target_humidity
float visual_min_humidity
float visual_max_temperature
const std::set< climate::ClimateSwingMode > * supported_swing_modes
float visual_target_temperature_step
bool supports_two_point_target_temperature
const std::set< std::string > * supported_custom_fan_modes
float visual_min_temperature
const std::set< climate::ClimateFanMode > * supported_fan_modes
float visual_current_temperature_step
const std::set< climate::ClimatePreset > * supported_presets
const std::set< climate::ClimateMode > * supported_modes
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_
std::vector< std::string > event_types
const std::set< std::string > * supported_preset_modes
void dump_to(std::string &out) const override
int32_t supported_speed_count
bool supports_oscillation
const std::set< light::ColorMode > * supported_color_modes
void dump_to(std::string &out) const override
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
const std::vector< std::string > * options
void dump_to(std::string &out) const override
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
std::vector< 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.