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

Do not activate scene if button has been pressed in the last 60 minutes


Question

Posted

Hello,

 

In my garage I have some lights, a switch and a motion sensor. I have a scene which gets activated by the motion sensor and switches on the lights, after 30 seconds the lights switch off. This is for getting a cold beer, or something. But if I'm in the garage for a longer time I would like to disable this scene by pressing a button (scene id), I have noticed that sometimes motion is not sensed correctly when I'm doing something and the lights get turned off.

 

I was thinking maybe disabling the scene for a time (30 minutes) after button 1 (scene id) has been pressed. But I cannot figure out how to set it up.

 

Thank you,

4 answers to this question

Recommended Posts

  • 0
Posted

afaik. you can choose something as:"can not retrigger in xx minutes

  • 0
Posted

You can do this fairly easily, even in block scenes. The trick is to use a global variable. Here's something to get you started:

 

1. Set up a global variable called DisableScene.

2. Write a scene that sets the DisableScene variable to 1.

3. Set the scene to run when you press Button 1.

4. Edit your existing scene, to add a condition that only allows the scene to execute if DisableScene is 0.

 

Then you need to be able to reset the global variable back to 0. You could trigger a similar scene on double press that achieves this.  Or use a 30min delay in the first scene you created to put the variable back to 0. In this case, you need to consider what would happen if you pressed the button again before the 30 mins was up...

  • 0
  • Inquirer
  • Posted

    Thank you very much Tim. It works perfectly,

     

    I added two scenes to change the variable when I press the button from 0 to 1 and back from 1 to 0. This way the scene is disabled when I press the button and I don't have to worry about the light switching off. After I'm done I switch off the lights with the same button and the scene gets enabled again.

    • 0
    Posted

    Great! Glad you got it working and thanks for posting back the outcome.

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