Skip to content

Commit

Permalink
👕 add support for midjd8.washer.44 (#1568)
Browse files Browse the repository at this point in the history
  • Loading branch information
nuomi1 authored Mar 14, 2024
1 parent b6a13c7 commit de83200
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 12 deletions.
4 changes: 4 additions & 0 deletions custom_components/xiaomi_miot/core/device_customizes.py
Original file line number Diff line number Diff line change
Expand Up @@ -926,6 +926,10 @@
'switch_properties': 'sleep_mode,steam_sterilization,detergent_self_delivery',
'select_properties': 'soak_time,reservation_wash_status,reservation_left_time,detergent_self_delivery_level',
},
'midjd8.washer.*': {
'select_properties': 'shake_time,soak_time',
'switch_properties': 'high_water_switch,steam_sterilization,sleep_mode'
},
'mijia.light.*': {
'cloud_delay_update': 7,
},
Expand Down
1 change: 1 addition & 0 deletions custom_components/xiaomi_miot/core/miot_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ def get_translation(self, des):
dls = [
des.lower(),
des,
des.replace('-', ' ').lower(),
des.replace('-', ' '),
]
tls = self.translations
Expand Down
16 changes: 16 additions & 0 deletions custom_components/xiaomi_miot/core/miot_specs_extend.json
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,22 @@
"midea.aircondition.xa1": "midea.aircondition.v1",
"midea.aircondition.xa2": "midea.aircondition.v1",

"midjd8.washer.44": [
{
"iid": 2,
"properties": [
{
"iid": 24,
"value-range": [0, 720, 120]
},
{
"iid": 27,
"value-range": [0, 180, 30]
}
]
}
],

"mmgg.feeder.petfeeder": [
{
"iid": 2,
Expand Down
41 changes: 29 additions & 12 deletions custom_components/xiaomi_miot/core/translation_languages.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,52 +274,69 @@

'washer': {
'drying level': '烘干级别',
'drying time': '烘干时长',
'high water switch': '高水位',
'rinsh times': '漂洗次数',
'spin speed': '转速',
'shake time': '清新抖散',
'sleep mode': '夜间洗',
'soak time': '浸泡时长',
'spin speed': '脱水转速',
'start wash': '开始洗涤',
'status': '工作状态',
'steam sterilization': '蒸汽除菌',
'target temperature': '洗涤温度',
'target water level': '水位',
},
'washer.mode': {
'aromatherapy wash': '香薰洗',
'baby care': '婴童洗',
'bacteria mite removal': '除菌螨',
'boiling': '高温洗',
'color protection': '护色洗',
'cotton': '棉麻洗',
'daily wash': '日常洗',
'delicate wash': '轻柔洗',
'down coat': '羽绒服',
'drum clean': '筒自洁',
'drum clean': '筒清洁',
'drum dry': '筒风干',
'dry air wash': '空气洗',
'dry air wash': '轻干洗',
'dry timing': '定时烘干',
'dry': '单烘干',
'gold wash': '黄金洗',
'heavy wash': '强力洗',
'intensive': '精细洗',
'jacket': '夹克',
'jeans': '牛仔',
'heavy wash': '大件洗',
'intensive': '强力洗',
'jacket': '冲锋衣',
'jeans': '牛仔洗',
'mite removal': '除螨',
'mix': '混合洗',
'new clothes wash': '新衣洗',
'pleased wash dry': '随心洗烘',
'quick wash dry': '快洗烘',
'quick wash': '快速洗',
'rinse spin': '漂脱',
'rinse spin': '漂+脱',
'rinse': '单漂洗',
'shirt': '衬衣',
'silk': '丝绸',
'silk': '真丝洗',
'smart': '智能洗',
'soak wash': '浸泡洗',
'sock': '袜子',
'spin': '单脱水',
'sportswear': '运动服',
'super quick': '超快洗',
'synthetic': '化纤洗',
'towel': '毛巾',
'underwear': '内衣',
'underwear': '内衣洗',
'user define': '自定义',
'wash dry': '洗+烘',
'wool': '羊毛洗',
},
'washer.drying_level': {
'extra': '特干',
'moist': '微湿',
'none': '不烘干',
'normal': '正常',
'extra': '特干',
'none': '无烘干',
'smart': '智能烘干',
'timed': '定时烘干',
},

'water_heater': {
Expand Down

0 comments on commit de83200

Please sign in to comment.