Concept.pm |
NONE
This is a Misterhouse module for handling input from the Concept alarm system made by Inner Range. Details on the alarm system can be found at www.innerrange.com.au At the moment the model expects the alarm system to be connected to one of the serial ports on the computer. The computer, which looks like a printer to the alarm system, will scan the lines recieved looking for key strings and take the appropiate action if one is found.
The module will log everything recieved to; {data_dir}/logs/ConceptYYYY_MM.log where YYYY is the year amd MM is the month
This module is based on the DSC_Alarm module writen by Danal Estes
20020601 - Nick Maddock - Creation day
20020609 - Nick Maddock - Tiedied up a lot of things
20020609 - Nick Maddock - Put handling to occupied in
20020609 - Nick Maddock - Put in change of logs every day
Still to do
- Handler for over alarm things
- Migrate to a better communication standard
- Handling for alarm auxilaries
- Activation, Deactivation (???) of the alarm system
Generic_Item
serial_startup
Create serial port(s) according to mh.ini Register hooks if any ports created.
Concept_serial_port = COMx # The serial port alarm system is on
= /dev/sttyx
Concept_baudrate = [1200, 4800, 9600] # The baudrate of the port
debug = Concept # Will turn dbuging information on if present
UNK
NONE
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
NONE
NONE
Concept
new
Cretes a new object of one of the alarm types. Takes:
Class - The object class, well it's automatamiatically passed
Zone Name - The zone name associated with this object
Idle Timer - The amount of time the object should be restored for
before it is considered to be restored, this is for
occupancy on the motion sensors
zone_name
Returns the Zone Name that the object is interested in this routine is used by the parent object so that it can find the correct instance when it recieves and alarm or restore
alarm
Called by the parrent function when an alarm is recieved for this object. This function should change the state to alarmed and stop the timer if it is running
restore
Called by the parent object when a restore is recieved for this input, This should change the state to not alarmed and start a timer to clear the occupied flag
timer_expired
This routine is run when the timer expires it rests the occupied flag to indicate that the room isn't occupied any longer
state
returns the current state of the zone object
occupied
returns the current occupied state of the zone
NONE
UNK
NONE
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Concept.pm |