Skip to content

Commit 261e6be

Browse files
improve rgbw and cct labeling (#1195)
1 parent 4eb34e2 commit 261e6be

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

fs_src/script.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,8 +730,19 @@ function updateComponent(cd) {
730730
if (cd.type == Component_Type.kLightBulb) {
731731
if (cd.bulb_type == LightBulbController_BulbType.kCCT) {
732732
headText = "CCT";
733+
if (lastInfo.model == "ShellyRGBW2") {
734+
if (cd.id == 1) {
735+
headText += " R/G";
736+
} else {
737+
headText += " B/W";
738+
}
739+
}
733740
} else if (cd.bulb_type == LightBulbController_BulbType.kRGBW) {
734-
headText = "RGB";
741+
if (lastInfo.sys_mode == 4) {
742+
headText = "RGBW";
743+
} else {
744+
headText = "RGB";
745+
}
735746
} else {
736747
headText = "Light";
737748
}

0 commit comments

Comments
 (0)