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

Fire Alarm scene/dashboard


Question

Posted

Hi all,

 

I am new to Fibaro but pretty competent with technology (being a software engineer), but I am struggling to find how I get to configure the Fire Alarm as per the promotional material on the Fibaro site for the Smoke Sensor, particularly the video. 

 

Please login or register to see this link.

 

 

Please login or register to see this image.

 

It looks like this is the alarm panel, but in the alarm panel there only seems to be options for the intruder alarm. At the moment I only have HC2, smoke sensor and motion sensor (door sensors on the way), so maybe not enough "kit" to be able to fully use these features but I was hoping I could have some way to get a control panel like that on the image above. 

 

Are there any guides out there? I'm happy writing LUA code but I find it hard to find any real information (other than helpful users here) on LUA and its features in HC2 and how they integrate with these panels. I can certainly write LUA code that will turn on my lights, push notify me that something is wrong, but will that automatically kick in this panel above?

 

Thanks

15 answers to this question

Recommended Posts

  • 0
Posted

Jep, alarm panel is only for intruder alarm and for fire alarm or flood alarm there is no such panel. I didn't even like how intruder alarm panel works so I did all of this alarms with LUA scenes. Here is example of Fire Alarm scene:

Please login or register to see this code.

Similar code can be used for flood alarm. For intruder alarm there is more scenes but two are essential, one for arming sensor and one for disarming sensors. The rest is just configuring what will be armed depending on situation like going away for one afternoon, or going away for holidays or just going to sleep. Also we have two small dogs and if they stay at home then room in which they will wait for us motion sensor is not armed etc, etc.

  • 0
  • Inquirer
  • Posted

    Thanks for the info. Very disappointed in Fibaro for blatantly mis-selling that feature in their literature! If there werent so many other things that I want to do with the HC2 I think I could return it on the basis of false advertising! 

     

    Anyway, had a feeling that I would have to do it via Lua. Good job they have such good people like you in the community that have examples of Lua code people can use! I'll give that a go tomorrow night as I'm out tonight. Got the ZipaBox RFID reader to play with too

    Please login or register to see this image.

    /emoticons/default_biggrin.png" alt=":D" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

    • 0
    Posted

    I have used this Fire Alarm Config and have set 3 Sirens to go off when triggered.. question is.. I want to flash my dimmer2 and possible act other lights on this being active.. but I am a little confused about "Alarm states" for SMOKE CO2 etc etc.. if I don't use Fibaro Alarm and run my own script for arming and disarming, including this FIRE Scene.. how can I send commands to other devices like lights to behave in alarm state? or should I just script the turnon, turnoff in this script? the whole "associations" "Broadcasting frames" thing is a bit of a mystery to me!

    • 0
    Posted

    Please login or register to see this code.

    it gives me an error on the following line:

    local smokeID      = tonumber(trigger('deviceID'));

     

    error = [DEBUG] 15:57:54: line 16: attempt to call local 'trigger' (a table value)

    How can i resolve this error. i have 1 smoke detector at the moment

    • 0
    Posted

    Did you start this scene manually? If that is the case you don't have the field "deviceID" in the array called trigger.

    This scene is only working if triggered by a device.

    If you want to test it you will have to override this (just put any number instead of "trigger['deviceID']").

    • 0
    Posted

    no automatically as it suppose to do, otherwise not been trigger from deviceID

     

    local smokeID      = 211;
    --local smokeID      = tonumber(trigger('deviceID'));

    then no error. but with the second line an error

     

    you wrote

    local smokeID      = tonumber(trigger [ 'deviceID' ] );

    error: [DEBUG] 12:07:36: line 115: attempt to concatenate local 'deviceId' (a nil value)

     

    I think needs to be, but still an error

    local smokeID      = tonumber(trigger ( 'deviceID' ));  

    error: [DEBUG] 12:06:25: line 17: attempt to call local 'trigger' (a table value)

     

    what do you think what i am doing wrong

    • 0
    Posted

    This is how I start the scene: gives an error at this line: 

    local smokeID      = tonumber(trigger['deviceID']);

     

    --[[
    %% properties
    211 value    
    %% globals
    --]]

    ----------------
    -- FIRE ALARM --
    ----------------
    -- This scene will be activated by all smoke sensors that have ID value under %% properties and then it will activate siren
    -- and send notification to admin and all users added in code.

    -- setup some local variables
    local trigger      = fibaro:getSourceTrigger();
    local smokeID      = tonumber(trigger['deviceID']);
    local smoke        = tonumber(fibaro:getValue(smokeID, "value"));
    local pushMessage  = "WARNING! FIRE ALARM IS ACTIVATED!"
    local emailMessage = "Fire detected by the following sensor:\n"
    local imgUrl       = ""
    local deBug        = true;
    local sirenID      = 100; -- <-- NOTE!! change this ID with your siren ID!!!
    local delay        = 20; --Siren off delay after sec.
     

    • 0
    Posted
    1 hour ago, samuel said:

    no automatically as it suppose to do, otherwise not been trigger from deviceID

    Sorry, I don't understand what you mean.

    • 0
    Posted
    On 9/6/2016 at 4:28 PM, Sankotronic said:

    Jep, alarm panel is only for intruder alarm and for fire alarm or flood alarm there is no such panel. I didn't even like how intruder alarm panel works so I did all of this alarms with LUA scenes. Here is example of Fire Alarm scene:

    Please login or register to see this code.

    Similar code can be used for flood alarm. For intruder alarm there is more scenes but two are essential, one for arming sensor and one for disarming sensors. The rest is just configuring what will be armed depending on situation like going away for one afternoon, or going away for holidays or just going to sleep. Also we have two small dogs and if they stay at home then room in which they will wait for us motion sensor is not armed etc, etc.

     

    looking at this code:

     

    I got an error on this line: 

    local smokeID      = tonumber(trigger [ 'deviceID' ] );

    [DEBUG] 14:35:30: line 115: attempt to concatenate local 'deviceId' (a nil value

    but maybe its another problem.

    What can it be?

     

     

     

    • 0
    Posted
    1 minute ago, samuel said:

    looking at this code:

     

    I got an error on this line: 

    local smokeID      = tonumber(trigger [ 'deviceID' ] );

    [DEBUG] 14:35:30: line 115: attempt to concatenate local 'deviceId' (a nil value

    but maybe its another problem.

    What can it be?

     

     

     

    You can get this error if you run scene manually by pressing RUN button or call this scene by another scene or VD. I'm working hard on this and several other scenes and I will do my best to post them before Christmas!!!

    • 0
    Posted

    This I wrote yesterday already... ;)

     

    • 0
    Posted
    On 12/21/2016 at 5:55 PM, Alex said:

    This I wrote yesterday already... ;)

     

    @Alex You are right, you really did write that yesterday, but @samuel asked again! And again answer is the same ;) 

     

    • 0
    Posted

    Hi

    @

    Please login or register to see this link.

    and everyone.

    I don't have any siren, can I just replace the siren ID with any device ID that I want to trigger (e.g. a turning on lights)?

    And how do I best test it?

    • 0
    Posted
    13 hours ago, texan said:

    Hi

    @

    Please login or register to see this link.

    and everyone.

    I don't have any siren, can I just replace the siren ID with any device ID that I want to trigger (e.g. a turning on lights)?

    And how do I best test it?

     

    Hi @texan,

     

    Yes you can activate any device instead of siren or change code to suit your needs. Check latest version of the scene here:

     

    • 0
    Posted (edited)

    x

    Edited by MarcinL
    Pomyłka

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