1.0.0: First release
1.0.1: Bug fix release
1.1.0: Bug fix release and reorder the Alarm Status Selector Switch levels, New Selector Switch for Open Section Timeout
1.1.1: Bug fix should fix "Issue: Rearming the zone doesn't seem to work #6"
1.1.2: Bug fix should fix "Issue: Sensor Active Time & Open Sections Timeout not saving settings #8"
1.2.0: Added Open Section Text Device
1.2.1: Bug fix not creating Open Section Text Devices when updating an existing plugin
1.3.0: Added fire devices, check if configured devices exists, text devices for Open Sections and Tripped devices
1.3.1: Fire devices now active the alarm when alarm is disabled
1.3.2: Thanks to Beastie971: Add support for PIR's with different options. Add support for disabling Alarm System with Security Panel
There was no real alarm system for Domoticz. Some scripts and blocky's are available, but they do not meet my expectations. So I created this plugin.
This plugin creates an Alarm System in Domoticz. It depends on the devices already available in your Domoticz setup, such as PIR, Door, other sensors.
The plugin is tested to works on a Raspberry Pi 3b.
To install the plugin login to the Raspberry Pi (SSH / Putty).
cd /home/<username>/domoticz/plugin
git clone https://github.com/Wizzard72/Domoticz-Alarm
sudo systemctl restart domoticz.service
Go to the hardware tab in Domoticz and select by field Type: Alarm System for Domoticz. Fill in all fields: | Field | Information |
---|---|---|
Domoticz IP Address: | The internal IP address of your Domoticz Install. | |
Domoticz Port Number: | The port number of your Domoticz Install. | |
Username: | The plugin need access to the sensors.It reads them with JSON. You can create a separate User for the plugin. | |
Password: | The password of the Username. | |
Active devices to trigger Siren: | How many devices must be triggerd to set the alarm off. It's configurable for Armed Home and Armed Away and is applyable to all zones. | |
Zone Armed Home: | Devices (idx numbers) that trigger the Alarm when activated. If the Alarm is in Armed Home state, it only checks the devices for this zone. | |
Zone Armed Away: | Devices (idx numbers) that trigger the Alarm when activated. If the Alarm is in Armed Away state, it not only checks the devices for this zone, but also for the Armed Home Zone (Armed Away + Armed Home). | |
Fire alarm devices: | Devices (idx number) that trigger the Alarm when activated. If one of the fire devices is turned on the Alarm is turned on also. It's independed of the arming mode. | |
Siren active for (s): | Configure how long the siren is turned on. When the arming mode status is turned to Off, the siren is turned off aswel. | |
Debug: | Debug information. |
When system is armed (Armed Home or Armed Away) Entry Delay is used to set the time period necessary for you to approach the keypad and disarm the system once after you have been detected by the zone which you set as "entry zone". During this time the plugin will not trigger the alarm.
The Exit Delay setting gives you a short period of time to leave your home once you’ve armed the Alarm.
The Open Sections Timeout is the amount of time the Alarm Arming Status keeps this status and after this period it's going to the next status. The Open Sections devices are not used until these open sections are closed. Then the device statussen are part of the alarm.
The statussen of the devices are kept in memory. So for example a door is opened and closed that takes only 1 or 2 seconds. The Sensor Active Time enlarge this time. If a person opens a door and closed it but is not yet in reach of the motion sensor, then normally the plugin would not combine the 2 activities and thus would not sound the alarm. By extending the tripped sensor time it's more likely to detect this.
Update plugin to latest version:
cd /home/<username>/domoticz/plugin
git pull
In Domoticz Hardware page: Disable the Alarm System for Domoticz plugin
In Domoticz Hardware page: Enable the Alarm System for Domoticz plugin