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

Turn on Sonos when lights are on


Question

Posted

Hi.

 

I want to turn on a Sonos speaker when the lights in the room are on. On my previous HC2, it was easy by using Lua. With the HCL, I have to use the Sonos plugin, but when adding a scene, it does not appear under virtual devices. Any tips?

7 answers to this question

Recommended Posts

  • 0
Posted

Hi,

 

Plugin cant be used in scenes or Virtual devices. They are stand-alone.

 

You better use a sonos virtual device like Krikrofs Sonos Beta for this purpose.

  • 0
Posted

You could also see if the sonos-http-api may help. Its an API that is installed on something like an RaspberryPi and gives you http control of most features

more details here - 

Please login or register to see this link.

  • 0
  • Inquirer
  • Posted

    Can the HCL make HTTP requests?

    • 0
    Posted
    10 minutes ago, eg1l said:

    Can the HCL make HTTP requests?

     

    that's the point, it's not clear the answer.

    For sure you cannot write a string with the http request bu you can compose the request in a VD string.

    The problem is that it works in some cases but it does not in others, and I cannot understand why and what the difference is.

    About strings in HCL VD forget about finding documentation around.

    • 0
    Posted (edited)

    you can make VD sending commands to plugin UI -> attached example for play and pause button, plugin is the original Fibaro Sonons Plugin (we developed better Sonons plugin which support extra functions, but let stay on what standard)

     

    Having VD, you can create block scenes pushing the VD

     

    Please login or register to see this attachment.

     

    The setup is easy, enter the 127.0.0.1 as IP and 11111 as port, change ONLY the the deviceID (in my example 823) by the ID of your Sonos Plugin, and (if necessary) change the YWRtaW46YWRtaW4= (which is base64 encoded admin:admin)

     

    In generally one can use HTTP to call plugin UI or functions (api/plugins/callUIEvent or /api/plugins/callFunction), even on HCL

     

    Please login or register to see this attachment.

    Edited by tinman
    • 0
    Posted
    On 10/19/2016 at 11:49 PM, tinman said:

    In generally one can use HTTP to call plugin UI or functions (api/plugins/callUIEvent or /api/plugins/callFunction), even on HCL

    Hi

    I used your virtual device to call the Sonos Plugin on my HCL and it works just fine, thank you very much ! I have an additionnal question, can I add a button to set the volume to a specific value in my scenes ? I tried a few things but it didn't work :)

    • 0
    Posted

    Hi!

    Need help to create a VD but to trigger plugin wake on lan, i use HCL its possible?

    thanks

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