Skip to content

Commit

Permalink
Add three Yeelight Magnetic Track models #1321
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Apr 6, 2024
1 parent 4fe9de5 commit abf07e2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions custom_components/xiaomi_gateway3/core/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -2675,6 +2675,19 @@
BaseConv("channel_2", "switch", mi="3.p.1"),
BaseConv("led", "switch", mi="8.p.1"),
],
}, {
9804: ["Yeelight", "Magnetic Track Array Spotlight", "yeelink.light.ml6"],
9811: ["Yeelight", "Magnetic Track Light Bar", "yeelink.light.ml7"],
9812: ["Yeelight", "Magnetic Track Spotlight", "yeelink.light.ml8"],
"spec": [
BaseConv("light", "light", mi="2.p.1"),
BrightnessConv("brightness", mi="2.p.2", max=100),
ColorTempKelvin("color_temp", mi="2.p.3", mink=2700, maxk=6500),
MapConv("power_on_state", "select", mi="2.p.4", map={0: "Off", 1: "On", 2: "Default"}),
MapConv("mode", "select", mi="2.p.5", map={0: "Dummy", 1: "Lighting", 2: "Night Light", 3: "TV", 4: "Reading", 5: "Hospitality", 6: "Warmth"}),
MathConv("light_off_gradient_time", "number", mi="2.p.7", multiply=0.5, min=0, max=10),
MathConv("light_on_gradient_time", "number", mi="2.p.8", multiply=0.5, min=0, max=10),
],
}, {
11253: ["LianXun", "Switch Four-key Mesh", "lxun.switch.lxswm4"],
"spec": [
Expand Down

0 comments on commit abf07e2

Please sign in to comment.