Skip to content

Commit

Permalink
Merge pull request #1522 from Zkdc/patch-2
Browse files Browse the repository at this point in the history
Add support for philips.light.lite
  • Loading branch information
AlexxIT authored Dec 19, 2024
2 parents 9ebc15e + 374217e commit 877eae4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions custom_components/xiaomi_gateway3/core/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -3925,6 +3925,17 @@
MapConv("run_state", mi="2.p.5", map={0: "stop", 1: "opening", 2: "closing"}),
BaseConv("motor_reverse", "switch", mi="2.p.6"),
],
}, {
4944: ["Philips", "Mi Smart Desk Lamp Lite", "philips.light.lite"],
"spec": [
BaseConv("light", "light", mi="2.p.1"),
BrightnessConv("brightness", mi="2.p.2", max=100),
MapConv("mode", "select", mi="2.p.3", map={0: "none", 1: "night light", 2: "entertainment", 3: "reading"}),
MathConv("delay", "number", mi="3.p.1", min=0, max=21600, step=1, entity={"units": UNIT_SECONDS}),
BaseConv("notify_switch", "switch", mi="3.p.2"),
MathConv("notify_time", "number", mi="3.p.3", min=1, max=120, step=1, entity={"units": UNIT_MINUTES}),
BaseConv("night_light_enable", "switch", mi="3.p.4"),
],
}, {
"default": "mesh", # default Mesh device
"spec": [
Expand Down

0 comments on commit 877eae4

Please sign in to comment.