Skip to content

Commit 863fb93

Browse files
committed
Add night light sub-profile and restructure YLXD024 to use sub-profiles
1 parent d8d3be7 commit 863fb93

4 files changed

Lines changed: 33 additions & 1 deletion

File tree

profile_library/yeelight/YLXD024/color_temp.csv.gz renamed to profile_library/yeelight/YLXD024/main_light/color_temp.csv.gz

File renamed without changes.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"name": "Yeelight LED Smart Ceiling Light(8-jō size) main light",
3+
"standby_power": 0
4+
}

profile_library/yeelight/YLXD024/model.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,15 @@
1111
"VERSION": "v1.20.13:docker"
1212
},
1313
"name": "Yeelight LED Smart Ceiling Light(8-jō size)",
14-
"standby_power": 1.15
14+
"standby_power": 1.15,
15+
"sub_profile_select": {
16+
"default": "main_light",
17+
"matchers": [
18+
{
19+
"type": "entity_id",
20+
"pattern": "^light\\..*_nightlight$",
21+
"profile": "night_light"
22+
}
23+
]
24+
}
1525
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "Yeelight LED Smart Ceiling Light(8-jō size) night light",
3+
"standby_power": 0,
4+
"calculation_strategy": "linear",
5+
"linear_config": {
6+
"calibrate": [
7+
"1 -> 1.214",
8+
"32 -> 1.310",
9+
"64 -> 1.376",
10+
"96 -> 1.433",
11+
"128 -> 1.484",
12+
"160 -> 1.532",
13+
"192 -> 1.577",
14+
"224 -> 1.619",
15+
"255 -> 1.659"
16+
]
17+
}
18+
}

0 commit comments

Comments
 (0)