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

Alarm


cglycerio

Question

I want to setup my HC2 as an alarm system.

I saw that you can integrate with an already existing alarm system. But I want use the alarm feature of HC2 without having to integrate with other system.

Meaning, when I select "arm" any change of state of any of my modules or sensors would (or the ones I choose) would be a breach and the alarm would go on, notifying my cell phone with a push message and making all the lights blink, siren on, etc.

I could check in the iphone app if the alarm is armed or not. If has been breach or is safe. Just like when you integrate with an alarm system.

Can it be done?

I've tried a scene but, the scenes don't let do "IF devices change state then..." only equal or different of ON/OFF/ARM/DISARM/etc.

And I can't set alarm=breached

More to that I prefer using the already existing alarm interface, so it would show in my iphone app.

How do I do it?

Link to comment
Share on other sites

15 answers to this question

Recommended Posts

  • 1
I too have the same problem, I have 5 sensors, door / window, the motion sensor and siren.

Yes you can, using scenes.

You need one FGS221 V1.7 Switch ON OFF 2x1,5kW and a siren.

attach the siren to S1.

S2 is virtual or attached to a keyboard.

Make a scene Alarm devices like this.

Door sensor == Breached and armed

OR

Door sensor == Breached and armed

Or

Movement sensor == Breached and armed

THEN

Alarm office (S1)= Turn on

AND

Alarm office (S1) = Turn off 300 sec.

Make a second scene Alarm on.

Alarm on (S2) == ON

THEN

Devices group (all your sensors) = Arm

And the last scene to turn the alarm off.

Alarn on (S2) == OFF

THEN

Devices group (all your sensors) = Disarm

Scenes are not show'n in the interface.

Change icon like you wish, and set S1 and S2 as other device, and show no slaves.

Regards,

Tjeerd.

Link to comment
Share on other sites

  • 0
Guest pablotibis

I too have the same problem, I have 5 sensors, door / window, the motion sensor and siren.

Link to comment
Share on other sites

  • 0
Guest hotrot_net

I ran into that problem to, this is how I did it.

1. make a new variable

Call it Alarm (for example)

2. Create a new virtual device with 2 buttons

Button 1 Called Alarm On

Lua Code

fibaro:setGlobal("Alarm", "1");

Button 2 Called Alarm Off

Lua Code

fibaro:setGlobal("Alarm", "0");

3. Create 3 Scense

Scene 1 Called Alarm On

Lua Code

--[[

%% properties

%% globals

Alarm

--]]

local startSource = fibaro:getSourceTrigger();

if (

( tonumber(fibaro:getGlobalValue("Alarm")) == tonumber("1") )

or

startSource["type"] == "other"

)

then

fibaro:call(19, "setArmed", "1");

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

fibaro:call(44, "setArmed", "1");

end

Scene 2 Called Alarm Off

Lua Code

--[[

%% properties

%% globals

Alarm

--]]

local startSource = fibaro:getSourceTrigger();

if (

( tonumber(fibaro:getGlobalValue("Alarm")) == tonumber("0") )

or

startSource["type"] == "other"

)

then

fibaro:call(19, "setArmed", "0");

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

fibaro:call(44, "setArmed", "0");

end

Scene 3 Called Alarm Breached

Lua Code

--[[

%% properties

28 value

28 armed

%% globals

--]]

local startSource = fibaro:getSourceTrigger();

if (

( (tonumber(fibaro:getValue(28, "value")) > 0 and tonumber(fibaro:getValue(28, "armed")) > 0) )

or

startSource["type"] == "other"

)

then

fibaro:startScene(4);

end

The only problem is that I dont see any virtual devices on my iphone/ipad because of Fibaro not updating the tool..!! Otherwise I cloud see if the alarm was on because of different state of button icons.!

Link to comment
Share on other sites

  • 0

Hi,

This is what I did and it works ok. I Created a virtual swicth out of a normal relay that I used for something else (show child: yes). Associated an Sms/email when this virtual device "alarmNotice" changes state.

Scene "alarm on", "runOnce" then set all sensors to Arm. This is the button to press after having left home.

Scene "alarm off", "runOnce" then set all sensors to Disarm. This is the button to press before opening the door.

Scene "alarm", sensor1 armed and breached or sensor2 armed and breached then "alarmNotice" set to opposite state and light on and ligh off (5 sec) and siren on and siren off (360 sec)

This gives 5 secs before siren sounds - it's important to add siren off after 360 sec otherwise siren goes off as soon as door is closed...

Hope it helps!

Riccardo

Link to comment
Share on other sites

  • 0
Guest deraaij

You can do that in the variables panel, which is also available in the stable versions.

Regards,

Mark

Link to comment
Share on other sites

  • 0

idd i was looking there, but there is no add button

Please login or register to see this image.

/emoticons/default_icon_question.gif" alt=":?:" />

btw, i saw its was your birthday today

Please login or register to see this image.

/emoticons/default_icon_mrgreen.gif" alt=":mrgreen:" />

Have a nice day

Link to comment
Share on other sites

  • 0
Guest hotrot_net

Arno,

Create a virutal device there is where you can make buttons

Link to comment
Share on other sites

  • 0

I know

Please login or register to see this image.

/emoticons/default_icon_biggrin.gif" alt=":-D" /> but in the first step is says, create a variable, when i open the variable pannel there is no way to add one

variable.png

Link to comment
Share on other sites

  • 0
Guest hotrot_net

Strange mabye it's because i'm on beta version, i've got a "add" button on the bottom. Do you have version 1.044? or the beta?

Link to comment
Share on other sites

  • 0
Guest deraaij

Thanks, indeed it is! Is there not am option on the top left when you are in the variables panel?

Link to comment
Share on other sites

  • 0

Nope, no add button

Please login or register to see this image.

/emoticons/default_icon_redface.gif" alt=":oops:" /> . Also tried different browsers.

Maybe i have to upgrade to the beta version

Please login or register to see this image.

/emoticons/default_icon_sad.gif" alt=":-(" /> Don't realy wanna do that because my webinterface is messed up and remote access is'nt working anymore

Link to comment
Share on other sites

  • 0

arnovanderhorst : The only way I know (1.044 stable version) to add a new variable is, enter in existing scene or create new one and go to variable Menu (click on "+" icon and select variable, enter in create variable panel,

Please login or register to see this image.

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

Good luck...

Link to comment
Share on other sites

  • 0

Hey

Please login or register to see this image.

/emoticons/default_icon_mrgreen.gif" alt=":mrgreen:" /> there was he hiding

Please login or register to see this image.

/emoticons/default_laugh.png" alt=":lol:" />

Thanks, i can add variables now

Link to comment
Share on other sites

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