Skip to content

Commit

Permalink
Merge branch 'master' into improve-pm
Browse files Browse the repository at this point in the history
  • Loading branch information
timoschilling authored Jan 20, 2023
2 parents 12b8d40 + f6ac761 commit c2a574c
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion fs_src/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -726,8 +726,19 @@ function updateComponent(cd) {
if (cd.type == Component_Type.kLightBulb) {
if (cd.bulb_type == LightBulbController_BulbType.kCCT) {
headText = "CCT";
if (lastInfo.model == "ShellyRGBW2") {
if (cd.id == 1) {
headText += " R/G";
} else {
headText += " B/W";
}
}
} else if (cd.bulb_type == LightBulbController_BulbType.kRGBW) {
headText = "RGB";
if (lastInfo.sys_mode == 4) {
headText = "RGBW";
} else {
headText = "RGB";
}
} else {
headText = "Light";
}
Expand Down

0 comments on commit c2a574c

Please sign in to comment.