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

Quick App - Sonos Zone Controller


Krikroff

Question

Current version: 1.4.0
Date: 15/03/2021

 

Please login or register to see this image.

/monthly_2020_10/Preview_1.3.1.PNG.07af3ad8f4e892c6f2a00a8452a48bde.PNG" />

 

FUNCTIONS


The functions of this Quick App are:

Allowing to control Sonos Player from Home Center 3. It does support basic and advanced functions:

 

  • Basic Transport Control
    • Initiate playback
    • Toogle, Pause or Stop playback
    • Skip to the previous or Next track
  • Basic Rendering Control
    • Get player volume and mute state
    • Set player volume to a specific level and unmute the player if muted
    • Increase or decrease player volume
    • Get or Set or Toggle player mute state (Mute or unmute the player)
    • Get or Set or Toggle player loudness state
  •  Device Properties
    • Get or Set group LED state
  • Restart the QA Device
  • Enable Debug Mode

 

See Changelog / Manual for basic and advanced available actions

 

Examples:

  • Set player volume to a specific level and unmute the player if muted.
    fibaro.call(ID_QUICKAPP, "setVolume", 10, "Master")
  • Increase or decrease player volume.
    fibaro.call(ID_QUICKAPP, "setRelativeVolume", -5, "Master")
  • Initiate playback.
    fibaro.call(ID_QUICKAPP, "play")
  • Play a file at volume 10 with snapshot/revert process to restore previous state
    fibaro.call(ID_QUICKAPP, "playFile", "35HTGV34R7S/CD/Album/song.flac", true, 10)
  • Play a stream at volume 20 & 8s duration with snapshot/revert process to restore previous state
    fibaro.call(ID_QUICKAPP, "playStream", "https://s3.amazonaws.com/smartapp-media/sonos/bell1.mp3", true, 20, 8000)

 

Version 1.4.0

Tested with Sonos Sonos OS: S2 - Version 13 (number 62186220)
Tested with HC3 & HC3Lite v5.050.13 -> v5.063.30

  • Fix for Sonos firmware version 13
  • Fix for Sonos ARC getPositionInfo and malformed xmlsoap (hope full supoport soon)
  • Add playNextRadio command to navigate the radios
  • Add play mode control from QA button (loop in NORMAL,REPEAT_ALL,REPEAT_ONE,SHUFFLE_NOREPEAT,SHUFFLE,SHUFFLE_REPEAT_ONE)
  • Fix Radio metadata strange behaviors in some situations

 

 


 

Version 1.3.8

Tested with Sonos Sonos OS: S2 - Version 12.2.2 (number 61183220)

 

  • Improved support for albumArt, now work with Sonos Radio, Amazon Music, Spotify, TuneIn, Music library
  • Add option 'protect' to playFile and playStream for disallow to restart a playing
  • Add Crossfade mode support with getCrossfadeMode, setCrossfadeMode and toggleCrossfadeMode commands
  • Add sleepTimer command
  • Add setPlayMode command, support: NORMAL,REPEAT_ALL,REPEAT_ONE,SHUFFLE_NOREPEAT,SHUFFLE,SHUFFLE_REPEAT_ONE
  • Add selectLineIn command
  • Add in variables panel, "notification" variable to enable or disable the "Device notification error", if disabled QA trace the message in QA console only
  • Various improvement

 

Version 1.3.1 RC

Tested with Sonos Software Version: 56.0-76060 / Sonos OS: S2 - Version 12.0.5 & 12.1

 

  • Add support to use in block scenes (Play, Pause, Stop, Next, Prev, Set Volume, Set mute) 
  • Support for album covers when available (cf. music library)
  • Performance improvement when initiating a playback
  • Improved radio playback and track information
  • Increase the number of supported radio stations (with auto configuration up to 9)
  • Support for Sonos playlists (with auto configuration up to 6 saved queues)
  • Add playFile command
  • Add playStream command
  • Add playSavedQueue command
  • Add startQueue command
  • Add clearQueue command
  • Add seek command
  • Add snapshot command
  • Add revert command
  • Add getListSavedQueues command
  • Add addURIToQueue command
  • Add checkForUpdate command
  • Add getTreble and setTreble commands
  • Add getBass and setBass commands
  • Various Bug fixes (Polling when not configured, parsing ...)

 

Version 1.1.1

  • Support for TuneIn "My radio stations" (with auto configuration up to 6 radios)
  • Deletion of the variable variable "isConfigured" used by internal FTI Configuration
  • Minor bug fixes (No route to host cause wrong configuration status)
  • Tested with Sonos Software Version:55.1-74250 and 56.0-76060
  • Performance improvement

 

