feat: add follow_body_sense for T0xAC. Fixes #51

This commit is contained in:
Yingqi Tang
2025-11-21 01:10:45 +00:00
parent 3edd94d790
commit 849280676f
3 changed files with 10 additions and 5 deletions

View File

@@ -107,7 +107,10 @@ DEVICE_MAPPING = {
}, },
"aux_heat": { "aux_heat": {
"device_class": SwitchDeviceClass.SWITCH, "device_class": SwitchDeviceClass.SWITCH,
} },
"follow_body_sense": {
"device_class": SwitchDeviceClass.SWITCH,
},
}, },
Platform.SENSOR: { Platform.SENSOR: {
"mode": { "mode": {
@@ -252,16 +255,13 @@ DEVICE_MAPPING = {
}, },
Platform.SWITCH: { Platform.SWITCH: {
"dry": { "dry": {
"name": "干燥",
"device_class": SwitchDeviceClass.SWITCH, "device_class": SwitchDeviceClass.SWITCH,
}, },
"prevent_straight_wind": { "prevent_straight_wind": {
"name": "防直吹",
"device_class": SwitchDeviceClass.SWITCH, "device_class": SwitchDeviceClass.SWITCH,
"rationale": [1, 2] "rationale": [1, 2]
}, },
"aux_heat": { "aux_heat": {
"name": "电辅热",
"device_class": SwitchDeviceClass.SWITCH, "device_class": SwitchDeviceClass.SWITCH,
} }
}, },
@@ -357,7 +357,6 @@ DEVICE_MAPPING = {
}, },
Platform.SWITCH: { Platform.SWITCH: {
"power": { "power": {
"name": "电源",
"device_class": SwitchDeviceClass.SWITCH, "device_class": SwitchDeviceClass.SWITCH,
}, },
}, },

View File

@@ -1574,6 +1574,9 @@
} }
}, },
"switch": { "switch": {
"follow_body_sense": {
"name": "Follow Body Sense"
},
"waterions": { "waterions": {
"name": "Disinfection" "name": "Disinfection"
}, },

View File

@@ -1578,6 +1578,9 @@
} }
}, },
"switch": { "switch": {
"follow_body_sense": {
"name": "随身感"
},
"waterions": { "waterions": {
"name": "消杀" "name": "消杀"
}, },