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

Scene shouldnt be triggered, but it is...?!


Remi

Question

Until today i was convinced scene's are triggered by devices or variables i put in the upper section in the LUA script.

 

Please login or register to see this image.

/monthly_2023_09/image.png.60a188a1f2debb5db43eed82f9d2ad86.png" />

 

I have a scene where i put in some actions when my wife leaves the house.

If her variable change the scene should run.

Her variable is "Ilse" and can be "Away" or "Home".

 

But i noticed the scene also runs when my variable "Remi" change status Home or Away.

The only variable in the upper section is her's and not mine, so i dont understand why the scene is running when my variable change?

 

The following  variable's are used in the script:

  • Ilse (Which can be Home or Away
  • Remi (Which van be Home or Away)
  • Rollershuttercount (Which can be 0 or 1 and is used as a flag to limit opening automatitaclly the rollershutter to one's a day, and is reset during the night by a "Maintance scene")

 

Please login or register to see this code.

 

The reason why my variable is in the scene is, because the rollershutter is of our bedroom.

When i have a day off i like to sleep a bit longer and dont want to wake up because the rollershutter goes up automatically when she leaves the house. :)

 

 

Edited by Remi
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Hi @Remi ,

 

Was your global variable Remi before put in scene header as trigger? If scene header is changed sometimes is necessary to restart HC2 so that triggers are reset.

  • Like 3
Link to comment
Share on other sites

  • 0
  • Inquirer
  • Hi @Sankotronic,

     

    Mmm, you could be on the right track with that.

    I've been tweaking the scene quite a bit lately, and the original scene had my global variable included in the header.

     

    Let me try a restart and see.

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Wow that did the trick indeed!

     

    Thank you very much, i would never have thought of that.

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