SONOS app - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Application Store (https://forum.logicmachine.net/forumdisplay.php?fid=11) +--- Thread: SONOS app (/showthread.php?tid=415) |
RE: SONOS app - Trond Hoyem - 29.06.2020 (05.06.2020, 14:46)Erwin van der Zwart Wrote: Hi,Hi Erwin That was the cause... I was playing from Spotify, but tested now with a radio station in the Sonos app, and then it worked. RE: SONOS app - Erwin van der Zwart - 29.06.2020 Hi, Try this script, it is stand alone and it does not uses any of the (old) Sonos App files
Sonos doorbell by script.lua (Size: 14.84 KB / Downloads: 81)
BR, Erwin RE: SONOS app - Trond Hoyem - 30.06.2020 (29.06.2020, 14:06)Erwin van der Zwart Wrote: Hi, Nothing happens when running it. I changed the start of the script to; Code: playername = 'Kontor' I am soon ready to give up the sonos integration. It seems that what I need to do is not possible, or I am just not able to do it... What I need to do is the following: - If I get a TRUE on my object, I want to play a mp3 file from the ftp of LM on a certain player. - If I get a FALSE on my object, the playing of the mp3 shold stop. I am able to play the file on the player I want with the old API created by Erwin. But it seems that to stop it when playing is not possible as it always play the complete file. As I am playing a file to indicate that the alarm is triggered, I naturally need the file to stop when I reset the alarm by entering the code. Is this even possible, or should I simply tell the customer that we need to go for a totally different solution? RE: SONOS app - Erwin van der Zwart - 30.06.2020 Hi, This is the most cleaned methode to do what you need: Code: -- Function to execute Sonos requests Erwin RE: SONOS app - Trond Hoyem - 30.06.2020 I got it to somewhat work by doing like this: Code: if alarm then But then there is a delay in this sonos function so that it takes a lot of time to start all the players I have in the list. I also now esperienced another challenge; I did a scan in the sonos network to verify my player ID's, and then the log from that scan is too long for the log-window, and I cannot see all players. Is there a way to list only player name and ID? There is a lot of information in the normal scan, and so it is not possible to see the complete result. RE: SONOS app - Erwin van der Zwart - 30.06.2020 Hi, Why are you looping through all players and not using the sayall command? BR, Erwin RE: SONOS app - Trond Hoyem - 01.07.2020 (30.06.2020, 22:40)Erwin van der Zwart Wrote: Hi,Because I should not use all players, but a selection of them. RE: SONOS app - MantasJ - 18.08.2020 Hello, We have a problem with one client and Sonos system. I have installed Sonos app in our LogicMachine. It finds the Sonos and everything is fine till it comes to controlling it – controls are very delayed. For example, if I press pause on a song from the app from LogicMachine, it pauses it after 10-30 seconds. Internet connection is strong (100mbps). The particular Sonos model is „Sonos Connect“ and it is used to stream audio to „Denon“ amplifier. Sonos is connected to internet via cable. Where could be the problem? RE: SONOS app - phongvucba - 09.04.2022 Hi guys ! I don't know if anyone still uses the Sonos app now? I'm using it and haven't seen any errors yet. Has anyone switched to Sonos API's Sonos? I use Sonos API and have a few questions that I can't answer, I really need your help: (https://developer.sonos.com/reference/authorization-api/) (https://forum.logicmachine.net/showthread.php?tid=415&page=14) -require('custom.sonos.lib') -->Where do I get this library? And where to put in LM5? ( -I also want to add the command line: Adjust the volume to increase or decrease a certain range. -sonos_app.SendApiActionCommand(groupID, 'playPlaylist',1) ---This command, it makes my queue add a lot of songs over and over again -sonos_app.SendApiActionCommand(groupID, 'setPlayModes', 'repeat') --it didn't work for me, even though i tried repeatOne,shuffle,v.v.. -------------------------- I use Sonos app and have a few questions that I can't answer, I really need your help: -How can I Load 1 Playlists that I have created, for example named Demo1 and Demo2. Because if these playlists can be played, customers can add their own favorite songs . Very helpful "http://192.168.100.5/user/sonos.lp?action=loadplaylist&uuid=RINCON_F0F6C126547C01400&listname=Demo2&autoplay=true " I tried the above and it doesn't work! -How can I play a playlist that I save on LM5 (via ftp is apps) -Can I get Sonos' status? (eg status play,mute,volume.etc...) Thank so much everyone ! RE: SONOS app - Joep - 28.01.2023 (11.09.2019, 07:47)Daniel Wrote: Hi Be aware that in some examples url_groupID is used instead of the correct groupID So you need to replace this to get it work. To play your own (doorbell) file using the new Sonos API you just need to follow the steps below. First we need to add the url as a radiostation in TuneIn. 1. Go to the Browse tab within the Sonos app and select TuneIn. 2. Tap My radio stations. 3. Tap the three dots at the top right and tap Add new radio station. 4. Enter the streaming URL and station name and tap OK. 5. The station will be listed and available in the My radio stations section under TuneIn. 6. Add the station as a fovorite. Now you can use the new api. 1. Read favorites table to see what id the station got. favorites = sonos_app.GetStoragePlayerGroupData(groupID, 'Favorites') 2. play favorite by ID favorite_id = '27' sonos_app.SendApiActionCommand(groupID, 'playFavorite', favorite_id) RE: SONOS app - twee_D - 24.02.2023 I added Sonos to LM last week for testing purposes. This worked perfectly (new app --> sonos --> and then it was included in the object list). Since I was done testing things, I wanted to start back clean I then deleted all objects. But now I can't get the sonos app back in my list of objects. I also deleted and re-added the sonos app in the meantime, but this did not solve anything either. How do I add sonos to my objects now? Translated with www.DeepL.com/Translator (free version) RE: SONOS app - Daniel - 24.02.2023 I didn't use this app for a long time but as far I remember the objects are created when new player is added. Can you delete player from the app? If not then install Storage viewer, find Sonos storage and delete it. Make yourself a backup before just in case RE: SONOS app - twee_D - 24.02.2023 (24.02.2023, 11:06)Daniel Wrote: I didn't use this app for a long time but as far I remember the objects are created when new player is added. Can you delete player from the app? Thanks for the help, but it didn't work. Removed everything mention RINCON (sonos) and re-installed the app... but the object just doesn't appear :-( RE: SONOS app - Daniel - 24.02.2023 you must click the add widget button, fill or select existing mosaic location and done. If you done it already then in same place is delete button where you can delete it and start over again. RE: SONOS app - twee_D - 24.02.2023 (24.02.2023, 17:30)Daniel Wrote: you must click the add widget button, fill or select existing mosaic location and done. If you done it already then in same place is delete button where you can delete it and start over again. I know, and did that (+ button in the upper right corner to add or remove apps)... doesn't work i did remove the sonos app, then opened storage viewer to remove all other sonos parts, then re-installed sonos... no result :-( RE: SONOS app - twee_D - 13.03.2023 Can no one help me here? RE: SONOS app - Daniel - 13.03.2023 Here you add/delete widget as a consequences objects are created/deleted RE: SONOS app - victor.back - 01.08.2023 Hi. Is it possible to use own created groupadresses for Sonos controller? Or do you have to use the ones that automatic sign by the Sonos app when creates the widgets? RE: SONOS app - Daniel - 01.08.2023 There is no option to manually map anything there. You can use script to link the objects together. RE: SONOS app - KRIS DOCX - 28.12.2023 (24.02.2023, 18:29)twee_D Wrote:(24.02.2023, 17:30)Daniel Wrote: you must click the add widget button, fill or select existing mosaic location and done. If you done it already then in same place is delete button where you can delete it and start over again. Hi Daniel - I had the same issue - the connection with SONOS worked except the add widget button. The solution was to connect all devices to the router and not the MESH network. The leaves me with the issue on the network but at least the LM is working as a charm. |