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 416 return "VOICE_ASSISTANT_REQUEST_NONE";
418 return "VOICE_ASSISTANT_REQUEST_USE_VAD";
420 return "VOICE_ASSISTANT_REQUEST_USE_WAKE_WORD";
426 #ifdef HAS_PROTO_MESSAGE_DUMP 430 return "VOICE_ASSISTANT_ERROR";
432 return "VOICE_ASSISTANT_RUN_START";
434 return "VOICE_ASSISTANT_RUN_END";
436 return "VOICE_ASSISTANT_STT_START";
438 return "VOICE_ASSISTANT_STT_END";
440 return "VOICE_ASSISTANT_INTENT_START";
442 return "VOICE_ASSISTANT_INTENT_END";
444 return "VOICE_ASSISTANT_TTS_START";
446 return "VOICE_ASSISTANT_TTS_END";
448 return "VOICE_ASSISTANT_WAKE_WORD_START";
450 return "VOICE_ASSISTANT_WAKE_WORD_END";
452 return "VOICE_ASSISTANT_STT_VAD_START";
454 return "VOICE_ASSISTANT_STT_VAD_END";
456 return "VOICE_ASSISTANT_TTS_STREAM_START";
458 return "VOICE_ASSISTANT_TTS_STREAM_END";
464 #ifdef HAS_PROTO_MESSAGE_DUMP 468 return "ALARM_STATE_DISARMED";
470 return "ALARM_STATE_ARMED_HOME";
472 return "ALARM_STATE_ARMED_AWAY";
474 return "ALARM_STATE_ARMED_NIGHT";
476 return "ALARM_STATE_ARMED_VACATION";
478 return "ALARM_STATE_ARMED_CUSTOM_BYPASS";
480 return "ALARM_STATE_PENDING";
482 return "ALARM_STATE_ARMING";
484 return "ALARM_STATE_DISARMING";
486 return "ALARM_STATE_TRIGGERED";
492 #ifdef HAS_PROTO_MESSAGE_DUMP 497 return "ALARM_CONTROL_PANEL_DISARM";
499 return "ALARM_CONTROL_PANEL_ARM_AWAY";
501 return "ALARM_CONTROL_PANEL_ARM_HOME";
503 return "ALARM_CONTROL_PANEL_ARM_NIGHT";
505 return "ALARM_CONTROL_PANEL_ARM_VACATION";
507 return "ALARM_CONTROL_PANEL_ARM_CUSTOM_BYPASS";
509 return "ALARM_CONTROL_PANEL_TRIGGER";
515 #ifdef HAS_PROTO_MESSAGE_DUMP 519 return "TEXT_MODE_TEXT";
521 return "TEXT_MODE_PASSWORD";
556 #ifdef HAS_PROTO_MESSAGE_DUMP 559 out.append(
"HelloRequest {\n");
560 out.append(
" client_info: ");
561 out.append(
"'").append(this->
client_info).append(
"'");
564 out.append(
" api_version_major: ");
569 out.append(
" api_version_minor: ");
610 #ifdef HAS_PROTO_MESSAGE_DUMP 613 out.append(
"HelloResponse {\n");
614 out.append(
" api_version_major: ");
619 out.append(
" api_version_minor: ");
624 out.append(
" server_info: ");
625 out.append(
"'").append(this->server_info).append(
"'");
628 out.append(
" name: ");
629 out.append(
"'").append(this->
name).append(
"'");
645 #ifdef HAS_PROTO_MESSAGE_DUMP 648 out.append(
"ConnectRequest {\n");
649 out.append(
" password: ");
650 out.append(
"'").append(this->password).append(
"'");
658 this->invalid_password = value.
as_bool();
666 #ifdef HAS_PROTO_MESSAGE_DUMP 669 out.append(
"ConnectResponse {\n");
670 out.append(
" invalid_password: ");
671 out.append(YESNO(this->invalid_password));
677 #ifdef HAS_PROTO_MESSAGE_DUMP 681 #ifdef HAS_PROTO_MESSAGE_DUMP 685 #ifdef HAS_PROTO_MESSAGE_DUMP 689 #ifdef HAS_PROTO_MESSAGE_DUMP 693 #ifdef HAS_PROTO_MESSAGE_DUMP 699 this->uses_password = value.
as_bool();
703 this->has_deep_sleep = value.
as_bool();
707 this->webserver_port = value.
as_uint32();
711 this->legacy_bluetooth_proxy_version = value.
as_uint32();
715 this->bluetooth_proxy_feature_flags = value.
as_uint32();
719 this->voice_assistant_version = value.
as_uint32();
737 this->esphome_version = value.
as_string();
741 this->compilation_time = value.
as_string();
753 this->project_version = value.
as_string();
765 this->suggested_area = value.
as_string();
783 buffer.
encode_uint32(11, this->legacy_bluetooth_proxy_version);
784 buffer.
encode_uint32(15, this->bluetooth_proxy_feature_flags);
790 #ifdef HAS_PROTO_MESSAGE_DUMP 793 out.append(
"DeviceInfoResponse {\n");
794 out.append(
" uses_password: ");
795 out.append(YESNO(this->uses_password));
798 out.append(
" name: ");
799 out.append(
"'").append(this->
name).append(
"'");
802 out.append(
" mac_address: ");
803 out.append(
"'").append(this->mac_address).append(
"'");
806 out.append(
" esphome_version: ");
807 out.append(
"'").append(this->esphome_version).append(
"'");
810 out.append(
" compilation_time: ");
811 out.append(
"'").append(this->compilation_time).append(
"'");
814 out.append(
" model: ");
815 out.append(
"'").append(this->model).append(
"'");
818 out.append(
" has_deep_sleep: ");
819 out.append(YESNO(this->has_deep_sleep));
822 out.append(
" project_name: ");
823 out.append(
"'").append(this->project_name).append(
"'");
826 out.append(
" project_version: ");
827 out.append(
"'").append(this->project_version).append(
"'");
830 out.append(
" webserver_port: ");
831 sprintf(buffer,
"%" PRIu32, this->webserver_port);
835 out.append(
" legacy_bluetooth_proxy_version: ");
836 sprintf(buffer,
"%" PRIu32, this->legacy_bluetooth_proxy_version);
840 out.append(
" bluetooth_proxy_feature_flags: ");
841 sprintf(buffer,
"%" PRIu32, this->bluetooth_proxy_feature_flags);
845 out.append(
" manufacturer: ");
846 out.append(
"'").append(this->manufacturer).append(
"'");
849 out.append(
" friendly_name: ");
850 out.append(
"'").append(this->friendly_name).append(
"'");
853 out.append(
" voice_assistant_version: ");
854 sprintf(buffer,
"%" PRIu32, this->voice_assistant_version);
858 out.append(
" suggested_area: ");
859 out.append(
"'").append(this->suggested_area).append(
"'");
865 #ifdef HAS_PROTO_MESSAGE_DUMP 869 #ifdef HAS_PROTO_MESSAGE_DUMP 873 #ifdef HAS_PROTO_MESSAGE_DUMP 879 this->is_status_binary_sensor = value.
as_bool();
883 this->disabled_by_default = value.
as_bool();
936 buffer.
encode_bool(6, this->is_status_binary_sensor);
941 #ifdef HAS_PROTO_MESSAGE_DUMP 944 out.append(
"ListEntitiesBinarySensorResponse {\n");
945 out.append(
" object_id: ");
946 out.append(
"'").append(this->object_id).append(
"'");
949 out.append(
" key: ");
950 sprintf(buffer,
"%" PRIu32, this->key);
954 out.append(
" name: ");
955 out.append(
"'").append(this->
name).append(
"'");
958 out.append(
" unique_id: ");
959 out.append(
"'").append(this->unique_id).append(
"'");
962 out.append(
" device_class: ");
963 out.append(
"'").append(this->device_class).append(
"'");
966 out.append(
" is_status_binary_sensor: ");
967 out.append(YESNO(this->is_status_binary_sensor));
970 out.append(
" disabled_by_default: ");
971 out.append(YESNO(this->disabled_by_default));
974 out.append(
" icon: ");
975 out.append(
"'").append(this->icon).append(
"'");
978 out.append(
" entity_category: ");
979 out.append(proto_enum_to_string<enums::EntityCategory>(this->entity_category));
991 this->missing_state = value.
as_bool();
1013 #ifdef HAS_PROTO_MESSAGE_DUMP 1016 out.append(
"BinarySensorStateResponse {\n");
1017 out.append(
" key: ");
1018 sprintf(buffer,
"%" PRIu32, this->key);
1022 out.append(
" state: ");
1023 out.append(YESNO(this->
state));
1026 out.append(
" missing_state: ");
1027 out.append(YESNO(this->missing_state));
1035 this->assumed_state = value.
as_bool();
1039 this->supports_position = value.
as_bool();
1043 this->supports_tilt = value.
as_bool();
1047 this->disabled_by_default = value.
as_bool();
1055 this->supports_stop = value.
as_bool();
1112 #ifdef HAS_PROTO_MESSAGE_DUMP 1115 out.append(
"ListEntitiesCoverResponse {\n");
1116 out.append(
" object_id: ");
1117 out.append(
"'").append(this->object_id).append(
"'");
1120 out.append(
" key: ");
1121 sprintf(buffer,
"%" PRIu32, this->key);
1125 out.append(
" name: ");
1126 out.append(
"'").append(this->
name).append(
"'");
1129 out.append(
" unique_id: ");
1130 out.append(
"'").append(this->unique_id).append(
"'");
1133 out.append(
" assumed_state: ");
1134 out.append(YESNO(this->assumed_state));
1137 out.append(
" supports_position: ");
1138 out.append(YESNO(this->supports_position));
1141 out.append(
" supports_tilt: ");
1142 out.append(YESNO(this->supports_tilt));
1145 out.append(
" device_class: ");
1146 out.append(
"'").append(this->device_class).append(
"'");
1149 out.append(
" disabled_by_default: ");
1150 out.append(YESNO(this->disabled_by_default));
1153 out.append(
" icon: ");
1154 out.append(
"'").append(this->icon).append(
"'");
1157 out.append(
" entity_category: ");
1158 out.append(proto_enum_to_string<enums::EntityCategory>(this->entity_category));
1161 out.append(
" supports_stop: ");
1162 out.append(YESNO(this->supports_stop));
1206 #ifdef HAS_PROTO_MESSAGE_DUMP 1209 out.append(
"CoverStateResponse {\n");
1210 out.append(
" key: ");
1211 sprintf(buffer,
"%" PRIu32, this->key);
1215 out.append(
" legacy_state: ");
1216 out.append(proto_enum_to_string<enums::LegacyCoverState>(this->legacy_state));
1219 out.append(
" position: ");
1220 sprintf(buffer,
"%g", this->
position);
1224 out.append(
" tilt: ");
1225 sprintf(buffer,
"%g", this->
tilt);
1229 out.append(
" current_operation: ");
1230 out.append(proto_enum_to_string<enums::CoverOperation>(this->current_operation));
1238 this->has_legacy_command = value.
as_bool();
1246 this->has_position = value.
as_bool();
1250 this->has_tilt = value.
as_bool();
1289 #ifdef HAS_PROTO_MESSAGE_DUMP 1292 out.append(
"CoverCommandRequest {\n");
1293 out.append(
" key: ");
1294 sprintf(buffer,
"%" PRIu32, this->key);
1298 out.append(
" has_legacy_command: ");
1299 out.append(YESNO(this->has_legacy_command));
1302 out.append(
" legacy_command: ");
1303 out.append(proto_enum_to_string<enums::LegacyCoverCommand>(this->legacy_command));
1306 out.append(
" has_position: ");
1307 out.append(YESNO(this->has_position));
1310 out.append(
" position: ");
1311 sprintf(buffer,
"%g", this->
position);
1315 out.append(
" has_tilt: ");
1316 out.append(YESNO(this->has_tilt));
1319 out.append(
" tilt: ");
1320 sprintf(buffer,
"%g", this->
tilt);
1324 out.append(
" stop: ");
1325 out.append(YESNO(this->stop));
1333 this->supports_oscillation = value.
as_bool();
1337 this->supports_speed = value.
as_bool();
1341 this->supports_direction = value.
as_bool();
1345 this->supported_speed_count = value.
as_int32();
1349 this->disabled_by_default = value.
as_bool();
1379 this->supported_preset_modes.push_back(value.
as_string());
1401 buffer.
encode_bool(5, this->supports_oscillation);
1408 for (
auto &it : this->supported_preset_modes) {
1412 #ifdef HAS_PROTO_MESSAGE_DUMP 1415 out.append(
"ListEntitiesFanResponse {\n");
1416 out.append(
" object_id: ");
1417 out.append(
"'").append(this->object_id).append(
"'");
1420 out.append(
" key: ");
1421 sprintf(buffer,
"%" PRIu32, this->key);
1425 out.append(
" name: ");
1426 out.append(
"'").append(this->
name).append(
"'");
1429 out.append(
" unique_id: ");
1430 out.append(
"'").append(this->unique_id).append(
"'");
1433 out.append(
" supports_oscillation: ");
1434 out.append(YESNO(this->supports_oscillation));
1437 out.append(
" supports_speed: ");
1438 out.append(YESNO(this->supports_speed));
1441 out.append(
" supports_direction: ");
1442 out.append(YESNO(this->supports_direction));
1445 out.append(
" supported_speed_count: ");
1446 sprintf(buffer,
"%" PRId32, this->supported_speed_count);
1450 out.append(
" disabled_by_default: ");
1451 out.append(YESNO(this->disabled_by_default));
1454 out.append(
" icon: ");
1455 out.append(
"'").append(this->icon).append(
"'");
1458 out.append(
" entity_category: ");
1459 out.append(proto_enum_to_string<enums::EntityCategory>(this->entity_category));
1462 for (
const auto &it : this->supported_preset_modes) {
1463 out.append(
" supported_preset_modes: ");
1464 out.append(
"'").append(it).append(
"'");
1489 this->speed_level = value.
as_int32();
1525 #ifdef HAS_PROTO_MESSAGE_DUMP 1528 out.append(
"FanStateResponse {\n");
1529 out.append(
" key: ");
1530 sprintf(buffer,
"%" PRIu32, this->key);
1534 out.append(
" state: ");
1535 out.append(YESNO(this->
state));
1538 out.append(
" oscillating: ");
1542 out.append(
" speed: ");
1543 out.append(proto_enum_to_string<enums::FanSpeed>(this->
speed));
1546 out.append(
" direction: ");
1547 out.append(proto_enum_to_string<enums::FanDirection>(this->
direction));
1550 out.append(
" speed_level: ");
1551 sprintf(buffer,
"%" PRId32, this->speed_level);
1555 out.append(
" preset_mode: ");
1556 out.append(
"'").append(this->
preset_mode).append(
"'");
1564 this->has_state = value.
as_bool();
1572 this->has_speed = value.
as_bool();
1580 this->has_oscillating = value.
as_bool();
1588 this->has_direction = value.
as_bool();
1596 this->has_speed_level = value.
as_bool();
1600 this->speed_level = value.
as_int32();
1604 this->has_preset_mode = value.
as_bool();
1646 #ifdef HAS_PROTO_MESSAGE_DUMP 1649 out.append(
"FanCommandRequest {\n");
1650 out.append(
" key: ");
1651 sprintf(buffer,
"%" PRIu32, this->key);
1655 out.append(
" has_state: ");
1656 out.append(YESNO(this->has_state));
1659 out.append(
" state: ");
1660 out.append(YESNO(this->
state));
1663 out.append(
" has_speed: ");
1664 out.append(YESNO(this->has_speed));
1667 out.append(
" speed: ");
1668 out.append(proto_enum_to_string<enums::FanSpeed>(this->
speed));
1671 out.append(
" has_oscillating: ");
1672 out.append(YESNO(this->has_oscillating));
1675 out.append(
" oscillating: ");
1679 out.append(
" has_direction: ");
1680 out.append(YESNO(this->has_direction));
1683 out.append(
" direction: ");
1684 out.append(proto_enum_to_string<enums::FanDirection>(this->
direction));
1687 out.append(
" has_speed_level: ");
1688 out.append(YESNO(this->has_speed_level));
1691 out.append(
" speed_level: ");
1692 sprintf(buffer,
"%" PRId32, this->speed_level);
1696 out.append(
" has_preset_mode: ");
1697 out.append(YESNO(this->has_preset_mode));
1700 out.append(
" preset_mode: ");
1701 out.append(
"'").append(this->
preset_mode).append(
"'");
1713 this->legacy_supports_brightness = value.
as_bool();
1717 this->legacy_supports_rgb = value.
as_bool();
1721 this->legacy_supports_white_value = value.
as_bool();
1725 this->legacy_supports_color_temperature = value.
as_bool();
1729 this->disabled_by_default = value.
as_bool();
1755 this->effects.push_back(value.
as_string());
1773 this->min_mireds = value.
as_float();
1777 this->max_mireds = value.
as_float();
1789 for (
auto &it : this->supported_color_modes) {
1792 buffer.
encode_bool(5, this->legacy_supports_brightness);
1794 buffer.
encode_bool(7, this->legacy_supports_white_value);
1795 buffer.
encode_bool(8, this->legacy_supports_color_temperature);
1798 for (
auto &it : this->effects) {
1801 buffer.
encode_bool(13, this->disabled_by_default);
1805 #ifdef HAS_PROTO_MESSAGE_DUMP 1808 out.append(
"ListEntitiesLightResponse {\n");
1809 out.append(
" object_id: ");
1810 out.append(
"'").append(this->object_id).append(
"'");
1813 out.append(
" key: ");
1814 sprintf(buffer,
"%" PRIu32, this->key);
1818 out.append(
" name: ");
1819 out.append(
"'").append(this->
name).append(
"'");
1822 out.append(
" unique_id: ");
1823 out.append(
"'").append(this->unique_id).append(
"'");
1826 for (
const auto &it : this->supported_color_modes) {
1827 out.append(
" supported_color_modes: ");
1828 out.append(proto_enum_to_string<enums::ColorMode>(it));
1832 out.append(
" legacy_supports_brightness: ");
1833 out.append(YESNO(this->legacy_supports_brightness));
1836 out.append(
" legacy_supports_rgb: ");
1837 out.append(YESNO(this->legacy_supports_rgb));
1840 out.append(
" legacy_supports_white_value: ");
1841 out.append(YESNO(this->legacy_supports_white_value));
1844 out.append(
" legacy_supports_color_temperature: ");
1845 out.append(YESNO(this->legacy_supports_color_temperature));
1848 out.append(
" min_mireds: ");
1849 sprintf(buffer,
"%g", this->min_mireds);
1853 out.append(
" max_mireds: ");
1854 sprintf(buffer,
"%g", this->max_mireds);
1858 for (
const auto &it : this->effects) {
1859 out.append(
" effects: ");
1860 out.append(
"'").append(it).append(
"'");
1864 out.append(
" disabled_by_default: ");
1865 out.append(YESNO(this->disabled_by_default));
1868 out.append(
" icon: ");
1869 out.append(
"'").append(this->icon).append(
"'");
1872 out.append(
" entity_category: ");
1873 out.append(proto_enum_to_string<enums::EntityCategory>(this->entity_category));
1909 this->brightness = value.
as_float();
1913 this->color_brightness = value.
as_float();
1933 this->color_temperature = value.
as_float();
1937 this->cold_white = value.
as_float();
1941 this->warm_white = value.
as_float();
1963 #ifdef HAS_PROTO_MESSAGE_DUMP 1966 out.append(
"LightStateResponse {\n");
1967 out.append(
" key: ");
1968 sprintf(buffer,
"%" PRIu32, this->key);
1972 out.append(
" state: ");
1973 out.append(YESNO(this->
state));
1976 out.append(
" brightness: ");
1977 sprintf(buffer,
"%g", this->brightness);
1981 out.append(
" color_mode: ");
1982 out.append(proto_enum_to_string<enums::ColorMode>(this->color_mode));
1985 out.append(
" color_brightness: ");
1986 sprintf(buffer,
"%g", this->color_brightness);
1990 out.append(
" red: ");
1991 sprintf(buffer,
"%g", this->red);
1995 out.append(
" green: ");
1996 sprintf(buffer,
"%g", this->green);
2000 out.append(
" blue: ");
2001 sprintf(buffer,
"%g", this->blue);
2005 out.append(
" white: ");
2006 sprintf(buffer,
"%g", this->white);
2010 out.append(
" color_temperature: ");
2011 sprintf(buffer,
"%g", this->color_temperature);
2015 out.append(
" cold_white: ");
2016 sprintf(buffer,
"%g", this->cold_white);
2020 out.append(
" warm_white: ");
2021 sprintf(buffer,
"%g", this->warm_white);
2025 out.append(
" effect: ");
2026 out.append(
"'").append(this->effect).append(
"'");
2034 this->has_state = value.
as_bool();
2042 this->has_brightness = value.
as_bool();
2046 this->has_color_mode = value.
as_bool();
2054 this->has_color_brightness = value.
as_bool();
2058 this->has_rgb = value.
as_bool();
2062 this->has_white = value.
as_bool();
2066 this->has_color_temperature = value.
as_bool();
2070 this->has_cold_white = value.
as_bool();
2074 this->has_warm_white = value.
as_bool();
2078 this->has_transition_length = value.
as_bool();
2082 this->transition_length = value.
as_uint32();
2086 this->has_flash_length = value.
as_bool();
2094 this->has_effect = value.
as_bool();
2118 this->brightness = value.
as_float();
2122 this->color_brightness = value.
as_float();
2142 this->color_temperature = value.
as_float();
2146 this->cold_white = value.
as_float();
2150 this->warm_white = value.
as_float();
2165 buffer.
encode_bool(20, this->has_color_brightness);
2173 buffer.
encode_bool(12, this->has_color_temperature);
2179 buffer.
encode_bool(14, this->has_transition_length);
2186 #ifdef HAS_PROTO_MESSAGE_DUMP 2189 out.append(
"LightCommandRequest {\n");
2190 out.append(
" key: ");
2191 sprintf(buffer,
"%" PRIu32, this->key);
2195 out.append(
" has_state: ");
2196 out.append(YESNO(this->has_state));
2199 out.append(
" state: ");
2200 out.append(YESNO(this->
state));
2203 out.append(
" has_brightness: ");
2204 out.append(YESNO(this->has_brightness));
2207 out.append(
" brightness: ");
2208 sprintf(buffer,
"%g", this->brightness);
2212 out.append(
" has_color_mode: ");
2213 out.append(YESNO(this->has_color_mode));
2216 out.append(
" color_mode: ");
2217 out.append(proto_enum_to_string<enums::ColorMode>(this->color_mode));
2220 out.append(
" has_color_brightness: ");
2221 out.append(YESNO(this->has_color_brightness));
2224 out.append(
" color_brightness: ");
2225 sprintf(buffer,
"%g", this->color_brightness);
2229 out.append(
" has_rgb: ");
2230 out.append(YESNO(this->has_rgb));
2233 out.append(
" red: ");
2234 sprintf(buffer,
"%g", this->red);
2238 out.append(
" green: ");
2239 sprintf(buffer,
"%g", this->green);
2243 out.append(
" blue: ");
2244 sprintf(buffer,
"%g", this->blue);
2248 out.append(
" has_white: ");
2249 out.append(YESNO(this->has_white));
2252 out.append(
" white: ");
2253 sprintf(buffer,
"%g", this->white);
2257 out.append(
" has_color_temperature: ");
2258 out.append(YESNO(this->has_color_temperature));
2261 out.append(
" color_temperature: ");
2262 sprintf(buffer,
"%g", this->color_temperature);
2266 out.append(
" has_cold_white: ");
2267 out.append(YESNO(this->has_cold_white));
2270 out.append(
" cold_white: ");
2271 sprintf(buffer,
"%g", this->cold_white);
2275 out.append(
" has_warm_white: ");
2276 out.append(YESNO(this->has_warm_white));
2279 out.append(
" warm_white: ");
2280 sprintf(buffer,
"%g", this->warm_white);
2284 out.append(
" has_transition_length: ");
2285 out.append(YESNO(this->has_transition_length));
2288 out.append(
" transition_length: ");
2289 sprintf(buffer,
"%" PRIu32, this->transition_length);
2293 out.append(
" has_flash_length: ");
2294 out.append(YESNO(this->has_flash_length));
2297 out.append(
" flash_length: ");
2298 sprintf(buffer,
"%" PRIu32, this->flash_length);
2302 out.append(
" has_effect: ");
2303 out.append(YESNO(this->has_effect));
2306 out.append(
" effect: ");
2307 out.append(
"'").append(this->effect).append(
"'");
2315 this->accuracy_decimals = value.
as_int32();
2319 this->force_update = value.
as_bool();
2331 this->disabled_by_default = value.
as_bool();
2361 this->unit_of_measurement = value.
as_string();
2394 buffer.
encode_bool(12, this->disabled_by_default);
2397 #ifdef HAS_PROTO_MESSAGE_DUMP 2400 out.append(
"ListEntitiesSensorResponse {\n");
2401 out.append(
" object_id: ");
2402 out.append(
"'").append(this->object_id).append(
"'");
2405 out.append(
" key: ");
2406 sprintf(buffer,
"%" PRIu32, this->key);
2410 out.append(
" name: ");
2411 out.append(
"'").append(this->
name).append(
"'");
2414 out.append(
" unique_id: ");
2415 out.append(
"'").append(this->unique_id).append(
"'");
2418 out.append(
" icon: ");
2419 out.append(
"'").append(this->icon).append(
"'");
2422 out.append(
" unit_of_measurement: ");
2423 out.append(
"'").append(this->unit_of_measurement).append(
"'");
2426 out.append(
" accuracy_decimals: ");
2427 sprintf(buffer,
"%" PRId32, this->accuracy_decimals);
2431 out.append(
" force_update: ");
2432 out.append(YESNO(this->force_update));
2435 out.append(
" device_class: ");
2436 out.append(
"'").append(this->device_class).append(
"'");
2439 out.append(
" state_class: ");
2440 out.append(proto_enum_to_string<enums::SensorStateClass>(this->state_class));
2443 out.append(
" legacy_last_reset_type: ");
2444 out.append(proto_enum_to_string<enums::SensorLastResetType>(this->legacy_last_reset_type));
2447 out.append(
" disabled_by_default: ");
2448 out.append(YESNO(this->disabled_by_default));
2451 out.append(
" entity_category: ");
2452 out.append(proto_enum_to_string<enums::EntityCategory>(this->entity_category));
2460 this->missing_state = value.
as_bool();
2486 #ifdef HAS_PROTO_MESSAGE_DUMP 2489 out.append(
"SensorStateResponse {\n");
2490 out.append(
" key: ");
2491 sprintf(buffer,
"%" PRIu32, this->key);
2495 out.append(
" state: ");
2496 sprintf(buffer,
"%g", this->
state);
2500 out.append(
" missing_state: ");
2501 out.append(YESNO(this->missing_state));
2509 this->assumed_state = value.
as_bool();
2513 this->disabled_by_default = value.
as_bool();
2571 #ifdef HAS_PROTO_MESSAGE_DUMP 2574 out.append(
"ListEntitiesSwitchResponse {\n");
2575 out.append(
" object_id: ");
2576 out.append(
"'").append(this->object_id).append(
"'");
2579 out.append(
" key: ");
2580 sprintf(buffer,
"%" PRIu32, this->key);
2584 out.append(
" name: ");
2585 out.append(
"'").append(this->
name).append(
"'");
2588 out.append(
" unique_id: ");
2589 out.append(
"'").append(this->unique_id).append(
"'");
2592 out.append(
" icon: ");
2593 out.append(
"'").append(this->icon).append(
"'");
2596 out.append(
" assumed_state: ");
2597 out.append(YESNO(this->assumed_state));
2600 out.append(
" disabled_by_default: ");
2601 out.append(YESNO(this->disabled_by_default));
2604 out.append(
" entity_category: ");
2605 out.append(proto_enum_to_string<enums::EntityCategory>(this->entity_category));
2608 out.append(
" device_class: ");
2609 out.append(
"'").append(this->device_class).append(
"'");
2638 #ifdef HAS_PROTO_MESSAGE_DUMP 2641 out.append(
"SwitchStateResponse {\n");
2642 out.append(
" key: ");
2643 sprintf(buffer,
"%" PRIu32, this->key);
2647 out.append(
" state: ");
2648 out.append(YESNO(this->
state));
2677 #ifdef HAS_PROTO_MESSAGE_DUMP 2680 out.append(
"SwitchCommandRequest {\n");
2681 out.append(
" key: ");
2682 sprintf(buffer,
"%" PRIu32, this->key);
2686 out.append(
" state: ");
2687 out.append(YESNO(this->
state));
2695 this->disabled_by_default = value.
as_bool();
2752 #ifdef HAS_PROTO_MESSAGE_DUMP 2755 out.append(
"ListEntitiesTextSensorResponse {\n");
2756 out.append(
" object_id: ");
2757 out.append(
"'").append(this->object_id).append(
"'");
2760 out.append(
" key: ");
2761 sprintf(buffer,
"%" PRIu32, this->key);
2765 out.append(
" name: ");
2766 out.append(
"'").append(this->
name).append(
"'");
2769 out.append(
" unique_id: ");
2770 out.append(
"'").append(this->unique_id).append(
"'");
2773 out.append(
" icon: ");
2774 out.append(
"'").append(this->icon).append(
"'");
2777 out.append(
" disabled_by_default: ");
2778 out.append(YESNO(this->disabled_by_default));
2781 out.append(
" entity_category: ");
2782 out.append(proto_enum_to_string<enums::EntityCategory>(this->entity_category));
2785 out.append(
" device_class: ");
2786 out.append(
"'").append(this->device_class).append(
"'");
2794 this->missing_state = value.
as_bool();
2826 #ifdef HAS_PROTO_MESSAGE_DUMP 2829 out.append(
"TextSensorStateResponse {\n");
2830 out.append(
" key: ");
2831 sprintf(buffer,
"%" PRIu32, this->key);
2835 out.append(
" state: ");
2836 out.append(
"'").append(this->
state).append(
"'");
2839 out.append(
" missing_state: ");
2840 out.append(YESNO(this->missing_state));
2852 this->dump_config = value.
as_bool();
2863 #ifdef HAS_PROTO_MESSAGE_DUMP 2866 out.append(
"SubscribeLogsRequest {\n");
2867 out.append(
" level: ");
2868 out.append(proto_enum_to_string<enums::LogLevel>(this->level));
2871 out.append(
" dump_config: ");
2872 out.append(YESNO(this->dump_config));
2884 this->send_failed = value.
as_bool();
2906 #ifdef HAS_PROTO_MESSAGE_DUMP 2909 out.append(
"SubscribeLogsResponse {\n");
2910 out.append(
" level: ");
2911 out.append(proto_enum_to_string<enums::LogLevel>(this->level));
2914 out.append(
" message: ");
2915 out.append(
"'").append(this->message).append(
"'");
2918 out.append(
" send_failed: ");
2919 out.append(YESNO(this->send_failed));
2925 #ifdef HAS_PROTO_MESSAGE_DUMP 2927 out.append(
"SubscribeHomeassistantServicesRequest {}");
2948 #ifdef HAS_PROTO_MESSAGE_DUMP 2951 out.append(
"HomeassistantServiceMap {\n");
2952 out.append(
" key: ");
2953 out.append(
"'").append(this->key).append(
"'");
2956 out.append(
" value: ");
2957 out.append(
"'").append(this->value).append(
"'");
2965 this->is_event = value.
as_bool();
2996 for (
auto &it : this->data) {
2999 for (
auto &it : this->data_template) {
3002 for (
auto &it : this->variables) {
3007 #ifdef HAS_PROTO_MESSAGE_DUMP 3010 out.append(
"HomeassistantServiceResponse {\n");
3011 out.append(
" service: ");
3012 out.append(
"'").append(this->service).append(
"'");
3015 for (
const auto &it : this->data) {
3016 out.append(
" data: ");
3021 for (
const auto &it : this->data_template) {
3022 out.append(
" data_template: ");
3027 for (
const auto &it : this->variables) {
3028 out.append(
" variables: ");
3033 out.append(
" is_event: ");
3034 out.append(YESNO(this->is_event));
3040 #ifdef HAS_PROTO_MESSAGE_DUMP 3042 out.append(
"SubscribeHomeAssistantStatesRequest {}");
3063 #ifdef HAS_PROTO_MESSAGE_DUMP 3066 out.append(
"SubscribeHomeAssistantStateResponse {\n");
3067 out.append(
" entity_id: ");
3068 out.append(
"'").append(this->entity_id).append(
"'");
3071 out.append(
" attribute: ");
3072 out.append(
"'").append(this->attribute).append(
"'");
3100 #ifdef HAS_PROTO_MESSAGE_DUMP 3103 out.append(
"HomeAssistantStateResponse {\n");
3104 out.append(
" entity_id: ");
3105 out.append(
"'").append(this->entity_id).append(
"'");
3108 out.append(
" state: ");
3109 out.append(
"'").append(this->
state).append(
"'");
3112 out.append(
" attribute: ");
3113 out.append(
"'").append(this->attribute).append(
"'");
3119 #ifdef HAS_PROTO_MESSAGE_DUMP 3133 #ifdef HAS_PROTO_MESSAGE_DUMP 3136 out.append(
"GetTimeResponse {\n");
3137 out.append(
" epoch_seconds: ");
3138 sprintf(buffer,
"%" PRIu32, this->epoch_seconds);
3168 #ifdef HAS_PROTO_MESSAGE_DUMP 3171 out.append(
"ListEntitiesServicesArgument {\n");
3172 out.append(
" name: ");
3173 out.append(
"'").append(this->
name).append(
"'");
3176 out.append(
" type: ");
3177 out.append(proto_enum_to_string<enums::ServiceArgType>(this->
type));
3209 for (
auto &it : this->args) {
3213 #ifdef HAS_PROTO_MESSAGE_DUMP 3216 out.append(
"ListEntitiesServicesResponse {\n");
3217 out.append(
" name: ");
3218 out.append(
"'").append(this->
name).append(
"'");
3221 out.append(
" key: ");
3222 sprintf(buffer,
"%" PRIu32, this->key);
3226 for (
const auto &it : this->args) {
3227 out.append(
" args: ");
3237 this->bool_ = value.
as_bool();
3241 this->legacy_int = value.
as_int32();
3249 this->bool_array.push_back(value.
as_bool());
3253 this->int_array.push_back(value.
as_sint32());
3267 this->string_array.push_back(value.
as_string());
3281 this->float_array.push_back(value.
as_float());
3294 for (
auto it : this->bool_array) {
3297 for (
auto &it : this->int_array) {
3300 for (
auto &it : this->float_array) {
3303 for (
auto &it : this->string_array) {
3307 #ifdef HAS_PROTO_MESSAGE_DUMP 3310 out.append(
"ExecuteServiceArgument {\n");
3311 out.append(
" bool_: ");
3312 out.append(YESNO(this->bool_));
3315 out.append(
" legacy_int: ");
3316 sprintf(buffer,
"%" PRId32, this->legacy_int);
3320 out.append(
" float_: ");
3321 sprintf(buffer,
"%g", this->float_);
3325 out.append(
" string_: ");
3326 out.append(
"'").append(this->string_).append(
"'");
3329 out.append(
" int_: ");
3330 sprintf(buffer,
"%" PRId32, this->int_);
3334 for (
const auto it : this->bool_array) {
3335 out.append(
" bool_array: ");
3336 out.append(YESNO(it));
3340 for (
const auto &it : this->int_array) {
3341 out.append(
" int_array: ");
3342 sprintf(buffer,
"%" PRId32, it);
3347 for (
const auto &it : this->float_array) {
3348 out.append(
" float_array: ");
3349 sprintf(buffer,
"%g", it);
3354 for (
const auto &it : this->string_array) {
3355 out.append(
" string_array: ");
3356 out.append(
"'").append(it).append(
"'");
3384 for (
auto &it : this->args) {
3388 #ifdef HAS_PROTO_MESSAGE_DUMP 3391 out.append(
"ExecuteServiceRequest {\n");
3392 out.append(
" key: ");
3393 sprintf(buffer,
"%" PRIu32, this->key);
3397 for (
const auto &it : this->args) {
3398 out.append(
" args: ");
3408 this->disabled_by_default = value.
as_bool();
3460 #ifdef HAS_PROTO_MESSAGE_DUMP 3463 out.append(
"ListEntitiesCameraResponse {\n");
3464 out.append(
" object_id: ");
3465 out.append(
"'").append(this->object_id).append(
"'");
3468 out.append(
" key: ");
3469 sprintf(buffer,
"%" PRIu32, this->key);
3473 out.append(
" name: ");
3474 out.append(
"'").append(this->
name).append(
"'");
3477 out.append(
" unique_id: ");
3478 out.append(
"'").append(this->unique_id).append(
"'");
3481 out.append(
" disabled_by_default: ");
3482 out.append(YESNO(this->disabled_by_default));
3485 out.append(
" icon: ");
3486 out.append(
"'").append(this->icon).append(
"'");
3489 out.append(
" entity_category: ");
3490 out.append(proto_enum_to_string<enums::EntityCategory>(this->entity_category));
3530 #ifdef HAS_PROTO_MESSAGE_DUMP 3533 out.append(
"CameraImageResponse {\n");
3534 out.append(
" key: ");
3535 sprintf(buffer,
"%" PRIu32, this->key);
3539 out.append(
" data: ");
3540 out.append(
"'").append(this->data).append(
"'");
3543 out.append(
" done: ");
3544 out.append(YESNO(this->done));
3552 this->single = value.
as_bool();
3556 this->stream = value.
as_bool();
3567 #ifdef HAS_PROTO_MESSAGE_DUMP 3570 out.append(
"CameraImageRequest {\n");
3571 out.append(
" single: ");
3572 out.append(YESNO(this->single));
3575 out.append(
" stream: ");
3576 out.append(YESNO(this->stream));
3584 this->supports_current_temperature = value.
as_bool();
3588 this->supports_two_point_target_temperature = value.
as_bool();
3596 this->legacy_supports_away = value.
as_bool();
3600 this->supports_action = value.
as_bool();
3616 this->disabled_by_default = value.
as_bool();
3624 this->supports_current_humidity = value.
as_bool();
3628 this->supports_target_humidity = value.
as_bool();
3650 this->supported_custom_fan_modes.push_back(value.
as_string());
3654 this->supported_custom_presets.push_back(value.
as_string());
3672 this->visual_min_temperature = value.
as_float();
3676 this->visual_max_temperature = value.
as_float();
3680 this->visual_target_temperature_step = value.
as_float();
3684 this->visual_current_temperature_step = value.
as_float();
3688 this->visual_min_humidity = value.
as_float();
3692 this->visual_max_humidity = value.
as_float();
3704 buffer.
encode_bool(5, this->supports_current_temperature);
3705 buffer.
encode_bool(6, this->supports_two_point_target_temperature);
3706 for (
auto &it : this->supported_modes) {
3711 buffer.
encode_float(10, this->visual_target_temperature_step);
3712 buffer.
encode_bool(11, this->legacy_supports_away);
3714 for (
auto &it : this->supported_fan_modes) {
3717 for (
auto &it : this->supported_swing_modes) {
3720 for (
auto &it : this->supported_custom_fan_modes) {
3723 for (
auto &it : this->supported_presets) {
3726 for (
auto &it : this->supported_custom_presets) {
3729 buffer.
encode_bool(18, this->disabled_by_default);
3732 buffer.
encode_float(21, this->visual_current_temperature_step);
3733 buffer.
encode_bool(22, this->supports_current_humidity);
3734 buffer.
encode_bool(23, this->supports_target_humidity);
3738 #ifdef HAS_PROTO_MESSAGE_DUMP 3741 out.append(
"ListEntitiesClimateResponse {\n");
3742 out.append(
" object_id: ");
3743 out.append(
"'").append(this->object_id).append(
"'");
3746 out.append(
" key: ");
3747 sprintf(buffer,
"%" PRIu32, this->key);
3751 out.append(
" name: ");
3752 out.append(
"'").append(this->
name).append(
"'");
3755 out.append(
" unique_id: ");
3756 out.append(
"'").append(this->unique_id).append(
"'");
3759 out.append(
" supports_current_temperature: ");
3760 out.append(YESNO(this->supports_current_temperature));
3763 out.append(
" supports_two_point_target_temperature: ");
3764 out.append(YESNO(this->supports_two_point_target_temperature));
3767 for (
const auto &it : this->supported_modes) {
3768 out.append(
" supported_modes: ");
3769 out.append(proto_enum_to_string<enums::ClimateMode>(it));
3773 out.append(
" visual_min_temperature: ");
3774 sprintf(buffer,
"%g", this->visual_min_temperature);
3778 out.append(
" visual_max_temperature: ");
3779 sprintf(buffer,
"%g", this->visual_max_temperature);
3783 out.append(
" visual_target_temperature_step: ");
3784 sprintf(buffer,
"%g", this->visual_target_temperature_step);
3788 out.append(
" legacy_supports_away: ");
3789 out.append(YESNO(this->legacy_supports_away));
3792 out.append(
" supports_action: ");
3793 out.append(YESNO(this->supports_action));
3796 for (
const auto &it : this->supported_fan_modes) {
3797 out.append(
" supported_fan_modes: ");
3798 out.append(proto_enum_to_string<enums::ClimateFanMode>(it));
3802 for (
const auto &it : this->supported_swing_modes) {
3803 out.append(
" supported_swing_modes: ");
3804 out.append(proto_enum_to_string<enums::ClimateSwingMode>(it));
3808 for (
const auto &it : this->supported_custom_fan_modes) {
3809 out.append(
" supported_custom_fan_modes: ");
3810 out.append(
"'").append(it).append(
"'");
3814 for (
const auto &it : this->supported_presets) {
3815 out.append(
" supported_presets: ");
3816 out.append(proto_enum_to_string<enums::ClimatePreset>(it));
3820 for (
const auto &it : this->supported_custom_presets) {
3821 out.append(
" supported_custom_presets: ");
3822 out.append(
"'").append(it).append(
"'");
3826 out.append(
" disabled_by_default: ");
3827 out.append(YESNO(this->disabled_by_default));
3830 out.append(
" icon: ");
3831 out.append(
"'").append(this->icon).append(
"'");
3834 out.append(
" entity_category: ");
3835 out.append(proto_enum_to_string<enums::EntityCategory>(this->entity_category));
3838 out.append(
" visual_current_temperature_step: ");
3839 sprintf(buffer,
"%g", this->visual_current_temperature_step);
3843 out.append(
" supports_current_humidity: ");
3844 out.append(YESNO(this->supports_current_humidity));
3847 out.append(
" supports_target_humidity: ");
3848 out.append(YESNO(this->supports_target_humidity));
3851 out.append(
" visual_min_humidity: ");
3852 sprintf(buffer,
"%g", this->visual_min_humidity);
3856 out.append(
" visual_max_humidity: ");
3857 sprintf(buffer,
"%g", this->visual_max_humidity);
3870 this->unused_legacy_away = value.
as_bool();
3914 this->current_temperature = value.
as_float();
3930 this->current_humidity = value.
as_float();
3958 #ifdef HAS_PROTO_MESSAGE_DUMP 3961 out.append(
"ClimateStateResponse {\n");
3962 out.append(
" key: ");
3963 sprintf(buffer,
"%" PRIu32, this->key);
3967 out.append(
" mode: ");
3968 out.append(proto_enum_to_string<enums::ClimateMode>(this->
mode));
3971 out.append(
" current_temperature: ");
3972 sprintf(buffer,
"%g", this->current_temperature);
3976 out.append(
" target_temperature: ");
3981 out.append(
" target_temperature_low: ");
3986 out.append(
" target_temperature_high: ");
3991 out.append(
" unused_legacy_away: ");
3992 out.append(YESNO(this->unused_legacy_away));
3995 out.append(
" action: ");
3996 out.append(proto_enum_to_string<enums::ClimateAction>(this->action));
3999 out.append(
" fan_mode: ");
4000 out.append(proto_enum_to_string<enums::ClimateFanMode>(this->
fan_mode));
4003 out.append(
" swing_mode: ");
4004 out.append(proto_enum_to_string<enums::ClimateSwingMode>(this->
swing_mode));
4007 out.append(
" custom_fan_mode: ");
4011 out.append(
" preset: ");
4012 out.append(proto_enum_to_string<enums::ClimatePreset>(this->
preset));
4015 out.append(
" custom_preset: ");
4019 out.append(
" current_humidity: ");
4020 sprintf(buffer,
"%g", this->current_humidity);
4024 out.append(
" target_humidity: ");
4034 this->has_mode = value.
as_bool();
4042 this->has_target_temperature = value.
as_bool();
4046 this->has_target_temperature_low = value.
as_bool();
4050 this->has_target_temperature_high = value.
as_bool();
4054 this->unused_has_legacy_away = value.
as_bool();
4058 this->unused_legacy_away = value.
as_bool();
4062 this->has_fan_mode = value.
as_bool();
4070 this->has_swing_mode = value.
as_bool();
4078 this->has_custom_fan_mode = value.
as_bool();
4082 this->has_preset = value.
as_bool();
4090 this->has_custom_preset = value.
as_bool();
4094 this->has_target_humidity = value.
as_bool();
4145 buffer.
encode_bool(4, this->has_target_temperature);
4147 buffer.
encode_bool(6, this->has_target_temperature_low);
4149 buffer.
encode_bool(8, this->has_target_temperature_high);
4151 buffer.
encode_bool(10, this->unused_has_legacy_away);
4157 buffer.
encode_bool(16, this->has_custom_fan_mode);
4163 buffer.
encode_bool(22, this->has_target_humidity);
4166 #ifdef HAS_PROTO_MESSAGE_DUMP 4169 out.append(
"ClimateCommandRequest {\n");
4170 out.append(
" key: ");
4171 sprintf(buffer,
"%" PRIu32, this->key);
4175 out.append(
" has_mode: ");
4176 out.append(YESNO(this->has_mode));
4179 out.append(
" mode: ");
4180 out.append(proto_enum_to_string<enums::ClimateMode>(this->
mode));
4183 out.append(
" has_target_temperature: ");
4184 out.append(YESNO(this->has_target_temperature));
4187 out.append(
" target_temperature: ");
4192 out.append(
" has_target_temperature_low: ");
4193 out.append(YESNO(this->has_target_temperature_low));
4196 out.append(
" target_temperature_low: ");
4201 out.append(
" has_target_temperature_high: ");
4202 out.append(YESNO(this->has_target_temperature_high));
4205 out.append(
" target_temperature_high: ");
4210 out.append(
" unused_has_legacy_away: ");
4211 out.append(YESNO(this->unused_has_legacy_away));
4214 out.append(
" unused_legacy_away: ");
4215 out.append(YESNO(this->unused_legacy_away));
4218 out.append(
" has_fan_mode: ");
4219 out.append(YESNO(this->has_fan_mode));
4222 out.append(
" fan_mode: ");
4223 out.append(proto_enum_to_string<enums::ClimateFanMode>(this->
fan_mode));
4226 out.append(
" has_swing_mode: ");
4227 out.append(YESNO(this->has_swing_mode));
4230 out.append(
" swing_mode: ");
4231 out.append(proto_enum_to_string<enums::ClimateSwingMode>(this->
swing_mode));
4234 out.append(
" has_custom_fan_mode: ");
4235 out.append(YESNO(this->has_custom_fan_mode));
4238 out.append(
" custom_fan_mode: ");
4242 out.append(
" has_preset: ");
4243 out.append(YESNO(this->has_preset));
4246 out.append(
" preset: ");
4247 out.append(proto_enum_to_string<enums::ClimatePreset>(this->
preset));
4250 out.append(
" has_custom_preset: ");
4251 out.append(YESNO(this->has_custom_preset));
4254 out.append(
" custom_preset: ");
4258 out.append(
" has_target_humidity: ");
4259 out.append(YESNO(this->has_target_humidity));
4262 out.append(
" target_humidity: ");
4272 this->disabled_by_default = value.
as_bool();
4306 this->unit_of_measurement = value.
as_string();
4324 this->min_value = value.
as_float();
4328 this->max_value = value.
as_float();
4354 #ifdef HAS_PROTO_MESSAGE_DUMP 4357 out.append(
"ListEntitiesNumberResponse {\n");
4358 out.append(
" object_id: ");
4359 out.append(
"'").append(this->object_id).append(
"'");
4362 out.append(
" key: ");
4363 sprintf(buffer,
"%" PRIu32, this->key);
4367 out.append(
" name: ");
4368 out.append(
"'").append(this->
name).append(
"'");
4371 out.append(
" unique_id: ");
4372 out.append(
"'").append(this->unique_id).append(
"'");
4375 out.append(
" icon: ");
4376 out.append(
"'").append(this->icon).append(
"'");
4379 out.append(
" min_value: ");
4380 sprintf(buffer,
"%g", this->min_value);
4384 out.append(
" max_value: ");
4385 sprintf(buffer,
"%g", this->max_value);
4389 out.append(
" step: ");
4390 sprintf(buffer,
"%g", this->step);
4394 out.append(
" disabled_by_default: ");
4395 out.append(YESNO(this->disabled_by_default));
4398 out.append(
" entity_category: ");
4399 out.append(proto_enum_to_string<enums::EntityCategory>(this->entity_category));
4402 out.append(
" unit_of_measurement: ");
4403 out.append(
"'").append(this->unit_of_measurement).append(
"'");
4406 out.append(
" mode: ");
4407 out.append(proto_enum_to_string<enums::NumberMode>(this->
mode));
4410 out.append(
" device_class: ");
4411 out.append(
"'").append(this->device_class).append(
"'");
4419 this->missing_state = value.
as_bool();
4445 #ifdef HAS_PROTO_MESSAGE_DUMP 4448 out.append(
"NumberStateResponse {\n");
4449 out.append(
" key: ");
4450 sprintf(buffer,
"%" PRIu32, this->key);
4454 out.append(
" state: ");
4455 sprintf(buffer,
"%g", this->
state);
4459 out.append(
" missing_state: ");
4460 out.append(YESNO(this->missing_state));
4483 #ifdef HAS_PROTO_MESSAGE_DUMP 4486 out.append(
"NumberCommandRequest {\n");
4487 out.append(
" key: ");
4488 sprintf(buffer,
"%" PRIu32, this->key);
4492 out.append(
" state: ");
4493 sprintf(buffer,
"%g", this->
state);
4502 this->disabled_by_default = value.
as_bool();
4555 for (
auto &it : this->
options) {
4561 #ifdef HAS_PROTO_MESSAGE_DUMP 4564 out.append(
"ListEntitiesSelectResponse {\n");
4565 out.append(
" object_id: ");
4566 out.append(
"'").append(this->object_id).append(
"'");
4569 out.append(
" key: ");
4570 sprintf(buffer,
"%" PRIu32, this->key);
4574 out.append(
" name: ");
4575 out.append(
"'").append(this->
name).append(
"'");
4578 out.append(
" unique_id: ");
4579 out.append(
"'").append(this->unique_id).append(
"'");
4582 out.append(
" icon: ");
4583 out.append(
"'").append(this->icon).append(
"'");
4586 for (
const auto &it : this->
options) {
4587 out.append(
" options: ");
4588 out.append(
"'").append(it).append(
"'");
4592 out.append(
" disabled_by_default: ");
4593 out.append(YESNO(this->disabled_by_default));
4596 out.append(
" entity_category: ");
4597 out.append(proto_enum_to_string<enums::EntityCategory>(this->entity_category));
4605 this->missing_state = value.
as_bool();
4637 #ifdef HAS_PROTO_MESSAGE_DUMP 4640 out.append(
"SelectStateResponse {\n");
4641 out.append(
" key: ");
4642 sprintf(buffer,
"%" PRIu32, this->key);
4646 out.append(
" state: ");
4647 out.append(
"'").append(this->
state).append(
"'");
4650 out.append(
" missing_state: ");
4651 out.append(YESNO(this->missing_state));
4680 #ifdef HAS_PROTO_MESSAGE_DUMP 4683 out.append(
"SelectCommandRequest {\n");
4684 out.append(
" key: ");
4685 sprintf(buffer,
"%" PRIu32, this->key);
4689 out.append(
" state: ");
4690 out.append(
"'").append(this->
state).append(
"'");
4698 this->disabled_by_default = value.
as_bool();
4706 this->assumed_state = value.
as_bool();
4710 this->supports_open = value.
as_bool();
4714 this->requires_code = value.
as_bool();
4770 #ifdef HAS_PROTO_MESSAGE_DUMP 4773 out.append(
"ListEntitiesLockResponse {\n");
4774 out.append(
" object_id: ");
4775 out.append(
"'").append(this->object_id).append(
"'");
4778 out.append(
" key: ");
4779 sprintf(buffer,
"%" PRIu32, this->key);
4783 out.append(
" name: ");
4784 out.append(
"'").append(this->
name).append(
"'");
4787 out.append(
" unique_id: ");
4788 out.append(
"'").append(this->unique_id).append(
"'");
4791 out.append(
" icon: ");
4792 out.append(
"'").append(this->icon).append(
"'");
4795 out.append(
" disabled_by_default: ");
4796 out.append(YESNO(this->disabled_by_default));
4799 out.append(
" entity_category: ");
4800 out.append(proto_enum_to_string<enums::EntityCategory>(this->entity_category));
4803 out.append(
" assumed_state: ");
4804 out.append(YESNO(this->assumed_state));
4807 out.append(
" supports_open: ");
4808 out.append(YESNO(this->supports_open));
4811 out.append(
" requires_code: ");
4812 out.append(YESNO(this->requires_code));
4815 out.append(
" code_format: ");
4816 out.append(
"'").append(this->code_format).append(
"'");
4845 #ifdef HAS_PROTO_MESSAGE_DUMP 4848 out.append(
"LockStateResponse {\n");
4849 out.append(
" key: ");
4850 sprintf(buffer,
"%" PRIu32, this->key);
4854 out.append(
" state: ");
4855 out.append(proto_enum_to_string<enums::LockState>(this->
state));
4867 this->has_code = value.
as_bool();
4900 #ifdef HAS_PROTO_MESSAGE_DUMP 4903 out.append(
"LockCommandRequest {\n");
4904 out.append(
" key: ");
4905 sprintf(buffer,
"%" PRIu32, this->key);
4909 out.append(
" command: ");
4910 out.append(proto_enum_to_string<enums::LockCommand>(this->command));
4913 out.append(
" has_code: ");
4914 out.append(YESNO(this->has_code));
4917 out.append(
" code: ");
4918 out.append(
"'").append(this->code).append(
"'");
4926 this->disabled_by_default = value.
as_bool();
4983 #ifdef HAS_PROTO_MESSAGE_DUMP 4986 out.append(
"ListEntitiesButtonResponse {\n");
4987 out.append(
" object_id: ");
4988 out.append(
"'").append(this->object_id).append(
"'");
4991 out.append(
" key: ");
4992 sprintf(buffer,
"%" PRIu32, this->key);
4996 out.append(
" name: ");
4997 out.append(
"'").append(this->
name).append(
"'");
5000 out.append(
" unique_id: ");
5001 out.append(
"'").append(this->unique_id).append(
"'");
5004 out.append(
" icon: ");
5005 out.append(
"'").append(this->icon).append(
"'");
5008 out.append(
" disabled_by_default: ");
5009 out.append(YESNO(this->disabled_by_default));
5012 out.append(
" entity_category: ");
5013 out.append(proto_enum_to_string<enums::EntityCategory>(this->entity_category));
5016 out.append(
" device_class: ");
5017 out.append(
"'").append(this->device_class).append(
"'");
5033 #ifdef HAS_PROTO_MESSAGE_DUMP 5036 out.append(
"ButtonCommandRequest {\n");
5037 out.append(
" key: ");
5038 sprintf(buffer,
"%" PRIu32, this->key);
5047 this->disabled_by_default = value.
as_bool();
5055 this->supports_pause = value.
as_bool();
5104 #ifdef HAS_PROTO_MESSAGE_DUMP 5107 out.append(
"ListEntitiesMediaPlayerResponse {\n");
5108 out.append(
" object_id: ");
5109 out.append(
"'").append(this->object_id).append(
"'");
5112 out.append(
" key: ");
5113 sprintf(buffer,
"%" PRIu32, this->key);
5117 out.append(
" name: ");
5118 out.append(
"'").append(this->
name).append(
"'");
5121 out.append(
" unique_id: ");
5122 out.append(
"'").append(this->unique_id).append(
"'");
5125 out.append(
" icon: ");
5126 out.append(
"'").append(this->icon).append(
"'");
5129 out.append(
" disabled_by_default: ");
5130 out.append(YESNO(this->disabled_by_default));
5133 out.append(
" entity_category: ");
5134 out.append(proto_enum_to_string<enums::EntityCategory>(this->entity_category));
5137 out.append(
" supports_pause: ");
5138 out.append(YESNO(this->supports_pause));
5150 this->muted = value.
as_bool();
5177 #ifdef HAS_PROTO_MESSAGE_DUMP 5180 out.append(
"MediaPlayerStateResponse {\n");
5181 out.append(
" key: ");
5182 sprintf(buffer,
"%" PRIu32, this->key);
5186 out.append(
" state: ");
5187 out.append(proto_enum_to_string<enums::MediaPlayerState>(this->
state));
5190 out.append(
" volume: ");
5191 sprintf(buffer,
"%g", this->volume);
5195 out.append(
" muted: ");
5196 out.append(YESNO(this->muted));
5204 this->has_command = value.
as_bool();
5212 this->has_volume = value.
as_bool();
5216 this->has_media_url = value.
as_bool();
5256 #ifdef HAS_PROTO_MESSAGE_DUMP 5259 out.append(
"MediaPlayerCommandRequest {\n");
5260 out.append(
" key: ");
5261 sprintf(buffer,
"%" PRIu32, this->key);
5265 out.append(
" has_command: ");
5266 out.append(YESNO(this->has_command));
5269 out.append(
" command: ");
5270 out.append(proto_enum_to_string<enums::MediaPlayerCommand>(this->command));
5273 out.append(
" has_volume: ");
5274 out.append(YESNO(this->has_volume));
5277 out.append(
" volume: ");
5278 sprintf(buffer,
"%g", this->volume);
5282 out.append(
" has_media_url: ");
5283 out.append(YESNO(this->has_media_url));
5286 out.append(
" media_url: ");
5287 out.append(
"'").append(this->media_url).append(
"'");
5305 #ifdef HAS_PROTO_MESSAGE_DUMP 5308 out.append(
"SubscribeBluetoothLEAdvertisementsRequest {\n");
5309 out.append(
" flags: ");
5310 sprintf(buffer,
"%" PRIu32, this->
flags);
5319 this->legacy_data.push_back(value.
as_uint32());
5342 for (
auto &it : this->legacy_data) {
5347 #ifdef HAS_PROTO_MESSAGE_DUMP 5350 out.append(
"BluetoothServiceData {\n");
5351 out.append(
" uuid: ");
5352 out.append(
"'").append(this->uuid).append(
"'");
5355 for (
const auto &it : this->legacy_data) {
5356 out.append(
" legacy_data: ");
5357 sprintf(buffer,
"%" PRIu32, it);
5362 out.append(
" data: ");
5363 out.append(
"'").append(this->data).append(
"'");
5393 this->service_uuids.push_back(value.
as_string());
5412 for (
auto &it : this->service_uuids) {
5415 for (
auto &it : this->service_data) {
5418 for (
auto &it : this->manufacturer_data) {
5423 #ifdef HAS_PROTO_MESSAGE_DUMP 5426 out.append(
"BluetoothLEAdvertisementResponse {\n");
5427 out.append(
" address: ");
5428 sprintf(buffer,
"%llu", this->address);
5432 out.append(
" name: ");
5433 out.append(
"'").append(this->
name).append(
"'");
5436 out.append(
" rssi: ");
5437 sprintf(buffer,
"%" PRId32, this->rssi);
5441 for (
const auto &it : this->service_uuids) {
5442 out.append(
" service_uuids: ");
5443 out.append(
"'").append(it).append(
"'");
5447 for (
const auto &it : this->service_data) {
5448 out.append(
" service_data: ");
5453 for (
const auto &it : this->manufacturer_data) {
5454 out.append(
" manufacturer_data: ");
5459 out.append(
" address_type: ");
5460 sprintf(buffer,
"%" PRIu32, this->address_type);
5500 #ifdef HAS_PROTO_MESSAGE_DUMP 5503 out.append(
"BluetoothLERawAdvertisement {\n");
5504 out.append(
" address: ");
5505 sprintf(buffer,
"%llu", this->address);
5509 out.append(
" rssi: ");
5510 sprintf(buffer,
"%" PRId32, this->rssi);
5514 out.append(
" address_type: ");
5515 sprintf(buffer,
"%" PRIu32, this->address_type);
5519 out.append(
" data: ");
5520 out.append(
"'").append(this->data).append(
"'");
5536 for (
auto &it : this->advertisements) {
5540 #ifdef HAS_PROTO_MESSAGE_DUMP 5543 out.append(
"BluetoothLERawAdvertisementsResponse {\n");
5544 for (
const auto &it : this->advertisements) {
5545 out.append(
" advertisements: ");
5563 this->has_address_type = value.
as_bool();
5580 #ifdef HAS_PROTO_MESSAGE_DUMP 5583 out.append(
"BluetoothDeviceRequest {\n");
5584 out.append(
" address: ");
5585 sprintf(buffer,
"%llu", this->address);
5589 out.append(
" request_type: ");
5590 out.append(proto_enum_to_string<enums::BluetoothDeviceRequestType>(this->request_type));
5593 out.append(
" has_address_type: ");
5594 out.append(YESNO(this->has_address_type));
5597 out.append(
" address_type: ");
5598 sprintf(buffer,
"%" PRIu32, this->address_type);
5611 this->connected = value.
as_bool();
5632 #ifdef HAS_PROTO_MESSAGE_DUMP 5635 out.append(
"BluetoothDeviceConnectionResponse {\n");
5636 out.append(
" address: ");
5637 sprintf(buffer,
"%llu", this->address);
5641 out.append(
" connected: ");
5642 out.append(YESNO(this->connected));
5645 out.append(
" mtu: ");
5646 sprintf(buffer,
"%" PRIu32, this->mtu);
5650 out.append(
" error: ");
5651 sprintf(buffer,
"%" PRId32, this->error);
5668 #ifdef HAS_PROTO_MESSAGE_DUMP 5671 out.append(
"BluetoothGATTGetServicesRequest {\n");
5672 out.append(
" address: ");
5673 sprintf(buffer,
"%llu", this->address);
5682 this->uuid.push_back(value.
as_uint64());
5694 for (
auto &it : this->uuid) {
5699 #ifdef HAS_PROTO_MESSAGE_DUMP 5702 out.append(
"BluetoothGATTDescriptor {\n");
5703 for (
const auto &it : this->uuid) {
5704 out.append(
" uuid: ");
5705 sprintf(buffer,
"%llu", it);
5710 out.append(
" handle: ");
5711 sprintf(buffer,
"%" PRIu32, this->handle);
5720 this->uuid.push_back(value.
as_uint64());
5746 for (
auto &it : this->uuid) {
5751 for (
auto &it : this->descriptors) {
5755 #ifdef HAS_PROTO_MESSAGE_DUMP 5758 out.append(
"BluetoothGATTCharacteristic {\n");
5759 for (
const auto &it : this->uuid) {
5760 out.append(
" uuid: ");
5761 sprintf(buffer,
"%llu", it);
5766 out.append(
" handle: ");
5767 sprintf(buffer,
"%" PRIu32, this->handle);
5771 out.append(
" properties: ");
5772 sprintf(buffer,
"%" PRIu32, this->properties);
5776 for (
const auto &it : this->descriptors) {
5777 out.append(
" descriptors: ");
5787 this->uuid.push_back(value.
as_uint64());
5809 for (
auto &it : this->uuid) {
5813 for (
auto &it : this->characteristics) {
5817 #ifdef HAS_PROTO_MESSAGE_DUMP 5820 out.append(
"BluetoothGATTService {\n");
5821 for (
const auto &it : this->uuid) {
5822 out.append(
" uuid: ");
5823 sprintf(buffer,
"%llu", it);
5828 out.append(
" handle: ");
5829 sprintf(buffer,
"%" PRIu32, this->handle);
5833 for (
const auto &it : this->characteristics) {
5834 out.append(
" characteristics: ");
5863 for (
auto &it : this->services) {
5867 #ifdef HAS_PROTO_MESSAGE_DUMP 5870 out.append(
"BluetoothGATTGetServicesResponse {\n");
5871 out.append(
" address: ");
5872 sprintf(buffer,
"%llu", this->address);
5876 for (
const auto &it : this->services) {
5877 out.append(
" services: ");
5897 #ifdef HAS_PROTO_MESSAGE_DUMP 5900 out.append(
"BluetoothGATTGetServicesDoneResponse {\n");
5901 out.append(
" address: ");
5902 sprintf(buffer,
"%llu", this->address);
5926 #ifdef HAS_PROTO_MESSAGE_DUMP 5929 out.append(
"BluetoothGATTReadRequest {\n");
5930 out.append(
" address: ");
5931 sprintf(buffer,
"%llu", this->address);
5935 out.append(
" handle: ");
5936 sprintf(buffer,
"%" PRIu32, this->handle);
5971 #ifdef HAS_PROTO_MESSAGE_DUMP 5974 out.append(
"BluetoothGATTReadResponse {\n");
5975 out.append(
" address: ");
5976 sprintf(buffer,
"%llu", this->address);
5980 out.append(
" handle: ");
5981 sprintf(buffer,
"%" PRIu32, this->handle);
5985 out.append(
" data: ");
5986 out.append(
"'").append(this->data).append(
"'");
6002 this->response = value.
as_bool();
6025 #ifdef HAS_PROTO_MESSAGE_DUMP 6028 out.append(
"BluetoothGATTWriteRequest {\n");
6029 out.append(
" address: ");
6030 sprintf(buffer,
"%llu", this->address);
6034 out.append(
" handle: ");
6035 sprintf(buffer,
"%" PRIu32, this->handle);
6039 out.append(
" response: ");
6040 out.append(YESNO(this->response));
6043 out.append(
" data: ");
6044 out.append(
"'").append(this->data).append(
"'");
6067 #ifdef HAS_PROTO_MESSAGE_DUMP 6070 out.append(
"BluetoothGATTReadDescriptorRequest {\n");
6071 out.append(
" address: ");
6072 sprintf(buffer,
"%llu", this->address);
6076 out.append(
" handle: ");
6077 sprintf(buffer,
"%" PRIu32, this->handle);
6112 #ifdef HAS_PROTO_MESSAGE_DUMP 6115 out.append(
"BluetoothGATTWriteDescriptorRequest {\n");
6116 out.append(
" address: ");
6117 sprintf(buffer,
"%llu", this->address);
6121 out.append(
" handle: ");
6122 sprintf(buffer,
"%" PRIu32, this->handle);
6126 out.append(
" data: ");
6127 out.append(
"'").append(this->data).append(
"'");
6143 this->enable = value.
as_bool();
6155 #ifdef HAS_PROTO_MESSAGE_DUMP 6158 out.append(
"BluetoothGATTNotifyRequest {\n");
6159 out.append(
" address: ");
6160 sprintf(buffer,
"%llu", this->address);
6164 out.append(
" handle: ");
6165 sprintf(buffer,
"%" PRIu32, this->handle);
6169 out.append(
" enable: ");
6170 out.append(YESNO(this->enable));
6204 #ifdef HAS_PROTO_MESSAGE_DUMP 6207 out.append(
"BluetoothGATTNotifyDataResponse {\n");
6208 out.append(
" address: ");
6209 sprintf(buffer,
"%llu", this->address);
6213 out.append(
" handle: ");
6214 sprintf(buffer,
"%" PRIu32, this->handle);
6218 out.append(
" data: ");
6219 out.append(
"'").append(this->data).append(
"'");
6225 #ifdef HAS_PROTO_MESSAGE_DUMP 6227 out.append(
"SubscribeBluetoothConnectionsFreeRequest {}");
6248 #ifdef HAS_PROTO_MESSAGE_DUMP 6251 out.append(
"BluetoothConnectionsFreeResponse {\n");
6252 out.append(
" free: ");
6253 sprintf(buffer,
"%" PRIu32, this->free);
6257 out.append(
" limit: ");
6258 sprintf(buffer,
"%" PRIu32, this->limit);
6287 #ifdef HAS_PROTO_MESSAGE_DUMP 6290 out.append(
"BluetoothGATTErrorResponse {\n");
6291 out.append(
" address: ");
6292 sprintf(buffer,
"%llu", this->address);
6296 out.append(
" handle: ");
6297 sprintf(buffer,
"%" PRIu32, this->handle);
6301 out.append(
" error: ");
6302 sprintf(buffer,
"%" PRId32, this->error);
6326 #ifdef HAS_PROTO_MESSAGE_DUMP 6329 out.append(
"BluetoothGATTWriteResponse {\n");
6330 out.append(
" address: ");
6331 sprintf(buffer,
"%llu", this->address);
6335 out.append(
" handle: ");
6336 sprintf(buffer,
"%" PRIu32, this->handle);
6360 #ifdef HAS_PROTO_MESSAGE_DUMP 6363 out.append(
"BluetoothGATTNotifyResponse {\n");
6364 out.append(
" address: ");
6365 sprintf(buffer,
"%llu", this->address);
6369 out.append(
" handle: ");
6370 sprintf(buffer,
"%" PRIu32, this->handle);
6383 this->paired = value.
as_bool();
6399 #ifdef HAS_PROTO_MESSAGE_DUMP 6402 out.append(
"BluetoothDevicePairingResponse {\n");
6403 out.append(
" address: ");
6404 sprintf(buffer,
"%llu", this->address);
6408 out.append(
" paired: ");
6409 out.append(YESNO(this->paired));
6412 out.append(
" error: ");
6413 sprintf(buffer,
"%" PRId32, this->error);
6426 this->success = value.
as_bool();
6442 #ifdef HAS_PROTO_MESSAGE_DUMP 6445 out.append(
"BluetoothDeviceUnpairingResponse {\n");
6446 out.append(
" address: ");
6447 sprintf(buffer,
"%llu", this->address);
6451 out.append(
" success: ");
6452 out.append(YESNO(this->success));
6455 out.append(
" error: ");
6456 sprintf(buffer,
"%" PRId32, this->error);
6463 #ifdef HAS_PROTO_MESSAGE_DUMP 6465 out.append(
"UnsubscribeBluetoothLEAdvertisementsRequest {}");
6475 this->success = value.
as_bool();
6491 #ifdef HAS_PROTO_MESSAGE_DUMP 6494 out.append(
"BluetoothDeviceClearCacheResponse {\n");
6495 out.append(
" address: ");
6496 sprintf(buffer,
"%llu", this->address);
6500 out.append(
" success: ");
6501 out.append(YESNO(this->success));
6504 out.append(
" error: ");
6505 sprintf(buffer,
"%" PRId32, this->error);
6514 this->subscribe = value.
as_bool();
6522 #ifdef HAS_PROTO_MESSAGE_DUMP 6525 out.append(
"SubscribeVoiceAssistantRequest {\n");
6526 out.append(
" subscribe: ");
6527 out.append(YESNO(this->subscribe));
6535 this->noise_suppression_level = value.
as_uint32();
6549 this->volume_multiplier = value.
as_float();
6561 #ifdef HAS_PROTO_MESSAGE_DUMP 6564 out.append(
"VoiceAssistantAudioSettings {\n");
6565 out.append(
" noise_suppression_level: ");
6566 sprintf(buffer,
"%" PRIu32, this->noise_suppression_level);
6570 out.append(
" auto_gain: ");
6571 sprintf(buffer,
"%" PRIu32, this->auto_gain);
6575 out.append(
" volume_multiplier: ");
6576 sprintf(buffer,
"%g", this->volume_multiplier);
6585 this->start = value.
as_bool();
6599 this->conversation_id = value.
as_string();
6607 this->wake_word_phrase = value.
as_string();
6621 #ifdef HAS_PROTO_MESSAGE_DUMP 6624 out.append(
"VoiceAssistantRequest {\n");
6625 out.append(
" start: ");
6626 out.append(YESNO(this->start));
6629 out.append(
" conversation_id: ");
6630 out.append(
"'").append(this->conversation_id).append(
"'");
6633 out.append(
" flags: ");
6634 sprintf(buffer,
"%" PRIu32, this->
flags);
6638 out.append(
" audio_settings: ");
6639 this->audio_settings.dump_to(out);
6642 out.append(
" wake_word_phrase: ");
6643 out.append(
"'").append(this->wake_word_phrase).append(
"'");
6655 this->error = value.
as_bool();
6666 #ifdef HAS_PROTO_MESSAGE_DUMP 6669 out.append(
"VoiceAssistantResponse {\n");
6670 out.append(
" port: ");
6671 sprintf(buffer,
"%" PRIu32, this->port);
6675 out.append(
" error: ");
6676 out.append(YESNO(this->error));
6699 #ifdef HAS_PROTO_MESSAGE_DUMP 6702 out.append(
"VoiceAssistantEventData {\n");
6703 out.append(
" name: ");
6704 out.append(
"'").append(this->
name).append(
"'");
6707 out.append(
" value: ");
6708 out.append(
"'").append(this->value).append(
"'");
6735 for (
auto &it : this->data) {
6739 #ifdef HAS_PROTO_MESSAGE_DUMP 6742 out.append(
"VoiceAssistantEventResponse {\n");
6743 out.append(
" event_type: ");
6744 out.append(proto_enum_to_string<enums::VoiceAssistantEvent>(this->event_type));
6747 for (
const auto &it : this->data) {
6748 out.append(
" data: ");
6758 this->disabled_by_default = value.
as_bool();
6766 this->supported_features = value.
as_uint32();
6770 this->requires_code = value.
as_bool();
6774 this->requires_code_to_arm = value.
as_bool();
6823 buffer.
encode_bool(10, this->requires_code_to_arm);
6825 #ifdef HAS_PROTO_MESSAGE_DUMP 6828 out.append(
"ListEntitiesAlarmControlPanelResponse {\n");
6829 out.append(
" object_id: ");
6830 out.append(
"'").append(this->object_id).append(
"'");
6833 out.append(
" key: ");
6834 sprintf(buffer,
"%" PRIu32, this->key);
6838 out.append(
" name: ");
6839 out.append(
"'").append(this->
name).append(
"'");
6842 out.append(
" unique_id: ");
6843 out.append(
"'").append(this->unique_id).append(
"'");
6846 out.append(
" icon: ");
6847 out.append(
"'").append(this->icon).append(
"'");
6850 out.append(
" disabled_by_default: ");
6851 out.append(YESNO(this->disabled_by_default));
6854 out.append(
" entity_category: ");
6855 out.append(proto_enum_to_string<enums::EntityCategory>(this->entity_category));
6858 out.append(
" supported_features: ");
6859 sprintf(buffer,
"%" PRIu32, this->supported_features);
6863 out.append(
" requires_code: ");
6864 out.append(YESNO(this->requires_code));
6867 out.append(
" requires_code_to_arm: ");
6868 out.append(YESNO(this->requires_code_to_arm));
6897 #ifdef HAS_PROTO_MESSAGE_DUMP 6900 out.append(
"AlarmControlPanelStateResponse {\n");
6901 out.append(
" key: ");
6902 sprintf(buffer,
"%" PRIu32, this->key);
6906 out.append(
" state: ");
6907 out.append(proto_enum_to_string<enums::AlarmControlPanelState>(this->
state));
6947 #ifdef HAS_PROTO_MESSAGE_DUMP 6950 out.append(
"AlarmControlPanelCommandRequest {\n");
6951 out.append(
" key: ");
6952 sprintf(buffer,
"%" PRIu32, this->key);
6956 out.append(
" command: ");
6957 out.append(proto_enum_to_string<enums::AlarmControlPanelStateCommand>(this->command));
6960 out.append(
" code: ");
6961 out.append(
"'").append(this->code).append(
"'");
6969 this->disabled_by_default = value.
as_bool();
7041 #ifdef HAS_PROTO_MESSAGE_DUMP 7044 out.append(
"ListEntitiesTextResponse {\n");
7045 out.append(
" object_id: ");
7046 out.append(
"'").append(this->object_id).append(
"'");
7049 out.append(
" key: ");
7050 sprintf(buffer,
"%" PRIu32, this->key);
7054 out.append(
" name: ");
7055 out.append(
"'").append(this->
name).append(
"'");
7058 out.append(
" unique_id: ");
7059 out.append(
"'").append(this->unique_id).append(
"'");
7062 out.append(
" icon: ");
7063 out.append(
"'").append(this->icon).append(
"'");
7066 out.append(
" disabled_by_default: ");
7067 out.append(YESNO(this->disabled_by_default));
7070 out.append(
" entity_category: ");
7071 out.append(proto_enum_to_string<enums::EntityCategory>(this->entity_category));
7074 out.append(
" min_length: ");
7075 sprintf(buffer,
"%" PRIu32, this->min_length);
7079 out.append(
" max_length: ");
7080 sprintf(buffer,
"%" PRIu32, this->max_length);
7084 out.append(
" pattern: ");
7085 out.append(
"'").append(this->pattern).append(
"'");
7088 out.append(
" mode: ");
7089 out.append(proto_enum_to_string<enums::TextMode>(this->
mode));
7097 this->missing_state = value.
as_bool();
7129 #ifdef HAS_PROTO_MESSAGE_DUMP 7132 out.append(
"TextStateResponse {\n");
7133 out.append(
" key: ");
7134 sprintf(buffer,
"%" PRIu32, this->key);
7138 out.append(
" state: ");
7139 out.append(
"'").append(this->
state).append(
"'");
7142 out.append(
" missing_state: ");
7143 out.append(YESNO(this->missing_state));
7172 #ifdef HAS_PROTO_MESSAGE_DUMP 7175 out.append(
"TextCommandRequest {\n");
7176 out.append(
" key: ");
7177 sprintf(buffer,
"%" PRIu32, this->key);
7181 out.append(
" state: ");
7182 out.append(
"'").append(this->
state).append(
"'");
7190 this->disabled_by_default = value.
as_bool();
7242 #ifdef HAS_PROTO_MESSAGE_DUMP 7245 out.append(
"ListEntitiesDateResponse {\n");
7246 out.append(
" object_id: ");
7247 out.append(
"'").append(this->object_id).append(
"'");
7250 out.append(
" key: ");
7251 sprintf(buffer,
"%" PRIu32, this->key);
7255 out.append(
" name: ");
7256 out.append(
"'").append(this->
name).append(
"'");
7259 out.append(
" unique_id: ");
7260 out.append(
"'").append(this->unique_id).append(
"'");
7263 out.append(
" icon: ");
7264 out.append(
"'").append(this->icon).append(
"'");
7267 out.append(
" disabled_by_default: ");
7268 out.append(YESNO(this->disabled_by_default));
7271 out.append(
" entity_category: ");
7272 out.append(proto_enum_to_string<enums::EntityCategory>(this->entity_category));
7280 this->missing_state = value.
as_bool();
7316 #ifdef HAS_PROTO_MESSAGE_DUMP 7319 out.append(
"DateStateResponse {\n");
7320 out.append(
" key: ");
7321 sprintf(buffer,
"%" PRIu32, this->key);
7325 out.append(
" missing_state: ");
7326 out.append(YESNO(this->missing_state));
7329 out.append(
" year: ");
7330 sprintf(buffer,
"%" PRIu32, this->
year);
7334 out.append(
" month: ");
7335 sprintf(buffer,
"%" PRIu32, this->
month);
7339 out.append(
" day: ");
7340 sprintf(buffer,
"%" PRIu32, this->
day);
7380 #ifdef HAS_PROTO_MESSAGE_DUMP 7383 out.append(
"DateCommandRequest {\n");
7384 out.append(
" key: ");
7385 sprintf(buffer,
"%" PRIu32, this->key);
7389 out.append(
" year: ");
7390 sprintf(buffer,
"%" PRIu32, this->
year);
7394 out.append(
" month: ");
7395 sprintf(buffer,
"%" PRIu32, this->
month);
7399 out.append(
" day: ");
7400 sprintf(buffer,
"%" PRIu32, this->
day);
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_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
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_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
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_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
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 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
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
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
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
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
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
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
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
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
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
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 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