Skip to content

Commit 61ed4e5

Browse files
committed
Add support Mesh Fan Light Series V1 (cxw.light.wyfv01) #1538 by @nonamelee1003
1 parent f486cb6 commit 61ed4e5

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

custom_components/xiaomi_gateway3/core/devices.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5036,6 +5036,19 @@
50365036
MapConv("action", mi="6.e.2.p.1", map={1: BUTTON_1_HOLD, 2: BUTTON_2_HOLD, 3: BUTTON_3_HOLD, 4: BUTTON_4_HOLD}),
50375037
MapConv("action", mi="6.e.3.p.1", map={1: BUTTON_1_DOUBLE, 2: BUTTON_2_DOUBLE, 3: BUTTON_3_DOUBLE, 4: BUTTON_4_DOUBLE}),
50385038
],
5039+
}, {
5040+
15365: [None, "Mesh Fan Light Series V1", "cxw.light.wyfv01"],
5041+
"spec": [
5042+
BaseConv("light", "light", mi="2.p.1"),
5043+
BrightnessConv("brightness", mi="2.p.2", max=100),
5044+
ColorTempKelvin("color_temp", mi="2.p.3", mink=2700, maxk=6500),
5045+
MapConv("light_mode", "select", mi="2.p.5", map={0: "None", 1: "Lighting", 2: "Tv", 3: "Warmth", 4: "Reading", 5: "Sleep", 6: "Eat", 7: "Candlelight", 8: "GoHome", 9: "LeaveHome"}),
5046+
BaseConv("fan", "switch", mi="5.p.1"),
5047+
MapConv("fan_level", "number", mi="5.p.2", min=1, max=6),
5048+
BaseConv("horizontal_swing", "switch", mi="5.p.3"),
5049+
BaseConv("wind_reverse", "switch", mi="5.p.4"),
5050+
BoolConv("natural_wind", "switch", mi="5.p.5"),
5051+
],
50395052
}, {
50405053
"default": "mesh", # default Mesh device
50415054
"spec": [

0 commit comments

Comments
 (0)