diff --git a/custom_components/midea_auto_cloud/device_mapping/T0xAC.py b/custom_components/midea_auto_cloud/device_mapping/T0xAC.py index 99b10a6..42d2754 100644 --- a/custom_components/midea_auto_cloud/device_mapping/T0xAC.py +++ b/custom_components/midea_auto_cloud/device_mapping/T0xAC.py @@ -109,10 +109,14 @@ DEVICE_MAPPING = { "aux_heat": { "device_class": SwitchDeviceClass.SWITCH, }, - "follow_body_sense_enable": { - "device_class": SwitchDeviceClass.SWITCH, - "rationale": [0, 1] - }, + }, + Platform.SELECT: { + "follow_body_sense": { + "options": { + "on": {"follow_body_sense": "on", "follow_body_sense_enable": 1}, + "off": {"follow_body_sense": "off", "follow_body_sense_enable": 1}, + } + } }, Platform.SENSOR: { "mode": { @@ -215,10 +219,6 @@ DEVICE_MAPPING = { "aux_heat": { "device_class": SwitchDeviceClass.SWITCH, }, - "follow_body_sense_enable": { - "device_class": SwitchDeviceClass.SWITCH, - "rationale": [0, 1] - }, "manul_fresh_air": { "device_class": SwitchDeviceClass.SWITCH, }, @@ -338,10 +338,6 @@ DEVICE_MAPPING = { "aux_heat": { "device_class": SwitchDeviceClass.SWITCH, }, - "follow_body_sense_enable": { - "device_class": SwitchDeviceClass.SWITCH, - "rationale": [0, 1] - }, }, Platform.SENSOR: { "mode": { diff --git a/custom_components/midea_auto_cloud/device_mapping/T0xE3.py b/custom_components/midea_auto_cloud/device_mapping/T0xE3.py index eda03c3..0de714f 100644 --- a/custom_components/midea_auto_cloud/device_mapping/T0xE3.py +++ b/custom_components/midea_auto_cloud/device_mapping/T0xE3.py @@ -15,6 +15,7 @@ DEVICE_MAPPING = { }, "bubble": { "device_class": SwitchDeviceClass.SWITCH, + "rationale": [0, 1], }, "cold_water": { "device_class": SwitchDeviceClass.SWITCH, diff --git a/custom_components/midea_auto_cloud/translations/en.json b/custom_components/midea_auto_cloud/translations/en.json index 624564d..c09f5ef 100644 --- a/custom_components/midea_auto_cloud/translations/en.json +++ b/custom_components/midea_auto_cloud/translations/en.json @@ -368,6 +368,9 @@ } }, "select": { + "follow_body_sense": { + "name": "Follow Body Sense" + }, "bright": { "name": "Brightness" }, @@ -1674,9 +1677,6 @@ "summer_mode": { "name": "Summer Mode" }, - "follow_body_sense_enable": { - "name": "Follow Body Sense" - }, "waterions": { "name": "Disinfection" }, diff --git a/custom_components/midea_auto_cloud/translations/zh-Hans.json b/custom_components/midea_auto_cloud/translations/zh-Hans.json index 279dcd7..471de21 100644 --- a/custom_components/midea_auto_cloud/translations/zh-Hans.json +++ b/custom_components/midea_auto_cloud/translations/zh-Hans.json @@ -372,6 +372,9 @@ } }, "select": { + "follow_body_sense": { + "name": "随身感" + }, "bright": { "name": "亮度" }, @@ -1678,9 +1681,6 @@ "summer_mode": { "name": "夏季模式" }, - "follow_body_sense_enable": { - "name": "随身感" - }, "waterions": { "name": "消杀" },