Version 1.0.3

  • Fix a problem with internal zoneGroups and ZoneGroupMembers parsing (Thanks to jgab, Alan Klepacz and robw)

 

Version 1.0.2

  • Minor bug fixes (Thanks to Macschimmi, Bodyart, minsad79) 

 

Version 1.0.0

  • Based on my HC2 virtual Device and completely rewriten for HC3 v5.030.45 or highter
  • Very low latency and more robust device (commands execution, processing)
  • Easy installation with auto configuration assist
  • Support standard capabilities (AVTransport, RenderingControl)
  • Displaying information on the currently playing or media loaded
  • Fully controllable from the LUA scenarios (see available command list)

 

 

You can download it from the Fibaro market: 

Please login or register to see this link.

 

 hope you will be pleased with it

 

 

ROADMAP

  • Support for multi-devices in group used for triggering in scene and prepare for group-ungroup
  • Support for TV source (if supporteed by device)
  • Support for Group
  • Support for TTS
Edited by Krikroff
Version 1.4.0
  • Like 16
  • Thanks 2
Link to comment
Share on other sites

Recommended Posts

  • 0
2 hours ago, Krikroff said:

Hi guys, new version 1.4.0 under review on the

Please login or register to see this link.

 

Hi @Krikroff,

 

You might as well publish it here. I have upgraded my COVID-19 Stats VD on 9th March and after a week time it still waiting for approval. :-(

 

Link to comment
Share on other sites

  • 0

Hello together,

 

I have a short question. Can I update the Sonos system to the S2 controller software? Is the function of your VD's / QA's ok and lua code also executable? I haven't dared to do an update until today.

 

@Sankotronic works UHAS with sonos after the S2 update?

 

 

 

 

Link to comment
Share on other sites

  • 0
  • Inquirer
  • The QA Sonos Zone Controller is fully compatible with S1 & S2 but I recommend to check if all your Sonos devices are compatible before upgrade ?

     

    @A.Socha is it possible to accelerate the review process ? The last version fix Sonos V13 strange behaviors.

     

    Best regards.

    • Like 1
    • Thanks 1
    Link to comment
    Share on other sites

    • 0
    3 hours ago, FunkFib said:

    @Sankotronic works UHAS with sonos after the S2 update?

     

    Hi @FunkFib,

     

    I have updated all my Sonos speakers to S2 v13 and for now I didn't notice any problems with either @Krikroff Sonos Remote VD v1.0.1 RC that is also modified to UHAS compatible Sonos Remote VD v1.3.1 and Sonos API Player VD v1.2 that uses jishi node-sonos-http-api installed on my Raspberry PI.

     

    What is tested every day on this VD's is change volume, play, pause, stop, mute/unmute, play favorite station and TTS. Additionally on Sonos API player VD join and leave group, play favorite playlist.

     

     

    • Thanks 1
    Link to comment
    Share on other sites

    • 0

    Ok thank you both for the information.

     

    I have an old sonos connect -  I will split them from the other system. But I didn't use them as a smart home speaker. Important for me is that the other sonos components will work with UHAS and for audio from HC2.

     

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Hi, new version now available on 

    Please login or register to see this link.

     

    Version 1.4.0

    Tested with Sonos Sonos OS: S2 - Version 13 (number 62186220)
    Tested with HC3 & HC3Lite v5.050.13 -> v5.063.30

    • Fix for Sonos firmware version 13
    • Fix for Sonos ARC getPositionInfo and malformed xmlsoap (hope full supoport soon)
    • Add playNextRadio command to navigate the radios
    • Add play mode control from QA button (loop in NORMAL,REPEAT_ALL,REPEAT_ONE,SHUFFLE_NOREPEAT,SHUFFLE,SHUFFLE_REPEAT_ONE)
    • Fix Radio metadata strange behaviors in some situations

     

    Best regards

    • Like 1
    • Thanks 1
    Link to comment
    Share on other sites

    • 0

    @KrikroffWhat is the best method to update the Sonos QA? Without getting new QA ID...

     

    Thank you in advance!

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • When no change on UI you should update (ctrl-c / ctrl-v) only the files in QA.

     

    i asked Fibaro sort of functionality but think it’s not the priority.

    Link to comment
    Share on other sites

    • 0
    16 hours ago, Krikroff said:

    Hi, new version now available on 

    Please login or register to see this link.

     

    Version 1.4.0

    Tested with Sonos Sonos OS: S2 - Version 13 (number 62186220)
    Tested with HC3 & HC3Lite v5.050.13 -> v5.063.30

    • Fix for Sonos firmware version 13
    • Fix for Sonos ARC getPositionInfo and malformed xmlsoap (hope full supoport soon)
    • Add playNextRadio command to navigate the radios
    • Add play mode control from QA button (loop in NORMAL,REPEAT_ALL,REPEAT_ONE,SHUFFLE_NOREPEAT,SHUFFLE,SHUFFLE_REPEAT_ONE)
    • Fix Radio metadata strange behaviors in some situations

     

    Best regards

    Amazing work @Krikroff

    Where do I buy you coffee?

    Thank you for remembering playNextRadio - thats highly appreciated.

    I got two feature requests, ideas you can consider.

    1. Create automatic update of the QA - like @jgab and others do, eg Eventrunner4. Så I dont need to reinstall 7-8 QA, and afterwards change Keymapping to new QA´s
    2. Use one Master QA with Childs for each SONOS speakers - should give more simple end user configuration whe having several SONOS. Not my idea, i heard that one from @[email protected] 
    • Like 1
    Link to comment
    Share on other sites

    • 0

    Hi @Krikroff

     

    Lately I have following problem with Sonos ZC Player v1.3.8 and v1.4.0:

    Please login or register to see this spoiler.

     

    Zone is shown as table and only some of the commands are working. This is case only with speakers that are part of the group. If I disconnect speaker from the group then zone is shown correctly and QA is working properly.

     

     

     

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Please check your Sonos firmware version.

    Link to comment
    Share on other sites

    • 0

    @Krikroff - great work here.

    if I only have 2 speaker.. no controller per se.. 

    how do I add multiple speakers (if possible)?

    And how do I get the state of a speaker..

     

    I tried 

    fibaro.call(289"getZPstatus")
    but I don't get anything back.
    Link to comment
    Share on other sites

    • 0
    On 3/24/2021 at 8:44 PM, Krikroff said:

    Please check your Sonos firmware version.

     

    Hi @Krikroff,

     

    Everything is updated to the latest version. Sonos Play 1, Sonos Play 3 and Sonos One on S2 v13.0 (build 62186220)

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • @Sankotronic i'll try to reproduce asap with my setup ;)

     

    On 3/28/2021 at 1:58 PM, Symbiot78 said:

    @Krikroff - great work here.

    if I only have 2 speaker.. no controller per se.. 

    how do I add multiple speakers (if possible)?

    And how do I get the state of a speaker..

     

    I tried 

    fibaro.call(289"getZPstatus")
    but I don't get anything back.

     

    @Symbiot78 if i understand your 2 speaker are not linked as stereo pair in the same zone, think the best option for you is to add two QA. 1 Zone = 1 QA

    Natively a fibaro.call can't return values (Hope Fibaro provides a real solution to handle this need)

    Link to comment
    Share on other sites

    • 0

    Hello,

     

    could some one tell me how i get my 2 sonos one in 1 group

     

    because when i'll play a radiostation in one scene with my 2 QA,

    i get delay in my music

     

    Eetkamer plays correctly and Keuken plays on delay.

     

    Link to comment
    Share on other sites

    • 0

    Am I the only one who can't get this QA working?
    Everything is up to date, and I have already from the start problems controlling my Sonos with this QA .

     

    Please login or register to see this attachment.

    Please login or register to see this attachment.

     

    There's a connection with my Sonos room, because the room name is visible, but all the buttons are not working.

    The standard Sonos controller from Fibaro works great, and the QA of Sonos Player also works well.

     

    Please can someone help me?

     

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Hello @Firepeet, which version you use ? Can you share with your Sonos model and version ?

    Change debug variable to true can help to debug

    Link to comment
    Share on other sites

    • 0

    I have a strange problem with QA. I added the device, apart from the IP address in the variables, I did not change anything, I can see the status of the speaker - Sonos Move - but I can not do anything - stop, play, turn up or down. I also added radio stations and playlists, but I do not see them on QA. I will add that the default plugin works without a problem.

     

    Please help.

     

    Please login or register to see this image.

    /monthly_2021_06/obraz.png.9368524183e41273fabf13cedbb034b5.png" />

     

    Please login or register to see this attachment.

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Hello, please check debug messages in console

    Link to comment
    Share on other sites

    • 0
    W dniu 24.06.2021 o 20:02, Krikroff napisał:

    Hello, please check debug messages in console

     

    Debug messages in the attachment. I did not notice any errors.

     

    Greetings

    Please login or register to see this attachment.

    Link to comment
    Share on other sites

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