3 hours ago
(12.01.2026, 08:39)Daniel Wrote: if you add it to favorite then you can play a specific favorite from there.Hello again when i try to read the the play favorites i get this (Image)
Im trying with this script but i cant make it work
Code:
require('custom.sonos.lib')
groupName='Living Room'
-------------------------------------------------------------
groupID=sonos_app.GetStoragePlayerGroups()
for k, v in pairs(sonos_app.GetStoragePlayerGroups()) do
if groupID[k].groupName == groupName then
groupID=k
break
end
end
-------------------------------------------------------------
value = event.getvalue()
if value then
-- play playlist by ID
sonos_app.SendApiActionCommand(url_group_id, 'playPlaylist', 491)
end