Terminals Created by the Alarm Script
The Alarm Device has a set of terminals which are created when running the basic "Alarm" Script. These terminals are named "alarm", "command", "disabled_inputs", "enabled", "input_status", "messages", and "trigger".
"alarm" Output Terminal
When an Alarm Device is stimulated by an alarm condition, it will set its "alarm" output terminal to
"enabled" Output Terminal
The "enabled" terminal says whether the Alarm Device is on or off. If the "enabled" terminal is
The Alarm Device enables and disables itself when responding to commands on its "command" terminal.
"command" Input Terminal
The Alarm Device responds to a set of commands on its "command" terminal. Commands come from other Devices over wires connected to the "command" terminal. Each command will generate a message on the "messages" terminal (see messages Terminal section). Commands are double quoted strings and are one of the following (case insensitive):
"messages" Output Terminal
When the Alarm Device receives a command (see "command" Terminal section), or senses alarm conditions, it writes a message to its "messages" terminal. Messages are double quoted strings suitable for wiring to other Devices or for just reading from a web status screen. The messages sent on the "messages" terminal are as follows:
"input_status" Output Terminal
This terminal has a real time status of all the Alarm Device input terminals. The status is a double quoted string suitable for wiring to other Devices. It is updated all the time, even when the Alarm Device is disabled.
"trigger" Output Terminal
This terminal has a double quoted string describing the most recent trigger condition. Triggers are reported on this terminal whether the Alarm Device is on or off (useful when debugging a system which is off) and whether the "alarm" output is on or off. The message on the "messages" terminal when an alarm occurs also has this trigger information.