Skip to content

Commit

Permalink
Merge pull request #1136 from ABUAIJUTIE/patch-1
Browse files Browse the repository at this point in the history
Add support for lemesh.light.wy0c15
  • Loading branch information
AlexxIT authored Sep 20, 2023
2 parents 497b49c + 63df17b commit 593cfc0
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 @@ -1708,6 +1708,23 @@
MapConv("dimming", "select", mi="4.p.3", map={0: "Gradient", 1: "Immediately"}),
BoolConv("night_light", "switch", mi="4.p.5"),
]
}, {
# https://home.miot-spec.com/spec/lemesh.light.wy0c15
13525: ["LeMesh", "Mesh Light", "lemesh.light.wy0c15 "],
"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"),
]
}, {
# https://home.miot-spec.com/spec/jymc.light.falmp
10729: ["Unknown", "Mesh Light", "jymc.light.falmp"],
Expand Down

0 comments on commit 593cfc0

Please sign in to comment.