Jump to content
FIBARO Home Center App 1.0.0 - release Read more... ×
FIBARO Home Center App 1.0.0 - wydanie Read more... ×

Search the Community

Showing results for tags 'alarm'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • FIBARO Community
    • FIBARO Portal and Forum policy
    • FIBARO
    • Say hello!
    • Off-topics
  • FIBARO Update
    • FIBARO System Update
    • FIBARO Mobile Update
  • FIBARO Community Support
    • Scenes and Interface
    • FIBARO Products
    • FIBARO Mobile
    • FIBARO HomeKit
    • FIBARO Assistant Integrations
    • Other Devices / Third-party devices
    • Tutorials and Guides
    • Home Automation
    • Suggestions
  • FIBARO Społeczność
    • FIBARO
    • Przywitaj się!
    • Off-topic
  • FIBARO Aktualizacja
    • FIBARO System Aktualizacja
    • FIBARO Mobile Aktualizacja
  • FIBARO Wsparcie Społeczności
    • Sceny i Interfejs
    • FIBARO Urządzenia
    • FIBARO Mobilnie
    • FIBARO HomeKit
    • Integracja z Amazon Alexa i Google Home
    • Urządzenia Firm Trzecich
    • Poradniki
    • Automatyka Domowa
    • Sugestie

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Facebook


Google+


Skype


Website URL


WhatsApp


Country


Gateway/s


Interests

