Using Kpl Keypad Triggers For Multiple Combination Locks - Universal Devices ISY-994i User Manual

Home automation
Hide thumbs Also See for ISY-994i:
Table of Contents

Advertisement

11.5.4

Using KPL KeyPad Triggers for Multiple Combination Locks

The forum has a great article on setting up a KeypadLinc as a combination lock. The URL of
this document is:
https://forum.universal-devices.com/topic/16135-using-kpl-keypad-
triggers-for-a-multiple-combination-locks/
I have included this document below:
I use this series of programs as a combination keypad to turn on and off my armed/away
mode. This determines the course of action of motion detected, low and high temperatures
detected in several places, even the when clothes dryer is done, and many other functions.
On this project I decided to let ISY's even trigger processing do the work instead of calling
subroutines. It makes a much cleaner project but event triggering can be a little confusing
as it is not obvious what happens when your twiddle with a variable.
The first set of programs converts the keypad presses into a numerical value and shifts it
into a state variable $sKeypress_sequence. One program will need to be defined for each
button that you want to involve. I have posted only the first and fourth button programs for
demonstration purposes, here. If you have an eight-button keypad, eight separate
programs will need to be written.
Keypad buttons must be programmed to be "toggle 0ff - ON" mode so that each keypress
will generate an On event trigger.
The result of several keypresses is a string of digits that can be analyzed for acceptance of
our combination lock program(s). eg: Keypress sequence 'B", 'A', 'A', 'D', would result in
state variable $sKeypress_sequence containing the number '2114'.
Page | 288

Advertisement

Table of Contents
loading

Table of Contents