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

Arming / Disarming Alarm via Physical Switch (FGD or FGS)


Question

Posted

Hi !

I would like the ability to use a physical switch (connected either to FGS or FGD type devices) to arm and disarm the alarm on Fibaro HC2.

Also, how do I trigger a scene to the same physical switch ?

Thanks.

11 answers to this question

Recommended Posts

  • 0
Posted

If you want to use scene activation feature of dimmer, you need to enable it in advanced configuration of module. Then set change of scene activation value as a trigger. Relay Switch does not support scene activation feature, hence it can be done with monitoring state of relay itself.

  • 0
  • Inquirer
  • Posted
    If you want to use scene activation feature of dimmer, you need to enable it in advanced configuration of module. Then set change of scene activation value as a trigger. Relay Switch does not support scene activation feature, hence it can be done with monitoring state of relay itself.

    Can i arm or disarm the alarm panel via LUA or Block Code ? If so, can someone please point me to the right direction), I've tried searching for it but I can't seem to find anything out there. I want to learn LUA. How ? Where do I get started ? I have programming background but if you don't know what parameters are available how the freaking hell do I use LUA ?

    I find Fibaro is really lacking in support. I have to ask many times before I can get the solution I want to be addressed. Where is the API reference for this LUA ?, Where is the getting started in LUA ?, You ask a simple question but you get a very confused answer ? Do you only support polish speaking users ?

    I like the products and currently are ordering many more units of modules but this support issue is really disappointing.

    Sigh x 1000

    • 0
    Posted

    alijanah, am I right to say that you want to disarm/arm the alarm panel using either physical switch or LUA/Block code?

    In my case, I can arm and disarm the individual sensors(door & motion) using lua scene.

    Please elaborate on your requirements. Thanks.

    • 0
  • Inquirer
  • Posted

    Hi Melvin,

    Yes I want to do exactly that. I've set notification based on motion sensor and door contacts throughout the house. I don't want to receive notification when I'm out of the house. For me. I use the iOS fibaro app on my iPhone or iPad to arm and disarm the alarm. So that solves that issue. The problem is when I'm out of the house and somebody is still in the house, the house shouldn't be armed. I want to let anybody left inside the house to arm the alarm when they leave so I don't have to do it remotely. It should be a simple switch preferably something physical that they can use. I hope that explains the problem. Thanks.

    • 0
    Posted

    Yes, I understand what you meant. Yes, you do can use a physical switch with a module to arm/disarm your sensors. Your scene should be triggered if your physical switch is turned on/off, set a buffer time for you/family to leave the house before arming the sensors.

    Perhaps you could use the physical switch (maybe controlling the door light) nearest to your main door to tell the system that you are leaving the house.

    Maybe you can tell me the exact scenario which you want to create and I will help you with the lua scene.

    Thanks.

    Malvin

    • 0
    Posted

    i use this keypad for exactly what you mean.

    Please login or register to see this link.

    If im not at home with iphone, ppl in house can activate alarm with doorbel (button) to activate alarm.

    same time it is possible to deactivate alarm with rfid tags or code on the keypad.

    Works like a charm!!

    • 0
  • Inquirer
  • Posted

    Yes please do share the LUA scene for me as an example. Do you have a reference API for LUA that I can use for learning to use LUA scene programming? Thanks.

    • 0
    Posted

    I think all you will need is this fibaro:call(*insert sensor id*, "setArmed", "1"); to arm your sensor. Call setArmed 0 to disarm.

    • 0
    Posted

    kooy...

    Can you please tell how do you have configured the RFID (

    Please login or register to see this link.

    ) keypad with HC2 ?

    What configurations needs to be done at HC2 ? ( step by step please

    Please login or register to see this image.

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

    • 0
    Posted

    See pm:)

    Basicly its as simpel as triggering block/lua toarm/disarm alarm with a motiondetector

    1 for turning on

    2 forturning off

    code for turning on/off like above code or make anew script/block

    in block form its almost easier than the time it costs to write dow.

    '' if motion sensor = breached then arm pir or disarm

    • 0
    Posted

    I have a villa larm system where i put a scensor in my keypad.

    then i wrote a simple code:

    This is how it looks like

    --[[

    %% properties

    13 value

    %% globals

    --]]

    if (fibaro:countScenes()>1) then

    fibaro:debug('Kill second scene!');

    fibaro:abort();

    end

    ---Starter ARMING devices---- just to get msg if windows is open

    fibaro:sleep (2*100);

    fibaro:call(8, "setArmed", "1"); -- Livingroom Window

    local armed; -- declair

    i=0;

    while i <= 60 do -- please count to 60

    armed = fibaro:getValue(13, 'value'); -- 13 = get value from Keypad

    i=i+1; -- plus one

    fibaro:debug('i = ' .. i)

    fibaro:sleep(1*1000); -- exit dely 1 sec * 60 counts

    if (armed=="0") then

    fibaro:debug('Sensor 0 = ' .. armed); -- go to arming device

    elseif (armed == '1') then

    fibaro:debug('Sensor 1 = ' .. armed); -- if disarming within 60 sec or just disarming

    ------ DisArming devices---------

    fibaro:sleep (2*100);

    fibaro:call(28, "setArmed", "0"); -- Lobbydoor

    -------------Sending Disarm msg --------

    fibaro:call(6,"sendPush","Info: VillaLarmSystem is disarmed by user!");

    fibaro:abort();

    end

    end

    fibaro:call(6,"sendPush","Info: VillaLarmSystem is armed by user!");

    ------ Arming devices---------

    fibaro:sleep (2*100);

    fibaro:call(28, "setArmed", "1"); -- Lobbydoor

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