Skip to content

Commit

Permalink
Add lamp lemesh.light.wy0c14 #1164
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Oct 15, 2023
1 parent 5e5298f commit 26ac22c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions custom_components/xiaomi_gateway3/core/converters/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -3049,6 +3049,23 @@
MathConv("power", "sensor", mi="3.p.6", round=1),
Converter("led", "light", mi="4.p.1"),
],
}, {
# https://home.miot-spec.com/spec/lemesh.light.wy0c14
13471: ["LeMesh", "Mesh Light", "lemesh.light.wy0c14 "],
"spec": [
Converter("light", "light", mi="2.p.1"),
BrightnessConv("brightness", mi="2.p.2", parent="light", max=100),
ColorTempKelvin("color_temp", mi="2.p.3", parent="light", mink=2700, maxk=6500),
MapConv("mode", "select", mi="2.p.5", map={
0: "WY", 4: "day", 5: "night", 8: "TV", 9: "reading", 10: "computer",
11: "hospitality", 12: "entertainment", 13: "wakeup", 14: "dusk",
15: "sleep"
}),
MapConv("power_on_state", "select", mi="2.p.7", map={0: "default", 1: "on"}),
BoolConv("save_state", "switch", mi="4.p.2"),
MapConv("dimming", "select", mi="4.p.3", map={0: "Gradient", 1: "Immediately"}),
BoolConv("night_light", "switch", mi="4.p.5"),
]
}, {
"default": "mesh", # default Mesh device
"spec": [
Expand Down

0 comments on commit 26ac22c

Please sign in to comment.