Contains different types of devices belonging to the Alarm Decoder (AD2) family.
Bases: object
Generic parent device to all Alarm Decoder (AD2) products.
Called when the device has been opened
Called when the device has been closed
Called when a line has been read from the device
Called when data has been written to the device
Bases: alarmdecoder.devices.Device
AD2USB device exposed with PyFTDI’s interface.
Vendor ID used to recognize AD2USB devices.
Product ID used to recognize AD2USB devices.
Default baudrate for AD2USB devices.
Returns all FTDI devices matching our vendor and product IDs.
Returns: | list of devices |
---|---|
Raises : | CommError |
Returns a cached list of AD2USB devices located on the system.
Returns: | cached list of devices found. |
---|
Factory method that returns the requested USBDevice device, or the first device.
Parameters: | device (tuple) – Tuple describing the USB device to open, as returned by find_all(). |
---|---|
Returns: | USBDevice object utilizing the specified device. |
Raises : | NoDeviceError |
Starts the device detection thread.
Parameters: |
|
---|
Retrieves the serial number of the device.
Returns: | The serial number of the device. |
---|
Retrieves the description of the device.
Returns: | The description of the device. |
---|
Retrieves the interface used to connect to the device.
Returns: | the interface used to connect to the device. |
---|
Opens the device.
Parameters: |
|
---|---|
Raises : | NoDeviceError |
Writes data to the device.
Parameters: | data (str) – Data to write |
---|---|
Raises : | CommError |
Reads a single character from the device.
Returns: | The character read from the device. |
---|---|
Raises : | CommError |
Reads a line from the device.
Parameters: |
|
---|---|
Returns: | The line that was read. |
Raises : | CommError, TimeoutError |
Bases: alarmdecoder.devices.Device
AD2USB or AD2SERIAL device exposed with the pyserial interface.
Default baudrate for Serial devices.
Returns all serial ports present.
Parameters: | pattern (str) – Pattern to search for when retrieving serial ports. |
---|---|
Returns: | list of devices |
Raises : | CommError |
Retrieves the interface used to connect to the device.
Returns: | the interface used to connect to the device. |
---|
Opens the device.
Parameters: |
|
---|---|
Raises : | NoDeviceError |
Writes data to the device.
Parameters: | data (str) – The data to write. |
---|---|
Raises : | CommError |
Bases: alarmdecoder.devices.Device
Device that supports communication with an Alarm Decoder (AD2) that is exposed via ser2sock or another Serial to IP interface.
Retrieves the interface used to connect to the device.
Returns: | the interface used to connect to the device. |
---|
Retrieves whether or not the device is using SSL.
Returns: | Whether or not the device is using SSL. |
---|
Retrieves the SSL client certificate path used for authentication.
Returns: | The certificate path |
---|
Retrieves the SSL client certificate key used for authentication.
Returns: | The key path |
---|
Retrieves the SSL Certificate Authority certificate used for authentication.
Returns: | The CA path |
---|
Opens the device.
Parameters: |
|
---|---|
Raises : | NoDeviceError, CommError |
Writes data to the device.
Parameters: | data (str) – The data to write. |
---|---|
Returns: | The number of bytes sent. |
Raises : | CommError |
Provides utility classes for the Alarm Decoder (AD2) devices.
Bases: exceptions.Exception
There was an error communicating with the device.
Bases: exceptions.Exception
There was a timeout while trying to communicate with the device.
Bases: exceptions.Exception
The format of the panel message was invalid.
Provides zone tracking functionality for the Alarm Decoder (AD2) device family.
Bases: object
Representation of a panel zone.
Status indicating that the zone is cleared.
Status indicating that the zone is faulted.
Status indicating that there is a wiring issue with the zone.
Representations of Panels and their templates.
Message representations received from the panel through the Alarm Decoder (AD2) devices.
Bases: object
Base class for messages.
The raw message text
Bases: alarmdecoder.messages.BaseMessage
Represents a message from the alarm panel.
Indicates whether or not the panel is in a ready state
Indicates whether or not the panel is armed away
Indicates whether or not the panel is armed home
Indicates whether or not the keypad backlight is on
Indicates whether or not we’re in programming mode
Number of beeps associated with a message
Indicates whether or not a zone is bypassed
Indicates whether or not the panel is on AC power
Indicates whether or not the chime is enabled
Indicates whether or not an alarm event has occurred
Indicates whether or not an alarm is sounding
Indicates whether or not there is a low battery
Indicates whether or not the entry delay is enabled
Indicates whether or not a fire alarm is sounding
Indicates whether or not there are zones that require attention.
Indicates whether or not the perimeter is armed
The numeric code associated with the message
The human-readable text to be displayed on the panel LCD
Current cursor location on the keypad
Address mask this message is intended for
The bitfield associated with this message
The panel data field associated with this message
Bases: alarmdecoder.messages.BaseMessage
Represents a message from a zone or relay expansion module.
Flag indicating that the expander message relates to a Zone Expander.
Flag indicating that the expander message relates to a Relay Expander.
Expander message type: ExpanderMessage.ZONE or ExpanderMessage.RELAY
Address of expander
Channel on the expander
Value associated with the message
Bases: alarmdecoder.messages.BaseMessage
Represents a message from an RF receiver.
Serial number of the RF device
Value associated with this message
Battery low indication
Supervision required indication
Loop indicators
Bases: alarmdecoder.messages.BaseMessage
Represent a message from a Long Range Radio.
Data associated with the LRR message. Usually user ID or zone.
The partition that this message applies to
The type of the event that occurred