Skip to content

Commit

Permalink
❄️ fix miio2miot for zhimi.aircondition.v1 (#2185)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugh696 authored Dec 24, 2024
1 parent d5e97a6 commit 4d22768
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
9 changes: 4 additions & 5 deletions custom_components/xiaomi_miot/core/miio2miot_specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2602,12 +2602,11 @@ def cbk(prop, params, props, **kwargs):
'prop.4.3': {'prop': 'humidity'},
'prop.4.4': {'prop': 'humidity'},
'prop.5.1': {
'prop': 'volume_level',
'setter': 'set_volume_sw',
'template': '{{ (value*14.286)|int }}',
'set_template': '{{ [(value/14.285)|int] }}',
'prop': 'volume',
'setter': 'set_volume',
'set_template': '{{ (value/10)|int }}',
},
'prop.6.1': {'prop': 'lcd_level', 'setter': 'set_lcd'},
'prop.6.1': {'prop': 'lcd_level', 'setter': 'set_lcd_level'},
},
},

Expand Down
10 changes: 10 additions & 0 deletions custom_components/xiaomi_miot/core/miot_specs_extend.json
Original file line number Diff line number Diff line change
Expand Up @@ -1653,6 +1653,16 @@
]
}
]
},
{
"iid": 5,
"properties": [
{
"iid": 1,
"access": ["read", "write"],
"value-range": [0, 70, 10]
}
]
}
],
"zhimi.airfresh.va4":[
Expand Down

0 comments on commit 4d22768

Please sign in to comment.