diff --git a/custom_components/xiaomi_gateway3/core/devices.py b/custom_components/xiaomi_gateway3/core/devices.py index d1345233..b761ceb9 100644 --- a/custom_components/xiaomi_gateway3/core/devices.py +++ b/custom_components/xiaomi_gateway3/core/devices.py @@ -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": [