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

How to code for delay when alarm is ARMED and BREACHED


Question

Posted

Hi All,

I have been trying to conjoin the Fibaro 'soft' Alarm and hardware Alarm modules (such as Everspring siren for example) so that, when one goes off, the other goes off and that they do not go off independently. Its a bit like Stevenvd;s alarm but I did it my own way and added a VD and Motion sensing/checking for false alarms.

I have achieved this but I have one problem which I cannot see how to fix; that's to do with setting a delay on a door breach....for example you have various options when coding that I can see but (when you set the door sensors via iOS) it is basically 'ARMED' or 'DISARMED' then, whilst this is set your door is 'SAFE' when shut or 'BREACHED' when opened.

Therefore if the alarm is set i.e. 'ARMED' and door is 'BREACHED' then your alarm will go off. Simples.

Problem with a delay (if you use the 'Walk-in time' set at Device level in HC2 interface) is that, even if you set the walk-in time to, say 5 mins, when you open the door your Alarm is still 'ARMED' and the door is still 'BREACHED' so even though the Fibaro Alarm will NOT go off, your hardware alarm (Everspring) WILL go off because it sees the door breach and I cannot see how to 'see'/code for the 'delay' that I was expecting.

First time I did it it totally took me by surprise. Thing is, having checked all the options that you get i.e. open, closed, safe, breached, breached and armed etc etc I cannot see a way to code to check for the delay??

Any ideas as it's the only thing stopping this all working ok.

KR, Dave

Please login or register to see this image.

/emoticons/default_icon_smile.gif" alt=":-)" />

6 answers to this question

Recommended Posts

  • 0
Posted

To add delay in blocks, add time in seconds in red box in condition. You can also use "delay" condition with scenes lined to alarm panel.

  • 0
  • Inquirer
  • Posted

    I understand that, I think you've possibly misunderstood?

    Ive done everything in LUA.

    If you set say Door1 to 'ARMED' and the scene code (which sets off hard alarm and also fibaro alarm) is looking for a burglar before setting off alarm we look for door being 'BREACHED' and door value being 'ARMED'. If I then open door 1, even if a walkin delay of 5mins is set in door device properties, my code still sees alarm for door as a) having been set and b) it being breached and my hard alarm goes off (not expected) but the fibaro soft alarm does not (as expected). So my code is not accounting for/seeing the 'delay'. What 'code' values can I use to see the delay that is set by the fibaro soft alarm?

    Hope that explains.

    KR, Dave

    • 0
    Posted

    dw89, I think I know what you mean. But I just wondered, why don't you use your scene as attachment to FIBARO soft Alarm, being triggered on a breach? It will eliminate the need of monitoring system state manually. Maybe I misunderstood again, if it is the case I'm sorry.

    • 0
  • Inquirer
  • Posted

    Hi,

    I think that's exactly what I'm doing? In short I have three scenes and one VD.

    The VD is a panel so that user can easily turn 'Alarm' on/off with two buttons (rather than having to go to each device and turn on alarm for each door etc).

    Scene 1 Monitors a Global to update the status of the Alarm to help setting of VD

    Scene 2 Is for Motion only and monitors/turns them on accounting for false triggers, not working or turning into temp sensors (! lol).

    Scene 3 is MAIN scene which checks that a) door set b) if any motion set AND if any of them are breached within confines of the trigger. If there is a breach as well as Fibaro alarm going off (as it normally would if you set anything to 'Armed') it also triggers my Alarm bell sounder, turns lights on, sends messages etc etc.

    It's just a way to unify it all, quite basic really. It all works apart from the delay because I am not sure how to code to 'see' the delay which I guess is somehow set in Fibaro database?

    i.e. even if I set delay and arm a door THEN in my code look for that door being 'ARMED' and 'BREACHED' the moment it is opened the Fibaro Alarm does not go off (waits for delay) but my alarm bell etc DOES go off because it's 'ARMED' and 'BREACHED'.

    Is there no way to code for the delay? I know I can just sleep for whatever the delay is but surely that alone will not work because you don't know or not whether user has input code to turn off alarm? Or?

    Any thoughts/info appreciated.

    Dave

    Please login or register to see this image.

    /emoticons/default_icon_wink.gif" alt=";-)" />

    • 0
    Posted

    dw89, what about going into sleep instruction and checking after that if device is still armed? If it is not, abort scene. It will give user time to disarm device.

    • 0
  • Inquirer
  • Posted

    Hi,

    Thanks for reply. I see what you are saying. I need to think about it I guess.

    However can you explain whats supposed to happen with Fibaro soft alarm with delay (so i can try to replicate). Ie

    Delay set for 30sec (both boxes): so

    1) alarm 'set' for door, it flashes for 30secs then sets door

    2) door armed, i walk in and breach is met. Alarm waits for 30secs BUT then what happens after 30secs? Does alarm automatically go off if door alarm not turned off (with user code) or, if during alarm delay, user shuts door again will the alarm cancel even if user code not entered?

    Just trying to work out exactly what functionality supposed to do.

    KR, Dave

    Please login or register to see this image.

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

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