Version 17 (modified by mcvflorin, 13 years ago) (diff) |
---|
Introduction
The DSC Alarm plug-in is a Luup component that connects Vera to a DSC PowerSeries alarm panel such as the PowerSeries 1616, 1832 and 1864 panels, via the IT-100 RS232 Keybus module. Through this interface, events occurring within the Alarm Panel are exposed to Vera including the status of any attached Doors, Windows, Motion Sensors.
Each of these is exposed as a Motion Sensor to Vera, so that standard Scenes (Lights, Notifications, etc) can be established in Vera based upon events occurring within the Alarm Panel.
Additionally, the interface exposes the current Armed State, Stay Armed State and whether the Alarm is in Breach. These are also exposed in a Scene-aware manner so that Vera can respond to them.
WARNING: This plug-in will probably not work with the "UI3" (versions 1.1.x) of Vera's firmware.
How does it work
The DSC Alarm Panel uses a proprietary interface bus, called Keybus, to talk to the devices connected to it. The IT100 Serial module is a Keybus device that acts as a bridge between the Alarm Panel.
The IT100 interface sits on the Keybus interface where other devices such as Keypads are normally wired, it is able to interact with Alarm Panel messages in order to interface with a Home Automation controller such as Vera. Similarly, these messages can be sent from the Home Automation device back to the DSC Alarm Panel to perform various actions.
To connect the IT100 to Vera, a user will have to decide the best method to interface with Vera. This can be accomplished with any of the following options:
- Direct Connection to a USB to RS232 serial adapter thats supported by Vera such as this one.
- Wired Ethernet Connection via an IP to RS232 serial adapter such as WIZnet device like this one.
- WiFi to RS232 serial adapter such as this one.
Terminology
Zone::
a specific sensor in the Alarm Panel, such as a Window, Door or Motion Sensor. These may either be hardwired, or wireless, depending upon the type of sensor.
Area / Partition::
a collection of Zones. Typically there is a single Area in a house. Larger houses are often split into separate Areas (Upstairs vs Downstairs). External buildings such as Garages and Guest houses are also candidates for additional Areas.
Keybus::
DSC Security proprietary protocol. This protocol is used for communications between DSC System components, such as the IT100, T-Link IP modules, Zone Expanders, and the System Keypads.
Remote control::
a Key chain remote control device, used to Arm (Lock), Disarm (Unlock) or set a Panic Alarm
Entry Door::
a Zone (door) with a grace period delay attached to it. The Alarm will not go off during the grace period.
Breach::
the Alarm is currently going off, either with a Bell, or a Silent Alarm.
Arm::
the act of setting the Alarm Panel into the "I'm leaving" state.
Stay Arm::
the act of setting the Alarm Panel into the "I'm staying" state. In this state the Motion Sensors don't trip Alarm Breach.
Force Arm::
same as Arm except that some Zones may be left Open
Instant Arm::
same as Stay Arm except there is no grace period on opening an Entry Door.
Virtual PGM::
a special type of Zone defined within the Alarm Panel. The Alarm Panel can be configured to establish the conditions under which a Virtual PGM [Zone] is triggered and/or reset. Virtual PGMs events are supported in the code, but are disabled by default to make the UI simpler.
One Touch or Quick Arming::
a variant on the Arming modes that typically doesn't require a PIN Code to be entered to initiate the Arming request.
Messages
Depending upon the specific model of Alarm Panel, there will be support for different numbers of Zones, and Areas. However at startup of the DSC Alarm plug-in, upon successful connection to the Alarm Panel itself, the plug-in will default to creating 6 zones (1,2,3,4,5,6) regardless of how many Zones are configured, and how they may be numbered. The Plug-in by default will also create only one partition despite how many are configured. Once basic communication has been established, it will be necessary to configure the plug-in with the respective zones and partitions.
These low-level messages are varied, but include:
- Retrieve a Zone Label
- Retrieve a Partition Label
- Read the status of a Zone (open/closed)
- Read the status of an Area (armed/force-armed, stay-armed/instant-armed, alerting/breach)
- Zone status change events
- Zone status change events
- Request Arming / Force-Arming
- Request Stay-Arming / Instant-Arming
- Trigger Alerting / Breach
- Remote control.
The DSC Alarm Plug-in processing
Startup processing
The Startup processing for the Alarm Panel plugin looks roughly like:
- Establish Communication with the Panel
- Create 1 partition and attempt to read the partition label.
- Create 6 Zones as child devices in the System, and attempt to read the zone labels.
- retrieve the current state of each Zone, and "set" it into Vera
Event processing
After startup, the system is set running. It receives events and, for those of interest, it translates them into MotionSensor values to set upon it's Child Devices, in addition to setting Variables directly on the Alarm Area device
During Scene creation, the following Events are exposed by each partition:
- Partition is Armed
- Partition is Stay Armed
- Partition is Breached
- Partition is Disarmed
During Advanced Scene creation, the following Actions are exposed by each "Area" device:
- Arm Partition - Submit a request to Arm the Alarm Partition (with PINCode)
- Quick Arm Partition - Submit a request to Quick, or "OneTouch", Arm the Alarm Partition (no PINCode required)
- Stay Arm Partition - Submit a request to Stay-Arm the Alarm Partition (with PINCode)
- Quick Stay Arm Partition - Submit a request to Quick, or "OneTouch", Stay-Arm the Alarm Partition (no PINCode required)
- Disarm Partition - Submit a request to Disarm the Alarm Partition (PINCode required)
- Medical Panic - Submit a request to trigger the Alarm Partition's Medical Panic - UI4 and above only
- Fire Panic - Submit a request to trigger the Alarm Partition's Fire Panic - UI4 and above only
- Police Panic - Submit a request to trigger the Alarm Partition's Police Panic - UI4 and above only
NOTE: The Alarm plugin code disables these Actions by default. They must be enabled prior to using them in a Scene definition. Since MiOS stores these scene definitions, including any Parameters supplied (eg PINCode) use of these features may constitute a security risk - use at your own risk.
Alarm Area Variables
This Alarm Panel implements a DeviceType that gives it the following Variables (through it's ServiceStateTable). These can be used for Luup scripting:
- Disarmed - Set whenever the Alarm Area is Disarmed (not Armed and not StayArmed)
- Armed - Set when the user requests the Alarm Area to Arm, Force Arm, Stay Arm or Instant Arm the Area
- StayArmed - Set when the user request the Alarm Area to Stay Arm or Instant Arm the Area
- Breach - set when the Alarm Area is in Breach (Siren, Silent etc)
Installation & Setup
Discussion
References
Attachments
- main_panel1.png (11.5 KB) - added by javier_guerra 14 years ago.
- partition_panel.png (10.1 KB) - added by javier_guerra 14 years ago.
- arming2.png (24.7 KB) - added by strangely 14 years ago.
- create.png (27.7 KB) - added by strangely 14 years ago.
- createdevice.png (29.3 KB) - added by strangely 14 years ago.
- files.png (37.0 KB) - added by strangely 14 years ago.
- ip.png (28.9 KB) - added by strangely 14 years ago.
- IT100.jpg (13.8 KB) - added by strangely 14 years ago.
- remotearm.png (29.8 KB) - added by strangely 14 years ago.
- room.png (74.3 KB) - added by strangely 14 years ago.
- time.png (18.4 KB) - added by strangely 14 years ago.
- zones.png (30.1 KB) - added by strangely 14 years ago.
- keypad.jpg (25.8 KB) - added by strangely 14 years ago.
- 232.png (16.2 KB) - added by strangely 14 years ago.
- 2DS.png (78.0 KB) - added by strangely 13 years ago.
-
EnvisaLinkTPI-1-00.pdf
(89.7 KB) -
added by strangely 13 years ago.
2DS TPI developer guide
-
Connection ELV3.jpg
(163.6 KB) -
added by brientim 11 years ago.
Schematic DSC and EVL3
- WIZnet.2.jpg (26.3 KB) - added by brientim 11 years ago.
- ExampleConnection.jpg (61.3 KB) - added by brientim 11 years ago.
- EVL3.jpg (26.0 KB) - added by brientim 11 years ago.
-
WIZnet.jpg
(26.3 KB) -
added by brientim 11 years ago.
WIZNET