Skip to content

Commit

Permalink
Merge pull request #1167 from justbin95/master
Browse files Browse the repository at this point in the history
Add support for PTX DownLight (090615.light.mylg04)
  • Loading branch information
AlexxIT authored Oct 15, 2023
2 parents 9478dd0 + 711b660 commit 000042e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions custom_components/xiaomi_gateway3/core/converters/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -1685,6 +1685,7 @@
# brightness 1..100, color_temp 2700..6500
3416: ["PTX", "Mesh Downlight", "090615.light.mlig01"],
4924: ["PTX", "Mesh Downlight", "090615.light.mlig02"],
15169: ["PTX", "Mesh Downlight", "090615.light.mylg04"],
"spec": [
Converter("light", "light", mi="2.p.1"),
BrightnessConv("brightness", mi="2.p.2", parent="light", max=100),
Expand Down Expand Up @@ -1768,6 +1769,18 @@
15: "sleep"
})
]
}, {
15745: ["Yeelight", "Mesh Downlight Z1", "YCCSLI001"], # justbin95
"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=6000),
MapConv("mode", "select", mi="2.p.7", map={
0: "WY", 4: "Lighting", 5: "Night Light", 7: "Warmth", 8: "TV", 9: "Reading", 10: "Computer",
11: "Hospitality", 12: "Entertainment", 13: "Wake Up", 14: "Dusk",
15: "Sleep", 16: "Mode-1", 17: "Mode-2", 18: "Mode-3", 19: "Mode-4"
})
]
}, {
12455: ["Yeelight", "K Series Single Wall Switch", "YLYKG-0025/0020"],
"spec": [
Expand Down

0 comments on commit 000042e

Please sign in to comment.