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


Recommended Posts

Posted

Hi im pretty new to this. Im using HC2 and have sonos play1 and play5. I want to get started implementing sonos in my system. First i tried the plugin from fibaro but didnt work. Then i tried to download Sonos Remote 1.0.0.1 from krikoff

but had to wait to get autorized by that forum to download. So while waiting i keept reading and now im here. What do you guys say is this the best way of doing it (Buy Rpi, download this VD in the start of the thread and start struggeling)

or just try to add the command fibaro:sleep(for ever) in my head. 

 

/Daniel

 

  • Topic Author
  • Posted
    9 minutes ago, yabadaniel said:

    Hi im pretty new to this. Im using HC2 and have sonos play1 and play5. I want to get started implementing sonos in my system. First i tried the plugin from fibaro but didnt work. Then i tried to download Sonos Remote 1.0.0.1 from krikoff

    but had to wait to get autorized by that forum to download. So while waiting i keept reading and now im here. What do you guys say is this the best way of doing it (Buy Rpi, download this VD in the start of the thread and start struggeling)

    or just try to add the command fibaro:sleep(for ever) in my head. 

     

    /Daniel

     

     

    hi @yabadaniel

     

    Hi, welcome to this topic :-)

    .

    I'm biased but I'd say get the PI and follow this part of post 1

     

    Added Feb 5th

    The fastest way I found to get up and running on a PI if you're unsure and just want to try it (takes about 15 minutes)

     

    Use the sonos-api precompiled rpi image at 

    Please login or register to see this link.

     (apply to blank sd card)

    when you login over SSH (with something like putty) the password is root

    Map a network drive or Start Run to \\<IP of Pi>\flash

    click apps folder and you'll see the sonos-http-api folder

    Get an API from VoiceRSS and create a settings.json file (details in the post) and drop it into the sonos-http-api folder

    reboot and that's it - test through browser with something like http://<ip-of-Pi:5005/<playername>/Say/Hello

     

    If you want to upgrade to the latest api release

    Download the latest zip from 

    Please login or register to see this link.

     (green button on right)

    In the flash folder rename the sonos-http-api to -old

    Rename what you downloaded to to sonos-http-api

    Drop in your settings.json file

    SSH into the Pi - login = root

    cd /flash/apps

    cd sonos-http-api

    npm install --production

    when finished reboot

     

    ...after that download one of the many vd's shared and you should be up and running pretty fast

    if you get into trouble.. just yell and somebody will help

     

    -f

     

    Posted

    Thx Frank ill go bye a Rpi and try it out

    Posted

    Out of all the different ways to control Sonos...this is hands down the best I've come across. It's extremely versatile, has many features available and controllable and once you get your head around the commands, is actually very easy to set up and use.

    Posted

    I got it working yeahaaaaaaaa. Took me from morning to evening (not 15 min ha ha) but i have never done coding noor linux. This proof the guide works fine thx alot

    Frank and everybode else on this topic for the help. When i got it working it fellt better then when my first Kid was born has this gone to far ? ha ha

     

    Best regards Daniel

  • Topic Author
  • Posted
    16 minutes ago, yabadaniel said:

    I got it working yeahaaaaaaaa. Took me from morning to evening (not 15 min ha ha) but i have never done coding noor linux. This proof the guide works fine thx alot

    Frank and everybode else on this topic for the help. When i got it working it fellt better then when my first Kid was born has this gone to far ? ha ha

     

    Best regards Daniel

    Glad you got it working 

    @yabadaniel

    Posted

    It's a great guide.....you're a credit to the forum @AutoFrank :-)

  • Topic Author
  • Posted
    16 minutes ago, Desmo said:

    It's a great guide.....you're a credit to the forum @AutoFrank :-)

     

    @Desmo

     

    :oops:

  • Topic Author
  • Posted

    Hi users of the sonos-api

     

    an approach I use for morning music

    I use a preset to group some of the bedrooms together but at zero volume

     

    preset code here

    Please login or register to see this code.

    and I then use this code (its a vd button) to slowly raise the volume to a predefined lavel

     

    Please login or register to see this code.

    handy so you don't need to wake to full volume 

  • Topic Author
  • Posted

    Hi sonos-api users

     

    Sonos will play a chime if a radio station is not available

    I use the following code (vd button) to check if a radio station has come on a chime and if so it changes to a different station.

     

    Please login or register to see this code.

    This would be modified to check through a number of stations if the radio station were unreliable

    -f

     

  • Topic Author
  • Posted
    26 minutes ago, gobbli said:

    @AutoFrank thanks for sharing!

     

    @gobbli

    glad to help - do you have it up and running ?

    Posted

    @AutoFrank not at this time. I am not at home. Will try it at the weekend or so.

  • Topic Author
  • Posted
    2 minutes ago, Beijonig said:

    Response = sonos: GET ("/Bad/clip/192.168.2.115/music/TTS/showers.mp3/30");

     

    Hi @Beijonig

     

    The url you posted looks incorrect

     

    I've never used the clip but the advice from api developer is as follows...

     

    Please login or register to see this code.

    Try putting the full/absolute url of the mp3 (not a share mapped url that depends on you pc) in the filename position

    You could also try copying a clip to the static/clips folder on your pi and see if it works form there

     

     

     

     

  • Topic Author
  • Posted
    Just now, Beijonig said:

    @AutoFrank

    Please login or register to see this code.

     

    @Beijonig

    over network still might be possible

    Do you try and put the full url into the string

     

    something like

    Please login or register to see this code.

    I'll be home later and can try myself....

     

     

     

    Posted

    @AutoFrank

     

    Yes

    Please login or register to see this code.

     

    Please login or register to see this code.

    Beijonig

     

  • Topic Author
  • Posted

    @Beijonig

     

    will do 

     

     

    • 2 weeks later...
  • Topic Author
  • Posted

    Hi,

    Short script (VD Main Loop) that turns off Sonos music in playroom if TV is turned on.

    It actually ungroups' the playroom from the kitchen pauses it  because normally the kitchen and playroom are grouped to play the same music

     

    It utilises the LAN Monitor to know when the TV is on or off

    The reason it's in the main loop of a VD is because I had a VD already set up as a remote for the playroom to enable control of TV and Music and it was easy to add this in.

     

    VD Main Loop code

    Please login or register to see this code.

    and the remote for the playroom looks like

     

    Please login or register to see this attachment.

    Join the conversation

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

    Guest
    Reply to this topic...

    ×   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...