Skip to content

Commit

Permalink
🪭 improve for zhimi.fan.fb1
Browse files Browse the repository at this point in the history
  • Loading branch information
al-one committed Nov 18, 2024
1 parent f1526ea commit ee47d9d
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 30 deletions.
30 changes: 1 addition & 29 deletions custom_components/xiaomi_miot/core/device_customizes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1793,35 +1793,7 @@
'brightness_for_off': 2,
},
'zhimi.fan.fb1': {
'extend_miot_specs': [
{
'iid': 2,
'properties': [
{'iid': 5, 'value-range': [30, 120, 30]},
{'iid': 6, 'value-range': [30, 90, 30]},
],
},
{
'iid': 5,
'properties': [
{
'iid': 6,
'value-list': [
{'value': 'left', 'description': 'Turn Left'},
{'value': 'right', 'description': 'Turn Right'},
],
},
{
'iid': 7,
'value-list': [
{'value': 'up', 'description': 'Turn Up'},
{'value': 'down', 'description': 'Turn Down'},
],
},
],
},
],
'switch_properties': 'alarm,horizontal_swing,vertical_swing,oscillating,h_swing_back,v_swing_back',
'switch_properties': 'alarm,horizontal_swing,vertical_swing,oscillating,h_swing_back,v_swing_back,brightness',
'number_properties': 'timing',
'percentage_property': 'stepless_fan_level',
'select_properties': 'mode,horizontal_angle,vertical_angle',
Expand Down
30 changes: 29 additions & 1 deletion custom_components/xiaomi_miot/core/miot_specs_extend.json
Original file line number Diff line number Diff line change
Expand Up @@ -1681,6 +1681,34 @@
}
],

"zhimi.fan.fb1": [
{
"iid": 2,
"properties": [
{"iid": 5, "value-range": [30, 120, 30]},
{"iid": 6, "value-range": [30, 90, 30]}
]
},
{
"iid": 5,
"properties": [
{
"iid": 6,
"value-list": [
{"value": "left", "description": "Turn Left"},
{"value": "right", "description": "Turn Right"}
]
},
{
"iid": 7,
"value-list": [
{"value": "up", "description": "Turn Up"},
{"value": "down", "description": "Turn Down"}
]
}
]
}
],
"zhimi.fan.za4": [
{
"iid": 2,
Expand All @@ -1692,7 +1720,7 @@
]
}
],

"zhimi.humidifier.ca4": [
{
"iid": 2,
Expand Down

0 comments on commit ee47d9d

Please sign in to comment.