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

Door sensor stops working after being opened to often


Question

Posted

Hi can any one help please. I have this scene working, But it is now starting to annoy me. I have a door sensor to trigger the pantry light.

If it is opened and closed to many times it wont run the scene again until it has finished the ones that are running. I understand the problem, but can not work out how to solve it.

Any guidance would be really appreciated 

Thanks Matt O

 

 

Please login or register to see this attachment.

10 answers to this question

Recommended Posts

  • 0
Posted (edited)

Simplest way set auto off parameter on your switch module for the auto off. 

Then you just need the one simple scene on and off with door switch.

Or a elseif condition in your lua scene.

Edited by Jamie mccrostie
  • 0
Posted (edited)

@MattyO

Try the following

Push the “convert scene to LUA” button at the top of your block scene.

Insert the following script at the top but  below the scene header...

 

if  (fibaro:countScenes( )>1  ) then

     fibaro:abort( )

end

 

This will cut down on the number of incidences of the scene running at one time

which will be whats causing your problem..

Unfortunately you cant achieve this in block scenes.

 

12 
123 fibaro:abort();
1fibaro:abort();
Edited by Jamie mccrostie
  • 0
  • Inquirer
  • Posted

    is this correct. The scene now won't trigger.

    I should mention I also have this block scene to turn the light off when the door is closed. Should I be trying to do this with one scene

     

    --[[
    %% autostart
    %% properties
    179 value
    %% weather
    %% events
    %% globals
    --]]
    if  (fibaro:countScenes( )>1  then

         fibaro:abort( )

    end  
    local startSource = fibaro:getSourceTrigger();
    if (
     ( tonumber(fibaro:getValue(179, "value")) > 0  and  tonumber(fibaro:getValue(186, "value")) ~= 1 )
    or
    startSource["type"] == "other"
    )
    then
        fibaro:call(186, "turnOn");
        setTimeout(function()
            fibaro:call(186, "turnOff");
        end, 350000)
    end

     

     

    Please login or register to see this attachment.

    • 0
  • Inquirer
  • Posted

    Thanks Jamie that got the script working. But it looks like it is not the instances.

    I think my problem is. If i close the door before the first scene has finished and it runs the close door light off scene. Then it won't run the first scene again until it has timed out.

    I must be doing this the hard way. I so want to learn LUA. But not off to a good start.

     

    What I want is when the door is opened light goes on. When the door is closed light goes off. But if the door is left open light goes off after x amount of time.

     

    Any thoughts Please.

      

    • 0
  • Inquirer
  • Posted
    2 hours ago, Jamie mccrostie said:

    @MattyO its auto off, not delay off.

    Thanks a heap. That work great. 

     

    What on earth is the difference with auto off and delay off? Fibaro really don't like explaining these things

     

    • 0
    Posted

    Auto off you turn on it times out and turns off

    delay off you turn it off it times out then turns off

    • 0
  • Inquirer
  • Posted

    Ahah thanks So much for your help Jamie

     

    Cheers Matt

    • 0
    Posted (edited)

     

    16 minutes ago, MattyO said:

    Fibaro really don't like explaining these things

     

    Its a huge puzzle 

    thats what makes it intriguing 

     

    Edited by Jamie mccrostie

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