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

Simple Motion Sensor scene


Question

Posted

I made a simple (blokc) scene that if a motion sensor is triggered that a light will go on for 60 sec.

 

But I have a small problem. The motion sensor checks every 8 seconds if there is any movement. So when the above scene is running, after 8 seconds he want to trigger it again and I get a message "to many instances".

 

To prevent this I found a solutution to check if the script is running by making a new varibale "Scene_Loopt" this can have a value on or off. I want to run this vallue to on if the scene is still running and off when its done. But i'm stuk how to conffigure this in the scene.

 

Now this is the scene:


Please login or register to see this image.

/monthly_2020_04/scene.PNG.75334ddfb6ce5ad7ba9994b07c6621e4.PNG" />

 

3 answers to this question

Recommended Posts

  • 0
Posted (edited)

The problem that there is no delay for updating Scene_loopt back to "Uit" after 60 seconds.

You have two options:

=============  1  ===============================================

You need to create another block scene where the scene's trigger is Spotjes Hal like:

IF

Spotjes Hal == off

Please login or register to see this image.

/uploads/monthly_2020_04/image.png.ff0d0f50a1af310d9ffe2a67fa6f0bb6.png" />

Please login or register to see this attachment.

 

Don't forget to remove same line

Please login or register to see this attachment.

from original scene

 

==================  2 ================

You can set sensor delay to 60 seconds and create another scene like:

IF

Bewegingssensor == safe

then

image.png.27ccfcb209817300d4d9dbd65551c0bd.png  without delay.

 

In this case you don't need to use Scene_loopT variable

Please remove

Please login or register to see this attachment.

and

Please login or register to see this attachment.

from original scene

 

Of course you can create a Lua scene as well.

 

Edited by cag014
  • 0
  • Inquirer
  • Posted (edited)

    Thanks for your answer, don't get everything because your pictures are not working ?!

     

     

    Quote

     

    The problem that there is no delay for updating Scene_loopt back to "Uit" after 60 seconds.

    You have two options:

    =============  1  ===============================================

    You need to create another block scene where the scene's trigger is Spotjes Hal like:

    IF

    Spotjes Hal == off

    Please login or register to see this link.

    Please login or register to see this attachment.

     

    Don't forget to remove same line

    Please login or register to see this attachment.

    from original scene

     

    ==================  2 ================

    You can set sensor delay to 60 seconds and create another scene like:

    IF

    Bewegingssensor == safe

    then

    Please login or register to see this link.

      without delay.

     

    In this case you don't need to use Scene_loopT variable

    Please remove

    Please login or register to see this attachment.

    and

    Please login or register to see this attachment.

    from original scene

     

    Of course you can create a Lua scene as well.

     

     

    Edited by theplayernll
    • 0
    Posted

    the simple motion scene :)

     

    image.png.57df7d9201d4109407d2832f3d0f22d0.png

    image.png.791758522eeb1517e53742dccbeec9b1.pngimage.png.e1a1e3af918960b59cd3c9da99d0d19f.png

    links: 

    Please login or register to see this link.

     

    Please login or register to see this link.

     

    Please login or register to see this link.

     

    :) 

     

     

     

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