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

Variable triggering scene when it shouldn't


perjar

Question

I can't get my head around a problem I am having with variables triggering scenes. So, turning to the forum to see if anyone has any idea.
 
The problem I am having is that a scene is triggered by a variable even if the variable is not named in the LUA trigger section.
 
I created a scene with the following trigger definition:
  1. --[[
  2. %% autostart
  3. %% properties
  4. %% globals
  5. Var1
  6. Var2
  7. --]]
 
The scene worked fine. It is triggered by changes in Var1 and Var2 as should be and the LUA code is executed. My debug code verfies it. I can see that both Var1 and Var2 are triggering the scene.
 
Next, I wanted to change the logic a little and no longer wanted Var2 to trigger the scene, only Var1. I still used Var2 in the code however, just not as scene trigger.
 
The new trigger definition looked as follows:
  1. --[[
  2. %% autostart
  3. %% properties
  4. %% globals
  5. Var1
  6. --]]
 
But, to my surprise, the scene is still triggered by Var2! My debug code reports that Var2 is indeed the trigger source. I am confused! o.O
 
Restarting the HC2 does the trick though. After restarting, the scene works as designed and Var2 no longer triggers the scene. 
 
The same behaviour also applies to block scenes. I have created a  block scene  using Var1 and Var2 in the if-statement and then unchecked Var2 it in the "Triggering variables" list. Same thing happens - Var2 keeps triggering the scene despite the fact that I have unchecked it. If I convert the block scene to LUA code I can see that Var2 is not in trigger definition and hence should not trigger the scene. But it still does!
 
Surely this must be a bug in the system right? Or I am missing something?
 
Thanks
 
Software version 4.160
 
 
Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

The topic has been moved from "

Please login or register to see this link.

" to "

Please login or register to see this link.

".

 

Temat został przeniesiony z "

Please login or register to see this link.

" do "

Please login or register to see this link.

".

Link to comment
Share on other sites

  • 0
  • Inquirer
  • 48 minutes ago, I.Srodka said:

    Hi @perjar!

     

    Did you restart (stopped and played) the scene you've edited?

    Hi,

     

    No, not explicitly. I saved the scene of course after I edited it. But I did not stop it, disable/enable it or similar.

    Are you saying the scene needs to be reset or something before some edits take effect?

     

    Thanks

     

     

    Link to comment
    Share on other sites

    • 0

    Hi all, I can confirm the same behavior since some versions ago.
    It happens on both HC2 and HCL. In block and Lua. Restarting HC is the only solution.
    Unless you delete the scene and create it again, first time wright.
    According to me, it happens if you save a scene in between too much.

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • 20 hours ago, wpeeters said:

    Hi all, I can confirm the same behavior since some versions ago.
    It happens on both HC2 and HCL. In block and Lua. Restarting HC is the only solution.
    Unless you delete the scene and create it again, first time wright.
    According to me, it happens if you save a scene in between too much.

     

    Thanks wpeeters, good to know that I am not the only one having this problem.

    Let's hope the Fibaro team can fix it in the next release.

     

    Link to comment
    Share on other sites

    • 0
    On 30.01.2018 at 4:04 PM, perjar said:

    Are you saying the scene needs to be reset or something before some edits take effect?

    Did you test it? Did you changed something in the scene and you stopped and resumed it?

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