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


Recommended Posts

Posted

How to turn off a QuickApp for a while?
Activating Disable does not work, the QuickApp continues to run.

 

 

Please login or register to see this attachment.

Posted

I dont think it can be done.

Set your code between --[[   --]] and let it run so you keep your device number.

If thats not important than save as .fqa and delete

//Sjakie

  • Topic Author
  • Posted

    Yes, it can be done in that way, but it must also be possible to disable a QA.
    Suppose I have a Profile that I call Winter.
    There I want to deactivate all QuickApp's that regulate irrigation in greenhouses durung the winter.
    It is also not possible to do, the QuickApp's continues to run even if they are turned off in the Winter Profile.

    One might really wonder if Fibaro is checking its own software or if they are waiting for us users to report all the bugs?

     

     

    Please login or register to see this attachment.

    Posted (edited)

    This checkbox has not other effect than modifying the "enable" field in the device's API.

     

    You have to write your own LUA code to take this value into consideration.

     

    Here is an example I use at the beginning in the onInit() function of my QAs :

    Please login or register to see this code.

     

    Edited by lazer
    • Thanks 1
  • Topic Author
  • Posted

    Thanks @lazer, it worked perfectly!
    But is this how Fibaro has intended it to work ???
    It is so illogical that an extra code is needed to turn off a QA as you have already turned it off in the interface!
    But that's probably how they think within Fibaro's walls!!!

    Posted
    48 minutes ago, RH_Dreambox said:

    But is this how Fibaro has intended it to work ???

     

    yes, because it is QA, you have to take care of the code inside.

     

  • Topic Author
  • Posted
    Quote

    yes, because it is QA, you have to take care of the code inside.

    Thanks for your explanation.

    Posted
    3 hours ago, lazer said:

    This checkbox has not other effect than modifying the "enable" field in the device's API.

     

    You have to write your own LUA code to take this value into consideration.

     

    Here is an example I use at the beginning in the onInit() function of my QAs :

    Please login or register to see this code.

     

    In principle you need to disable UIEvent and onAction handlers too as other can call the QA and wreck havoc....

    Posted

    @jgab

    You're right.

    One can define an internal variable, such as self.isenabled = true / false inside onInit(), then check this variable upon every events (button/slider clicks, etc.). Then the QA can display a nice message in the log or a label to remind the user that the QA is disabled.

    Posted
    3 hours ago, lazer said:

    @jgab

    You're right.

    One can define an internal variable, such as self.isenabled = true / false inside onInit(), then check this variable upon every events (button/slider clicks, etc.). Then the QA can display a nice message in the log or a label to remind the user that the QA is disabled.

    or something like

    Please login or register to see this code.

    • Like 1
    • Thanks 2
  • Topic Author
  • Posted (edited)

    @jgab

    Is this function implemented in EventRunner?

     

    EDIT

    Unfortunately, this only works to 50%.
    The setting in Profiles has no effect at all.
    If my QA is Enabled but Turned Off in Profiles, my QA will continue to work.
    Could this be a bug, or is it what Fibaro usually says "By design"?

    Edited by RH_Dreambox
    Posted
    24 minutes ago, RH_Dreambox said:

    @jgab

    Is this function implemented in EventRunner?

    No it's not implemented in ER - I probably should do that.

     

    24 minutes ago, RH_Dreambox said:

    EDIT

    Unfortunately, this only works to 50%.
    The setting in Profiles has no effect at all.
    If my QA is Enabled but Turned Off in Profiles, my QA will continue to work.
    Could this be a bug, or is it what Fibaro usually says "By design"?

     

    Do the profile setting actually disable the QA or do they just exclude it from the profile? I believe the latter.

    1 minute ago, jgab said:

    No it's not implemented in ER - I probably should do that.

     

     

    Do the profile setting actually disable the QA or do they just exclude it from the profile? I believe the latter.

    You can't disable from the profile - only turn on and off?

  • Topic Author
  • Posted

    Hmmm, Fibaro, Fibaro, Fibaro
    I thought that in Profiles you could enable or disable all types of scenes and devices, including QA.
    This must be something they have missed, because what else is Profiles to be used for?

    Posted (edited)

    disable is to stop (more or less) the communication, which for QA would be operation. There is no disable for devices, for what? Create scene to disable / enable, and trigger it from Profiles (same can be done for other devices)

     

     

    Edited by tinman

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Reply to this topic...

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