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

Guest Eldar
Posted
4 minutes ago, AutoFrank said:

 

@Eldar

 excellent - is it having the effect you thought ?

I never tried it but it sounds like a nice idea

I could use a fade down followed by a pause all as part of my leaving home scene

 

I think it is quiet cool. If I turn on the TV my speakers in the livingroom are fading out now :) 

  • Topic Author
  • Posted
    Just now, Eldar said:

     

    I think it is quiet cool. If I turn on the TV my speakers in the livingroom are fading out now :) 

     

    Thats cool, :-)

    I do that  for the kids playroom, I must add the fade, great idea

    thanks for sharing ...

     

    -f

     

     

     

    Guest Eldar
    Posted
    2 minutes ago, AutoFrank said:

     

    Thats cool, :-)

    I do that  for the kids playroom, I must add the fade, great idea

    thanks for sharing ...

     

    -f

     

     

     

     

    Thank you, because you made it ;) 

    Posted

    Guys have any of you had issues with the shuffle command in the api?

     

    I have tested with the url and even though it reports success my playlist doesn't switch into shuffle see below images.

     

    Please login or register to see this attachment.

    Please login or register to see this attachment.

  • Topic Author
  • Posted
    5 minutes ago, Robert Folbigg said:

    Guys have any of you had issues with the shuffle command in the api?

     

    I have tested with the url and even though it reports success my playlist doesn't switch into shuffle see below images.

     

    Please login or register to see this attachment.

    Please login or register to see this attachment.

     

     

    Hi @Robert Folbigg

     

    I have never used it but I checked the Git reference for the API 

    The api author said it should be implemented as follows..

     

    You need to specify /on or /off like this: /roomname/shuffle/on

     

    Is this the way you are invoking it or could you give this approach a go

     

    _f

     

     

     

     

    Posted

    @AutoFrank

    Quote

    Hi @Robert Folbigg

     

    I have never used it but I checked the Git reference for the API 

    The api author said it should be implemented as follows..

     

    You need to specify /on or /off like this: /roomname/shuffle/on

     

    Is this the way you are invoking it or could you give this approach a go

     

    That worked.. I was using "/roomname/shuffle" without the on / off toggle

     

    Thanks again!

  • Topic Author
  • Posted
    Just now, Robert Folbigg said:

    @AutoFrank

     

    That worked.. I was using "/roomname/shuffle" without the on / off toggle

     

    Thanks again!

     

    Glad it worked out  @Robert Folbigg

    • 3 weeks later...
  • Topic Author
  • Posted
    On 2/6/2017 at 6:32 PM, jimicr said:

    I edited the VD to have a volume slider and maybe when everything works

     

    Hi @jimicr

     

    Could you share your code for a slider ?

     

    Thanks

    _f

    Posted
    1 minute ago, AutoFrank said:

     

    Hi @jimicr

     

    Could you share your code for a slider ?

     

    Thanks

    _f

    Sure, no problem:

    Please login or register to see this code.

     

  • Topic Author
  • Posted
    27 minutes ago, jimicr said:

    Sure, no problem:

    Please login or register to see this code.

     

     

    Thanks @jimicr

    I'm making a VD that I can use with the echo dot

    Posted

    Nice, I might get one one day so please share the code :)

     

    P.s I made a VD for my Harmony remote a long time ago. 

    In that VD I use a slider to set a slider on an other VD, that of my Onkyo receiver. So when I want to use the Harmony VD to change to an other input I can adjust the volume from the same VD.

    In the future I plan to make it so that when my Sonos is selected the slider adjust the one from the Sonos VD. I think I can make it with a simple - if then - using the globals.

    But to bad I am quite busy this week so it's one of those future projects :/

    Please login or register to see this code.

    And use the slider in the Onkyo VD to set the correct value on this one so you don't have one on e.g. 40 and the other on 12.

     

    Jim

  • Topic Author
  • Posted
    34 minutes ago, jimicr said:

    Nice, I might get one one day so please share the code :)

     

    P.s I made a VD for my Harmony remote a long time ago. 

    In that VD I use a slider to set a slider on an other VD, that of my Onkyo receiver. So when I want to use the Harmony VD to change to an other input I can adjust the volume from the same VD.

    In the future I plan to make it so that when my Sonos is selected the slider adjust the one from the Sonos VD. I think I can make it with a simple - if then - using the globals.

    But to bad I am quite busy this week so it's one of those future projects :/

    Please login or register to see this code.

    And use the slider in the Onkyo VD to set the correct value on this one so you don't have one on e.g. 40 and the other on 12.

     

    Jim

    Thanks @jimicr

     

    • 1 month later...
    Posted

    Good day @AutoFrank,

     

    I just had a great deal, 2 Play 1's for €395. 

     

    So I added them to the API, and found one small thing missing in your tutorial: after adding new speakers to the system you'll need to restart the API ( or as I did it, reboot the good old PI :) ) any way thanks again for this great tutorial.

    If you hadn't wrote it I would have never bought more than 1 player!

     

    Jim

     

    Posted
    On 12-3-2017 at 1:14 PM, AutoFrank said:

    { "players": [ { "roomName": "Bed_MasterL", "volume": 0 }, { "roomName": "Landing", "volume": 0 }, { "roomName": "Bed_LE", "volume": 0 }, { "roomName": "Bed_Frank", "volume": 0 } ], "playMode": { "shuffle": false, "repeat": "all", "crossfade": false }, "pauseOthers": false, "favorite": "96FM" }

    Hey all,

     

    Has anyone figured out how to play a mp3 from the clip folder or have the Sonoses say something?

     

    Jim

  • Topic Author
  • Posted
    13 minutes ago, jimicr said:

    Has anyone figured out how to play a mp3 from the clip folder or have the Sonoses say something?

     

    Hi @jimicr

    The clip has to me in the raspberry pi folder and it can be invoked by 

     

    Please login or register to see this code.

    .. from 

    Please login or register to see this link.

     

     

    Just now, AutoFrank said:

    have the Sonoses say something?

     

    Is this for TTS ?

    Posted
    On 12-3-2017 at 1:14 PM, AutoFrank said:

    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

    Sorry @AutoFrank, I now see the quote got messed a bit. 

     

    I ment is it possible in a presets file? play an MP3 or say something using the TTS

     

    Jim

  • Topic Author
  • Posted

    Hi @jimicr

     

    The presets appear to be limited to playing favorites

    Here is the documentation on presets

     

    Please login or register to see this code.

     

    .. but you could invoke a preset and then invoke a mp3 clip or other source in the one call

     

    I do something like it here ...

     

    Please login or register to see this code.

    does this help ?

     

     

     

    Posted

    Thanks will have a go at it tomorrow. 

    Learning now I got 3 Sonoses in the house how make them play nice with each other

     

    Jim

    Posted

    After some trial and error, I managed to play a .mp3 on 2 speakers of the 3 simultaneity:

     

    Please login or register to see this code.

    Next test TTS, will update afterwards 

  • Topic Author
  • Posted

    Hi @jimicr

     

    Here's on for your players if you don't have something like it already

     

    import the vd below, add your players to the main loop table

    name the labels accordingly 

     

    Create one variable called SonosTable

    and use this scene to populate it at the start (adjust names to suit player names)

    Try not having an underscore in the player name as VD labels don't seem to like them for some reason

    Please login or register to see this code.

    The SonosTable will track status and it has other variables like volume and favorite, etc which may prove useful in the future

    You could also trigger other events off the sonos state changes such as tv on/off

     

    I did publish this VD a good while back but the user had to create a block of code for each player which was not ideal

     

    ...end result is a status of all you players in one place :-)

     

    _f

    Please login or register to see this attachment.

     

    sonos2.PNG.e81f614fb185b156d11c942301d65284.PNG

     

     

     

     

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