Hi, i have recorded several files that i want my sonos system to play from my synology NAS.
But how do i make the sonos play them?
I want to play them in a PLEG condition or a scene?
Hi, i have recorded several files that i want my sonos system to play from my synology NAS.
But how do i make the sonos play them?
I want to play them in a PLEG condition or a scene?
Hi
i just use a scene and entered the following code in the LUA section:
luup.call_action(“urn:micasaverde-com:serviceId:Sonos1”, “Alert”, {URI=“x-file-cifs://192.168.x.x/music/deurbel.mp3”, Volume=90, Duration=5, GroupDevices=“”},AV_Device)
AV_Device should be the number of your sonos device and you enter to enter the correct IP adress offcourse for your NAS.
this will work
you have to ensure that your Vera is granted access in the NAS, i.e. to set the proper access right level for the root or specific folders where you store the mp3 file.
if you want to be even more advanced you can first mute the sonos, then play the above and than unmote again. this could be handy if you want to play a message or file and you have already some music on via the sonos. it will then silence the sonos and play your file and then put the music back on
i have some code for this if you want i can also copy this here on the forum
if you want to be even more advanced you can first mute the sonos, then play the above and than unmote again. this could be handy if you want to play a message or file and you have already some music on via the sonos. it will then silence the sonos and play your file and then put the music back oni have some code for this if you want i can also copy this here on the forum
Yes please!! .
Dank je wel,
Cor
you have to ensure that your Vera is granted access in the NAS, i.e. to set the proper access right level for the root or specific folders where you store the mp3 file.How do I make sure Vera has the right access??
i have some code for this if you want i can also copy this here on the forum
Yes, please do
hello
the code to mute the sonos before playinf your file is:
luup.call_action(“urn:upnp-org:serviceId:RenderingControl”, “SetMute”, { DesiredMute=“-1” }, AV_DEV)
unmuting after playing the file is:
luup.call_action(“urn:upnp-org:serviceId:RenderingControl”, “SetMute”, { DesiredMute=“0” }, AV_DEV)
it works perfectly in my case
about the NAS: it depends offcourse on your NAS but there are two ways:
put the files on your NAS into a folder where guests have read access, so no username or password is required. you have to configure this in your NAS control panel, it is not related to VERA, just make a folder where you put the files and grant everybody access. this folder should show up in the LUA code that i posted before.
if you already have username and password protection on your nas then VERA needs to submit this info to the NAS in order to access the files. i am not a lua or linux expert and i do not know how to do this, but i trust it will be possible
i took the easy way and just made one folder on my nas where i store the files that i play to the sonos via the VERA (option 1). that folder has no access right restrictions
i hope this helps, if not let me know and maybe we can work it out together
I have a synology nas. Any hint on how to do the first option?
Hi
i also have a synology so i could help but i hope you have already some basic knowledge how to operate the NAS
as you can see from the code (URI="x-file-cifs://192.168.x.x/music/deurbel.mp3) i have put my file in the standard music folder that you should have on your NAS.
if you enabled mediastation than this should be there.
via the configuration panel you go to shared folder. select the music folder, select edit from the menu.
then choose permissions (not sure if it is like that because i have a dutch interface, as you can see in the picture below)
select quest read access for the music folder.
thats all, but you can offcourse make any folder you want, and use the above to set the permissions right
Best Home Automation shopping experience. Shop at Ezlo!
© 2024 Ezlo Innovation, All Rights Reserved. Terms of Use | Privacy Policy | Forum Rules