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

UNABLE to desarm with Keyfob


Question

Posted

Hello,

 

I will try to explain my issue in english.

 

First I use scenario to arm and disarm my alarm with my keyfob. It correctly working for arming and disarming when alarm is not breached. But the issue appear when the alamr is breached, after the breached and when the alarm sounding, i'm unable to disable it via the keyfob, no scene can be executed trought the keyfob. i also try to execute the scene manually to disarm but I got an error 403.

 

The only solution to disable the alarm is from the alarm pannel with the PIN.

 

For information, the checkbox "do not allow alarm to stop scene ..", is correctly unchecked. 

 

I'm in version 4.100 of HC2. Do you have some feddback about this issue ?

 

Bets regards

5 answers to this question

Recommended Posts

  • 0
Posted

How are you trying to disable via the scene? Is it in lua code?

 

I have a scene that is triggered on my RFID keypad state change and that will disarm the alarm when its been triggered by calling the below command for each device. 

 

Please login or register to see this code.

If we can see some of your code then that would let us see any potential problems. I believe the option "do not allow alarm to stop scene" is misleading, as most scenes will not be running when an alarm is triggered. I do not think it lets you start the scene if it is not running after alarm is triggered, only means it is not killed by the alarm trigger. 

  • 0
  • Inquirer
  • Posted

    Hello,

     

    Thank you for your reply.

     

    I arm and disarm the alarm with blocs. First I have a lua script who intercept the key pressed from the keyfob, with this script I launch another scene depending of the button, in this case arm or disarm. And this two scene are programmed in blocs.

     

    I just put all the sensors in armed for the arming scene if my sensor for the door is in normal mode. It let me the time to go out of the house. And second for disarming if any sensor are breached and armed or in normal mode in case of no detection I disable all the sensor.

     

    I can send you the print of my code when I get home.

     

     

    • 0
  • Inquirer
  • Posted (edited)

    Hello,

     

    Here the scene to intercept the key pressed on the keyfob. For the moment I only test with one sensor, after I will make a group of many sensor.

     

    --[[ 
    %% properties 
    12 sceneActivation 
    %% globals 
    --]]

    local buttonPressed = fibaro:getValue(12, "sceneActivation");
    fibaro:debug(ButtonPressed);

    if ( tonumber(buttonPressed) == 1) then
    fibaro:debug("MiniMote button 1 pressed")
    fibaro:startScene(7)
    elseif ( tonumber(buttonPressed) == 2) then
    fibaro:debug("MiniMote button 2 pressed")
    fibaro:startScene(8)
    else
    fibaro:debug("No response")
    end

     

     

    Here the scene number 7 to arm the sensor :

     

    --[[
    %% properties
    19 value
    %% events
    %% globals
    --]]

    local startSource = fibaro:getSourceTrigger();
    if (
     ( tonumber(fibaro:getValue(19, "value")) == 0 )
    or
    startSource["type"] == "other"
    )
    then
        fibaro:call(19, "setArmed", "1");
    end

     

     

    Here to disarm, its the scene number 8 :

     

    --[[
    %% properties
    19 value
    %% events
    %% globals
    --]]

    local startSource = fibaro:getSourceTrigger();
    if (
     ( tonumber(fibaro:getValue(19, "value")) > 0  or  tonumber(fibaro:getValue(19, "value")) == 0 )
    or
    startSource["type"] == "other"
    )
    then
        fibaro:call(19, "setArmed", "0");
    end

     

     

     

     

    Best regards,

     

    Edited by Hdeuxo
    • 0
  • Inquirer
  • Posted

    Hello,

     

    I have found the solution. I merge the three scene together and it is now : 

     

    --[[ 
    %% properties 
    12 sceneActivation 
    %% globals 
    --]]

    local buttonPressed = fibaro:getValue(12, "sceneActivation");
    fibaro:debug(ButtonPressed);

    if ( tonumber(buttonPressed) == 1) then
    fibaro:debug("MiniMote button 1 pressed")
    fibaro:call(19, "setArmed", "1");
    elseif ( tonumber(buttonPressed) == 2) then
    fibaro:debug("MiniMote button 2 pressed")
     fibaro:call(19, "setArmed", "0");
    elseif ( tonumber(buttonPressed) == 3) then
    fibaro:call(4, "turnOn")
    fibaro:debug("MiniMote button 3 pressed - Light ON")
    elseif ( tonumber(buttonPressed) == 4) then
    fibaro:call(4, "turnOff")
    fibaro:debug("MiniMote button 4 pressed - Light OFF")
    elseif ( tonumber(buttonPressed) == 5) then
    fibaro:debug("MiniMote button 5 pressed")
    elseif ( tonumber(buttonPressed) == 6) then
    fibaro:debug("MiniMote button 6 pressed")
    elseif ( tonumber(buttonPressed) == 7) then
    fibaro:debug("MiniMote button 7 pressed")
    elseif ( tonumber(buttonPressed) == 8) then
    fibaro:debug("MiniMote button 8 pressed")
    else
    fibaro:debug("No response")
    end

     

    But you have to tick "don't allow alarm to stop...".

     

    ANd it is now working.

    • 0
    Posted

    Hello,

     

    @Hdeuxo, I encourage you to share this solution in Crowd's Solutions! :)

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