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 calling a Scene?


Question

Posted

Hi,

I have a QA with infrared commands to turn on (ON) and turn off (OFF) a sound amplifier.... I need, when pressing the "ON" button, that in addition to sending the IR code, it also triggers a Scene, that is possible? Could someone please guide me better how to do it?

Thanks,

5 answers to this question

Recommended Posts

  • 0
Posted

Just run the scene you need

fibaro.scene("execute", {<scendID>})

 

  • 0
  • Inquirer
  • Posted

    cag014@,

    thank you very much for your attention, I got what I needed, very grateful.

    • 0
    Posted
    On 06/02/2022 at 00:37, cag014 said:

    Basta executar a cena que você precisa

    fibar . cena ( "executar" , { <scendID> } )

     

     

    how to trigger two scenes on the same button, and how to trigger another button? Would you help me?

    • 0
    Posted
    On 2/10/2022 at 10:45 PM, Mucedola.fabio said:

     

    how to trigger two scenes on the same button, and how to trigger another button? Would you help me?

    You can trigger many scenes in one command:

     

    fibaro.scene("execute", {<scendID>, <sceneID2>})

    For each button in QA you can define function, so in the function call the scenes

    For example 

    Please login or register to see this spoiler.

    • 0
    Posted

    imo this couples your QA and scene too much. Wouldn't it be better to to raise an event from QA and use it as a trigger for scene? Then you do not need hardcoded scene IDs and change QA code when more scenes are created.

    • Like 2

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