Skip to content

Commit

Permalink
Update positions after triggering scene/scene group.
Browse files Browse the repository at this point in the history
Fixes openhab#11697

Signed-off-by: Jacob Laursen <[email protected]>
  • Loading branch information
jlaur committed Dec 12, 2021
1 parent 2672995 commit f8c009a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,10 @@ public void handleCommand(ChannelUID channelUID, Command command) {
int id = Integer.parseInt(channelUID.getIdWithoutGroup());
if (sceneChannelTypeUID.equals(channel.getChannelTypeUID()) && OnOffType.ON.equals(command)) {
webTargets.activateScene(id);
pollShades();
} else if (sceneGroupChannelTypeUID.equals(channel.getChannelTypeUID()) && OnOffType.ON.equals(command)) {
webTargets.activateSceneCollection(id);
pollShades();
} else if (automationChannelTypeUID.equals(channel.getChannelTypeUID())) {
webTargets.enableScheduledEvent(id, OnOffType.ON.equals(command));
}
Expand Down

0 comments on commit f8c009a

Please sign in to comment.