Skip to content

Commit

Permalink
🪭 improve for zhimi.fan.fb1 (#1812)
Browse files Browse the repository at this point in the history
  • Loading branch information
kei81131 authored Aug 16, 2024
1 parent 388ef26 commit 03691ba
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions custom_components/xiaomi_miot/core/device_customizes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1699,6 +1699,41 @@
'brightness_for_on': 0,
'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',
'number_properties': 'timing',
'percentage_property': 'stepless_fan_level',
'select_properties': 'mode,horizontal_angle,vertical_angle',
'button_properties': 'h_swing_step_move,v_swing_step_move'
},
'zhimi.fan.za3': {
'miot_type': 'urn:miot-spec-v2:device:fan:0000A005:zhimi-za3:3',
'number_select_properties': 'fan_level',
Expand Down

0 comments on commit 03691ba

Please # to comment.