Skip to content

Commit c2a574c

Browse files
Merge branch 'master' into improve-pm
2 parents 12b8d40 + f6ac761 commit c2a574c

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
@@ -726,8 +726,19 @@ function updateComponent(cd) {
726726
if (cd.type == Component_Type.kLightBulb) {
727727
if (cd.bulb_type == LightBulbController_BulbType.kCCT) {
728728
headText = "CCT";
729+
if (lastInfo.model == "ShellyRGBW2") {
730+
if (cd.id == 1) {
731+
headText += " R/G";
732+
} else {
733+
headText += " B/W";
734+
}
735+
}
729736
} else if (cd.bulb_type == LightBulbController_BulbType.kRGBW) {
730-
headText = "RGB";
737+
if (lastInfo.sys_mode == 4) {
738+
headText = "RGBW";
739+
} else {
740+
headText = "RGB";
741+
}
731742
} else {
732743
headText = "Light";
733744
}

0 commit comments

Comments
 (0)