Skip to content

Commit 26ac22c

Browse files
committed
Add lamp lemesh.light.wy0c14 #1164
1 parent 5e5298f commit 26ac22c

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

  • custom_components/xiaomi_gateway3/core/converters

custom_components/xiaomi_gateway3/core/converters/devices.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3049,6 +3049,23 @@
30493049
MathConv("power", "sensor", mi="3.p.6", round=1),
30503050
Converter("led", "light", mi="4.p.1"),
30513051
],
3052+
}, {
3053+
# https://home.miot-spec.com/spec/lemesh.light.wy0c14
3054+
13471: ["LeMesh", "Mesh Light", "lemesh.light.wy0c14 "],
3055+
"spec": [
3056+
Converter("light", "light", mi="2.p.1"),
3057+
BrightnessConv("brightness", mi="2.p.2", parent="light", max=100),
3058+
ColorTempKelvin("color_temp", mi="2.p.3", parent="light", mink=2700, maxk=6500),
3059+
MapConv("mode", "select", mi="2.p.5", map={
3060+
0: "WY", 4: "day", 5: "night", 8: "TV", 9: "reading", 10: "computer",
3061+
11: "hospitality", 12: "entertainment", 13: "wakeup", 14: "dusk",
3062+
15: "sleep"
3063+
}),
3064+
MapConv("power_on_state", "select", mi="2.p.7", map={0: "default", 1: "on"}),
3065+
BoolConv("save_state", "switch", mi="4.p.2"),
3066+
MapConv("dimming", "select", mi="4.p.3", map={0: "Gradient", 1: "Immediately"}),
3067+
BoolConv("night_light", "switch", mi="4.p.5"),
3068+
]
30523069
}, {
30533070
"default": "mesh", # default Mesh device
30543071
"spec": [

0 commit comments

Comments
 (0)