Skip to content

Commit 5781353

Browse files
committed
Merge pull request #38 from EddyK69/master
Update from master
2 parents 1720a27 + 2830369 commit 5781353

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

main/mainworker.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10758,10 +10758,15 @@ bool MainWorker::SwitchScene(const unsigned long long idx, const std::string &sw
1075810758
bool bHaveDimmer=false;
1075910759
bool bHaveGroupCmd=false;
1076010760
int maxDimLevel=0;
10761-
GetLightStatus(dType, dSubType, switchtype, cmd, sValue, lstatus, llevel, bHaveDimmer, maxDimLevel, bHaveGroupCmd);
1076210761

10763-
if (scenetype == SGTYPE_GROUP)
10762+
if (scenetype == SGTYPE_SCENE)
1076410763
{
10764+
//Scene
10765+
GetLightStatus(dType, dSubType, switchtype, cmd, sValue, lstatus, llevel, bHaveDimmer, maxDimLevel, bHaveGroupCmd);
10766+
}
10767+
else
10768+
{
10769+
//Group
1076510770
lstatus = ((lstatus == "On") || (lstatus == "Group On") || (lstatus == "Chime") || (lstatus == "All On")) ? "On" : "Off";
1076610771
}
1076710772
_log.Log(LOG_NORM, "Activating Scene/Group Device: %s (%s)", DeviceName.c_str(), lstatus.c_str());

0 commit comments

Comments
 (0)