Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 0

Sonos remote music


Question

Posted

Hello,

 

I have a Sonos Play 5 2nd generation and a Fibaro HC2 with the latest version. I have installed a virtual device to control my Sonos speaker, all the controls are working except 1 type of button:/.

 

In the remote (read: virtual device) are at the bottom of buttons a row of 5 music buttons(see screenshot). These buttons should start my Sonos favorites, but there is no response when I click on on of these buttons. I Googled about this and it should work with my Sonos favorites but I don't have to link my Sonos account so how can the remote know what my favorites are?

 

See the screenshots below to see the remote and the LUA code that is attached to these buttons. You can download the Sonos Remote VD here: 

Please login or register to see this link.

 

Hope somebody can help me with this. I would like to connect my favorite radiostations to it and integrate it in a scene.:-D

 

Already many thanks!!!;D

 

Kind regards,

Kevin

Please login or register to see this attachment.

Please login or register to see this attachment.

10 answers to this question

Recommended Posts

  • 0
Posted

I use the sonos plugin on my hcl with 3 sonos zones and the play button has never worked. Everything else does once I initiate play from the sonos app itself. Not sure if this has any relevance to your issue but just putting it out there.

  • 0
Posted

 

sorry, I do not use this VD.

 

but I have another one (little bit patched my me)

can play any files from local net or play any internet radio stations

Please login or register to see this code.

 

  • 0
  • Inquirer
  • Posted (edited)
    1 hour ago, 10der said:

     

    sorry, I do not use this VD.

     

    but I have another one (little bit patched my me)

    can play any files from local net or play any internet radio stations

    Please login or register to see this code.

     

     

     

    @10der Thanks for you response. Sadly I'm not a developer and can't write/understand LUA code. 

     

    Can you export you device so I can import it to my HC2? And how can I configure what radiostation should be played by the Sonos on that specific button? Is it also possible to connect a Spotify playlist to a button, the Sonos speaker supports Spotify connect.

     

     

    Edited by kevin
    • 0
    Posted
    24 minutes ago, kevin said:

    Can you export you device so I can import it to my HC2? And how can I configure what radiostation should be played by the Sonos on that specific button? Is it also possible to connect a Spotify playlist to a button, the Sonos speaker supports Spotify connect.

      

    2

    1) do not overquote messages

    2) yes I can

    3) you can play any m3u or internet ant stream url radio links. I am not sure about Spotify 

    Please login or register to see this attachment.

    • 0
  • Inquirer
  • Posted

    @10der

     

    Maybe it's just me but how can I start a radiostation from this VD? Do I have to add a URL to the LUA code?

    • 0
    Posted
    2 minutes ago, kevin said:

    Maybe it's just me but how can I start a radiostation from this VD? Do I have to add a URL to the LUA code?

     

     

    Please login or register to see this code.

    • 0
    Posted

    how to I play an mp3 file from a local mac mini, with this code?

    • 0
    Posted
    8 minutes ago, samuel said:

    how to I play an mp3 file from a local mac mini, with this code?

    Please login or register to see this code.

     

    where 192.168.1.29 tour Mac Mini

    Multimedia - share in your Mac Mini accessible from Sonos

    • 0
  • Inquirer
  • Posted

    I can' get it working:-(

     

    Could you help me to write the code for the ♫ 1 button in my VD?:oops:

    The LUA code for the ♫ 1 button now is:

    -- PLAY RADIO STATION 1
    local id = fibaro:getSelfId();
    local v, s = "SonosLastCmdEetkam", "Play radio station 1 was sent";
    local cmd = tostring(fibaro:getGlobalValue(v).."RST1 ");
    fibaro:setGlobal(v, cmd);
    fibaro:log(s);
    fibaro:call(id, "setProperty", "ui.lblDebug.value", s);

     

    The radiostation I want to use has the following link: 

    Please login or register to see this link.

     

    If I have one correct LUA code I can paste it in my HC2 and the other buttons is copy paste and change it a little. I have added my VD to this comment.

     

    Many thanks!!:-D

    Please login or register to see this attachment.

    • 0
    Posted

    @10der

    Hello,
    If I understand correctly in one of your messages, you are a developer, so I allow myself to send you this message in order to know your hourly rate for a possible collaboration of parameterization HC2
    and other devices.
    Looking forward to reading you
    cordially
    Franck

    email: [email protected]
    email: [email protected]

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Answer this question...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    ×
    ×
    • Create New...