Fix group.(any_on|all_on) state updates on incoming light onoff reports/reads
@@ -1877,6 +1877,18 @@ LightNode *DeRestPluginPrivate::updateLightNode(const deCONZ::NodeEvent &event)
enqueueEvent(e);
updated = true;
}
+ else
+ {
+ // since light event won't trigger a group check, do it here
+ for (const GroupInfo &gi : lightNode->groups())
+ {
+ if (gi.state == GroupInfo::StateInGroup)
+ {
+ Event e(RGroups, REventCheckGroupAnyOn, int(gi.id));
+ enqueueEvent(e);
+ }
+ }
+ }
lightNode->setZclValue(updateType, event.clusterId(), 0x0000, ia->numericValue());
break;
}
