This repository has been archived by the owner on Apr 25, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
Fibaro Security System configuration for HomeKit
ilcato edited this page Feb 24, 2019
·
4 revisions
In config.json:
- add the parameter:
"securitysystem": "enabled"
In Fibaro Home Center:
-
Create a GlobalVariable named SecuritySystem with the following values:
. StayArmed . AwayArmed . NightArmed . Disarmed . AlarmTriggered
-
Create a scene for setting arming status of devices and update the previous global variable. Scene names must be:
. SetStayArmed . SetAwayArmed . SetNightArmed . SetDisarmed . SetAlarmTriggered
-
Scene must have flag "Do not allow alarm to stop scene while alarm is running" checked.
Example scene Lua code for SetNightArmed (device IDs are just examples):
--[[
%% properties
%% events
%% globals
--]]
fibaro:call(200, "setArmed", "0");
fibaro:call(201, "setArmed", "1");
fibaro:call(203, "setArmed", "0");
fibaro:call(204, "setArmed", "1");
fibaro:call(301, "setArmed", "0");
fibaro:call(310, "setArmed", "1");
fibaro:call(400, "setArmed", "0");
fibaro:setGlobal("SecuritySystem", "NightArmed")
The SetAlarmTriggered MUST contain the following code plus any logic you want to execute after the alarm is triggered (ex.: turn on a siren):
--[[
%% properties
%% events
%% globals
--]]
fibaro:setGlobal("SecuritySystem", "AlarmTriggered")
- In Alarm Panel of Fibaro Home Center the SetAlarmTriggered scene MUST be added (advance section) and activated.