11 #ifdef HAS_PROTO_MESSAGE_DUMP 15 return "ENTITY_CATEGORY_NONE";
17 return "ENTITY_CATEGORY_CONFIG";
19 return "ENTITY_CATEGORY_DIAGNOSTIC";
25 #ifdef HAS_PROTO_MESSAGE_DUMP 29 return "LEGACY_COVER_STATE_OPEN";
31 return "LEGACY_COVER_STATE_CLOSED";
37 #ifdef HAS_PROTO_MESSAGE_DUMP 41 return "COVER_OPERATION_IDLE";
43 return "COVER_OPERATION_IS_OPENING";
45 return "COVER_OPERATION_IS_CLOSING";
51 #ifdef HAS_PROTO_MESSAGE_DUMP 55 return "LEGACY_COVER_COMMAND_OPEN";
57 return "LEGACY_COVER_COMMAND_CLOSE";
59 return "LEGACY_COVER_COMMAND_STOP";
65 #ifdef HAS_PROTO_MESSAGE_DUMP 66 template<>
const char *proto_enum_to_string<enums::FanSpeed>(
enums::FanSpeed value) {
69 return "FAN_SPEED_LOW";
71 return "FAN_SPEED_MEDIUM";
73 return "FAN_SPEED_HIGH";
79 #ifdef HAS_PROTO_MESSAGE_DUMP 83 return "FAN_DIRECTION_FORWARD";
85 return "FAN_DIRECTION_REVERSE";
91 #ifdef HAS_PROTO_MESSAGE_DUMP 92 template<>
const char *proto_enum_to_string<enums::ColorMode>(
enums::ColorMode value) {
95 return "COLOR_MODE_UNKNOWN";
97 return "COLOR_MODE_ON_OFF";
99 return "COLOR_MODE_BRIGHTNESS";
101 return "COLOR_MODE_WHITE";
103 return "COLOR_MODE_COLOR_TEMPERATURE";
105 return "COLOR_MODE_COLD_WARM_WHITE";
107 return "COLOR_MODE_RGB";
109 return "COLOR_MODE_RGB_WHITE";
111 return "COLOR_MODE_RGB_COLOR_TEMPERATURE";
113 return "COLOR_MODE_RGB_COLD_WARM_WHITE";
119 #ifdef HAS_PROTO_MESSAGE_DUMP 123 return "STATE_CLASS_NONE";
125 return "STATE_CLASS_MEASUREMENT";
127 return "STATE_CLASS_TOTAL_INCREASING";
129 return "STATE_CLASS_TOTAL";
135 #ifdef HAS_PROTO_MESSAGE_DUMP 139 return "LAST_RESET_NONE";
141 return "LAST_RESET_NEVER";
143 return "LAST_RESET_AUTO";
149 #ifdef HAS_PROTO_MESSAGE_DUMP 153 return "LOG_LEVEL_NONE";
155 return "LOG_LEVEL_ERROR";
157 return "LOG_LEVEL_WARN";
159 return "LOG_LEVEL_INFO";
161 return "LOG_LEVEL_CONFIG";
163 return "LOG_LEVEL_DEBUG";
165 return "LOG_LEVEL_VERBOSE";
167 return "LOG_LEVEL_VERY_VERBOSE";
173 #ifdef HAS_PROTO_MESSAGE_DUMP 177 return "SERVICE_ARG_TYPE_BOOL";
179 return "SERVICE_ARG_TYPE_INT";
181 return "SERVICE_ARG_TYPE_FLOAT";
183 return "SERVICE_ARG_TYPE_STRING";
185 return "SERVICE_ARG_TYPE_BOOL_ARRAY";
187 return "SERVICE_ARG_TYPE_INT_ARRAY";
189 return "SERVICE_ARG_TYPE_FLOAT_ARRAY";
191 return "SERVICE_ARG_TYPE_STRING_ARRAY";
197 #ifdef HAS_PROTO_MESSAGE_DUMP 201 return "CLIMATE_MODE_OFF";
203 return "CLIMATE_MODE_HEAT_COOL";
205 return "CLIMATE_MODE_COOL";
207 return "CLIMATE_MODE_HEAT";
209 return "CLIMATE_MODE_FAN_ONLY";
211 return "CLIMATE_MODE_DRY";
213 return "CLIMATE_MODE_AUTO";
219 #ifdef HAS_PROTO_MESSAGE_DUMP 223 return "CLIMATE_FAN_ON";
225 return "CLIMATE_FAN_OFF";
227 return "CLIMATE_FAN_AUTO";
229 return "CLIMATE_FAN_LOW";
231 return "CLIMATE_FAN_MEDIUM";
233 return "CLIMATE_FAN_HIGH";
235 return "CLIMATE_FAN_MIDDLE";
237 return "CLIMATE_FAN_FOCUS";
239 return "CLIMATE_FAN_DIFFUSE";
241 return "CLIMATE_FAN_QUIET";
247 #ifdef HAS_PROTO_MESSAGE_DUMP 251 return "CLIMATE_SWING_OFF";
253 return "CLIMATE_SWING_BOTH";
255 return "CLIMATE_SWING_VERTICAL";
257 return "CLIMATE_SWING_HORIZONTAL";
263 #ifdef HAS_PROTO_MESSAGE_DUMP 267 return "CLIMATE_ACTION_OFF";
269 return "CLIMATE_ACTION_COOLING";
271 return "CLIMATE_ACTION_HEATING";
273 return "CLIMATE_ACTION_IDLE";
275 return "CLIMATE_ACTION_DRYING";
277 return "CLIMATE_ACTION_FAN";
283 #ifdef HAS_PROTO_MESSAGE_DUMP 287 return "CLIMATE_PRESET_NONE";
289 return "CLIMATE_PRESET_HOME";
291 return "CLIMATE_PRESET_AWAY";
293 return "CLIMATE_PRESET_BOOST";
295 return "CLIMATE_PRESET_COMFORT";
297 return "CLIMATE_PRESET_ECO";
299 return "CLIMATE_PRESET_SLEEP";
301 return "CLIMATE_PRESET_ACTIVITY";
307 #ifdef HAS_PROTO_MESSAGE_DUMP 311 return "NUMBER_MODE_AUTO";
313 return "NUMBER_MODE_BOX";
315 return "NUMBER_MODE_SLIDER";
321 #ifdef HAS_PROTO_MESSAGE_DUMP 325 return "LOCK_STATE_NONE";
327 return "LOCK_STATE_LOCKED";
329 return "LOCK_STATE_UNLOCKED";
331 return "LOCK_STATE_JAMMED";
333 return "LOCK_STATE_LOCKING";
335 return "LOCK_STATE_UNLOCKING";
341 #ifdef HAS_PROTO_MESSAGE_DUMP 345 return "LOCK_UNLOCK";
355 #ifdef HAS_PROTO_MESSAGE_DUMP 359 return "MEDIA_PLAYER_STATE_NONE";
361 return "MEDIA_PLAYER_STATE_IDLE";
363 return "MEDIA_PLAYER_STATE_PLAYING";
365 return "MEDIA_PLAYER_STATE_PAUSED";
371 #ifdef HAS_PROTO_MESSAGE_DUMP 375 return "MEDIA_PLAYER_COMMAND_PLAY";
377 return "MEDIA_PLAYER_COMMAND_PAUSE";
379 return "MEDIA_PLAYER_COMMAND_STOP";
381 return "MEDIA_PLAYER_COMMAND_MUTE";
383 return "MEDIA_PLAYER_COMMAND_UNMUTE";
389 #ifdef HAS_PROTO_MESSAGE_DUMP 394 return "BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT";
396 return "BLUETOOTH_DEVICE_REQUEST_TYPE_DISCONNECT";
398 return "BLUETOOTH_DEVICE_REQUEST_TYPE_PAIR";
400 return "BLUETOOTH_DEVICE_REQUEST_TYPE_UNPAIR";
402 return "BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT_V3_WITH_CACHE";
404 return "BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT_V3_WITHOUT_CACHE";
406 return "BLUETOOTH_DEVICE_REQUEST_TYPE_CLEAR_CACHE";
412 #ifdef HAS_PROTO_MESSAGE_DUMP 417 return "VOICE_ASSISTANT_SUBSCRIBE_NONE";
419 return "VOICE_ASSISTANT_SUBSCRIBE_API_AUDIO";
425 #ifdef HAS_PROTO_MESSAGE_DUMP 429 return "VOICE_ASSISTANT_REQUEST_NONE";
431 return "VOICE_ASSISTANT_REQUEST_USE_VAD";
433 return "VOICE_ASSISTANT_REQUEST_USE_WAKE_WORD";
439 #ifdef HAS_PROTO_MESSAGE_DUMP 443 return "VOICE_ASSISTANT_ERROR";
445 return "VOICE_ASSISTANT_RUN_START";
447 return "VOICE_ASSISTANT_RUN_END";
449 return "VOICE_ASSISTANT_STT_START";
451 return "VOICE_ASSISTANT_STT_END";
453 return "VOICE_ASSISTANT_INTENT_START";
455 return "VOICE_ASSISTANT_INTENT_END";
457 return "VOICE_ASSISTANT_TTS_START";
459 return "VOICE_ASSISTANT_TTS_END";
461 return "VOICE_ASSISTANT_WAKE_WORD_START";
463 return "VOICE_ASSISTANT_WAKE_WORD_END";
465 return "VOICE_ASSISTANT_STT_VAD_START";
467 return "VOICE_ASSISTANT_STT_VAD_END";
469 return "VOICE_ASSISTANT_TTS_STREAM_START";
471 return "VOICE_ASSISTANT_TTS_STREAM_END";
477 #ifdef HAS_PROTO_MESSAGE_DUMP 481 return "ALARM_STATE_DISARMED";
483 return "ALARM_STATE_ARMED_HOME";
485 return "ALARM_STATE_ARMED_AWAY";
487 return "ALARM_STATE_ARMED_NIGHT";
489 return "ALARM_STATE_ARMED_VACATION";
491 return "ALARM_STATE_ARMED_CUSTOM_BYPASS";
493 return "ALARM_STATE_PENDING";
495 return "ALARM_STATE_ARMING";
497 return "ALARM_STATE_DISARMING";
499 return "ALARM_STATE_TRIGGERED";
505 #ifdef HAS_PROTO_MESSAGE_DUMP 510 return "ALARM_CONTROL_PANEL_DISARM";
512 return "ALARM_CONTROL_PANEL_ARM_AWAY";
514 return "ALARM_CONTROL_PANEL_ARM_HOME";
516 return "ALARM_CONTROL_PANEL_ARM_NIGHT";
518 return "ALARM_CONTROL_PANEL_ARM_VACATION";
520 return "ALARM_CONTROL_PANEL_ARM_CUSTOM_BYPASS";
522 return "ALARM_CONTROL_PANEL_TRIGGER";
528 #ifdef HAS_PROTO_MESSAGE_DUMP 532 return "TEXT_MODE_TEXT";
534 return "TEXT_MODE_PASSWORD";
569 #ifdef HAS_PROTO_MESSAGE_DUMP 572 out.append(
"HelloRequest {\n");
573 out.append(
" client_info: ");
574 out.append(
"'").append(this->
client_info).append(
"'");
577 out.append(
" api_version_major: ");
582 out.append(
" api_version_minor: ");
623 #ifdef HAS_PROTO_MESSAGE_DUMP 626 out.append(
"HelloResponse {\n");
627 out.append(
" api_version_major: ");
632 out.append(
" api_version_minor: ");
637 out.append(
" server_info: ");
638 out.append(
"'").append(this->server_info).append(
"'");
641 out.append(
" name: ");
642 out.append(
"'").append(this->
name).append(
"'");
658 #ifdef HAS_PROTO_MESSAGE_DUMP 661 out.append(
"ConnectRequest {\n");
662 out.append(
" password: ");
663 out.append(
"'").append(this->password).append(
"'");
671 this->invalid_password = value.
as_bool();
679 #ifdef HAS_PROTO_MESSAGE_DUMP 682 out.append(
"ConnectResponse {\n");
683 out.append(
" invalid_password: ");
684 out.append(YESNO(this->invalid_password));
690 #ifdef HAS_PROTO_MESSAGE_DUMP 694 #ifdef HAS_PROTO_MESSAGE_DUMP 698 #ifdef HAS_PROTO_MESSAGE_DUMP 702 #ifdef HAS_PROTO_MESSAGE_DUMP 706 #ifdef HAS_PROTO_MESSAGE_DUMP 712 this->uses_password = value.
as_bool();
716 this->has_deep_sleep = value.
as_bool();
720 this->webserver_port = value.
as_uint32();
724 this->legacy_bluetooth_proxy_version = value.
as_uint32();
728 this->bluetooth_proxy_feature_flags = value.
as_uint32();
732 this->legacy_voice_assistant_version = value.
as_uint32();
736 this->voice_assistant_feature_flags = value.
as_uint32();
754 this->esphome_version = value.
as_string();
758 this->compilation_time = value.
as_string();
770 this->project_version = value.
as_string();
782 this->suggested_area = value.
as_string();
800 buffer.
encode_uint32(11, this->legacy_bluetooth_proxy_version);
801 buffer.
encode_uint32(15, this->bluetooth_proxy_feature_flags);
804 buffer.
encode_uint32(14, this->legacy_voice_assistant_version);
805 buffer.
encode_uint32(17, this->voice_assistant_feature_flags);
808 #ifdef HAS_PROTO_MESSAGE_DUMP 811 out.append(
"DeviceInfoResponse {\n");
812 out.append(
" uses_password: ");
813 out.append(YESNO(this->uses_password));
816 out.append(
" name: ");
817 out.append(
"'").append(this->
name).append(
"'");
820 out.append(
" mac_address: ");
821 out.append(
"'").append(this->mac_address).append(
"'");
824 out.append(
" esphome_version: ");
825 out.append(
"'").append(this->esphome_version).append(
"'");
828 out.append(
" compilation_time: ");
829 out.append(
"'").append(this->compilation_time).append(
"'");
832 out.append(
" model: ");
833 out.append(
"'").append(this->model).append(
"'");
836 out.append(
" has_deep_sleep: ");
837 out.append(YESNO(this->has_deep_sleep));
840 out.append(
" project_name: ");
841 out.append(
"'").append(this->project_name).append(
"'");
844 out.append(
" project_version: ");
845 out.append(
"'").append(this->project_version).append(
"'");
848 out.append(
" webserver_port: ");
849 sprintf(buffer,
"%" PRIu32, this->webserver_port);
853 out.append(
" legacy_bluetooth_proxy_version: ");
854 sprintf(buffer,
"%" PRIu32, this->legacy_bluetooth_proxy_version);
858 out.append(
" bluetooth_proxy_feature_flags: ");
859 sprintf(buffer,
"%" PRIu32, this->bluetooth_proxy_feature_flags);
863 out.append(
" manufacturer: ");
864 out.append(
"'").append(this->manufacturer).append(
"'");
867 out.append(
" friendly_name: ");
868 out.append(
"'").append(this->friendly_name).append(
"'");
871 out.append(
" legacy_voice_assistant_version: ");
872 sprintf(buffer,
"%" PRIu32, this->legacy_voice_assistant_version);
876 out.append(
" voice_assistant_feature_flags: ");
877 sprintf(buffer,
"%" PRIu32, this->voice_assistant_feature_flags);
881 out.append(
" suggested_area: ");
882 out.append(
"'").append(this->suggested_area).append(
"'");
888 #ifdef HAS_PROTO_MESSAGE_DUMP 892 #ifdef HAS_PROTO_MESSAGE_DUMP 896 #ifdef HAS_PROTO_MESSAGE_DUMP 902 this->is_status_binary_sensor = value.
as_bool();
906 this->disabled_by_default = value.
as_bool();
959 buffer.
encode_bool(6, this->is_status_binary_sensor);
964 #ifdef HAS_PROTO_MESSAGE_DUMP 967 out.append(
"ListEntitiesBinarySensorResponse {\n");
968 out.append(
" object_id: ");
969 out.append(
"'").append(this->object_id).append(
"'");
972 out.append(
" key: ");
973 sprintf(buffer,
"%" PRIu32, this->key);
977 out.append(
" name: ");
978 out.append(
"'").append(this->
name).append(
"'");
981 out.append(
" unique_id: ");
982 out.append(
"'").append(this->unique_id).append(
"'");
985 out.append(
" device_class: ");
986 out.append(
"'").append(this->device_class).append(
"'");
989 out.append(
" is_status_binary_sensor: ");
990 out.append(YESNO(this->is_status_binary_sensor));
993 out.append(
" disabled_by_default: ");
994 out.append(YESNO(this->disabled_by_default));
997 out.append(
" icon: ");
998 out.append(
"'").append(this->icon).append(
"'");
1001 out.append(
" entity_category: ");
1002 out.append(proto_enum_to_string<enums::EntityCategory>(this->entity_category));
1014 this->missing_state = value.
as_bool();
1036 #ifdef HAS_PROTO_MESSAGE_DUMP 1039 out.append(
"BinarySensorStateResponse {\n");
1040 out.append(
" key: ");
1041 sprintf(buffer,
"%" PRIu32, this->key);
1045 out.append(
" state: ");
1046 out.append(YESNO(this->
state));
1049 out.append(
" missing_state: ");
1050 out.append(YESNO(this->missing_state));
1058 this->assumed_state = value.
as_bool();
1062 this->supports_position = value.
as_bool();
1066 this->supports_tilt = value.
as_bool();
1070 this->disabled_by_default = value.
as_bool();
1078 this->supports_stop = value.
as_bool();
1135 #ifdef HAS_PROTO_MESSAGE_DUMP 1138 out.append(
"ListEntitiesCoverResponse {\n");
1139 out.append(
" object_id: ");
1140 out.append(
"'").append(this->object_id).append(
"'");
1143 out.append(
" key: ");
1144 sprintf(buffer,
"%" PRIu32, this->key);
1148 out.append(
" name: ");
1149 out.append(
"'").append(this->
name).append(
"'");
1152 out.append(
" unique_id: ");
1153 out.append(
"'").append(this->unique_id).append(
"'");
1156 out.append(
" assumed_state: ");
1157 out.append(YESNO(this->assumed_state));
1160 out.append(
" supports_position: ");
1161 out.append(YESNO(this->supports_position));
1164 out.append(
" supports_tilt: ");
1165 out.append(YESNO(this->supports_tilt));
1168 out.append(
" device_class: ");
1169 out.append(
"'").append(this->device_class).append(
"'");
1172 out.append(
" disabled_by_default: ");
1173 out.append(YESNO(this->disabled_by_default));
1176 out.append(
" icon: ");
1177 out.append(
"'").append(this->icon).append(
"'");
1180 out.append(
" entity_category: ");
1181 out.append(proto_enum_to_string<enums::EntityCategory>(this->entity_category));
1184 out.append(
" supports_stop: ");
1185 out.append(YESNO(this->supports_stop));
1229 #ifdef HAS_PROTO_MESSAGE_DUMP 1232 out.append(
"CoverStateResponse {\n");
1233 out.append(
" key: ");
1234 sprintf(buffer,
"%" PRIu32, this->key);
1238 out.append(
" legacy_state: ");
1239 out.append(proto_enum_to_string<enums::LegacyCoverState>(this->legacy_state));
1242 out.append(
" position: ");
1243 sprintf(buffer,
"%g", this->
position);
1247 out.append(
" tilt: ");
1248 sprintf(buffer,
"%g", this->
tilt);
1252 out.append(
" current_operation: ");
1253 out.append(proto_enum_to_string<enums::CoverOperation>(this->current_operation));
1261 this->has_legacy_command = value.
as_bool();
1269 this->has_position = value.
as_bool();
1273 this->has_tilt = value.
as_bool();
1312 #ifdef HAS_PROTO_MESSAGE_DUMP 1315 out.append(
"CoverCommandRequest {\n");
1316 out.append(
" key: ");
1317 sprintf(buffer,
"%" PRIu32, this->key);
1321 out.append(
" has_legacy_command: ");
1322 out.append(YESNO(this->has_legacy_command));
1325 out.append(
" legacy_command: ");
1326 out.append(proto_enum_to_string<enums::LegacyCoverCommand>(this->legacy_command));
1329 out.append(
" has_position: ");
1330 out.append(YESNO(this->has_position));
1333 out.append(
" position: ");
1334 sprintf(buffer,
"%g", this->
position);
1338 out.append(
" has_tilt: ");
1339 out.append(YESNO(this->has_tilt));
1342 out.append(
" tilt: ");
1343 sprintf(buffer,
"%g", this->
tilt);
1347 out.append(
" stop: ");
1348 out.append(YESNO(this->stop));
1356 this->supports_oscillation = value.
as_bool();
1360 this->supports_speed = value.
as_bool();
1364 this->supports_direction = value.
as_bool();
1368 this->supported_speed_count = value.
as_int32();
1372 this->disabled_by_default = value.
as_bool();
1402 this->supported_preset_modes.push_back(value.
as_string());
1424 buffer.
encode_bool(5, this->supports_oscillation);
1431 for (
auto &it : this->supported_preset_modes) {
1435 #ifdef HAS_PROTO_MESSAGE_DUMP 1438 out.append(
"ListEntitiesFanResponse {\n");
1439 out.append(
" object_id: ");
1440 out.append(
"'").append(this->object_id).append(
"'");
1443 out.append(
" key: ");
1444 sprintf(buffer,
"%" PRIu32, this->key);
1448 out.append(
" name: ");
1449 out.append(
"'").append(this->
name).append(
"'");
1452 out.append(
" unique_id: ");
1453 out.append(
"'").append(this->unique_id).append(
"'");
1456 out.append(
" supports_oscillation: ");
1457 out.append(YESNO(this->supports_oscillation));
1460 out.append(
" supports_speed: ");
1461 out.append(YESNO(this->supports_speed));
1464 out.append(
" supports_direction: ");
1465 out.append(YESNO(this->supports_direction));
1468 out.append(
" supported_speed_count: ");
1469 sprintf(buffer,
"%" PRId32, this->supported_speed_count);
1473 out.append(
" disabled_by_default: ");
1474 out.append(YESNO(this->disabled_by_default));
1477 out.append(
" icon: ");
1478 out.append(
"'").append(this->icon).append(
"'");
1481 out.append(
" entity_category: ");
1482 out.append(proto_enum_to_string<enums::EntityCategory>(this->entity_category));
1485 for (
const auto &it : this->supported_preset_modes) {
1486 out.append(
" supported_preset_modes: ");
1487 out.append(
"'").append(it).append(
"'");
1512 this->speed_level = value.
as_int32();
1548 #ifdef HAS_PROTO_MESSAGE_DUMP 1551 out.append(
"FanStateResponse {\n");
1552 out.append(
" key: ");
1553 sprintf(buffer,
"%" PRIu32, this->key);
1557 out.append(
" state: ");
1558 out.append(YESNO(this->
state));
1561 out.append(
" oscillating: ");
1565 out.append(
" speed: ");
1566 out.append(proto_enum_to_string<enums::FanSpeed>(this->
speed));
1569 out.append(
" direction: ");
1570 out.append(proto_enum_to_string<enums::FanDirection>(this->
direction));
1573 out.append(
" speed_level: ");
1574 sprintf(buffer,
"%" PRId32, this->speed_level);
1578 out.append(
" preset_mode: ");
1579 out.append(
"'").append(this->
preset_mode).append(
"'");
1587 this->has_state = value.
as_bool();
1595 this->has_speed = value.
as_bool();
1603 this->has_oscillating = value.
as_bool();
1611 this->has_direction = value.
as_bool();
1619 this->has_speed_level = value.
as_bool();
1623 this->speed_level = value.
as_int32();
1627 this->has_preset_mode = value.
as_bool();
1669 #ifdef HAS_PROTO_MESSAGE_DUMP 1672 out.append(
"FanCommandRequest {\n");
1673 out.append(
" key: ");
1674 sprintf(buffer,
"%" PRIu32, this->key);
1678 out.append(
" has_state: ");
1679 out.append(YESNO(this->has_state));
1682 out.append(
" state: ");
1683 out.append(YESNO(this->
state));
1686 out.append(
" has_speed: ");
1687 out.append(YESNO(this->has_speed));
1690 out.append(
" speed: ");
1691 out.append(proto_enum_to_string<enums::FanSpeed>(this->
speed));
1694 out.append(
" has_oscillating: ");
1695 out.append(YESNO(this->has_oscillating));
1698 out.append(
" oscillating: ");
1702 out.append(
" has_direction: ");
1703 out.append(YESNO(this->has_direction));
1706 out.append(
" direction: ");
1707 out.append(proto_enum_to_string<enums::FanDirection>(this->
direction));
1710 out.append(
" has_speed_level: ");
1711 out.append(YESNO(this->has_speed_level));
1714 out.append(
" speed_level: ");
1715 sprintf(buffer,
"%" PRId32, this->speed_level);
1719 out.append(
" has_preset_mode: ");
1720 out.append(YESNO(this->has_preset_mode));
1723 out.append(
" preset_mode: ");
1724 out.append(
"'").append(this->
preset_mode).append(
"'");
1736 this->legacy_supports_brightness = value.
as_bool();
1740 this->legacy_supports_rgb = value.
as_bool();
1744 this->legacy_supports_white_value = value.
as_bool();
1748 this->legacy_supports_color_temperature = value.
as_bool();
1752 this->disabled_by_default = value.
as_bool();
1778 this->effects.push_back(value.
as_string());
1796 this->min_mireds = value.
as_float();
1800 this->max_mireds = value.
as_float();
1812 for (
auto &it : this->supported_color_modes) {
1815 buffer.
encode_bool(5, this->legacy_supports_brightness);
1817 buffer.
encode_bool(7, this->legacy_supports_white_value);
1818 buffer.
encode_bool(8, this->legacy_supports_color_temperature);
1821 for (
auto &it : this->effects) {
1824 buffer.
encode_bool(13, this->disabled_by_default);
1828 #ifdef HAS_PROTO_MESSAGE_DUMP 1831 out.append(
"ListEntitiesLightResponse {\n");
1832 out.append(
" object_id: ");
1833 out.append(
"'").append(this->object_id).append(
"'");
1836 out.append(
" key: ");
1837 sprintf(buffer,
"%" PRIu32, this->key);
1841 out.append(
" name: ");
1842 out.append(
"'").append(this->
name).append(
"'");
1845 out.append(
" unique_id: ");
1846 out.append(
"'").append(this->unique_id).append(
"'");
1849 for (
const auto &it : this->supported_color_modes) {
1850 out.append(
" supported_color_modes: ");
1851 out.append(proto_enum_to_string<enums::ColorMode>(it));
1855 out.append(
" legacy_supports_brightness: ");
1856 out.append(YESNO(this->legacy_supports_brightness));
1859 out.append(
" legacy_supports_rgb: ");
1860 out.append(YESNO(this->legacy_supports_rgb));
1863 out.append(
" legacy_supports_white_value: ");
1864 out.append(YESNO(this->legacy_supports_white_value));
1867 out.append(
" legacy_supports_color_temperature: ");
1868 out.append(YESNO(this->legacy_supports_color_temperature));
1871 out.append(
" min_mireds: ");
1872 sprintf(buffer,
"%g", this->min_mireds);
1876 out.append(
" max_mireds: ");
1877 sprintf(buffer,
"%g", this->max_mireds);
1881 for (
const auto &it : this->effects) {
1882 out.append(
" effects: ");
1883 out.append(
"'").append(it).append(
"'");
1887 out.append(
" disabled_by_default: ");
1888 out.append(YESNO(this->disabled_by_default));
1891 out.append(
" icon: ");
1892 out.append(
"'").append(this->icon).append(
"'");
1895 out.append(
" entity_category: ");
1896 out.append(proto_enum_to_string<enums::EntityCategory>(this->entity_category));
1932 this->brightness = value.
as_float();
1936 this->color_brightness = value.
as_float();
1956 this->color_temperature = value.
as_float();
1960 this->cold_white = value.
as_float();
1964 this->warm_white = value.
as_float();
1986 #ifdef HAS_PROTO_MESSAGE_DUMP 1989 out.append(
"LightStateResponse {\n");
1990 out.append(
" key: ");
1991 sprintf(buffer,
"%" PRIu32, this->key);
1995 out.append(
" state: ");
1996 out.append(YESNO(this->
state));
1999 out.append(
" brightness: ");
2000 sprintf(buffer,
"%g", this->brightness);
2004 out.append(
" color_mode: ");
2005 out.append(proto_enum_to_string<enums::ColorMode>(this->color_mode));
2008 out.append(
" color_brightness: ");
2009 sprintf(buffer,
"%g", this->color_brightness);
2013 out.append(
" red: ");
2014 sprintf(buffer,
"%g", this->red);
2018 out.append(
" green: ");
2019 sprintf(buffer,
"%g", this->green);
2023 out.append(
" blue: ");
2024 sprintf(buffer,
"%g", this->blue);
2028 out.append(
" white: ");
2029 sprintf(buffer,
"%g", this->white);
2033 out.append(
" color_temperature: ");
2034 sprintf(buffer,
"%g", this->color_temperature);
2038 out.append(
" cold_white: ");
2039 sprintf(buffer,
"%g", this->cold_white);
2043 out.append(
" warm_white: ");
2044 sprintf(buffer,
"%g", this->warm_white);
2048 out.append(
" effect: ");
2049 out.append(
"'").append(this->effect).append(
"'");
2057 this->has_state = value.
as_bool();
2065 this->has_brightness = value.
as_bool();
2069 this->has_color_mode = value.
as_bool();
2077 this->has_color_brightness = value.
as_bool();
2081 this->has_rgb = value.
as_bool();
2085 this->has_white = value.
as_bool();
2089 this->has_color_temperature = value.
as_bool();
2093 this->has_cold_white = value.
as_bool();
2097 this->has_warm_white = value.
as_bool();
2101 this->has_transition_length = value.
as_bool();
2105 this->transition_length = value.
as_uint32();
2109 this->has_flash_length = value.
as_bool();
2117 this->has_effect = value.
as_bool();
2141 this->brightness = value.
as_float();
2145 this->color_brightness = value.
as_float();
2165 this->color_temperature = value.
as_float();
2169 this->cold_white = value.
as_float();
2173 this->warm_white = value.
as_float();
2188 buffer.
encode_bool(20, this->has_color_brightness);
2196 buffer.
encode_bool(12, this->has_color_temperature);
2202 buffer.
encode_bool(14, this->has_transition_length);
2209 #ifdef HAS_PROTO_MESSAGE_DUMP 2212 out.append(
"LightCommandRequest {\n");
2213 out.append(
" key: ");
2214 sprintf(buffer,
"%" PRIu32, this->key);
2218 out.append(
" has_state: ");
2219 out.append(YESNO(this->has_state));
2222 out.append(
" state: ");
2223 out.append(YESNO(this->
state));
2226 out.append(
" has_brightness: ");
2227 out.append(YESNO(this->has_brightness));
2230 out.append(
" brightness: ");
2231 sprintf(buffer,
"%g", this->brightness);
2235 out.append(
" has_color_mode: ");
2236 out.append(YESNO(this->has_color_mode));
2239 out.append(
" color_mode: ");
2240 out.append(proto_enum_to_string<enums::ColorMode>(this->color_mode));
2243 out.append(
" has_color_brightness: ");
2244 out.append(YESNO(this->has_color_brightness));
2247 out.append(
" color_brightness: ");
2248 sprintf(buffer,
"%g", this->color_brightness);
2252 out.append(
" has_rgb: ");
2253 out.append(YESNO(this->has_rgb));
2256 out.append(
" red: ");
2257 sprintf(buffer,
"%g", this->red);
2261 out.append(
" green: ");
2262 sprintf(buffer,
"%g", this->green);
2266 out.append(
" blue: ");
2267 sprintf(buffer,
"%g", this->blue);
2271 out.append(
" has_white: ");
2272 out.append(YESNO(this->has_white));
2275 out.append(
" white: ");
2276 sprintf(buffer,
"%g", this->white);
2280 out.append(
" has_color_temperature: ");
2281 out.append(YESNO(this->has_color_temperature));
2284 out.append(
" color_temperature: ");
2285 sprintf(buffer,
"%g", this->color_temperature);
2289 out.append(
" has_cold_white: ");
2290 out.append(YESNO(this->has_cold_white));
2293 out.append(
" cold_white: ");
2294 sprintf(buffer,
"%g", this->cold_white);
2298 out.append(
" has_warm_white: ");
2299 out.append(YESNO(this->has_warm_white));
2302 out.append(
" warm_white: ");
2303 sprintf(buffer,
"%g", this->warm_white);
2307 out.append(
" has_transition_length: ");
2308 out.append(YESNO(this->has_transition_length));
2311 out.append(
" transition_length: ");
2312 sprintf(buffer,
"%" PRIu32, this->transition_length);
2316 out.append(
" has_flash_length: ");
2317 out.append(YESNO(this->has_flash_length));
2320 out.append(
" flash_length: ");
2321 sprintf(buffer,
"%" PRIu32, this->flash_length);
2325 out.append(
" has_effect: ");
2326 out.append(YESNO(this->has_effect));
2329 out.append(
" effect: ");
2330 out.append(
"'").append(this->effect).append(
"'");
2338 this->accuracy_decimals = value.
as_int32();
2342 this->force_update = value.
as_bool();
2354 this->disabled_by_default = value.
as_bool();
2384 this->unit_of_measurement = value.
as_string();
2417 buffer.
encode_bool(12, this->disabled_by_default);
2420 #ifdef HAS_PROTO_MESSAGE_DUMP 2423 out.append(
"ListEntitiesSensorResponse {\n");
2424 out.append(
" object_id: ");
2425 out.append(
"'").append(this->object_id).append(
"'");
2428 out.append(
" key: ");
2429 sprintf(buffer,
"%" PRIu32, this->key);
2433 out.append(
" name: ");
2434 out.append(
"'").append(this->
name).append(
"'");
2437 out.append(
" unique_id: ");
2438 out.append(
"'").append(this->unique_id).append(
"'");
2441 out.append(
" icon: ");
2442 out.append(
"'").append(this->icon).append(
"'");
2445 out.append(
" unit_of_measurement: ");
2446 out.append(
"'").append(this->unit_of_measurement).append(
"'");
2449 out.append(
" accuracy_decimals: ");
2450 sprintf(buffer,
"%" PRId32, this->accuracy_decimals);
2454 out.append(
" force_update: ");
2455 out.append(YESNO(this->force_update));
2458 out.append(
" device_class: ");
2459 out.append(
"'").append(this->device_class).append(
"'");
2462 out.append(
" state_class: ");
2463 out.append(proto_enum_to_string<enums::SensorStateClass>(this->state_class));
2466 out.append(
" legacy_last_reset_type: ");
2467 out.append(proto_enum_to_string<enums::SensorLastResetType>(this->legacy_last_reset_type));
2470 out.append(
" disabled_by_default: ");
2471 out.append(YESNO(this->disabled_by_default));
2474 out.append(
" entity_category: ");
2475 out.append(proto_enum_to_string<enums::EntityCategory>(this->entity_category));
2483 this->missing_state = value.
as_bool();
2509 #ifdef HAS_PROTO_MESSAGE_DUMP 2512 out.append(
"SensorStateResponse {\n");
2513 out.append(
" key: ");
2514 sprintf(buffer,
"%" PRIu32, this->key);
2518 out.append(
" state: ");
2519 sprintf(buffer,
"%g", this->
state);
2523 out.append(
" missing_state: ");
2524 out.append(YESNO(this->missing_state));
2532 this->assumed_state = value.
as_bool();
2536 this->disabled_by_default = value.
as_bool();
2594 #ifdef HAS_PROTO_MESSAGE_DUMP 2597 out.append(
"ListEntitiesSwitchResponse {\n");
2598 out.append(
" object_id: ");
2599 out.append(
"'").append(this->object_id).append(
"'");
2602 out.append(
" key: ");
2603 sprintf(buffer,
"%" PRIu32, this->key);
2607 out.append(
" name: ");
2608 out.append(
"'").append(this->
name).append(
"'");
2611 out.append(
" unique_id: ");
2612 out.append(
"'").append(this->unique_id).append(
"'");
2615 out.append(
" icon: ");
2616 out.append(
"'").append(this->icon).append(
"'");
2619 out.append(
" assumed_state: ");
2620 out.append(YESNO(this->assumed_state));
2623 out.append(
" disabled_by_default: ");
2624 out.append(YESNO(this->disabled_by_default));
2627 out.append(
" entity_category: ");
2628 out.append(proto_enum_to_string<enums::EntityCategory>(this->entity_category));
2631 out.append(
" device_class: ");
2632 out.append(
"'").append(this->device_class).append(
"'");
2661 #ifdef HAS_PROTO_MESSAGE_DUMP 2664 out.append(
"SwitchStateResponse {\n");
2665 out.append(
" key: ");
2666 sprintf(buffer,
"%" PRIu32, this->key);
2670 out.append(
" state: ");
2671 out.append(YESNO(this->
state));
2700 #ifdef HAS_PROTO_MESSAGE_DUMP 2703 out.append(
"SwitchCommandRequest {\n");
2704 out.append(
" key: ");
2705 sprintf(buffer,
"%" PRIu32, this->key);
2709 out.append(
" state: ");
2710 out.append(YESNO(this->
state));
2718 this->disabled_by_default = value.
as_bool();
2775 #ifdef HAS_PROTO_MESSAGE_DUMP 2778 out.append(
"ListEntitiesTextSensorResponse {\n");
2779 out.append(
" object_id: ");
2780 out.append(
"'").append(this->object_id).append(
"'");
2783 out.append(
" key: ");
2784 sprintf(buffer,
"%" PRIu32, this->key);
2788 out.append(
" name: ");
2789 out.append(
"'").append(this->
name).append(
"'");
2792 out.append(
" unique_id: ");
2793 out.append(
"'").append(this->unique_id).append(
"'");
2796 out.append(
" icon: ");
2797 out.append(
"'").append(this->icon).append(
"'");
2800 out.append(
" disabled_by_default: ");
2801 out.append(YESNO(this->disabled_by_default));
2804 out.append(
" entity_category: ");
2805 out.append(proto_enum_to_string<enums::EntityCategory>(this->entity_category));
2808 out.append(
" device_class: ");
2809 out.append(
"'").append(this->device_class).append(
"'");
2817 this->missing_state = value.
as_bool();
2849 #ifdef HAS_PROTO_MESSAGE_DUMP 2852 out.append(
"TextSensorStateResponse {\n");
2853 out.append(
" key: ");
2854 sprintf(buffer,
"%" PRIu32, this->key);
2858 out.append(
" state: ");
2859 out.append(
"'").append(this->
state).append(
"'");
2862 out.append(
" missing_state: ");
2863 out.append(YESNO(this->missing_state));
2875 this->dump_config = value.
as_bool();
2886 #ifdef HAS_PROTO_MESSAGE_DUMP 2889 out.append(
"SubscribeLogsRequest {\n");
2890 out.append(
" level: ");
2891 out.append(proto_enum_to_string<enums::LogLevel>(this->level));
2894 out.append(
" dump_config: ");
2895 out.append(YESNO(this->dump_config));
2907 this->send_failed = value.
as_bool();
2929 #ifdef HAS_PROTO_MESSAGE_DUMP 2932 out.append(
"SubscribeLogsResponse {\n");
2933 out.append(
" level: ");
2934 out.append(proto_enum_to_string<enums::LogLevel>(this->level));
2937 out.append(
" message: ");
2938 out.append(
"'").append(this->message).append(
"'");
2941 out.append(
" send_failed: ");
2942 out.append(YESNO(this->send_failed));
2948 #ifdef HAS_PROTO_MESSAGE_DUMP 2950 out.append(
"SubscribeHomeassistantServicesRequest {}");
2971 #ifdef HAS_PROTO_MESSAGE_DUMP 2974 out.append(
"HomeassistantServiceMap {\n");
2975 out.append(
" key: ");
2976 out.append(
"'").append(this->key).append(
"'");
2979 out.append(
" value: ");
2980 out.append(
"'").append(this->value).append(
"'");
2988 this->is_event = value.
as_bool();
3019 for (
auto &it : this->data) {
3022 for (
auto &it : this->data_template) {
3025 for (
auto &it : this->variables) {
3030 #ifdef HAS_PROTO_MESSAGE_DUMP 3033 out.append(
"HomeassistantServiceResponse {\n");
3034 out.append(
" service: ");
3035 out.append(
"'").append(this->service).append(
"'");
3038 for (
const auto &it : this->data) {
3039 out.append(
" data: ");
3044 for (
const auto &it : this->data_template) {
3045 out.append(
" data_template: ");
3050 for (
const auto &it : this->variables) {
3051 out.append(
" variables: ");
3056 out.append(
" is_event: ");
3057 out.append(YESNO(this->is_event));
3063 #ifdef HAS_PROTO_MESSAGE_DUMP 3065 out.append(
"SubscribeHomeAssistantStatesRequest {}");
3086 #ifdef HAS_PROTO_MESSAGE_DUMP 3089 out.append(
"SubscribeHomeAssistantStateResponse {\n");
3090 out.append(
" entity_id: ");
3091 out.append(
"'").append(this->entity_id).append(
"'");
3094 out.append(
" attribute: ");
3095 out.append(
"'").append(this->attribute).append(
"'");
3123 #ifdef HAS_PROTO_MESSAGE_DUMP 3126 out.append(
"HomeAssistantStateResponse {\n");
3127 out.append(
" entity_id: ");
3128 out.append(
"'").append(this->entity_id).append(
"'");
3131 out.append(
" state: ");
3132 out.append(
"'").append(this->
state).append(
"'");
3135 out.append(
" attribute: ");
3136 out.append(
"'").append(this->attribute).append(
"'");
3142 #ifdef HAS_PROTO_MESSAGE_DUMP 3156 #ifdef HAS_PROTO_MESSAGE_DUMP 3159 out.append(
"GetTimeResponse {\n");
3160 out.append(
" epoch_seconds: ");
3161 sprintf(buffer,
"%" PRIu32, this->epoch_seconds);
3191 #ifdef HAS_PROTO_MESSAGE_DUMP 3194 out.append(
"ListEntitiesServicesArgument {\n");
3195 out.append(
" name: ");
3196 out.append(
"'").append(this->
name).append(
"'");
3199 out.append(
" type: ");
3200 out.append(proto_enum_to_string<enums::ServiceArgType>(this->
type));
3232 for (
auto &it : this->args) {
3236 #ifdef HAS_PROTO_MESSAGE_DUMP 3239 out.append(
"ListEntitiesServicesResponse {\n");
3240 out.append(
" name: ");
3241 out.append(
"'").append(this->
name).append(
"'");
3244 out.append(
" key: ");
3245 sprintf(buffer,
"%" PRIu32, this->key);
3249 for (
const auto &it : this->args) {
3250 out.append(
" args: ");
3260 this->bool_ = value.
as_bool();
3264 this->legacy_int = value.
as_int32();
3272 this->bool_array.push_back(value.
as_bool());
3276 this->int_array.push_back(value.
as_sint32());
3290 this->string_array.push_back(value.
as_string());
3304 this->float_array.push_back(value.
as_float());
3317 for (
auto it : this->bool_array) {
3320 for (
auto &it : this->int_array) {
3323 for (
auto &it : this->float_array) {
3326 for (
auto &it : this->string_array) {
3330 #ifdef HAS_PROTO_MESSAGE_DUMP 3333 out.append(
"ExecuteServiceArgument {\n");
3334 out.append(
" bool_: ");
3335 out.append(YESNO(this->bool_));
3338 out.append(
" legacy_int: ");
3339 sprintf(buffer,
"%" PRId32, this->legacy_int);
3343 out.append(
" float_: ");
3344 sprintf(buffer,
"%g", this->float_);
3348 out.append(
" string_: ");
3349 out.append(
"'").append(this->string_).append(
"'");
3352 out.append(
" int_: ");
3353 sprintf(buffer,
"%" PRId32, this->int_);
3357 for (
const auto it : this->bool_array) {
3358 out.append(
" bool_array: ");
3359 out.append(YESNO(it));
3363 for (
const auto &it : this->int_array) {
3364 out.append(
" int_array: ");
3365 sprintf(buffer,
"%" PRId32, it);
3370 for (
const auto &it : this->float_array) {
3371 out.append(
" float_array: ");
3372 sprintf(buffer,
"%g", it);
3377 for (
const auto &it : this->string_array) {
3378 out.append(
" string_array: ");
3379 out.append(
"'").append(it).append(
"'");
3407 for (
auto &it : this->args) {
3411 #ifdef HAS_PROTO_MESSAGE_DUMP 3414 out.append(
"ExecuteServiceRequest {\n");
3415 out.append(
" key: ");
3416 sprintf(buffer,
"%" PRIu32, this->key);
3420 for (
const auto &it : this->args) {
3421 out.append(
" args: ");
3431 this->disabled_by_default = value.
as_bool();
3483 #ifdef HAS_PROTO_MESSAGE_DUMP 3486 out.append(
"ListEntitiesCameraResponse {\n");
3487 out.append(
" object_id: ");
3488 out.append(
"'").append(this->object_id).append(
"'");
3491 out.append(
" key: ");
3492 sprintf(buffer,
"%" PRIu32, this->key);
3496 out.append(
" name: ");
3497 out.append(
"'").append(this->
name).append(
"'");
3500 out.append(
" unique_id: ");
3501 out.append(
"'").append(this->unique_id).append(
"'");
3504 out.append(
" disabled_by_default: ");
3505 out.append(YESNO(this->disabled_by_default));
3508 out.append(
" icon: ");
3509 out.append(
"'").append(this->icon).append(
"'");
3512 out.append(
" entity_category: ");
3513 out.append(proto_enum_to_string<enums::EntityCategory>(this->entity_category));
3553 #ifdef HAS_PROTO_MESSAGE_DUMP 3556 out.append(
"CameraImageResponse {\n");
3557 out.append(
" key: ");
3558 sprintf(buffer,
"%" PRIu32, this->key);
3562 out.append(
" data: ");
3563 out.append(
"'").append(this->data).append(
"'");
3566 out.append(
" done: ");
3567 out.append(YESNO(this->done));
3575 this->single = value.
as_bool();
3579 this->stream = value.
as_bool();
3590 #ifdef HAS_PROTO_MESSAGE_DUMP 3593 out.append(
"CameraImageRequest {\n");
3594 out.append(
" single: ");
3595 out.append(YESNO(this->single));
3598 out.append(
" stream: ");
3599 out.append(YESNO(this->stream));
3607 this->supports_current_temperature = value.
as_bool();
3611 this->supports_two_point_target_temperature = value.
as_bool();
3619 this->legacy_supports_away = value.
as_bool();
3623 this->supports_action = value.
as_bool();
3639 this->disabled_by_default = value.
as_bool();
3647 this->supports_current_humidity = value.
as_bool();
3651 this->supports_target_humidity = value.
as_bool();
3673 this->supported_custom_fan_modes.push_back(value.
as_string());
3677 this->supported_custom_presets.push_back(value.
as_string());
3695 this->visual_min_temperature = value.
as_float();
3699 this->visual_max_temperature = value.
as_float();
3703 this->visual_target_temperature_step = value.
as_float();
3707 this->visual_current_temperature_step = value.
as_float();
3711 this->visual_min_humidity = value.
as_float();
3715 this->visual_max_humidity = value.
as_float();
3727 buffer.
encode_bool(5, this->supports_current_temperature);
3728 buffer.
encode_bool(6, this->supports_two_point_target_temperature);
3729 for (
auto &it : this->supported_modes) {
3734 buffer.
encode_float(10, this->visual_target_temperature_step);
3735 buffer.
encode_bool(11, this->legacy_supports_away);
3737 for (
auto &it : this->supported_fan_modes) {
3740 for (
auto &it : this->supported_swing_modes) {
3743 for (
auto &it : this->supported_custom_fan_modes) {
3746 for (
auto &it : this->supported_presets) {
3749 for (
auto &it : this->supported_custom_presets) {
3752 buffer.
encode_bool(18, this->disabled_by_default);
3755 buffer.
encode_float(21, this->visual_current_temperature_step);
3756 buffer.
encode_bool(22, this->supports_current_humidity);
3757 buffer.
encode_bool(23, this->supports_target_humidity);
3761 #ifdef HAS_PROTO_MESSAGE_DUMP 3764 out.append(
"ListEntitiesClimateResponse {\n");
3765 out.append(
" object_id: ");
3766 out.append(
"'").append(this->object_id).append(
"'");
3769 out.append(
" key: ");
3770 sprintf(buffer,
"%" PRIu32, this->key);
3774 out.append(
" name: ");
3775 out.append(
"'").append(this->
name).append(
"'");
3778 out.append(
" unique_id: ");
3779 out.append(
"'").append(this->unique_id).append(
"'");
3782 out.append(
" supports_current_temperature: ");
3783 out.append(YESNO(this->supports_current_temperature));
3786 out.append(
" supports_two_point_target_temperature: ");
3787 out.append(YESNO(this->supports_two_point_target_temperature));
3790 for (
const auto &it : this->supported_modes) {
3791 out.append(
" supported_modes: ");
3792 out.append(proto_enum_to_string<enums::ClimateMode>(it));
3796 out.append(
" visual_min_temperature: ");
3797 sprintf(buffer,
"%g", this->visual_min_temperature);
3801 out.append(
" visual_max_temperature: ");
3802 sprintf(buffer,
"%g", this->visual_max_temperature);
3806 out.append(
" visual_target_temperature_step: ");
3807 sprintf(buffer,
"%g", this->visual_target_temperature_step);
3811 out.append(
" legacy_supports_away: ");
3812 out.append(YESNO(this->legacy_supports_away));
3815 out.append(
" supports_action: ");
3816 out.append(YESNO(this->supports_action));
3819 for (
const auto &it : this->supported_fan_modes) {
3820 out.append(
" supported_fan_modes: ");
3821 out.append(proto_enum_to_string<enums::ClimateFanMode>(it));
3825 for (
const auto &it : this->supported_swing_modes) {
3826 out.append(
" supported_swing_modes: ");
3827 out.append(proto_enum_to_string<enums::ClimateSwingMode>(it));
3831 for (
const auto &it : this->supported_custom_fan_modes) {
3832 out.append(
" supported_custom_fan_modes: ");
3833 out.append(
"'").append(it).append(
"'");
3837 for (
const auto &it : this->supported_presets) {
3838 out.append(
" supported_presets: ");
3839 out.append(proto_enum_to_string<enums::ClimatePreset>(it));
3843 for (
const auto &it : this->supported_custom_presets) {
3844 out.append(
" supported_custom_presets: ");
3845 out.append(
"'").append(it).append(
"'");
3849 out.append(
" disabled_by_default: ");
3850 out.append(YESNO(this->disabled_by_default));
3853 out.append(
" icon: ");
3854 out.append(
"'").append(this->icon).append(
"'");
3857 out.append(
" entity_category: ");
3858 out.append(proto_enum_to_string<enums::EntityCategory>(this->entity_category));
3861 out.append(
" visual_current_temperature_step: ");
3862 sprintf(buffer,
"%g", this->visual_current_temperature_step);
3866 out.append(
" supports_current_humidity: ");
3867 out.append(YESNO(this->supports_current_humidity));
3870 out.append(
" supports_target_humidity: ");
3871 out.append(YESNO(this->supports_target_humidity));
3874 out.append(
" visual_min_humidity: ");
3875 sprintf(buffer,
"%g", this->visual_min_humidity);
3879 out.append(
" visual_max_humidity: ");
3880 sprintf(buffer,
"%g", this->visual_max_humidity);
3893 this->unused_legacy_away = value.
as_bool();
3937 this->current_temperature = value.
as_float();
3953 this->current_humidity = value.
as_float();
3981 #ifdef HAS_PROTO_MESSAGE_DUMP 3984 out.append(
"ClimateStateResponse {\n");
3985 out.append(
" key: ");
3986 sprintf(buffer,
"%" PRIu32, this->key);
3990 out.append(
" mode: ");
3991 out.append(proto_enum_to_string<enums::ClimateMode>(this->
mode));
3994 out.append(
" current_temperature: ");
3995 sprintf(buffer,
"%g", this->current_temperature);
3999 out.append(
" target_temperature: ");
4004 out.append(
" target_temperature_low: ");
4009 out.append(
" target_temperature_high: ");
4014 out.append(
" unused_legacy_away: ");
4015 out.append(YESNO(this->unused_legacy_away));
4018 out.append(
" action: ");
4019 out.append(proto_enum_to_string<enums::ClimateAction>(this->action));
4022 out.append(
" fan_mode: ");
4023 out.append(proto_enum_to_string<enums::ClimateFanMode>(this->
fan_mode));
4026 out.append(
" swing_mode: ");
4027 out.append(proto_enum_to_string<enums::ClimateSwingMode>(this->
swing_mode));
4030 out.append(
" custom_fan_mode: ");
4034 out.append(
" preset: ");
4035 out.append(proto_enum_to_string<enums::ClimatePreset>(this->
preset));
4038 out.append(
" custom_preset: ");
4042 out.append(
" current_humidity: ");
4043 sprintf(buffer,
"%g", this->current_humidity);
4047 out.append(
" target_humidity: ");
4057 this->has_mode = value.
as_bool();
4065 this->has_target_temperature = value.
as_bool();
4069 this->has_target_temperature_low = value.
as_bool();
4073 this->has_target_temperature_high = value.
as_bool();
4077 this->unused_has_legacy_away = value.
as_bool();
4081 this->unused_legacy_away = value.
as_bool();
4085 this->has_fan_mode = value.
as_bool();
4093 this->has_swing_mode = value.
as_bool();
4101 this->has_custom_fan_mode = value.
as_bool();
4105 this->has_preset = value.
as_bool();
4113 this->has_custom_preset = value.
as_bool();
4117 this->has_target_humidity = value.
as_bool();
4168 buffer.
encode_bool(4, this->has_target_temperature);
4170 buffer.
encode_bool(6, this->has_target_temperature_low);
4172 buffer.
encode_bool(8, this->has_target_temperature_high);
4174 buffer.
encode_bool(10, this->unused_has_legacy_away);
4180 buffer.
encode_bool(16, this->has_custom_fan_mode);
4186 buffer.
encode_bool(22, this->has_target_humidity);
4189 #ifdef HAS_PROTO_MESSAGE_DUMP 4192 out.append(
"ClimateCommandRequest {\n");
4193 out.append(
" key: ");
4194 sprintf(buffer,
"%" PRIu32, this->key);
4198 out.append(
" has_mode: ");
4199 out.append(YESNO(this->has_mode));
4202 out.append(
" mode: ");
4203 out.append(proto_enum_to_string<enums::ClimateMode>(this->
mode));
4206 out.append(
" has_target_temperature: ");
4207 out.append(YESNO(this->has_target_temperature));
4210 out.append(
" target_temperature: ");
4215 out.append(
" has_target_temperature_low: ");
4216 out.append(YESNO(this->has_target_temperature_low));
4219 out.append(
" target_temperature_low: ");
4224 out.append(
" has_target_temperature_high: ");
4225 out.append(YESNO(this->has_target_temperature_high));
4228 out.append(
" target_temperature_high: ");
4233 out.append(
" unused_has_legacy_away: ");
4234 out.append(YESNO(this->unused_has_legacy_away));
4237 out.append(
" unused_legacy_away: ");
4238 out.append(YESNO(this->unused_legacy_away));
4241 out.append(
" has_fan_mode: ");
4242 out.append(YESNO(this->has_fan_mode));
4245 out.append(
" fan_mode: ");
4246 out.append(proto_enum_to_string<enums::ClimateFanMode>(this->
fan_mode));
4249 out.append(
" has_swing_mode: ");
4250 out.append(YESNO(this->has_swing_mode));
4253 out.append(
" swing_mode: ");
4254 out.append(proto_enum_to_string<enums::ClimateSwingMode>(this->
swing_mode));
4257 out.append(
" has_custom_fan_mode: ");
4258 out.append(YESNO(this->has_custom_fan_mode));
4261 out.append(
" custom_fan_mode: ");
4265 out.append(
" has_preset: ");
4266 out.append(YESNO(this->has_preset));
4269 out.append(
" preset: ");
4270 out.append(proto_enum_to_string<enums::ClimatePreset>(this->
preset));
4273 out.append(
" has_custom_preset: ");
4274 out.append(YESNO(this->has_custom_preset));
4277 out.append(
" custom_preset: ");
4281 out.append(
" has_target_humidity: ");
4282 out.append(YESNO(this->has_target_humidity));
4285 out.append(
" target_humidity: ");
4295 this->disabled_by_default = value.
as_bool();
4329 this->unit_of_measurement = value.
as_string();
4347 this->min_value = value.
as_float();
4351 this->max_value = value.
as_float();
4377 #ifdef HAS_PROTO_MESSAGE_DUMP 4380 out.append(
"ListEntitiesNumberResponse {\n");
4381 out.append(
" object_id: ");
4382 out.append(
"'").append(this->object_id).append(
"'");
4385 out.append(
" key: ");
4386 sprintf(buffer,
"%" PRIu32, this->key);
4390 out.append(
" name: ");
4391 out.append(
"'").append(this->
name).append(
"'");
4394 out.append(
" unique_id: ");
4395 out.append(
"'").append(this->unique_id).append(
"'");
4398 out.append(
" icon: ");
4399 out.append(
"'").append(this->icon).append(
"'");
4402 out.append(
" min_value: ");
4403 sprintf(buffer,
"%g", this->min_value);
4407 out.append(
" max_value: ");
4408 sprintf(buffer,
"%g", this->max_value);
4412 out.append(
" step: ");
4413 sprintf(buffer,
"%g", this->step);
4417 out.append(
" disabled_by_default: ");
4418 out.append(YESNO(this->disabled_by_default));
4421 out.append(
" entity_category: ");
4422 out.append(proto_enum_to_string<enums::EntityCategory>(this->entity_category));
4425 out.append(
" unit_of_measurement: ");
4426 out.append(
"'").append(this->unit_of_measurement).append(
"'");
4429 out.append(
" mode: ");
4430 out.append(proto_enum_to_string<enums::NumberMode>(this->
mode));
4433 out.append(
" device_class: ");
4434 out.append(
"'").append(this->device_class).append(
"'");
4442 this->missing_state = value.
as_bool();
4468 #ifdef HAS_PROTO_MESSAGE_DUMP 4471 out.append(
"NumberStateResponse {\n");
4472 out.append(
" key: ");
4473 sprintf(buffer,
"%" PRIu32, this->key);
4477 out.append(
" state: ");
4478 sprintf(buffer,
"%g", this->
state);
4482 out.append(
" missing_state: ");
4483 out.append(YESNO(this->missing_state));
4506 #ifdef HAS_PROTO_MESSAGE_DUMP 4509 out.append(
"NumberCommandRequest {\n");
4510 out.append(
" key: ");
4511 sprintf(buffer,
"%" PRIu32, this->key);
4515 out.append(
" state: ");
4516 sprintf(buffer,
"%g", this->
state);
4525 this->disabled_by_default = value.
as_bool();
4578 for (
auto &it : this->
options) {
4584 #ifdef HAS_PROTO_MESSAGE_DUMP 4587 out.append(
"ListEntitiesSelectResponse {\n");
4588 out.append(
" object_id: ");
4589 out.append(
"'").append(this->object_id).append(
"'");
4592 out.append(
" key: ");
4593 sprintf(buffer,
"%" PRIu32, this->key);
4597 out.append(
" name: ");
4598 out.append(
"'").append(this->
name).append(
"'");
4601 out.append(
" unique_id: ");
4602 out.append(
"'").append(this->unique_id).append(
"'");
4605 out.append(
" icon: ");
4606 out.append(
"'").append(this->icon).append(
"'");
4609 for (
const auto &it : this->
options) {
4610 out.append(
" options: ");
4611 out.append(
"'").append(it).append(
"'");
4615 out.append(
" disabled_by_default: ");
4616 out.append(YESNO(this->disabled_by_default));
4619 out.append(
" entity_category: ");
4620 out.append(proto_enum_to_string<enums::EntityCategory>(this->entity_category));
4628 this->missing_state = value.
as_bool();
4660 #ifdef HAS_PROTO_MESSAGE_DUMP 4663 out.append(
"SelectStateResponse {\n");
4664 out.append(
" key: ");
4665 sprintf(buffer,
"%" PRIu32, this->key);
4669 out.append(
" state: ");
4670 out.append(
"'").append(this->
state).append(
"'");
4673 out.append(
" missing_state: ");
4674 out.append(YESNO(this->missing_state));
4703 #ifdef HAS_PROTO_MESSAGE_DUMP 4706 out.append(
"SelectCommandRequest {\n");
4707 out.append(
" key: ");
4708 sprintf(buffer,
"%" PRIu32, this->key);
4712 out.append(
" state: ");
4713 out.append(
"'").append(this->
state).append(
"'");
4721 this->disabled_by_default = value.
as_bool();
4729 this->assumed_state = value.
as_bool();
4733 this->supports_open = value.
as_bool();
4737 this->requires_code = value.
as_bool();
4793 #ifdef HAS_PROTO_MESSAGE_DUMP 4796 out.append(
"ListEntitiesLockResponse {\n");
4797 out.append(
" object_id: ");
4798 out.append(
"'").append(this->object_id).append(
"'");
4801 out.append(
" key: ");
4802 sprintf(buffer,
"%" PRIu32, this->key);
4806 out.append(
" name: ");
4807 out.append(
"'").append(this->
name).append(
"'");
4810 out.append(
" unique_id: ");
4811 out.append(
"'").append(this->unique_id).append(
"'");
4814 out.append(
" icon: ");
4815 out.append(
"'").append(this->icon).append(
"'");
4818 out.append(
" disabled_by_default: ");
4819 out.append(YESNO(this->disabled_by_default));
4822 out.append(
" entity_category: ");
4823 out.append(proto_enum_to_string<enums::EntityCategory>(this->entity_category));
4826 out.append(
" assumed_state: ");
4827 out.append(YESNO(this->assumed_state));
4830 out.append(
" supports_open: ");
4831 out.append(YESNO(this->supports_open));
4834 out.append(
" requires_code: ");
4835 out.append(YESNO(this->requires_code));
4838 out.append(
" code_format: ");
4839 out.append(
"'").append(this->code_format).append(
"'");
4868 #ifdef HAS_PROTO_MESSAGE_DUMP 4871 out.append(
"LockStateResponse {\n");
4872 out.append(
" key: ");
4873 sprintf(buffer,
"%" PRIu32, this->key);
4877 out.append(
" state: ");
4878 out.append(proto_enum_to_string<enums::LockState>(this->
state));
4890 this->has_code = value.
as_bool();
4923 #ifdef HAS_PROTO_MESSAGE_DUMP 4926 out.append(
"LockCommandRequest {\n");
4927 out.append(
" key: ");
4928 sprintf(buffer,
"%" PRIu32, this->key);
4932 out.append(
" command: ");
4933 out.append(proto_enum_to_string<enums::LockCommand>(this->command));
4936 out.append(
" has_code: ");
4937 out.append(YESNO(this->has_code));
4940 out.append(
" code: ");
4941 out.append(
"'").append(this->code).append(
"'");
4949 this->disabled_by_default = value.
as_bool();
5006 #ifdef HAS_PROTO_MESSAGE_DUMP 5009 out.append(
"ListEntitiesButtonResponse {\n");
5010 out.append(
" object_id: ");
5011 out.append(
"'").append(this->object_id).append(
"'");
5014 out.append(
" key: ");
5015 sprintf(buffer,
"%" PRIu32, this->key);
5019 out.append(
" name: ");
5020 out.append(
"'").append(this->
name).append(
"'");
5023 out.append(
" unique_id: ");
5024 out.append(
"'").append(this->unique_id).append(
"'");
5027 out.append(
" icon: ");
5028 out.append(
"'").append(this->icon).append(
"'");
5031 out.append(
" disabled_by_default: ");
5032 out.append(YESNO(this->disabled_by_default));
5035 out.append(
" entity_category: ");
5036 out.append(proto_enum_to_string<enums::EntityCategory>(this->entity_category));
5039 out.append(
" device_class: ");
5040 out.append(
"'").append(this->device_class).append(
"'");
5056 #ifdef HAS_PROTO_MESSAGE_DUMP 5059 out.append(
"ButtonCommandRequest {\n");
5060 out.append(
" key: ");
5061 sprintf(buffer,
"%" PRIu32, this->key);
5070 this->disabled_by_default = value.
as_bool();
5078 this->supports_pause = value.
as_bool();
5127 #ifdef HAS_PROTO_MESSAGE_DUMP 5130 out.append(
"ListEntitiesMediaPlayerResponse {\n");
5131 out.append(
" object_id: ");
5132 out.append(
"'").append(this->object_id).append(
"'");
5135 out.append(
" key: ");
5136 sprintf(buffer,
"%" PRIu32, this->key);
5140 out.append(
" name: ");
5141 out.append(
"'").append(this->
name).append(
"'");
5144 out.append(
" unique_id: ");
5145 out.append(
"'").append(this->unique_id).append(
"'");
5148 out.append(
" icon: ");
5149 out.append(
"'").append(this->icon).append(
"'");
5152 out.append(
" disabled_by_default: ");
5153 out.append(YESNO(this->disabled_by_default));
5156 out.append(
" entity_category: ");
5157 out.append(proto_enum_to_string<enums::EntityCategory>(this->entity_category));
5160 out.append(
" supports_pause: ");
5161 out.append(YESNO(this->supports_pause));
5173 this->muted = value.
as_bool();
5200 #ifdef HAS_PROTO_MESSAGE_DUMP 5203 out.append(
"MediaPlayerStateResponse {\n");
5204 out.append(
" key: ");
5205 sprintf(buffer,
"%" PRIu32, this->key);
5209 out.append(
" state: ");
5210 out.append(proto_enum_to_string<enums::MediaPlayerState>(this->
state));
5213 out.append(
" volume: ");
5214 sprintf(buffer,
"%g", this->volume);
5218 out.append(
" muted: ");
5219 out.append(YESNO(this->muted));
5227 this->has_command = value.
as_bool();
5235 this->has_volume = value.
as_bool();
5239 this->has_media_url = value.
as_bool();
5279 #ifdef HAS_PROTO_MESSAGE_DUMP 5282 out.append(
"MediaPlayerCommandRequest {\n");
5283 out.append(
" key: ");
5284 sprintf(buffer,
"%" PRIu32, this->key);
5288 out.append(
" has_command: ");
5289 out.append(YESNO(this->has_command));
5292 out.append(
" command: ");
5293 out.append(proto_enum_to_string<enums::MediaPlayerCommand>(this->command));
5296 out.append(
" has_volume: ");
5297 out.append(YESNO(this->has_volume));
5300 out.append(
" volume: ");
5301 sprintf(buffer,
"%g", this->volume);
5305 out.append(
" has_media_url: ");
5306 out.append(YESNO(this->has_media_url));
5309 out.append(
" media_url: ");
5310 out.append(
"'").append(this->media_url).append(
"'");
5328 #ifdef HAS_PROTO_MESSAGE_DUMP 5331 out.append(
"SubscribeBluetoothLEAdvertisementsRequest {\n");
5332 out.append(
" flags: ");
5333 sprintf(buffer,
"%" PRIu32, this->
flags);
5342 this->legacy_data.push_back(value.
as_uint32());
5365 for (
auto &it : this->legacy_data) {
5370 #ifdef HAS_PROTO_MESSAGE_DUMP 5373 out.append(
"BluetoothServiceData {\n");
5374 out.append(
" uuid: ");
5375 out.append(
"'").append(this->uuid).append(
"'");
5378 for (
const auto &it : this->legacy_data) {
5379 out.append(
" legacy_data: ");
5380 sprintf(buffer,
"%" PRIu32, it);
5385 out.append(
" data: ");
5386 out.append(
"'").append(this->data).append(
"'");
5416 this->service_uuids.push_back(value.
as_string());
5435 for (
auto &it : this->service_uuids) {
5438 for (
auto &it : this->service_data) {
5441 for (
auto &it : this->manufacturer_data) {
5446 #ifdef HAS_PROTO_MESSAGE_DUMP 5449 out.append(
"BluetoothLEAdvertisementResponse {\n");
5450 out.append(
" address: ");
5451 sprintf(buffer,
"%llu", this->address);
5455 out.append(
" name: ");
5456 out.append(
"'").append(this->
name).append(
"'");
5459 out.append(
" rssi: ");
5460 sprintf(buffer,
"%" PRId32, this->rssi);
5464 for (
const auto &it : this->service_uuids) {
5465 out.append(
" service_uuids: ");
5466 out.append(
"'").append(it).append(
"'");
5470 for (
const auto &it : this->service_data) {
5471 out.append(
" service_data: ");
5476 for (
const auto &it : this->manufacturer_data) {
5477 out.append(
" manufacturer_data: ");
5482 out.append(
" address_type: ");
5483 sprintf(buffer,
"%" PRIu32, this->address_type);
5523 #ifdef HAS_PROTO_MESSAGE_DUMP 5526 out.append(
"BluetoothLERawAdvertisement {\n");
5527 out.append(
" address: ");
5528 sprintf(buffer,
"%llu", this->address);
5532 out.append(
" rssi: ");
5533 sprintf(buffer,
"%" PRId32, this->rssi);
5537 out.append(
" address_type: ");
5538 sprintf(buffer,
"%" PRIu32, this->address_type);
5542 out.append(
" data: ");
5543 out.append(
"'").append(this->data).append(
"'");
5559 for (
auto &it : this->advertisements) {
5563 #ifdef HAS_PROTO_MESSAGE_DUMP 5566 out.append(
"BluetoothLERawAdvertisementsResponse {\n");
5567 for (
const auto &it : this->advertisements) {
5568 out.append(
" advertisements: ");
5586 this->has_address_type = value.
as_bool();
5603 #ifdef HAS_PROTO_MESSAGE_DUMP 5606 out.append(
"BluetoothDeviceRequest {\n");
5607 out.append(
" address: ");
5608 sprintf(buffer,
"%llu", this->address);
5612 out.append(
" request_type: ");
5613 out.append(proto_enum_to_string<enums::BluetoothDeviceRequestType>(this->request_type));
5616 out.append(
" has_address_type: ");
5617 out.append(YESNO(this->has_address_type));
5620 out.append(
" address_type: ");
5621 sprintf(buffer,
"%" PRIu32, this->address_type);
5634 this->connected = value.
as_bool();
5655 #ifdef HAS_PROTO_MESSAGE_DUMP 5658 out.append(
"BluetoothDeviceConnectionResponse {\n");
5659 out.append(
" address: ");
5660 sprintf(buffer,
"%llu", this->address);
5664 out.append(
" connected: ");
5665 out.append(YESNO(this->connected));
5668 out.append(
" mtu: ");
5669 sprintf(buffer,
"%" PRIu32, this->mtu);
5673 out.append(
" error: ");
5674 sprintf(buffer,
"%" PRId32, this->error);
5691 #ifdef HAS_PROTO_MESSAGE_DUMP 5694 out.append(
"BluetoothGATTGetServicesRequest {\n");
5695 out.append(
" address: ");
5696 sprintf(buffer,
"%llu", this->address);
5705 this->uuid.push_back(value.
as_uint64());
5717 for (
auto &it : this->uuid) {
5722 #ifdef HAS_PROTO_MESSAGE_DUMP 5725 out.append(
"BluetoothGATTDescriptor {\n");
5726 for (
const auto &it : this->uuid) {
5727 out.append(
" uuid: ");
5728 sprintf(buffer,
"%llu", it);
5733 out.append(
" handle: ");
5734 sprintf(buffer,
"%" PRIu32, this->handle);
5743 this->uuid.push_back(value.
as_uint64());
5769 for (
auto &it : this->uuid) {
5774 for (
auto &it : this->descriptors) {
5778 #ifdef HAS_PROTO_MESSAGE_DUMP 5781 out.append(
"BluetoothGATTCharacteristic {\n");
5782 for (
const auto &it : this->uuid) {
5783 out.append(
" uuid: ");
5784 sprintf(buffer,
"%llu", it);
5789 out.append(
" handle: ");
5790 sprintf(buffer,
"%" PRIu32, this->handle);
5794 out.append(
" properties: ");
5795 sprintf(buffer,
"%" PRIu32, this->properties);
5799 for (
const auto &it : this->descriptors) {
5800 out.append(
" descriptors: ");
5810 this->uuid.push_back(value.
as_uint64());
5832 for (
auto &it : this->uuid) {
5836 for (
auto &it : this->characteristics) {
5840 #ifdef HAS_PROTO_MESSAGE_DUMP 5843 out.append(
"BluetoothGATTService {\n");
5844 for (
const auto &it : this->uuid) {
5845 out.append(
" uuid: ");
5846 sprintf(buffer,
"%llu", it);
5851 out.append(
" handle: ");
5852 sprintf(buffer,
"%" PRIu32, this->handle);
5856 for (
const auto &it : this->characteristics) {
5857 out.append(
" characteristics: ");
5886 for (
auto &it : this->services) {
5890 #ifdef HAS_PROTO_MESSAGE_DUMP 5893 out.append(
"BluetoothGATTGetServicesResponse {\n");
5894 out.append(
" address: ");
5895 sprintf(buffer,
"%llu", this->address);
5899 for (
const auto &it : this->services) {
5900 out.append(
" services: ");
5920 #ifdef HAS_PROTO_MESSAGE_DUMP 5923 out.append(
"BluetoothGATTGetServicesDoneResponse {\n");
5924 out.append(
" address: ");
5925 sprintf(buffer,
"%llu", this->address);
5949 #ifdef HAS_PROTO_MESSAGE_DUMP 5952 out.append(
"BluetoothGATTReadRequest {\n");
5953 out.append(
" address: ");
5954 sprintf(buffer,
"%llu", this->address);
5958 out.append(
" handle: ");
5959 sprintf(buffer,
"%" PRIu32, this->handle);
5994 #ifdef HAS_PROTO_MESSAGE_DUMP 5997 out.append(
"BluetoothGATTReadResponse {\n");
5998 out.append(
" address: ");
5999 sprintf(buffer,
"%llu", this->address);
6003 out.append(
" handle: ");
6004 sprintf(buffer,
"%" PRIu32, this->handle);
6008 out.append(
" data: ");
6009 out.append(
"'").append(this->data).append(
"'");
6025 this->response = value.
as_bool();
6048 #ifdef HAS_PROTO_MESSAGE_DUMP 6051 out.append(
"BluetoothGATTWriteRequest {\n");
6052 out.append(
" address: ");
6053 sprintf(buffer,
"%llu", this->address);
6057 out.append(
" handle: ");
6058 sprintf(buffer,
"%" PRIu32, this->handle);
6062 out.append(
" response: ");
6063 out.append(YESNO(this->response));
6066 out.append(
" data: ");
6067 out.append(
"'").append(this->data).append(
"'");
6090 #ifdef HAS_PROTO_MESSAGE_DUMP 6093 out.append(
"BluetoothGATTReadDescriptorRequest {\n");
6094 out.append(
" address: ");
6095 sprintf(buffer,
"%llu", this->address);
6099 out.append(
" handle: ");
6100 sprintf(buffer,
"%" PRIu32, this->handle);
6135 #ifdef HAS_PROTO_MESSAGE_DUMP 6138 out.append(
"BluetoothGATTWriteDescriptorRequest {\n");
6139 out.append(
" address: ");
6140 sprintf(buffer,
"%llu", this->address);
6144 out.append(
" handle: ");
6145 sprintf(buffer,
"%" PRIu32, this->handle);
6149 out.append(
" data: ");
6150 out.append(
"'").append(this->data).append(
"'");
6166 this->enable = value.
as_bool();
6178 #ifdef HAS_PROTO_MESSAGE_DUMP 6181 out.append(
"BluetoothGATTNotifyRequest {\n");
6182 out.append(
" address: ");
6183 sprintf(buffer,
"%llu", this->address);
6187 out.append(
" handle: ");
6188 sprintf(buffer,
"%" PRIu32, this->handle);
6192 out.append(
" enable: ");
6193 out.append(YESNO(this->enable));
6227 #ifdef HAS_PROTO_MESSAGE_DUMP 6230 out.append(
"BluetoothGATTNotifyDataResponse {\n");
6231 out.append(
" address: ");
6232 sprintf(buffer,
"%llu", this->address);
6236 out.append(
" handle: ");
6237 sprintf(buffer,
"%" PRIu32, this->handle);
6241 out.append(
" data: ");
6242 out.append(
"'").append(this->data).append(
"'");
6248 #ifdef HAS_PROTO_MESSAGE_DUMP 6250 out.append(
"SubscribeBluetoothConnectionsFreeRequest {}");
6271 #ifdef HAS_PROTO_MESSAGE_DUMP 6274 out.append(
"BluetoothConnectionsFreeResponse {\n");
6275 out.append(
" free: ");
6276 sprintf(buffer,
"%" PRIu32, this->free);
6280 out.append(
" limit: ");
6281 sprintf(buffer,
"%" PRIu32, this->limit);
6310 #ifdef HAS_PROTO_MESSAGE_DUMP 6313 out.append(
"BluetoothGATTErrorResponse {\n");
6314 out.append(
" address: ");
6315 sprintf(buffer,
"%llu", this->address);
6319 out.append(
" handle: ");
6320 sprintf(buffer,
"%" PRIu32, this->handle);
6324 out.append(
" error: ");
6325 sprintf(buffer,
"%" PRId32, this->error);
6349 #ifdef HAS_PROTO_MESSAGE_DUMP 6352 out.append(
"BluetoothGATTWriteResponse {\n");
6353 out.append(
" address: ");
6354 sprintf(buffer,
"%llu", this->address);
6358 out.append(
" handle: ");
6359 sprintf(buffer,
"%" PRIu32, this->handle);
6383 #ifdef HAS_PROTO_MESSAGE_DUMP 6386 out.append(
"BluetoothGATTNotifyResponse {\n");
6387 out.append(
" address: ");
6388 sprintf(buffer,
"%llu", this->address);
6392 out.append(
" handle: ");
6393 sprintf(buffer,
"%" PRIu32, this->handle);
6406 this->paired = value.
as_bool();
6422 #ifdef HAS_PROTO_MESSAGE_DUMP 6425 out.append(
"BluetoothDevicePairingResponse {\n");
6426 out.append(
" address: ");
6427 sprintf(buffer,
"%llu", this->address);
6431 out.append(
" paired: ");
6432 out.append(YESNO(this->paired));
6435 out.append(
" error: ");
6436 sprintf(buffer,
"%" PRId32, this->error);
6449 this->success = value.
as_bool();
6465 #ifdef HAS_PROTO_MESSAGE_DUMP 6468 out.append(
"BluetoothDeviceUnpairingResponse {\n");
6469 out.append(
" address: ");
6470 sprintf(buffer,
"%llu", this->address);
6474 out.append(
" success: ");
6475 out.append(YESNO(this->success));
6478 out.append(
" error: ");
6479 sprintf(buffer,
"%" PRId32, this->error);
6486 #ifdef HAS_PROTO_MESSAGE_DUMP 6488 out.append(
"UnsubscribeBluetoothLEAdvertisementsRequest {}");
6498 this->success = value.
as_bool();
6514 #ifdef HAS_PROTO_MESSAGE_DUMP 6517 out.append(
"BluetoothDeviceClearCacheResponse {\n");
6518 out.append(
" address: ");
6519 sprintf(buffer,
"%llu", this->address);
6523 out.append(
" success: ");
6524 out.append(YESNO(this->success));
6527 out.append(
" error: ");
6528 sprintf(buffer,
"%" PRId32, this->error);
6537 this->subscribe = value.
as_bool();
6552 #ifdef HAS_PROTO_MESSAGE_DUMP 6555 out.append(
"SubscribeVoiceAssistantRequest {\n");
6556 out.append(
" subscribe: ");
6557 out.append(YESNO(this->subscribe));
6560 out.append(
" flags: ");
6561 sprintf(buffer,
"%" PRIu32, this->
flags);
6570 this->noise_suppression_level = value.
as_uint32();
6584 this->volume_multiplier = value.
as_float();
6596 #ifdef HAS_PROTO_MESSAGE_DUMP 6599 out.append(
"VoiceAssistantAudioSettings {\n");
6600 out.append(
" noise_suppression_level: ");
6601 sprintf(buffer,
"%" PRIu32, this->noise_suppression_level);
6605 out.append(
" auto_gain: ");
6606 sprintf(buffer,
"%" PRIu32, this->auto_gain);
6610 out.append(
" volume_multiplier: ");
6611 sprintf(buffer,
"%g", this->volume_multiplier);
6620 this->start = value.
as_bool();
6634 this->conversation_id = value.
as_string();
6642 this->wake_word_phrase = value.
as_string();
6656 #ifdef HAS_PROTO_MESSAGE_DUMP 6659 out.append(
"VoiceAssistantRequest {\n");
6660 out.append(
" start: ");
6661 out.append(YESNO(this->start));
6664 out.append(
" conversation_id: ");
6665 out.append(
"'").append(this->conversation_id).append(
"'");
6668 out.append(
" flags: ");
6669 sprintf(buffer,
"%" PRIu32, this->
flags);
6673 out.append(
" audio_settings: ");
6674 this->audio_settings.dump_to(out);
6677 out.append(
" wake_word_phrase: ");
6678 out.append(
"'").append(this->wake_word_phrase).append(
"'");
6690 this->error = value.
as_bool();
6701 #ifdef HAS_PROTO_MESSAGE_DUMP 6704 out.append(
"VoiceAssistantResponse {\n");
6705 out.append(
" port: ");
6706 sprintf(buffer,
"%" PRIu32, this->port);
6710 out.append(
" error: ");
6711 out.append(YESNO(this->error));
6734 #ifdef HAS_PROTO_MESSAGE_DUMP 6737 out.append(
"VoiceAssistantEventData {\n");
6738 out.append(
" name: ");
6739 out.append(
"'").append(this->
name).append(
"'");
6742 out.append(
" value: ");
6743 out.append(
"'").append(this->value).append(
"'");
6770 for (
auto &it : this->data) {
6774 #ifdef HAS_PROTO_MESSAGE_DUMP 6777 out.append(
"VoiceAssistantEventResponse {\n");
6778 out.append(
" event_type: ");
6779 out.append(proto_enum_to_string<enums::VoiceAssistantEvent>(this->event_type));
6782 for (
const auto &it : this->data) {
6783 out.append(
" data: ");
6814 #ifdef HAS_PROTO_MESSAGE_DUMP 6817 out.append(
"VoiceAssistantAudio {\n");
6818 out.append(
" data: ");
6819 out.append(
"'").append(this->data).append(
"'");
6822 out.append(
" end: ");
6823 out.append(YESNO(this->
end));
6831 this->disabled_by_default = value.
as_bool();
6839 this->supported_features = value.
as_uint32();
6843 this->requires_code = value.
as_bool();
6847 this->requires_code_to_arm = value.
as_bool();
6896 buffer.
encode_bool(10, this->requires_code_to_arm);
6898 #ifdef HAS_PROTO_MESSAGE_DUMP 6901 out.append(
"ListEntitiesAlarmControlPanelResponse {\n");
6902 out.append(
" object_id: ");
6903 out.append(
"'").append(this->object_id).append(
"'");
6906 out.append(
" key: ");
6907 sprintf(buffer,
"%" PRIu32, this->key);
6911 out.append(
" name: ");
6912 out.append(
"'").append(this->
name).append(
"'");
6915 out.append(
" unique_id: ");
6916 out.append(
"'").append(this->unique_id).append(
"'");
6919 out.append(
" icon: ");
6920 out.append(
"'").append(this->icon).append(
"'");
6923 out.append(
" disabled_by_default: ");
6924 out.append(YESNO(this->disabled_by_default));
6927 out.append(
" entity_category: ");
6928 out.append(proto_enum_to_string<enums::EntityCategory>(this->entity_category));
6931 out.append(
" supported_features: ");
6932 sprintf(buffer,
"%" PRIu32, this->supported_features);
6936 out.append(
" requires_code: ");
6937 out.append(YESNO(this->requires_code));
6940 out.append(
" requires_code_to_arm: ");
6941 out.append(YESNO(this->requires_code_to_arm));
6970 #ifdef HAS_PROTO_MESSAGE_DUMP 6973 out.append(
"AlarmControlPanelStateResponse {\n");
6974 out.append(
" key: ");
6975 sprintf(buffer,
"%" PRIu32, this->key);
6979 out.append(
" state: ");
6980 out.append(proto_enum_to_string<enums::AlarmControlPanelState>(this->
state));
7020 #ifdef HAS_PROTO_MESSAGE_DUMP 7023 out.append(
"AlarmControlPanelCommandRequest {\n");
7024 out.append(
" key: ");
7025 sprintf(buffer,
"%" PRIu32, this->key);
7029 out.append(
" command: ");
7030 out.append(proto_enum_to_string<enums::AlarmControlPanelStateCommand>(this->command));
7033 out.append(
" code: ");
7034 out.append(
"'").append(this->code).append(
"'");
7042 this->disabled_by_default = value.
as_bool();
7114 #ifdef HAS_PROTO_MESSAGE_DUMP 7117 out.append(
"ListEntitiesTextResponse {\n");
7118 out.append(
" object_id: ");
7119 out.append(
"'").append(this->object_id).append(
"'");
7122 out.append(
" key: ");
7123 sprintf(buffer,
"%" PRIu32, this->key);
7127 out.append(
" name: ");
7128 out.append(
"'").append(this->
name).append(
"'");
7131 out.append(
" unique_id: ");
7132 out.append(
"'").append(this->unique_id).append(
"'");
7135 out.append(
" icon: ");
7136 out.append(
"'").append(this->icon).append(
"'");
7139 out.append(
" disabled_by_default: ");
7140 out.append(YESNO(this->disabled_by_default));
7143 out.append(
" entity_category: ");
7144 out.append(proto_enum_to_string<enums::EntityCategory>(this->entity_category));
7147 out.append(
" min_length: ");
7148 sprintf(buffer,
"%" PRIu32, this->min_length);
7152 out.append(
" max_length: ");
7153 sprintf(buffer,
"%" PRIu32, this->max_length);
7157 out.append(
" pattern: ");
7158 out.append(
"'").append(this->pattern).append(
"'");
7161 out.append(
" mode: ");
7162 out.append(proto_enum_to_string<enums::TextMode>(this->
mode));
7170 this->missing_state = value.
as_bool();
7202 #ifdef HAS_PROTO_MESSAGE_DUMP 7205 out.append(
"TextStateResponse {\n");
7206 out.append(
" key: ");
7207 sprintf(buffer,
"%" PRIu32, this->key);
7211 out.append(
" state: ");
7212 out.append(
"'").append(this->
state).append(
"'");
7215 out.append(
" missing_state: ");
7216 out.append(YESNO(this->missing_state));
7245 #ifdef HAS_PROTO_MESSAGE_DUMP 7248 out.append(
"TextCommandRequest {\n");
7249 out.append(
" key: ");
7250 sprintf(buffer,
"%" PRIu32, this->key);
7254 out.append(
" state: ");
7255 out.append(
"'").append(this->
state).append(
"'");
7263 this->disabled_by_default = value.
as_bool();
7315 #ifdef HAS_PROTO_MESSAGE_DUMP 7318 out.append(
"ListEntitiesDateResponse {\n");
7319 out.append(
" object_id: ");
7320 out.append(
"'").append(this->object_id).append(
"'");
7323 out.append(
" key: ");
7324 sprintf(buffer,
"%" PRIu32, this->key);
7328 out.append(
" name: ");
7329 out.append(
"'").append(this->
name).append(
"'");
7332 out.append(
" unique_id: ");
7333 out.append(
"'").append(this->unique_id).append(
"'");
7336 out.append(
" icon: ");
7337 out.append(
"'").append(this->icon).append(
"'");
7340 out.append(
" disabled_by_default: ");
7341 out.append(YESNO(this->disabled_by_default));
7344 out.append(
" entity_category: ");
7345 out.append(proto_enum_to_string<enums::EntityCategory>(this->entity_category));
7353 this->missing_state = value.
as_bool();
7389 #ifdef HAS_PROTO_MESSAGE_DUMP 7392 out.append(
"DateStateResponse {\n");
7393 out.append(
" key: ");
7394 sprintf(buffer,
"%" PRIu32, this->key);
7398 out.append(
" missing_state: ");
7399 out.append(YESNO(this->missing_state));
7402 out.append(
" year: ");
7403 sprintf(buffer,
"%" PRIu32, this->
year);
7407 out.append(
" month: ");
7408 sprintf(buffer,
"%" PRIu32, this->
month);
7412 out.append(
" day: ");
7413 sprintf(buffer,
"%" PRIu32, this->
day);
7453 #ifdef HAS_PROTO_MESSAGE_DUMP 7456 out.append(
"DateCommandRequest {\n");
7457 out.append(
" key: ");
7458 sprintf(buffer,
"%" PRIu32, this->key);
7462 out.append(
" year: ");
7463 sprintf(buffer,
"%" PRIu32, this->
year);
7467 out.append(
" month: ");
7468 sprintf(buffer,
"%" PRIu32, this->
month);
7472 out.append(
" day: ");
7473 sprintf(buffer,
"%" PRIu32, this->
day);
7482 this->disabled_by_default = value.
as_bool();
7534 #ifdef HAS_PROTO_MESSAGE_DUMP 7537 out.append(
"ListEntitiesTimeResponse {\n");
7538 out.append(
" object_id: ");
7539 out.append(
"'").append(this->object_id).append(
"'");
7542 out.append(
" key: ");
7543 sprintf(buffer,
"%" PRIu32, this->key);
7547 out.append(
" name: ");
7548 out.append(
"'").append(this->
name).append(
"'");
7551 out.append(
" unique_id: ");
7552 out.append(
"'").append(this->unique_id).append(
"'");
7555 out.append(
" icon: ");
7556 out.append(
"'").append(this->icon).append(
"'");
7559 out.append(
" disabled_by_default: ");
7560 out.append(YESNO(this->disabled_by_default));
7563 out.append(
" entity_category: ");
7564 out.append(proto_enum_to_string<enums::EntityCategory>(this->entity_category));
7572 this->missing_state = value.
as_bool();
7608 #ifdef HAS_PROTO_MESSAGE_DUMP 7611 out.append(
"TimeStateResponse {\n");
7612 out.append(
" key: ");
7613 sprintf(buffer,
"%" PRIu32, this->key);
7617 out.append(
" missing_state: ");
7618 out.append(YESNO(this->missing_state));
7621 out.append(
" hour: ");
7622 sprintf(buffer,
"%" PRIu32, this->
hour);
7626 out.append(
" minute: ");
7627 sprintf(buffer,
"%" PRIu32, this->
minute);
7631 out.append(
" second: ");
7632 sprintf(buffer,
"%" PRIu32, this->
second);
7672 #ifdef HAS_PROTO_MESSAGE_DUMP 7675 out.append(
"TimeCommandRequest {\n");
7676 out.append(
" key: ");
7677 sprintf(buffer,
"%" PRIu32, this->key);
7681 out.append(
" hour: ");
7682 sprintf(buffer,
"%" PRIu32, this->
hour);
7686 out.append(
" minute: ");
7687 sprintf(buffer,
"%" PRIu32, this->
minute);
7691 out.append(
" second: ");
7692 sprintf(buffer,
"%" PRIu32, this->
second);
void encode(ProtoWriteBuffer buffer) const override
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
void encode_fixed32(uint32_t field_id, uint32_t value, bool force=false)
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
float target_temperature_low
void encode(ProtoWriteBuffer buffer) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
int32_t as_sint32() const
void encode(ProtoWriteBuffer buffer) const override
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void dump_to(std::string &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void encode(ProtoWriteBuffer buffer) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
void encode(ProtoWriteBuffer buffer) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
void dump_to(std::string &out) const override
Representation of a VarInt - in ProtoBuf should be 64bit but we only use 32bit.
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) 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 encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
void dump_to(std::string &out) const override
void encode_float(uint32_t field_id, float value, bool force=false)
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void dump_to(std::string &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
void encode(ProtoWriteBuffer buffer) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
std::string as_string() const
void encode(ProtoWriteBuffer buffer) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void encode_uint64(uint32_t field_id, uint64_t value, bool force=false)
void encode(ProtoWriteBuffer buffer) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
uint32_t api_version_major
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
void encode(ProtoWriteBuffer buffer) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
float target_temperature_high
void encode(ProtoWriteBuffer buffer) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void dump_to(std::string &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
void encode(ProtoWriteBuffer buffer) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void dump_to(std::string &out) const override
uint32_t api_version_minor
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void encode(ProtoWriteBuffer buffer) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
ClimateSwingMode swing_mode
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) 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
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
VoiceAssistantRequestFlag
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void encode(ProtoWriteBuffer buffer) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void encode_sint32(uint32_t field_id, int32_t value, bool force=false)
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
uint32_t as_fixed32() const
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void encode(ProtoWriteBuffer buffer) const override
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void dump_to(std::string &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
void encode(ProtoWriteBuffer buffer) const override
void dump_to(std::string &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
uint64_t as_uint64() const
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void encode(ProtoWriteBuffer buffer) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
void encode_bool(uint32_t field_id, bool value, bool force=false)
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
void encode(ProtoWriteBuffer buffer) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void encode(ProtoWriteBuffer buffer) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void encode(ProtoWriteBuffer buffer) const override
BedjetMode mode
BedJet operating mode.
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
void dump_to(std::string &out) const override
BluetoothDeviceRequestType
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
VoiceAssistantSubscribeFlag
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
void encode_uint32(uint32_t field_id, uint32_t value, bool force=false)
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void encode(ProtoWriteBuffer buffer) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
void encode_int32(uint32_t field_id, int32_t value, bool force=false)
void encode(ProtoWriteBuffer buffer) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
void encode(ProtoWriteBuffer buffer) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
enum esphome::EntityCategory __attribute__
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
void dump_to(std::string &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
void dump_to(std::string &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
void encode(ProtoWriteBuffer buffer) const override
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
void encode(ProtoWriteBuffer buffer) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
void encode(ProtoWriteBuffer buffer) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
void encode(ProtoWriteBuffer buffer) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) 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
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void encode(ProtoWriteBuffer buffer) const override
This is a workaround until we can figure out a way to get the tflite-micro idf component code availab...
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) 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 encode(ProtoWriteBuffer buffer) const override
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void encode(ProtoWriteBuffer buffer) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
void dump_to(std::string &out) const override
void encode_string(uint32_t field_id, const char *string, size_t len, bool force=false)
void encode(ProtoWriteBuffer buffer) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
AlarmControlPanelStateCommand
void encode(ProtoWriteBuffer buffer) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
void encode(ProtoWriteBuffer buffer) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void encode(ProtoWriteBuffer buffer) const override
void dump_to(std::string &out) const override
uint32_t as_uint32() const
void encode(ProtoWriteBuffer buffer) const override
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void encode(ProtoWriteBuffer buffer) const override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
void encode(ProtoWriteBuffer buffer) const override
void encode_enum(uint32_t field_id, T value, bool force=false)
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void encode(ProtoWriteBuffer buffer) const override
void encode(ProtoWriteBuffer buffer) const override
void dump_to(std::string &out) const override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void encode(ProtoWriteBuffer buffer) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void dump_to(std::string &out) const override
void encode(ProtoWriteBuffer buffer) const override
void encode_message(uint32_t field_id, const C &value, bool force=false)
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override
void encode(ProtoWriteBuffer buffer) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
void dump_to(std::string &out) const override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
bool decode_32bit(uint32_t field_id, Proto32Bit value) override
void dump_to(std::string &out) const override
void dump_to(std::string &out) const override
bool decode_varint(uint32_t field_id, ProtoVarInt value) override
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override