executeAction for playing Sonos Favorites Playlist
Posted: Wed Jun 06, 2018 12:05 am
I'm attempting to dynamically cycle thru different playlists in association with an Indigo trigger. However, I am not sure which properties to pass into the method. See a sample code snippet below:
Any tips are greatly appreciated
- Code: Select all
theDevice = indigo.devices['Sonos Great Room Playbar']
sonosPlugin = indigo.server.getPlugin("com.ssi.indigoplugin.Sonos")
sonosProps = { 'mode':'Play Now',
'setting':'Rock Radio',
}
if sonosPlugin.isEnabled():
sonosPlugin.executeAction("actionZP_SonosFavorites", deviceId=theDevice.id, props=sonosProps)
Any tips are greatly appreciated