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

Delay in scene


Guest Lode

Question

Guest Lode
Posted

Hi,

I made a simple scene to turn a lamp on for one minute when a sensor (Fibaro universal binary sensor) is breached.

It works but after the sensor is breached it takes about 40 seconds before the lamp turns on.

I can't see what is wrong ....

Please login or register to see this code.

8 answers to this question

Recommended Posts

  • 0
Guest jrkalf
  • Inquirer
  • Posted

    Not sure if it's the lua code, but I have the same with my push messages and e-mails for a "breached and armed" situation on my door sensors.

    I think there's something wrong in the underlying code. Perhaps the Fibaro Devs know?

    • 0
    Guest deraaij
  • Inquirer
  • Posted

    You can use this code:

    Please login or register to see this code.

    • 0
    Guest Lode
  • Inquirer
  • Posted

    I'm sorry but it doens't work ????

    In my scene in think the delay is caused by the fibaro:sleep(60*1000);

    When the scene is activated and Fibaro is in the middle of that sleeptime your command will not be executed until it comes out of sleep.

    • 0
    Guest deraaij
  • Inquirer
  • Posted
    I'm sorry but it doens't work ????

    In my scene in think the delay is caused by the fibaro:sleep(60*1000);

    When the scene is activated and Fibaro is in the middle of that sleeptime your command will not be executed until it comes out of sleep.

    Correct, due to the time constaint it has an unnecessary loop. But the only works when it is triggerden by device 22 and it is after 23:01.

    • 0
    Guest Lode
  • Inquirer
  • Posted

    Hi Mark,

    Why can't i get your code running ?

    • 0
    Guest deraaij
  • Inquirer
  • Posted
    Hi Mark,

    Why can't i get your code running ?

    What do you mean with you can't get it running?

    • 0
    Guest Lode
  • Inquirer
  • Posted

    It doens't work ....

    Please login or register to see this image.

    /emoticons/default_icon_sad.gif" alt=":-(" />

    [ Added: 2013-03-31, 17:25 ]

    Oops......

    While i was testing this, the sensor was already breached.

    So to get the scene running the status of the sensor has to change from not breached to breached......makes sense of course, but i didn't know that.

    Thx for helping me out Mark.

    Please login or register to see this image.

    /emoticons/default_icon_biggrin.gif" alt=":-D" />

    Please login or register to see this image.

    /emoticons/default_icon_biggrin.gif" alt=":-D" />

    • 0
    Guest deraaij
  • Inquirer
  • Posted
    It doens't work ....

    Please login or register to see this image.

    /emoticons/default_icon_sad.gif" alt=":-(" />

    [ Added: 2013-03-31, 17:25 ]

    Oops......

    While i was testing this, the sensor was already breached.

    So to get the scene running the status of the sensor has to change from not breached to breached......makes sense of course, but i didn't know that.

    Thx for helping me out Mark.

    Please login or register to see this image.

    /emoticons/default_icon_biggrin.gif" alt=":-D" />

    Please login or register to see this image.

    /emoticons/default_icon_biggrin.gif" alt=":-D" />

    You are welcome!

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