29.12.2023, 10:39
Do you use Mosaic? If no just create a floor and a room in it, also make sure it is a latest version.
------------------------------
Ctrl+F5
Ctrl+F5
|
SONOS app
|
|
29.12.2023, 10:39
Do you use Mosaic? If no just create a floor and a room in it, also make sure it is a latest version.
------------------------------
Ctrl+F5
16.09.2024, 09:23
(11.09.2019, 07:47)Daniel Wrote: Hi Are there more functions then what is listed here? Specifically I would like to group and ungroup players via script.
18.10.2024, 03:01
In the app is there a way of changing the banner an icon colours from green to another colour, also is it possible to remove the close button?
07.01.2026, 16:12
is there a way to add the play favorite button ?
07.01.2026, 16:17
------------------------------
Ctrl+F5 (07.01.2026, 16:17)Daniel Wrote: https://forum.logicmachine.net/showthrea...9#pid13969 i already tried this sonos_app.GetStoragePlayerGroupData(groupID, 'Favorites') and i get this to erro logs Us
07.01.2026, 17:25
08.01.2026, 08:27
Did you fallow the instructions and created first script in this post?
------------------------------
Ctrl+F5
08.01.2026, 18:18
09.01.2026, 10:08
If you have this script working then first try basic play/pause
Create a bit object and then event script on it. use this script and change Bedroom to your group name, you can see it in Sonos app on the bottom. Code: require('custom.sonos.lib')
groupName='Bedroom'
-------------------------------------------------------------
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
sonos_app.SendApiActionCommand(groupID, 'play')
else
sonos_app.SendApiActionCommand(groupID, 'pause')
end
------------------------------
Ctrl+F5
Thank You The problem was that I had a _ in the name!
Is there any way to play a specific album?
12.01.2026, 08:39
if you add it to favorite then you can play a specific favorite from there.
------------------------------
Ctrl+F5
03.02.2026, 17:29
(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
04.02.2026, 07:09
(This post was last modified: 04.02.2026, 07:10 by Erwin van der Zwart.)
You probably need to change
groupID=k break into url_group_id = k break |
|
« Next Oldest | Next Newest »
|