mirror of
https://github.com/sususweet/midea-meiju-codec.git
synced 2025-10-15 10:48:26 +00:00
feat: update device mapping for T0xFD. Try to fix #24
This commit is contained in:
@@ -8,20 +8,16 @@ DEVICE_MAPPING = {
|
|||||||
"default": {
|
"default": {
|
||||||
"rationale": ["off", "on"],
|
"rationale": ["off", "on"],
|
||||||
"queries": [{}],
|
"queries": [{}],
|
||||||
"centralized": [
|
"centralized": [],
|
||||||
"power", "disinfect_on_off", "netions_on_off", "airdry_on_off",
|
|
||||||
"wind_gear", "wind_speed", "light_color", "bright_led",
|
|
||||||
"humidity_mode", "tank_status", "humidity", "cur_humidity"
|
|
||||||
],
|
|
||||||
"entities": {
|
"entities": {
|
||||||
Platform.SWITCH: {
|
Platform.SWITCH: {
|
||||||
"disinfect_on_off": {
|
"disinfect_on_off": {
|
||||||
"device_class": SwitchDeviceClass.SWITCH,
|
"device_class": SwitchDeviceClass.SWITCH,
|
||||||
},
|
},
|
||||||
"netions_on_off": {
|
"netIons_on_off": {
|
||||||
"device_class": SwitchDeviceClass.SWITCH,
|
"device_class": SwitchDeviceClass.SWITCH,
|
||||||
},
|
},
|
||||||
"airdry_on_off": {
|
"airDry_on_off": {
|
||||||
"device_class": SwitchDeviceClass.SWITCH,
|
"device_class": SwitchDeviceClass.SWITCH,
|
||||||
},
|
},
|
||||||
"power": {
|
"power": {
|
||||||
@@ -30,12 +26,6 @@ DEVICE_MAPPING = {
|
|||||||
"buzzer": {
|
"buzzer": {
|
||||||
"device_class": SwitchDeviceClass.SWITCH,
|
"device_class": SwitchDeviceClass.SWITCH,
|
||||||
},
|
},
|
||||||
"power_on_timer": {
|
|
||||||
"device_class": SwitchDeviceClass.SWITCH,
|
|
||||||
},
|
|
||||||
"power_off_timer": {
|
|
||||||
"device_class": SwitchDeviceClass.SWITCH,
|
|
||||||
},
|
|
||||||
"display_on_off": {
|
"display_on_off": {
|
||||||
"device_class": SwitchDeviceClass.SWITCH,
|
"device_class": SwitchDeviceClass.SWITCH,
|
||||||
}
|
}
|
||||||
@@ -43,7 +33,10 @@ DEVICE_MAPPING = {
|
|||||||
Platform.BINARY_SENSOR: {
|
Platform.BINARY_SENSOR: {
|
||||||
"add_water_flag": {
|
"add_water_flag": {
|
||||||
"device_class": BinarySensorDeviceClass.PROBLEM,
|
"device_class": BinarySensorDeviceClass.PROBLEM,
|
||||||
}
|
},
|
||||||
|
"tank_status": {
|
||||||
|
"device_class": BinarySensorDeviceClass.PROBLEM
|
||||||
|
},
|
||||||
},
|
},
|
||||||
Platform.HUMIDIFIER: {
|
Platform.HUMIDIFIER: {
|
||||||
"humidifier": {
|
"humidifier": {
|
||||||
@@ -58,33 +51,54 @@ DEVICE_MAPPING = {
|
|||||||
"manual": {"humidity_mode": "manual"},
|
"manual": {"humidity_mode": "manual"},
|
||||||
"auto": {"humidity_mode": "auto"},
|
"auto": {"humidity_mode": "auto"},
|
||||||
"sleep": {"humidity_mode": "sleep"},
|
"sleep": {"humidity_mode": "sleep"},
|
||||||
"baby": {"humidity_mode": "baby"}
|
"continue": {"humidity_mode": "continue"},
|
||||||
|
"parlour": {"humidity_mode": "parlour"},
|
||||||
|
"bedroom": {"humidity_mode": "bedroom"},
|
||||||
|
"kitchen": {"humidity_mode": "kitchen"},
|
||||||
|
"moist_skin": {"humidity_mode": "moist_skin"},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
Platform.SELECT: {
|
Platform.SELECT: {
|
||||||
|
"power_on_time": {
|
||||||
|
"options": {
|
||||||
|
"off": {"power_on_timer": "off"},
|
||||||
|
"15": {"power_on_timer": "on", "time_on": "15"},
|
||||||
|
"30": {"power_on_timer": "on", "time_on": "30"},
|
||||||
|
"45": {"power_on_timer": "on", "time_on": "45"},
|
||||||
|
"60": {"power_on_timer": "on", "time_on": "60"},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"power_off_time": {
|
||||||
|
"options": {
|
||||||
|
"off": {"power_off_timer": "off"},
|
||||||
|
"15": {"power_off_timer": "on", "time_off": "15"},
|
||||||
|
"30": {"power_off_timer": "on", "time_off": "30"},
|
||||||
|
"45": {"power_off_timer": "on", "time_off": "45"},
|
||||||
|
"60": {"power_off_timer": "on", "time_off": "60"},
|
||||||
|
}
|
||||||
|
},
|
||||||
"wind_gear": {
|
"wind_gear": {
|
||||||
"options": {
|
"options": {
|
||||||
|
"lowest": {"wind_gear": "lowest"},
|
||||||
"low": {"wind_gear": "low"},
|
"low": {"wind_gear": "low"},
|
||||||
"medium": {"wind_gear": "medium"},
|
"middle": {"wind_gear": "middle"},
|
||||||
"high": {"wind_gear": "high"},
|
"high": {"wind_gear": "high"},
|
||||||
"auto": {"wind_gear": "auto"},
|
"auto": {"wind_gear": "auto"},
|
||||||
"invalid": {"wind_gear": "invalid"}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"wind_speed": {
|
"wind_speed": {
|
||||||
"options": {
|
"options": {
|
||||||
|
"lowest": {"wind_speed": "lowest"},
|
||||||
"low": {"wind_speed": "low"},
|
"low": {"wind_speed": "low"},
|
||||||
"medium": {"wind_speed": "medium"},
|
"middle": {"wind_speed": "middle"},
|
||||||
"high": {"wind_speed": "high"},
|
"high": {"wind_speed": "high"},
|
||||||
"auto": {"wind_speed": "auto"}
|
"auto": {"wind_speed": "auto"},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"light_color": {
|
"light_color": {
|
||||||
"options": {
|
"options": {
|
||||||
"warm": {"light_color": "warm"},
|
"warm": {"light_color": "warm"},
|
||||||
"cool": {"light_color": "cool"},
|
|
||||||
"white": {"light_color": "white"},
|
|
||||||
"blue": {"light_color": "blue"},
|
"blue": {"light_color": "blue"},
|
||||||
"green": {"light_color": "green"},
|
"green": {"light_color": "green"},
|
||||||
"red": {"light_color": "red"},
|
"red": {"light_color": "red"},
|
||||||
@@ -94,16 +108,8 @@ DEVICE_MAPPING = {
|
|||||||
"bright_led": {
|
"bright_led": {
|
||||||
"options": {
|
"options": {
|
||||||
"light": {"bright_led": "light"},
|
"light": {"bright_led": "light"},
|
||||||
"dim": {"bright_led": "dim"},
|
"dark": {"bright_led": "dark"},
|
||||||
"off": {"bright_led": "off"}
|
"exit": {"bright_led": "exit"}
|
||||||
}
|
|
||||||
},
|
|
||||||
"tank_status": {
|
|
||||||
"options": {
|
|
||||||
"normal": {"tank_status": "0"},
|
|
||||||
"low": {"tank_status": "1"},
|
|
||||||
"empty": {"tank_status": "2"},
|
|
||||||
"error": {"tank_status": "3"}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -141,16 +147,6 @@ DEVICE_MAPPING = {
|
|||||||
"unit_of_measurement": UnitOfTime.MINUTES,
|
"unit_of_measurement": UnitOfTime.MINUTES,
|
||||||
"state_class": SensorStateClass.MEASUREMENT
|
"state_class": SensorStateClass.MEASUREMENT
|
||||||
},
|
},
|
||||||
"time_on": {
|
|
||||||
"device_class": SensorDeviceClass.DURATION,
|
|
||||||
"unit_of_measurement": UnitOfTime.MINUTES,
|
|
||||||
"state_class": SensorStateClass.MEASUREMENT
|
|
||||||
},
|
|
||||||
"time_off": {
|
|
||||||
"device_class": SensorDeviceClass.DURATION,
|
|
||||||
"unit_of_measurement": UnitOfTime.MINUTES,
|
|
||||||
"state_class": SensorStateClass.MEASUREMENT
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1678,7 +1678,7 @@
|
|||||||
"ai_switch": {
|
"ai_switch": {
|
||||||
"name": "AI Switch"
|
"name": "AI Switch"
|
||||||
},
|
},
|
||||||
"airdry_on_off": {
|
"airDry_on_off": {
|
||||||
"name": "Air Dry On Off"
|
"name": "Air Dry On Off"
|
||||||
},
|
},
|
||||||
"airswitch": {
|
"airswitch": {
|
||||||
@@ -1954,7 +1954,7 @@
|
|||||||
"middlestair_ispreheat": {
|
"middlestair_ispreheat": {
|
||||||
"name": "Middle Stair Is Preheat"
|
"name": "Middle Stair Is Preheat"
|
||||||
},
|
},
|
||||||
"netions_on_off": {
|
"netIons_on_off": {
|
||||||
"name": "Net Ions On Off"
|
"name": "Net Ions On Off"
|
||||||
},
|
},
|
||||||
"nightly": {
|
"nightly": {
|
||||||
|
@@ -1678,7 +1678,7 @@
|
|||||||
"control_status": {
|
"control_status": {
|
||||||
"name": "启停"
|
"name": "启停"
|
||||||
},
|
},
|
||||||
"airdry_on_off": {
|
"airDry_on_off": {
|
||||||
"name": "风干开关"
|
"name": "风干开关"
|
||||||
},
|
},
|
||||||
"airswitch": {
|
"airswitch": {
|
||||||
@@ -1954,7 +1954,7 @@
|
|||||||
"middlestair_ispreheat": {
|
"middlestair_ispreheat": {
|
||||||
"name": "中层预热"
|
"name": "中层预热"
|
||||||
},
|
},
|
||||||
"netions_on_off": {
|
"netIons_on_off": {
|
||||||
"name": "负离子开关"
|
"name": "负离子开关"
|
||||||
},
|
},
|
||||||
"nightly": {
|
"nightly": {
|
||||||
|
Reference in New Issue
Block a user