Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

优化智米空调zhimi.aircondition.v1的音量、扫风角度控制,新增室外温湿度获取 #2192

Merged
merged 2 commits into from
Dec 26, 2024
Merged
Show file tree
Hide file tree
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
7 changes: 4 additions & 3 deletions custom_components/xiaomi_miot/core/miio2miot_specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2598,13 +2598,14 @@ def cbk(prop, params, props, **kwargs):
'prop.3.3': {'prop': 'vertical_swing', 'setter': 'set_vertical', 'format': 'onoff'},
'prop.3.4': {'prop': 'vertical_rt', 'setter': 'set_ver_pos'},
'prop.4.1': {'prop': 'temp_dec', 'template': '{{ value|default(0,true)/10.0 }}'},
'prop.4.2': {'prop': 'temp_dec', 'template': '{{ value|default(0,true)/10.0 }}'},
'prop.4.2': {'prop': 'ot_run_temp'},
'prop.4.3': {'prop': 'humidity'},
'prop.4.4': {'prop': 'humidity'},
'prop.4.4': {'prop': 'ot_humidity'},
'prop.5.1': {
'prop': 'volume',
'setter': 'set_volume',
'set_template': '{{ (value/10)|int }}',
'template': '{{ (value/10)|int }}',
'set_template': '{{ value|int }}',
},
'prop.6.1': {'prop': 'lcd_level', 'setter': 'set_lcd_level'},
},
Expand Down
18 changes: 14 additions & 4 deletions custom_components/xiaomi_miot/core/miot_specs_extend.json
Original file line number Diff line number Diff line change
Expand Up @@ -1644,12 +1644,12 @@
{
"iid": 1,
"value-list": [
{"value": 0, "description": "Auto"},
{"value": 4, "description": "Quiet"},
{"value": 1, "description": "Low"},
{"value": 2, "description": "Medium"},
{"value": 3, "description": "High"},
{"value": 4, "description": "Quiet"},
{"value": 5, "description": "Turbo"}
{"value": 5, "description": "Turbo"},
{"value": 0, "description": "Auto"}
]
}
]
Expand All @@ -1660,7 +1660,17 @@
{
"iid": 1,
"access": ["read", "write"],
"value-range": [0, 70, 10]
"value-range": [0, 7, 1]
}
]
},
{
"iid": 3,
"properties": [
{
"iid": 4,
"access": ["read", "write"],
"value-range": [0, 60, 1]
}
]
}
Expand Down
Loading