Found 56 results

  1. Why doesn’t the Fibaro app warm me when the Alarm Goes off. No vibration or alarmtone?
  2. Dear all, I have camera Arlo pro 2. For which I created a lula scene (across IFTTT) to arm and disarm camera. Both scene are linked to my Button. So when I leave or come in I cant arm / disarm easlily my camera. I would like to add something te be sure that it is armed or disarmed. First I put light . but not cool in summer. SO I put my ring but very noisy... So I wanted to display someting or jsut a song on my IPAD which is beside my button. So my question is from a scane is that possible to launch something on an Ipad ? Is yes how to do this? thanks for your support. thanks
  3. julesmartens

    JSON for lights

    Hi, I'm no fan of the build-in alarm in HC2 so I'd like to create my own scenes/VD's for this. . @Sankotronic is working on a very promising UHAS system but his plans are pushed out (no offence, he released real nice things already, I'm fan) so I decided to move on, writing some code myself with hopefully some help of you ;-)! What do I use in my alarm; > Lights (selected regular lights in the house to switch to 100% when alarm is breached) > Door/window sensors > PIRs > Sirenes (for acoustic alarm) > flashlight (for visual alarm) > RGBW led indicator (at the entrances to notify alarm is; just armed (leave the house indicator), armed (not safe to enter indicator), disarmed(safe to enter indicator) What do I want; > Fibaro remote keychains available to manually arm/disarm the alarm > All users have a IFTTT account on their phones to trigger a scene when entering/leaving home (geofence). This will set my global "guestmode". (bad exerience with Fibaro GPS) > When nobody is at home, the global "alarmmode" should set to "FullAlarm". At "FullAlarm" all PIRs and D/W's sensors are set to armed. (report error when not in safe state when arming). > When at night (Darkness) all users are at home and all PIR and D/W are safe for X time, "sleepstate" to be set "sleep" else "awake". > when at sleep, the "alarmmode" will switch to RingOnly. Only the D/W sensors will be armed (not PIR). When a PIR is breached the alarmmode will be set to disarmed state. When sleep state is reached again the alarmmode will switch back to RingOnly. > if armed and breached, the alarm is triggered. The sirenes and flashlight will start to run and all lights will be set to 100%. If all D/W and PIR are safe for X time, alarm to back to armed state and lights off. > if armed and breached, the timestamp of alarm will be logged. If alarm is disarmed after it was breached the notification LED will warn for this. > If I disarm the alarm, put all lights/DW in safe state. > Notifications via Pushover or even better, use the message hub of @autofrank with Fibaro PopUps and Push services. Unfortunately I currently have errors with the message hub. What is my current status. All code based on simple if/then LUA coding, no fancy loops. DONE: scene to check all PIRs Scene will set global variable DONE: scene to check D/W sensors. Scene will set global variable DONE: One scene to take care of the global sleepstate DONE: One scene to take care of the global guestmode DONE: a VD to manually set alarmstate and alarmmode. DONE: a VD to manually set guestmode todo: a mainalarm scene to arm/disarm the alarm (based on above algorithm) todo: an alarm scene to trigger the alarm when breached (or merge this in the mainalarm scene) todo: scene(s) for RGBW led indicators todo: scene(s) for the push notifications (Alarm breached, error (Eg door/window open when arming the alarm) I noticed that I get stuck with the remaining scenes. I'm no programmer, so I use mainly simple if/then LUA code. With a lot of scenes in the alarm you easily get lost. In an attempt to keep my coding cleaner/more condensed I want to use tables/json. I already use the Hometable but that's just a simple copy the instructions of @AutoFrank. Questions; For the remaining alarm scenes I have difficulties how to store a table in a global and even more how to use from a table. The tutorials on this topic are not clear to me yet. For example, when the alarm is breached, how to switch all lights to 100% for the device IDs in a global(table). I have seen examples of code like k,v in (i)pairs but I don't get it yet. Can somebody help me with some code examples? Any other suggestions on my ideas for an alarm? Thanks! Regards, Jules
  4. The zipato mini keypad is included in my HC2. I manged to register the RFID keys. (thanks for the tips). Now i want to make my hc2 an alarm system. First i made a scene as reaction on an away event of the zipato keypad, to arm my motion sensors. Works. Then i made a scene as reaction on the home event of the zipato keypad to disarm my motion sensors. Works partly. If the status of the hc2 is normal, the scene disarms the motion sensors. In alarm status the scene is not disarming the motion sensors. Why? It also does not stop the alarm status. I have to go in the hc2 interface with my laptop to set alarm off. What is the way to deactivate alarm status from a scene? I also want to let the zipato keypad beep when a movement is registred by my motion sensor. Is this posible and how is it done?
  5. alandee

    Integrated Alarm Suggestion

    Hi, My alarm system has finally died , for good this time, the panel was always a little dodgey, but now it's burnt beyond what I can be bothered trying to fix .. Anyway, I'd like to replace the complete alarm system with something I can integrate to a greater or lesser extent with the HC2. I remember someone posting something about a plug in board called .. envision .. i think ? and it might have been a plug in for DAS alarms ? But I can't find anything on that when I search so I've probably got the name wrong. I don't mind running wires, Actually prefer it for an alarm system, and I don't really mind what sort of cost there is if it ticks the right boxes. Although it's not essential, Ideally I'd like to have some secured integration also with gate and door control and also cameras all in one... but that wish list may have just put me into a fixed wired C-Bus or Control-4 system I expect. Does anyone have anything remotely like this that I can start researching ? It's difficult to know where to start as the suppliers of most of the alarm systems around here seem to have little idea about integration. Or to put it another way, what home alarm system do you have and how have you integrated it with your Fibaro system ? Cheers in advance, al.
  6. Witam Zakupiłem syrene alarmowa neo coolcam. Potrzebuję pomocy. Podobno ma ona kilka mocy głośności i różne dźwięki. Tylko nie mam pojęcia jak się je ustawia - aktywuje. Chciałbym ją użyć do alarmów (pożar. Zalanie. Włamanie) jak i do sceny - gdy motion sensor przy drzwiach wejściowych wykryje ruch (powiadomienie że ktoś wchodzi do domu - krótki nie za głośny sygnał)
  7. PiotrekS

    Alarm Fibaro

    Czy istnieje taka funkcjonalność by Fibaro czytało jedynie stan czujników Satela (integracja za pomocą ETHM) a nie wywoływało alarmów? W wersji 3.600 miałem wieczny komunikat o braku integracji satela bo centrala nie ma strefy Fibaro, choć od początku ją miała. Po pomyślnej instalacji wersji 4.140 w HC2 komunikat o braku integracji się nie pojawia, czujniki są widoczne, zmieniają swoje stany, podczas uzbrajania alarmu z Satela wszystkie widoczne strefy są na zielono (Fibaro również) ale Fibaro alarmuje naruszonymi czujnikami. Dziwne jest dla mnie to, że po rozbrojeniu alarmu z Satela, wszystkie strefy są rozbrojone, oprócz Fibaro i to też wywołuje alarm. W konfiguracji HC2 wybrałem opcję nie korzystania z Alarmu Fibaro ale nic to nie zmienia. Czy jedynie usunięcie strefy Fibaro rozwiąże mój problem? Czy może należy usunąć czujniki w panelu alarmu HC2, oby tylko mi ich nie usunął z centrali bo nie będzie podglądu ich stanów
  8. An alarm causes all scenes that are not checked "do not allow alarm to stop scene while alarm is running" to stop. I suppose that is done to limit z-wave traffic. I consider that all my VERY ESSENTIAL scenes with %% autostart should be running at any time (do not allow to stop while alarm is running) but that all the other scenes with %%autostart will restart AFTER an the alarm has been reset /disarmed However they will not auto restart after the alarm has been disarmed. I believe they will do so only after a system reboot or starting/saving each scene manually. I use Watchdog to restart a few very essential scenes that are not running and should be running at all times. I could add each ID of the scenes as well but I would like to use one scene to restart ALL "autostart" scenes which were stopped after the alarm has been reset/disarmed. Any suggestions?
  9. Hello to community, I like to share some thoughts about the Fibaro as Home Alarm system that may think and act. As I m not a coder, I like to share basic ideas hoping that people like them and build a sence/vd to make them real. On the other hand, as I have been victim of home break in more than once on the past, I have start to take security more than serious. I know that it is told to forum that fibaro can not be used as a burglar alarm. I may agree if the burglar is a tech guru or is part of law enforcement body. In this case break in would be the smallest problem I may face. Also believing that I may have the most advanced alarm system can save me from break in. False, I admit that. I just need to go one lever higher from the common burglar to alarm system configuration. First of all, you need to think as burglar to build a security alarm for your property. Increase safety everywhere on same level. For example putting a security door with high tech locks may force burglar to search for a easy opening window. Do a security audit for your property. I believe to human stupidity (I was victim of that on first time). So let fibaro to take care whatever you do not like to repeat. Install sensors on smart way. Where I install a door contact I ALWAYS put a motion sensor out of that door. I have a sence that when motion sensor detects motion, it arms door contact for an amount of time, even the alarm is not armed. Placing a button close that door can provide the cancellation of door contact arm status. it is used on Patio doors, or garden doors that have limited access from outside as also limited movement. On entrance I ask from community to build a sence that can trigger a notification/alarm if someone is outside the door for more that 1 min. It can be useful for people living in apartments. Surprise unexpected "guests"! A strobe light is triggered in the period of night by a fibaro plug. Opening lights can help burglar to search on the rooms. A strobe light disorientates! Also people that have garden in front, sprinkler system can be a solution (a wet burglar is easily spotted in the first minutes) Get more that 1 siren and hide them. The new trend on house break in is to remove siren and submerge into water (game over). So be prepared! Use bluetooth tags for detecting people presence. IMHO is the easiest way to arm and disarm alarm. I wish some day fibaro can give a native ble interface. If someone has a safer or reliable way I like to discuss about. On vacation mode add dummy users with their email and assign them on the security sences. It may save you and your vacations. I wish one day in my Country to get an email address the police station close to me @Fibaro do you have any glass break sensors? Now days, burglars break door glass. No contact is activated, burgars get 3-5 secs time to cut power (game over). When you left property, set your cameras on continuous recording using sences/vd. There is a possibility to records movements out of the area you have placed for motion trigger recording (may be a second person that support the person that break in) Night time inside home? Arm the perimeter and lock the doors! That is not news BUT if you place a micro-switch on the frame of the door (where lock is placed) and triggered when you lock the door, you can do 2 tasks in 1. Locking the door, automatic arm the perimeter. you can you binary switch or even window/door contact ( @Fibaro great idea to have this interface). Keep notifications as low as you can. We, humans, get confused with much info and by time we could not understand the severity of info. Trap the central power panel with contact sensor. Even if it inside house, it is a good practice to understand if/when they powered down main power switch. it may be a good reason to power up a backup generator. Build a maintenance scheduler for z-wave battery replacement (z wave devices, batteries of UPS that supports Fibaro HC2, camera lens clean, etc) that can be send as notification. Hardware request: Build a pressure sensor. If you use a silicon tube full of water and put a pressure sensor on one end and the other side is blind, you can you installed it on fences as pressure sensor, connecting to fibaro binary sensor you can get protection from climbing fences, balconies with the minimum false alarm. For now that is my thoughts, ideas. Hope someone find them helpful or even better build them.
  10. Hi all, I try to build a smart alarm system. I installed on entrance on a apartment a motion sensor. People sometimes pass outside apartment that can cause a false alarm. I like to ask from experts if you can build a basic sence that can count 1 minute after the first trigger and if there is activity/motion to sound alarm. As it is common burglars for security doors need from 30 sec to 5 min to open this kind of doors, in my opinion if someone will stay outside to my door, will not do that for a good reason. I believe that fibaro can give the flexibility that no other alarm system can provide.
  11. Sankotronic

    [SCENE] Universal alarm {v1.0}

    Universal alarm v1.0 Hello everyone! Here is one simple scene that can be used for FIRE, FLOOD or OTHER ALARM purpose. When triggered by sensor it will send you popup, push and e-mail notification. It can also activate additional alarm sounders. You can also add additional actions to turn On lights, lower blinds or whatever action you like to happen when alarm is breached and also when sensor get back to safe state. There is no global variables needed! If you use HomeTable then you can just uncomment line where this table is read to the scene. SCENE SETUP First you need to decide for what you will use this scene. You can use it for FIRE ALARM or for FLOOD ALARM or for any other purpose that you can think off. Just for setup example I will show here how to set it up for FIRE alarm. Same setup can be done for FLOOD alarm. First you need to add all your smoke detectors to scene header so that it is triggered when any of this sensors detects fire and get breached: --[[ %% properties 96 value 128 value 605 value %% globals --]] Then you can setup devices to which you want this scene to send push notifications. As already mentioned in my other threads, to find ID of your mobile devices you can enter this link in your browser: http://<YOUR_HC_IP>/docs/#!/iosDevices/getIosDevices and then press on button TRY IT! You will get ID numbers of all mobile devices that you can enter here: -- PUSH MESSAGES AND MOBILE DEVICE SETUP --------------------------------- -- define mobile devices to send push messages. Enter devices inside -- braces separated by comma local iosDeviceID = {206, 321}; Then you can setup messages text, translate it to your language: -- PUSH MESSAGES SETUP ------------------------------------------------------ -- enter push message text for breached alarm notification local pushMessage = "WARNING! FIRE/FLOOD/OTHER ALARM BREACHED!"; -- POPUP MESSAGES SETUP ----------------------------------------------------- -- enter popup message text and button caption for breached alarm local popupMainTitle = "FIRE/FLOOD/OTHER ALARM"; local popupTimeFormat = "%H:%M:%S | %d.%m.%Y."; local popupContentTitle = "ALARM breached!"; local popupImgUrl = ""; local popupButtonCaption = "OK"; Here you can setup users that will receive e-mail message. Same as for mobile devices, you can find users ID by entering following link in your browser: http://<YOUR_PC_IP/docs/#!/users/getUserss and then press button TRY IT!. You will get ID numbers of all users that you can enter here: -- E-MAIL MESSAGE SETUP ----------------------------------------------------- -- define users for which you want to receive e-mail warning. Enter users -- inside braces separated by comma local userID = {}; -- Translate this e-mail message text that will be sent to you. On this -- part scene will add which sensor was breached. local emailMessage = "Breached FIRE/FLLOD/OTHER sensor:" In above settings you can also setup first part of the e-mail message. Scene will on that part add room and name of the sensor that is breached! If you want to activate additional sounders because fire and flood sensor sounder is not enough then you can setup here additional sounders to be activated when alarm is activated: -- EXTRA SOUNDER SETUP ------------------------------------------------------ -- define alarm sounder ID inside braces. You can define more than one just -- separate them with comma. local sounderID = {128, 210}; And for the end, if this is not enough for you and you want more action to be executed when alarm is breached, like close water valves, close blinds or turn on some lighting then you can add that code yourself. There are three functions where you can add code: -- EXTRA FUNCTIONS WHERE YOU CAN ADD YOUR CODE ---------------------------- -- use this function to add code that will be executed before all other -- code when sensor is breached function extraUserCodeBreachFirst() -- your code goes here end -- use this function to add code that will be executed after all other -- code when sensor is breached function extraUserCodeBreachLast() -- your code goes here end -- use this function to add code that will be executed when sensor is -- back to safe state function extraUserCodeSafe() -- your code goes here end If you want some action before notifications are send and sounders activated then you add code to function extraUserCodeBreachFirst(). If you want some action to be executed after notifications are sent and sounders activated then you add code to function extraUserCodeBreachLast(). When sensor goes back to safe state scene is activated again. It will not send any messages but will stop sounders and if you want some more action then you can add code to function extraUserCodeSafe(). So, one copy of this scene you can setup for FIRE ALARM. Another copy you can setup for FLOOD ALARM, and if you have something else then you can setup third copy for that OTHER ALARM. NOTE! This scene is tested on my HC2 with software 4.110 by breaching FIRE & FLOOD sensors and found to work flawlessly. If you encounter any problems then please first check your settings and look for typos. If you are still unable to make it work then please send me copy of complete scene code and screenshot of debugging window to my private message and I will help you to make it work! Please, I will appreciate very much any feedback and requests for additional features!! Example of debug window when scene is activated: ICONS DOWNLOAD Icons for this scene you can find here: SCENE DOWNLOAD FILE Please click bellow to download: [SCENE] Universal alarm scene {v1.0} as TXT file --------------------> Universal Alarm scene v1.0.txt [SCENE] Universal alarm scene {v1.0} as LUA file --------------------> Universal Alarm scene v1.0.lua NOTE LUA version of scene code is saved by ZeroBrane Studio v1.50. You can download it at this link: https://studio.zerobrane.com
  12. Patryksikorski

    sceny alarmu nie działają

    Witam jestem nowym użytkownikiem HC2, mam siedem czujników ruchu w oparcie o nie zbudowałem siedem prostych scen alarmowych w oparciu o bloki, a mianowicie: gdy czujnik uzbrojony i naruszony to wysyła zdjęcie z kamery i pusha na telefon z odpowiednim komunikatem np; włamanie salon, włamanie jadalnia. Wcześniej utworzyłem odpowiednie komunikaty w panelu powiadomień, które następnie wykorzystałem dla poszczególnych czujników w różnych pomieszczeniach. Niestety gdy uzbrajam alarm i jakiś czujnik zostanie naruszony to nie przesyła mi pusha ani zdjęcia z kamery. Natomiast gdy naciskam PLAY na scenie to otrzymuję powiadomienia. Dlaczego to nie działa? Proszę o pomoc
  13. robmac

    CO Sensor - 9 month test and all OK

    Hi, I was lucky to get one of these to test and was about to add a couple more near my two new wood-burning fires. I thought I would repeat my test and I am pleased to say the device past with flying colours. These devices do work well and warn well before the limit. Well worth adding if you have appliances that could produce CO. Loud siren as soon as it hit red and notifications flashing. I test like this: 1) Puddle of water to create a seal 2) a couple of matchsticks to hold sensor out of the puddle 3) place sensor on matchsticks 4) put a small candle on top of a shot glass. 5) light candle and let it get burning well 6) invert bowl over the rig 7) and leave it The alarm does not sound that loud until you remove that bowl but when you take that bowl off it is plenty. I also trigger the main house alarm to make sure as loud as possible. notification on alarm and return to safe 9 months and I know we have not had detectable levels of CO in the house
  14. Dunkigrease

    Using fob to arm / dearm alarm

    I have set up my Fibaro system with a dozen door sensors and three motion sensors and I have added a Fob. I am a little confused now as to how to get my fob to be able to arm and disarm the alarms on all of the sensors at once and send a push notification / sms if any one of them is breached with a message to tell me which one has been breached. There are scenes, alarm panels, associations it is mind boggling. I just want a simple solution. Help! Thanks
  15. Vinisz

    NFC experience

    Guys, Does any of you have any good experience with NFC tags & tag reader in combination with HC2 ? I want to use it to arm/disarm the alarm instead of typing in a code on the display.
  16. Hi, Does anyone has a smart idea/code to get the device ID/Name of the device which triggered the alarm? Preferable a solution with flexible device detection, meaning, without the need to store the ID's in static tables in code. Thank you in advance!
  17. 3JL

    Wake-up alarm

    Hi all, Did any of you find a decent solution for integration of a wake-up alarm? Essentially I would like to: Start heating etc 30 mins before my alarm Ultimately, automatically set the alarm based on sleeping time (+8 hours) and calendar appointments A logical starting point would be the iOS (a prerequisite in my case) wake-up alarm (e.g. i.c.w. IFTTT or workflow). However, there is no way to read or adapt it... Hence I was wondering how others have worked their way around this? A network-connected alarm clock? A third-party app with an api? I am looking forward hearing your solutions! J
  18. Has anybody had a crack at getting Nest Protect exposed in HC2 as a v4 plugin? I can understand Fibaro not offering direct support as it has a competing product, but i would be interested if there was any community effort already underway ? The API doesn't look tricky - https://developer.nest.com/documentation/api-reference
  19. Hi all. Does anyone know if the new Texecom Connect API is being worked on to integrate with Fibaro? see here for more details: http://www.texe.com/uk/technology/connect/ Thanks
  20. nanathlor

    "Advanced" Alarm Panel

    Is it me or does the Alarm panel have a nice easy to use interface but has absolutely no configuration section for configuring, setting off and disabling an Alarm (Siren)? I know we can code this but I don't really have the time (home automation for me is more a practical solution to issues I have than a hobby I want to immerse myself in) Am I the only one using Fibaro kit who finds it odd that the "Alarm" panel places more emphasis on closing and opening window blinds than activating an Alarm? Dave
  21. Hello, The alarm panel seems to delay putting lights on or start a scene via the alarm panel, when there is a alarm detected. However the delay is set to 0 in the delay panel, it will take about 20 seconds to start the scene or put the lights on. The problem is NOT the connection between the door sensor and the HC2 because the " alarm detected pop up" shows up immediately when the door is opened. Someone with the same problem? (and I hope a proper solution!)
  22. I messed up some code tags so re-posting... Hi Here is my small tutorial on the alarm system code i use to complement the rfid keypad system. Firstly you need to create an 'ALARM' variable with at least 2 values. one variable will be OFF second variable will be FULL (or whatever name you want to give) you could if you wanted create many more variables for different zone eg i have a 3rd called DOWN you then programme the keypads (or any other scene) to change the variable to the alarm mode you want --[[ %% properties 145 value 146 value 159 value 160 value %% events %% globals --]] local alarm = fibaro:getGlobal("alarm") local kpof = fibaro:getValue(145, 'value') local kpon = fibaro:getValue(146, "value") local bkon = fibaro:getValue(159, "value") local bkof = fibaro:getValue(160, "value") if ( ((kpon == '1') or ( bkon == '1')) and (alarm == 'off') ) then fibaro:setGlobal("alarm", "down") end if ( ((kpon == '1') or (bkon == '1')) and (alarm == 'down') ) then fibaro:setGlobal("alarm", "full") end if ( (bkof == '1') or (kpof == '1') ) then fibaro:setGlobal("alarm", "off") end From above i have 2 keypads. I have put triggers under the properties for both ON and OFF when i press the 'ON' button once it changes the VARIABLE to PART, if i then press again it changes the VARIABLE to FULL. If you wanted you could continue this for more zones but it can get a bit complicated...... Finally if either of the OFF buttons are pressed the VARIABLE is set to OFF. Next part is the actual setting of the alarm.. --[[ %% properties %% events %% globals alarm --]] if (fibaro:countScenes() > 1) then fibaro:debug('NO!') fibaro:abort() end fibaro:sleep(12*1000) -- set delay time here mine is 12 seconds local alarm = fibaro:getGlobal("alarm") local downArmIds = {} -- set ID's for DOWN mode local fullArmIds = {} -- set ID's for FULL mode local deviceIds = {} -- leave blank as it will auto fill -- single 'alarm' variable with multiple arguments -- in one place (lists above) if (alarm == 'full') then deviceIds = fullArmIds elseif (alarm == 'down') then deviceIds = downArmIds elseif (alarm == 'off') then fibaro:abort() end local unsafeDevices = {} -- will add unsafe devices to this empty list local statusMessage = "" -- will get changed to push message depending on outcome below -- below loops through all devices to check device values are safe, i.e. '0' -- otherwise adds the devices to unsafe list in preparation for push message local armStatus = 'safe' for i, id in ipairs(deviceIds) do if (fibaro:getValue(id, "value") == '0') then deviceStatus = 'safe' else deviceStatus = 'unsafe' table.insert(unsafeDevices, id) armStatus = 'unsafe' end print("Id: " .. id .. " " .. fibaro:getName(id) .. " is " .. deviceStatus) end print("\nArm status is " .. armStatus) -- if unsafe, then formulates the push message, otherwise sets the device to arm if (armStatus == 'unsafe') then -- loops each device in unsafeDevices list to specify the all the names of device to be -- included in push message for i, id in ipairs(unsafeDevices) do statusMessage = statusMessage .. fibaro:getName(id) .. " ; " end statusMessage = statusMessage .. " unsafe to arm.\nAlarm not set" fibaro:setGlobal("alarm", "off") --[[ Example message... "Front Door; Living Room Motion; Studio Door Lock; unsafe to arm. Alarm not set" ]]-- else -- loops devices to set them to arm status for i, id in ipairs(deviceIds) do fibaro:call(id, "setArmed", "1") end statusMessage = "Alarm set to " .. fibaro:getGlobal("alarm") --[[ Example message... "Alarm set to full" or "Alarm set to part" ]]-- end fibaro:call(319, 'sendPush', statusMessage) -- push message to me change 319 accordingley -- add any other code here that you want to run eg turn lights off or heating off etc print(statusMessage) -- prints in debug window this looks big but you only need to add the device ID's of your FULL mode, DOWN mode and any other message once the alarm has been set. Remember to separate your ID numbers with a comma The code is triggered by a change in the global variable called 'alarm'. This then starts the scene. The time delay gives you time to press again for different modes and also to leave the house and make sure that all sensors become safe. (i have set my motion sensors to show as being safe after 5 secs, the default is around 15 secs). After the time delay it checks which variable is set, then it only checks those sensors to make sure they are all SAFE. If they are SAFE then it proceeds to ARM those sensors and then sends you a push message that the alarm has been set and will run any additional code you have added eg turn off the lights, heating etc If they are UNSAFE then it aborts the arming procedure and sends you a message that 'a named sensor is unsafe to arm', you can then investigate and make sure it is safe before starting again. examples include if a door was left ajar or window is left open etc Next part is the ACTIVATION code: --[[ %% properties 25 value 85 value 95 value 148 value 90 value 171 value 176 value 166 value 32 value 45 value %% events %% globals --]] function activation() local trigger = fibaro:getSourceTrigger() --fibaro:debug(trigger) local device = fibaro:getName(trigger['deviceID']) fibaro:debug(device) local subject = 'alarm activated' local message = 'alarm activated ' fibaro:call(2,'sendEmail',subject,message..device) -- ID of user '2' is always admin fibaro:call(319,'sendPush',message..device) -- ID of my phone end local alarm = fibaro:getGlobal("alarm") local downArmIds = {} local fullArmIds = {} local deviceIds = {} if (alarm == 'full') then deviceIds = fullArmIds elseif (alarm == 'down') then deviceIds = downArmIds elseif (alarm == 'off') then fibaro:abort() end for i, id in ipairs(deviceIds) do if ( (fibaro:getValue(id, "value") == '1') and (fibaro:getValue(id, "armed") == '1') and (alarm ~= 'off') ) then activation() -- this is function above fibaro:call(123, "turnOn") -- code for turning siren on fibaro:sleep(10*60*1000) -- 10 min delay change to what you want fibaro:call(123, "turnOff") -- code for turning siren off -- plus any other code you want to add end end firstly you need to enter the ID numbers of all your sensors in the properties section as triggers except the entry zonesalso the fullArmIds and downArmIds need to match the previous arming code except for the entry doors we have a separate entry code to give us a time delayed entry1st block is the function activation(), this basically tells me via push message and email which sensor triggered my alarm2nd block checks to see which mode the alarm is in and therefore will only monitor those specific ID's3rd block will cause the alarm to trigger if our 'armed' devices are breached and run the activation code Entry code is below this as name suggests gives us a defined time to enter property and switch off alarm before it activates: --[[ %% properties 82 value 83 value %% events %% globals --]] local fda = fibaro:getValue(82,'armed') -- front door armed local fdv = fibaro:getValue(82,'value') -- front door value local bda = fibaro:getValue(83,'armed') -- back door armed local bdv = fibaro:getValue(83,'value') -- back door value local alarm = fibaro:getGlobalValue("alarm") function activation() local trigger = fibaro:getSourceTrigger() --fibaro:debug(trigger) local device = fibaro:getName(trigger['deviceID']) fibaro:debug(device) local subject = 'alarm activated' local message = 'alarm activated ' fibaro:call(2,'sendEmail',subject,message.. device) fibaro:call(319,'sendPush',message.. device) end if ( ( (fda == '1') and (fdv == '1') and (alarm~='off') ) or ( (bdv == '1') and (bda == '1') and (alarm~='off') ) ) then fibaro:sleep(30*1000) -- 30 sec delay local alarm = fibaro:getGlobalValue("alarm") if (alarm == 'off') then fibaro:abort() else activation() fibaro:call(123, "turnOn") fibaro:sleep(10*60*1000) fibaro:call(123, "turnOff") end end to start with set the ID of your entry zones under properties, and update the ID 82 and 83 with your own. If you have just 1 then delete accordingley and more than 2 then just add the extra as needed the function is same as before the final block checks if the doors have been opened if they are armed and the alarm is NOT set to off it then starts a 30 sec timer. Just amend 30 to whatever time you need. once the timer has counted down it will check the variable again and if you have turned alarm off then code aborted. if alarm not switched off then activation procedure starts just as before and sends push message, email and siren activates for 10 mins. Final part is turning the alarm off --[[ %% properties %% events %% globals alarm --]] local alarm = fibaro:getGlobal("alarm") local deviceIds = {} if ( alarm == 'off' ) then fibaro:call(319, "sendPush", "Alarm Off") -- my phone fibaro:call(123, "turnOff") -- siren -- any other code for i, id in ipairs(deviceIds) do fibaro:call(id, "setArmed", "0") end end fill the deviceIds with the values of ALL YOUR SENSORS - incl entry sensors the trigger for this is the global variable alarm if its in the 'off' setting then it will send me a push message and send an 'off' command to siren (just in case it was activated) it will then go through the sensors 1 by 1 and disarm them all I hope this helps all of you and any questions and feedback and comments please feel free to leave them thanks
  23. Hi there, i want to ask, if there is a way to see the Hue-Lamps in the alarm section as light - i can't find them in „Scena LIGHTS ON“. Is there an other way? Thanks Karl Heinz
  24. nickmc

    Add hue lights to alarm

    Hi everyone, I am a new user of home centre 2. I have set up an alarm, but is there a way to turn hue lights on when it is triggered? I can't seem to find a way to do that. Any help would be great!
  25. Bogdan Munteanu

    Flood Sensor dosen`t report alarm !

    Hello , I don`t understand why my flood sensor doesn't send FLOOD ALARM, I have HCL Version 4.120.If I try to make a scene who send PUSH notification it work.I don`t want to make a scene to recive information about FLOOD. I want to recive an alarm state or something like this. Whitout scene I don`t recive any alarm or message if this sensor is flooded.. I try to reset and resync my sensor and install on HCL older version. Give me some ideea!!!
×