mirror of
https://github.com/XiaoMi/ha_xiaomi_home.git
synced 2025-04-02 15:55:30 +08:00
feat: add conversion rules for the air-conditioner service and the air-fresh service (#879)
This commit is contained in:
parent
0ef8cb6370
commit
6680d9e8cb
@ -387,6 +387,7 @@ SPEC_SERVICE_TRANS_MAP: dict = {
|
|||||||
},
|
},
|
||||||
'fan-control': 'fan',
|
'fan-control': 'fan',
|
||||||
'ceiling-fan': 'fan',
|
'ceiling-fan': 'fan',
|
||||||
|
'air-fresh': 'fan',
|
||||||
'water-heater': {
|
'water-heater': {
|
||||||
'required': {
|
'required': {
|
||||||
'properties': {
|
'properties': {
|
||||||
@ -413,7 +414,20 @@ SPEC_SERVICE_TRANS_MAP: dict = {
|
|||||||
},
|
},
|
||||||
'window-opener': 'curtain',
|
'window-opener': 'curtain',
|
||||||
'motor-controller': 'curtain',
|
'motor-controller': 'curtain',
|
||||||
'airer': 'curtain'
|
'airer': 'curtain',
|
||||||
|
'air-conditioner': {
|
||||||
|
'required': {
|
||||||
|
'properties': {
|
||||||
|
'on': {'read', 'write'},
|
||||||
|
'mode': {'read', 'write'},
|
||||||
|
'target-temperature': {'read', 'write'}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
'optional': {
|
||||||
|
'properties': {'target-humidity'}
|
||||||
|
},
|
||||||
|
'entity': 'air-conditioner'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
"""SPEC_PROP_TRANS_MAP
|
"""SPEC_PROP_TRANS_MAP
|
||||||
|
Loading…
x
Reference in New Issue
Block a user