SmartThingsCommunity / SmartThingsEdgeDrivers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sonos Driver 2023-02-07 | Media Group Commands Incorrectly Mapped

TheMegamind opened this issue · comments

With the latest version of the Sonos driver, the mediaGroup commands (groupVolumeUp, groupVolumeDown, muteGroup, unmuteGroup, and possibly more) are doing some funny things. Looking at the code, I saw this, which is a bit of a mess:

[capabilities.mediaGroup.commands.groupVolumeUp.NAME] = CmdHandlers.handle_mute, [capabilities.mediaGroup.commands.groupVolumeDown.NAME] = CmdHandlers.handle_unmute, [capabilities.mediaGroup.commands.setGroupVolume.NAME] = CmdHandlers.handle_set_mute, [capabilities.mediaGroup.commands.muteGroup.NAME] = CmdHandlers.handle_volume_up, [capabilities.mediaGroup.commands.unmuteGroup.NAME] = CmdHandlers.handle_volume_down, [capabilities.mediaGroup.commands.setGroupMute.NAME] = CmdHandlers.handle_set_volume,

Issue has been resolved.