diff --git a/custom_components/xiaomi_miot/core/device_customizes.py b/custom_components/xiaomi_miot/core/device_customizes.py index bf7390ca6..0e9d99fda 100644 --- a/custom_components/xiaomi_miot/core/device_customizes.py +++ b/custom_components/xiaomi_miot/core/device_customizes.py @@ -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', diff --git a/custom_components/xiaomi_miot/core/miot_specs_extend.json b/custom_components/xiaomi_miot/core/miot_specs_extend.json index b16e46ad0..4d4d20ab2 100644 --- a/custom_components/xiaomi_miot/core/miot_specs_extend.json +++ b/custom_components/xiaomi_miot/core/miot_specs_extend.json @@ -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, @@ -1692,7 +1720,7 @@ ] } ], - + "zhimi.humidifier.ca4": [ { "iid": 2,