Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
115 changes: 46 additions & 69 deletions custom_components/midea_auto_cloud/device_mapping/T0xE1.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,28 +91,22 @@
}
},
"wash_mode": {
# Keep the existing option keys for translations and automations,
# but send values understood by the device's Lua codec.
"options": {
"neutral_gear": {"work_status": "work", "mode": "neutral_gear"},
"auto_wash": {"work_status": "work", "mode": "auto_wash"},
"strong_wash": {"work_status": "work", "mode": "strong_wash"},
"standard_wash": {"work_status": "work", "mode": "standard_wash"},
"eco_wash": {"work_status": "work", "mode": "eco_wash", "additional": 0, "wash_region": 3},
"glass_wash": {"work_status": "work", "mode": "glass_wash"},
"hour_wash": {"work_status": "work", "mode": "hour_wash"},
"fast_wash": {"work_status": "work", "mode": "fast_wash"},
"soak_wash": {"work_status": "work", "mode": "soak_wash"},
"90min_wash": {"work_status": "work", "mode": "90min_wash"},
"auto_wash": {"work_status": "work", "mode": "auto"},
"strong_wash": {"work_status": "work", "mode": "intensive"},
"standard_wash": {"work_status": "work", "mode": "normal"},
"eco_wash": {"work_status": "work", "mode": "eco"},
"glass_wash": {"work_status": "work", "mode": "glass"},
"90min_wash": {"work_status": "work", "mode": "90min"},
"fast_wash": {"work_status": "work", "mode": "rapid"},
"soak_wash": {"work_status": "work", "mode": "soak"},
"hour_wash": {"work_status": "work", "mode": "1hour"},
"quietnight_wash": {"work_status": "work", "mode": "quiet"},
"germ": {"work_status": "work", "mode": "hygiene"},
"self_clean": {"work_status": "work", "mode": "self_clean"},
"fruit_wash": {"work_status": "work", "mode": "fruit_wash"},
"self_define": {"work_status": "work", "mode": "self_define"},
"germ": {"work_status": "work", "mode": "germ"},
"bowl_wash": {"work_status": "work", "mode": "bowl_wash"},
"kill_germ": {"work_status": "work", "mode": "kill_germ"},
"seafood_wash": {"work_status": "work", "mode": "seafood_wash"},
"hotpot_wash": {"work_status": "work", "mode": "hotpot_wash"},
"quietnight_wash": {"work_status": "work", "mode": "quietnight_wash"},
"less_wash": {"work_status": "work", "mode": "less_wash"},
"oilnet_wash": {"work_status": "work", "mode": "oilnet_wash"}
"fruit_wash": {"work_status": "work", "mode": "fruit"},
}
}
},
Expand Down Expand Up @@ -220,27 +214,19 @@
},
"wash_mode": {
"options": {
"neutral_gear": {"work_status": "work", "mode": "neutral_gear"},
"auto_wash": {"work_status": "work", "mode": "auto_wash"},
"strong_wash": {"work_status": "work", "mode": "strong_wash"},
"standard_wash": {"work_status": "work", "mode": "standard_wash"},
"eco_wash": {"work_status": "work", "mode": "eco_wash", "additional": 0, "wash_region": 3},
"glass_wash": {"work_status": "work", "mode": "glass_wash"},
"hour_wash": {"work_status": "work", "mode": "hour_wash"},
"fast_wash": {"work_status": "work", "mode": "fast_wash"},
"soak_wash": {"work_status": "work", "mode": "soak_wash"},
"90min_wash": {"work_status": "work", "mode": "90min_wash"},
"auto_wash": {"work_status": "work", "mode": "auto"},
"strong_wash": {"work_status": "work", "mode": "intensive"},
"standard_wash": {"work_status": "work", "mode": "normal"},
"eco_wash": {"work_status": "work", "mode": "eco"},
"glass_wash": {"work_status": "work", "mode": "glass"},
"90min_wash": {"work_status": "work", "mode": "90min"},
"fast_wash": {"work_status": "work", "mode": "rapid"},
"soak_wash": {"work_status": "work", "mode": "soak"},
"hour_wash": {"work_status": "work", "mode": "1hour"},
"quietnight_wash": {"work_status": "work", "mode": "quiet"},
"germ": {"work_status": "work", "mode": "hygiene"},
"self_clean": {"work_status": "work", "mode": "self_clean"},
"fruit_wash": {"work_status": "work", "mode": "fruit_wash"},
"self_define": {"work_status": "work", "mode": "self_define"},
"germ": {"work_status": "work", "mode": "germ"},
"bowl_wash": {"work_status": "work", "mode": "bowl_wash"},
"kill_germ": {"work_status": "work", "mode": "kill_germ"},
"seafood_wash": {"work_status": "work", "mode": "seafood_wash"},
"hotpot_wash": {"work_status": "work", "mode": "hotpot_wash"},
"quietnight_wash": {"work_status": "work", "mode": "quietnight_wash"},
"less_wash": {"work_status": "work", "mode": "less_wash"},
"oilnet_wash": {"work_status": "work", "mode": "oilnet_wash"}
"fruit_wash": {"work_status": "work", "mode": "fruit"},
}
}
},
Expand Down Expand Up @@ -357,27 +343,19 @@
},
"wash_mode": {
"options": {
"neutral_gear": {"work_status": "work", "mode": "neutral_gear"},
"auto_wash": {"work_status": "work", "mode": "auto_wash"},
"strong_wash": {"work_status": "work", "mode": "strong_wash"},
"standard_wash": {"work_status": "work", "mode": "standard_wash"},
"eco_wash": {"work_status":"work","mode":"eco_wash","additional":0,"wash_region":3},
"glass_wash": {"work_status": "work", "mode": "glass_wash"},
"hour_wash": {"work_status": "work", "mode": "hour_wash"},
"fast_wash": {"work_status": "work", "mode": "fast_wash"},
"soak_wash": {"work_status": "work", "mode": "soak_wash"},
"90min_wash": {"work_status": "work", "mode": "90min_wash"},
"auto_wash": {"work_status": "work", "mode": "auto"},
"strong_wash": {"work_status": "work", "mode": "intensive"},
"standard_wash": {"work_status": "work", "mode": "normal"},
"eco_wash": {"work_status": "work", "mode": "eco"},
"glass_wash": {"work_status": "work", "mode": "glass"},
"90min_wash": {"work_status": "work", "mode": "90min"},
"fast_wash": {"work_status": "work", "mode": "rapid"},
"soak_wash": {"work_status": "work", "mode": "soak"},
"hour_wash": {"work_status": "work", "mode": "1hour"},
"quietnight_wash": {"work_status": "work", "mode": "quiet"},
"germ": {"work_status": "work", "mode": "hygiene"},
"self_clean": {"work_status": "work", "mode": "self_clean"},
"fruit_wash": {"work_status": "work", "mode": "fruit_wash"},
"self_define": {"work_status": "work", "mode": "self_define"},
"germ": {"work_status": "work", "mode": "germ"},
"bowl_wash": {"work_status": "work", "mode": "bowl_wash"},
"kill_germ": {"work_status": "work", "mode": "kill_germ"},
"seafood_wash": {"work_status": "work", "mode": "seafood_wash"},
"hotpot_wash": {"work_status": "work", "mode": "hotpot_wash"},
"quietnight_wash": {"work_status": "work", "mode": "quietnight_wash"},
"less_wash": {"work_status": "work", "mode": "less_wash"},
"oilnet_wash": {"work_status": "work", "mode": "oilnet_wash"}
"fruit_wash": {"work_status": "work", "mode": "fruit"},
}
}
},
Expand Down Expand Up @@ -443,16 +421,15 @@
},
"wash_mode": {
"options": {
"neutral_gear": {"work_status": "work", "mode": "neutral_gear"},
"auto_wash": {"work_status": "work", "mode": "auto_wash"},
"strong_wash": {"work_status": "work", "mode": "strong_wash"},
"standard_wash": {"work_status": "work", "mode": "standard_wash"},
"eco_wash": {"work_status":"work","mode":"eco_wash","additional":0,"wash_region":3},
"soft_wash": {"work_status": "work", "mode": "glass_wash"},
"fast_wash": {"work_status": "work", "mode": "fast_wash"},
"soak_wash": {"work_status": "work", "mode": "soak_wash"},
"auto_wash": {"work_status": "work", "mode": "auto"},
"strong_wash": {"work_status": "work", "mode": "intensive"},
"standard_wash": {"work_status": "work", "mode": "normal"},
"eco_wash": {"work_status": "work", "mode": "eco"},
"soft_wash": {"work_status": "work", "mode": "glass"},
"fast_wash": {"work_status": "work", "mode": "rapid"},
"soak_wash": {"work_status": "work", "mode": "soak"},
"self_clean": {"work_status": "work", "mode": "self_clean"},
"fruit_wash": {"work_status": "work", "mode": "fruit_wash"}
"fruit_wash": {"work_status": "work", "mode": "fruit"}
}
}
},
Expand Down
Loading