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

LUA script for Sonos


Question

Posted (edited)

Hello everybody,

 

I climbed from HC 2 to HC 3. Actually I thought it would be possible to trace all the scenes. Unfortunately, Fibaro has adapted the LUA Editor. Since then I have tried unsuccessfully to put the IFTTT webhook trigger that I had set up for Sonso back on the Fibaro keyfob. Can anyone help me what exactly I have to enter for a LUA code on the "Action" page ????

 

Hitman_85

 

 

Edited by Hitman_85
fehler

Recommended Posts

  • 0
Posted (edited)
3 hours ago, Hitman_85 said:

No, the scene is on manual. Would this be wrong?

On manual the scene doesn't triggered....

3 hours ago, Hitman_85 said:

I also just tried it on automatic. With the X on the keyfob, the music starts again at the beginning of the playlist, although it should actually stop.

is X button on key-fob is key=4? If so according to your scene it should start play.

Please login or register to see this spoiler.

Currently sourceTrigger not supported, so you need to create scene for every action (like pause, forward etc..), or to wait for next release (recommended)

Edited by cag014
  • 0
  • Inquirer
  • Posted

    No, the X key is on the 3rd, which is what I specified in the scene. A control also works, but the music is not stopped.

    • 0
    Posted (edited)
    6 minutes ago, Hitman_85 said:

    No, the X key is on the 3rd, which is what I specified in the scene. A control also works, but the music is not stopped.

    In scene "Actions" you're sending play command, so it should start to play.

    To pause/stop the music please replace

    fibaro.call(50,"play")

    by

    fibaro.call(50,"pause") or fibaro.call(50,"stop")

     

    Edited by cag014
    • 0
  • Inquirer
  • Posted

    I've already done that. When I play the scene there it works without problems. Just don't stop with the keyfob.

     

    Please login or register to see this image.

    /monthly_2020_02/808189086_2020-02-2411_46_09-Window.jpg.3c5a2e0a91c42672c538cba2b7911b59.jpg" />

    • 0
    Posted

    Did you set the scene to "Auto" ?

     

       
       
       
     

     

     

    • 0
  • Inquirer
  • Posted
    3 hours ago, cag014 said:

    Did you set the scene to "Auto" ?

     

       
       
       
     

     

     

    yes, I did....

    • 0
    Posted

    Maybe you will be interested in this: 

    Please login or register to see this link.

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