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 17
  • Thanks 2
Link to comment
Share on other sites

Recommended Posts

  • 0
5 hours ago, Krikroff said:

SONOS S1 Test Passed

SONOS S2 Software Version:58.1-77280 Test Passed

 

stay tuned for updates :)

Is your favorite playlist on the next update?

Link to comment
Share on other sites

  • 0
On 6/10/2020 at 3:24 AM, Krikroff said:

SONOS S1 Test Passed

SONOS S2 Software Version:58.1-77280 Test Passed

 

stay tuned for updates :)

"Tuning" in everyday looking for an update..:-)

Link to comment
Share on other sites

  • 0

Unfortunately for me it doesn't work. I haven't made any changes and some day it stopped working with my Sonos. I have correct IP and after pressing any button on QA I have 5 sec of nothing, than popup appears but without any changes on Sonos. Can you help me?

Link to comment
Share on other sites

  • 0
  • Inquirer
  • Go to un variable panel. Check your IP.

    To force QA to restart, delete port variable and save ;)

    • Thanks 1
    Link to comment
    Share on other sites

    • 0
    2 hours ago, Krikroff said:

    Go to un variable panel. Check your IP.

    To force QA to restart, delete port variable and save ;)

     

    Nope, didn't solved the problem. Also I have to say that I have the same problem in my office and at two clients houses..

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Hum strange...

     

    I can share with you the next version in preview for testing.

    Link to comment
    Share on other sites

    • 0

    Hi

    I try to decreae or increase the volume with this fibaro.call(ID_QUICKAPP, "setRelativeVolume", -5, "MASTER")

    but noting happend , what i do wrong?

    greetings Cor

    Link to comment
    Share on other sites

    • 0
    On 6/17/2020 at 5:39 PM, Krikroff said:

    Hum strange...

     

    I can share with you the next version in preview for testing.

     

    I have the exact same problem. I have, 4 sonos speakers as a surround system. A Beam, Sub and 2 x Gen5

    The settings of the variables are correct. I use the IP of the beam. After pressing one of the buttons it takes a few seconds before i see the green popup, but nothing happens.

    Also the TuneIn buttons are still empty. When in turn on the debug mode i see the right MAC-address, so there's a connection with Sonos.

    Edited by Firepeet
    Link to comment
    Share on other sites

    • 0

    Please login or register to see this code.

     

    Please login or register to see this image.

    /monthly_2020_07/grafik.png.316cbb8db9f980c64d5f9e842a9f4f3d.png" />

    Link to comment
    Share on other sites

    • 0

    May I asume you also filled in the port number 1400?

    Start Sonos with Sonos apl and see if you can stop, play or change volume?

    Succes,

    //Sjakie

    Link to comment
    Share on other sites

    • 0

    By any chance you use HC2 and tts?

    If not I am out off ideas.

    //Sjakie

    Link to comment
    Share on other sites

    • 0

    Hi guys,

    Does anyone already have a solution for the Sonos QA that doesn't work for me?

    All the settings are correct, but I still don't get a response.

     

     

    The standard HC3 plugin for Sonos works fine for me.

     

    HC3 5.031.33 

     

    Please login or register to see this attachment.

     

    Please login or register to see this image.

    /monthly_2020_07/image.png.0bf43f7fd8d4947df503bf2ac6b20749.png" />

    Link to comment
    Share on other sites

    • 0

    @Krikroff

    With HC2 my main use of the Sonos VD is producing Sonos sounds with mp3's for Alarm, Doorbell, etc. also with use of Sonos TTS VD.

    Is the momentary version of the HC3 Sonos QA (1.1.0 referred here as 1.1.1) already capable of playing mp3 sounds? I do not need real Test To Speak.

    Link to comment
    Share on other sites

    • 0

    @KrikroffHi ...

    OFFTOPIC

    I have more of an operational question on QA development for you.
    When you post a new version to the Marketplace, it will switch to "In Review" status. This time, until Fibaro checks the code, the QA application is actually unavailable to the public. It is so?

    Your answer may explain to some users why they may not be able to see the app in the Marketplace.
    I wanted to publish a QA, it has been revised, but I have only changed the graphics of the logo and now it is in "In Review" again .. Hmmm.
    Then the question is whether not to publish your QA through the finally working Download / QuickApps section

    Thanks, eM

     

    Link to comment
    Share on other sites

    • 0

    If anyone has problems with the volume control, here is my solution:

     

    fibaro.call(ID_QUICKAPP, "setVolume", 20, "MASTER") - it does not work (error)

    fibaro.call(ID_QUICKAPP, "setVolume", 20) - works well

     

    fibaro.call(ID_QUICKAPP, "setRelativeVolume", -5, "MASTER") - it does not work (error)

    fibaro.call(ID_QUICKAPP, "setRelativeVolume", -5) - works well

     

    Link to comment
    Share on other sites

    • 0

    Hi,

     

    How can I check if there is any music playing in a zone? Which function can I use for this?

     

    Thanks in advance!

     

    Greetings,

    Chiel

    Link to comment
    Share on other sites

    • 0
    On 7/17/2020 at 4:56 PM, Firepeet said:

    Hi guys,

    Does anyone already have a solution for the Sonos QA that doesn't work for me?

    All the settings are correct, but I still don't get a response.

     

     

    The standard HC3 plugin for Sonos works fine for me.

     

    HC3 5.031.33 

     

    Please login or register to see this attachment.

     

    Please login or register to see this link.

     

    I got the same issue, not working for me neither.

     

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