Skip to content

Commit

Permalink
❄️ improve for air conditioner
Browse files Browse the repository at this point in the history
  • Loading branch information
al-one committed Dec 14, 2024
1 parent bf7aaff commit 9c8c550
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 29 deletions.
27 changes: 10 additions & 17 deletions custom_components/xiaomi_miot/core/device_customizes.py
Original file line number Diff line number Diff line change
Expand Up @@ -919,31 +919,24 @@
},
'lumi.acpartner.mcn04': {
'auto_cloud': True,
'chunk_properties': 7,
'interval_seconds': 60,
'chunk_properties': 8,
'switch_properties': 'on,quick_cool_enable,indicator_light',
'select_properties': 'fan_level,ac_mode',
'miio_cloud_props': [],
'stat_power_cost_type': 'stat_day_v3',
'stat_power_cost_key': '7.1,7.3',
'sensor_attributes': 'power_cost_today,power_cost_month,power_cost_today_2,power_cost_month_2',
'configuration_entities': 'ac_mode,indicator_light',
'chunk_coordinators': [
{'interval': 10, 'props': 'on,mode,target_temperature,fan_level,electric_power'},
],
},
'lumi.acpartner.mcn04:power_consumption': ENERGY_KWH,
'lumi.acpartner.mcn04:power_cost_today': {
'value_ratio': 1,
**ENERGY_KWH
},
'lumi.acpartner.mcn04:power_cost_month': {
'value_ratio': 1,
**ENERGY_KWH
},
'lumi.acpartner.mcn04:power_cost_today_2': {
'value_ratio': 1,
**ENERGY_KWH
},
'lumi.acpartner.mcn04:power_cost_month_2': {
'value_ratio': 1,
**ENERGY_KWH
},
'lumi.acpartner.mcn04:power_cost_today': {'value_ratio': 1, **ENERGY_KWH},
'lumi.acpartner.mcn04:power_cost_month': {'value_ratio': 1, **ENERGY_KWH},
'lumi.acpartner.mcn04:power_cost_today_2': ENERGY_KWH,
'lumi.acpartner.mcn04:power_cost_month_2': ENERGY_KWH,
'lumi.acpartner.*': {
'sensor_attributes': 'electric_power,power_cost_today,power_cost_month',
'select_properties': 'fan_level',
Expand Down
10 changes: 5 additions & 5 deletions custom_components/xiaomi_miot/core/translation_languages.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
},

'fan_level': {
# 'auto': '自动',
# 'low': '低档',
# 'medium': '中档',
# 'middle': '中档',
# 'high': '高档',
'auto': 'auto',
'low': 'low',
'medium': 'medium',
'middle': 'middle',
'high': 'high',
'quiet': '静音',
'turbo': '超强',
'level1': '一档',
Expand Down
14 changes: 7 additions & 7 deletions custom_components/xiaomi_miot/translations/zh-Hans.json
Original file line number Diff line number Diff line change
Expand Up @@ -267,13 +267,13 @@
}
},
"select": {
"fan_control.fan_level": {
"fan_control-fan_level": {
"state": {
"Auto": "自动",
"Low": "低档",
"Medium": "中档",
"Middle": "中档",
"High": "高档",
"auto": "自动",
"low": "低档",
"medium": "中档",
"middle": "中档",
"high": "高档",
"Quiet": "静音",
"Turbo": "超强",
"Level1": "一档",
Expand All @@ -288,7 +288,7 @@
"Leve8": "八档"
}
},
"light.mode": {
"light-mode": {
"Day": "日光",
"Night": "夜光",
"Color": "彩光",
Expand Down

0 comments on commit 9c8c550

Please sign in to comment.