diff --git a/custom_components/xiaomi_miot/core/device_customizes.py b/custom_components/xiaomi_miot/core/device_customizes.py index e50cc57ab..218f3d0d9 100644 --- a/custom_components/xiaomi_miot/core/device_customizes.py +++ b/custom_components/xiaomi_miot/core/device_customizes.py @@ -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', diff --git a/custom_components/xiaomi_miot/core/translation_languages.py b/custom_components/xiaomi_miot/core/translation_languages.py index 879200ca5..06aa0c734 100644 --- a/custom_components/xiaomi_miot/core/translation_languages.py +++ b/custom_components/xiaomi_miot/core/translation_languages.py @@ -24,11 +24,11 @@ }, 'fan_level': { - # 'auto': '自动', - # 'low': '低档', - # 'medium': '中档', - # 'middle': '中档', - # 'high': '高档', + 'auto': 'auto', + 'low': 'low', + 'medium': 'medium', + 'middle': 'middle', + 'high': 'high', 'quiet': '静音', 'turbo': '超强', 'level1': '一档', diff --git a/custom_components/xiaomi_miot/translations/zh-Hans.json b/custom_components/xiaomi_miot/translations/zh-Hans.json index 35941fc12..6677b4808 100644 --- a/custom_components/xiaomi_miot/translations/zh-Hans.json +++ b/custom_components/xiaomi_miot/translations/zh-Hans.json @@ -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": "一档", @@ -288,7 +288,7 @@ "Leve8": "八档" } }, - "light.mode": { + "light-mode": { "Day": "日光", "Night": "夜光", "Color": "彩光",