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

Doubt about QuickApps


Vicent13

Question

Hey there,

 

I am investing my time here trying to make my home work properly :)

 

I want to create a QuickApp that can "read" a sensor from my home (e.g. door sensor, switch) and, then, go and make something else.

 

In general, I want to create a QuickApp that that, once I push its button, it can turn on a device/scene and, at the same time, being able to adapt than virtual button to a real sensor.

 

For example: imagine a fibaro switch. I would like to be able to:

- Once it its phisicallly turned on I got a notification and it turns off a light and turns on another one

- If I push the virtual button, I have the same result as above.

 

Any ideas?

Thanks!

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

Create a scene for this. You can automatically trigger the scene and also run it manual from the Yubii app.

Link to comment
Share on other sites

  • 0
  • Inquirer
  • 29 minutes ago, Joep said:

    Create a scene for this. You can automatically trigger the scene and also run it manual from the Yubii app.


    thanks. I know I can do this, but i am trying to play with the virtual device since I want to make an advanced implementation with Alexa.

    Link to comment
    Share on other sites

    • 0

    As you can’t use triggers in a QA (they are not made for it) I would program the QA that it works as you want with the button you create.

     

    Then create a scene that triggers on the wall switch and activates the function (your button handler function) in your QA.

     

    For example: hub.call(qaId, “ButtonPressed”, “”)

     

     

     

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • 4 hours ago, Joep said:

    As you can’t use triggers in a QA (they are not made for it) I would program the QA that it works as you want with the button you create.

     

    Then create a scene that triggers on the wall switch and activates the function (your button handler function) in your QA.

     

    For example: hub.call(qaId, “ButtonPressed”, “”)

     

     

     


    thanks. But how do i made the “Connection” between an ID and the button created in the QA?

    Link to comment
    Share on other sites

    • 0

    The button triggers a function, if you edit the GUI select the button and look which function it starts:

     

    Please login or register to see this image.

    /monthly_2023_08/image.png.ccc0d3fbfbdad2830f6dbf42fad11771.png" />

     

    Then look in the code for the function:

    image.png.e3baf6dcc1f39a9b81312fce7d3d2e5f.png

     

    In your scene the blue arrow is the function name and the red arrow is the parameter you pass to the function (if you don't use that, use a blank string):

     

    Please login or register to see this code.

     

    The qaId in the scene code is the id of your QA.

     

    I short; if you press the button in a QA you start a function (see above), to "press the button" from a scene, you just start that function with the code I shown you. So you don't press the button, but start the same function.

    Edited by Joep
    better explanation
    • Thanks 1
    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Posted (edited)
    4 hours ago, Joep said:

    The button triggers a function, if you edit the GUI select the button and look which function it starts:

     

    Please login or register to see this link.

     

    Then look in the code for the function:

    Please login or register to see this link.

     

    In your scene the blue arrow is the function name and the red arrow is the parameter you pass to the function (if you don't use that, use a blank string):

     

    Please login or register to see this code.

     

    The qaId in the scene code is the id of your QA.

     

    I short; if you press the button in a QA you start a function (see above), to "press the button" from a scene, you just start that function with the code I shown you. So you don't press the button, but start the same function.


    thanks, mate. Thanks to you, I am now able to make a button made the exact same thing as one of my devices :)

     

    Is it any way that, once of my door sensors (or motion) is activated, it actuates with the virtual device I have just created? Thanks again.

     

    Edited by Vicent13
    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...