Page 7 of 7
Re: Step by step guide: Sonos integration
Posted: Sunday 26 April 2020 13:39
by iTDB
rensbr wrote: ↑Wednesday 28 August 2019 22:41
Thank you for all the work! It works like a charm.
I did however changed the
dz script from anfelt, so now the played numbers / radio station are displayed in a seperate device. I also updated the
icons from dhanjel, so now they don't have white borders anymore.
The script can be found at
Github.
I had some problems with the auto-start of pm2, so I followed the
steps from junr and that works like a charm. Of course you need pm2 in order for this to work, you can install that the help of
this post. And pm2 do also need autostart, you can set that up
with.
Sonos.zip
Github > Works for me.
For myself I added the following.
Code: Select all
--How to use: URL change Room - domoticz.devices(Idx) - Make dzVents
...
currentvolume = jsonStatus['volume']
....
And during playback
.. "\nVolume: " .. currentvolume
Re: Step by step guide: Sonos integration
Posted: Saturday 12 December 2020 12:14
by Derik
Ho tot all..
Is this setup still working? Also for the ikea sonof systems?
Or is sonos now hardcored in to domoticz?
Or are there perhaps other options in to domoticz?
Re: Step by step guide: Sonos integration
Posted: Monday 19 September 2022 21:32
by DickNi
Hi to all
How can I swicth to or select television
Re: Step by step guide: Sonos integration
Posted: Thursday 09 November 2023 10:53
by RonkA
Can someone tell me how to get this to work on a Synology Nas running Domoticz from a Dockercontainer?
On the nas Node.js v12 is running but dont know what steps to take.
I have downloaded 'node-sonos-http-api' and changed the presets file example.json to my setup:
Code: Select all
{
"players": [
{
"roomName": "Keuken Los",
"volume": 10
},
{
"roomName": "Keuken Stereo Paar (L)",
"volume": 10
},
{
"roomName": "Keuken Stereo Paar (R)",
"volume": 10
},
{
"roomName": "Woonkamer",
"volume": 10
},
],
"playMode": {
"shuffle": true,
"repeat": "all",
"crossfade": false
},
"pauseOthers": false,
}
I now copyed the 'node-sonos-http-api' folder into \\Nas-1\docker\domoticz\plugins\ and now via Docker using bash terminal looking at
Code: Select all
root@domoticz-domoticz:/opt/domoticz/userdata/userdata/plugins# dir
Domoticz-Home-Connect-Plugin-master domoticz-solaredge-modbustcp-plugin-master
Python-3.9.16.tar node-sonos-http-api
i now see the 'node-sonos-http-api' folder within the plugins directory..
but from here i'm stuck at the the 'npm' part.
This tells me it is possible to get it to work on a Synology Nas but leaves me with no solution.
Please someone Help!!
Re: Step by step guide: Sonos integration
Posted: Friday 10 November 2023 1:10
by Dutchsea
Why not follow the same steps as described by Holland? Can’t you use pm2 on the Synology? I installed Sonos http a few weeks ago on a new pi 3B and it works fine.
Re: Step by step guide: Sonos integration
Posted: Friday 10 November 2023 23:47
by RonkA
Hi,
thanks for a reply, I stated my question because of this post from Holland:
Holland wrote: ↑Sunday 16 September 2018 21:00
josimd wrote: ↑Sunday 16 September 2018 19:29
yes that did the trick! its working now in Domoticz. Do you also how to run the api continuously, now, when I close the terminal de pipe is broken. Is there an option within synology which I can use?
The solution is PM2, but I have it running on a RPi. See also the first post in this threat.
Don't know if PM2 can run on a synology.
I asked the specific question about a Synology setup, and to be precise a Docker run Domoticz on a Synology.
For Rpi there is an abundance of howto's and wiki's over many items; for Docker not so much.. so thats the cry for help at the end of my post because the video about node.js isnt helpfull to me at all..