[ Home | Documentation | Hardware | Use Cases | Download | License | Screenshots | Mailing List ]

SecurityFactory

The SecurityFactory is responsible for all aspects of home security. It interacts with multiple factories to collect status data, makes decisions with that data, and calls other factories to notify the user or otherwise react to the security events.

This Factory has not yet been implemented.

Commands:
EXIT
QUIT
Disconnect cleanly
AUTH [password] Authenticate w/ a shared secret
PING Verify the server is still alive
RELOAD Not implemented - will flush registry and re-read config file
SHUTDOWN Cleanly stop server
GET [name] Gets the state of a security monitor. Most probably return codes are OK and ALERT
ALARM [sensor name] [state] [alert] Create a new alarm. If the sensor goes into state then generate alert. An alarm is only generated if the system is armed.
RESET [code] Resets the state of all monitoring devices. Action is logged.
ARM [code] Arms the security system. If armed Alarms may occur. Code is required for security reasons. Action is logged to the security log.
DIARM [code] Disarms the security system so Alarms will not occur. Code is required. Action is logged to the security log.
ALERT [name] [command] Execute an alert. An alert is a method of notifying the user that an alarm has occured. An alert object may call another factory (ie X10 factory to turn on a light) or call an internal alert device (such as a siern or buzzer).

Internals:
There are three different devices used by this factory.

  • Alerts - This class of device objects implement several different ways of alerting the user to the fact an alarm has occured.
  • Alarm - This object monitors the sensor for a state change and will call the approprate alert. Alarms are fetched from MasterControl on startup and can be added at runtime by the ALARM command.
  • Sensor - This class of device objects implement the different kinds of sensors available. Sensor definitations are fetched from MasterControl on startup or reload.

    Registries are used to store the Alerts, Alarms and Sensors.


  • Questions or comments should be sent to: Chris Farris chris at room17 dot com
    Copyright 2000-2003, Room17 Enterprises, all rights reserved.