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

Lua scene, wallplug on for 2 minutes when motion detected, in 10 minutes delay


Question

Posted

Hi, I have lua scene which work great except that, when timeout is set for 2 minutes and then motion is detected timeout is "overwritten" with new scene instance.. Previously had sleep instead of setTimeout, but it sometimes freeze other scenes (don't know why). How can i fix this?

 

Declarations

Please login or register to see this code.

Actions

Please login or register to see this code.

 

4 answers to this question

Recommended Posts

  • 0
Posted

Can you describe me what is the goal of your scene?  Its not that clear to me.

When any of motion sensors detect motion, it should turn On the heater and then independenlty on sensors state it should turn off the heater after 600 sec?

 

 

  • 0
  • Inquirer
  • Posted

    Hi, hi thanks for response. It's for circulation pomp. It pomp water thru the pipes so in house there is a warm water faster. Currently it have interval (in other, not fibaro pług) to work 2 minutes on each 10 minutes. Even on night which is useless and wasting gas.

     

    So my idea was simple - if motion is detected in kitchen or on the first floor than turn it on for 2 minutes but on 10 minutes period only. So when someone is walking in kitchen for 30 minutes it should be turned on 3 times for 6 minutes total, not 1 time for 30 minutes.

    • 0
    Posted

    Hi @poh,

     

    in the options of a scene you can change "Allow to restart a running scene" to NO.

    Then a new instance of the scene will only run when no other instance of this scene is running at the moment.

     

    Please login or register to see this image.

    /monthly_2024_05/image.png.bb2a85c227f33ce2532bd56e012d9b03.png" />

     

    This should probably help you with your problem.

    • Like 1
    • 0
  • Inquirer
  • Posted

    Damn, thanks man, worked liked a charm. When timeout is set there are no logs and script wait these 2 minutes, no other script instances turning on

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