Skip to content

Commit ba2fb3c

Browse files
authored
Merge pull request #1645 from Johnnybyzhang/master
Add basic support for Mean Well Smart Chromatic Controller (ftd.light.nomain)
2 parents 2ff4d76 + b4da372 commit ba2fb3c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

custom_components/xiaomi_gateway3/core/devices.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5079,6 +5079,15 @@
50795079
BaseConv("target_position", mi="2.p.4"),
50805080
BoolConv("motor_reverse", "switch", mi="2.p.5", entity=ENTITY_CONFIG), # config
50815081
],
5082+
}, {
5083+
19534: ["Mean Well", "Smart Chromatic Controller", "ftd.light.nomain"],
5084+
"spec": [
5085+
BaseConv("light", "light", mi="2.p.1"),
5086+
BrightnessConv("brightness", mi="2.p.2", max=100),
5087+
ColorTempKelvin("color_temp", mi="2.p.3", mink=3000, maxk=6500),
5088+
BaseConv("flex_switch", "switch", mi="2.p.12", entity=ENTITY_CONFIG),
5089+
MapConv("mode","select",mi="2.p.13", map={0: "None", 1: "Day", 2: "Night", 3: "Warmth", 4: "TV", 5: "Reading", 6: "Computer", 7: "Sleep", 8: "Wakeup"}),
5090+
],
50825091
}, {
50835092
"default": "mesh", # default Mesh device
50845093
"spec": [

0 commit comments

Comments
 (0)