From 8fda08b448321c5a65756edb36e55a91e4d89e8d Mon Sep 17 00:00:00 2001 From: justbin95 <39414738+justbin95@users.noreply.github.com> Date: Sat, 14 Oct 2023 00:09:59 -0500 Subject: [PATCH 1/2] Add support for PTX DownLight (090615.light.mylg04) --- custom_components/xiaomi_gateway3/core/converters/devices.py | 1 + 1 file changed, 1 insertion(+) diff --git a/custom_components/xiaomi_gateway3/core/converters/devices.py b/custom_components/xiaomi_gateway3/core/converters/devices.py index 5ea400d8..7b28a56d 100644 --- a/custom_components/xiaomi_gateway3/core/converters/devices.py +++ b/custom_components/xiaomi_gateway3/core/converters/devices.py @@ -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), From 711b6606955096e2ca2a7359fb61836214633da5 Mon Sep 17 00:00:00 2001 From: justbin95 <39414738+justbin95@users.noreply.github.com> Date: Sat, 14 Oct 2023 03:21:57 -0500 Subject: [PATCH 2/2] Add Support for Yeelight Mesh Downlight Z1 --- .../xiaomi_gateway3/core/converters/devices.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/custom_components/xiaomi_gateway3/core/converters/devices.py b/custom_components/xiaomi_gateway3/core/converters/devices.py index 7b28a56d..a74be0df 100644 --- a/custom_components/xiaomi_gateway3/core/converters/devices.py +++ b/custom_components/xiaomi_gateway3/core/converters/devices.py @@ -1769,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": [