Provides the full AD2 class and factory.
Bases: object
Factory for creation of AD2USB devices as well as provides attach/detach events.”
Called when an AD2USB device has been detected.
Called when an AD2USB device has been removed.
Returns all AD2USB devices located on the system.
Returns: | list of devices found |
---|---|
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 AD2USB device, or the first device.
Parameters: | device (tuple) – Tuple describing the USB device to open, as returned by find_all(). |
---|---|
Returns: | AD2USB object utilizing the specified device. |
Raises : | NoDeviceError |
Bases: object
High-level wrapper around AD2 devices.
Called when the panel is armed.
Called when the panel is disarmed.
Called when panel power switches between AC and DC.
Called when the alarm is triggered.
Called when a fire is detected.
Called when a zone is bypassed.
Called when the device finishes bootings.
Called when the device receives its configuration.
Called when the device detects a zone fault.
Called when the device detects that a fault is restored.
Called when the device detects a low battery.
Called when the device detects a panic.
Called when a relay is opened or closed on an expander board.
Called when a message has been received from the device.
Called when an LRR message is received.
Called when an RFX message is received.
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.
Represents panel function key #1
Represents panel function key #2
Represents panel function key #3
Represents panel function key #4
Timeout before the battery status reverts.
Timeout before the fire status reverts.
Opens the device.
Parameters: |
|
---|
Contains different types of devices belonging to the AD2 family.
Bases: object
Generic parent device to all 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: pyad2.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 |
Retrieves the interface used to connect to the device.
Returns: | the interface used to connect to the device. |
---|
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. |
---|
Opens the device.
Parameters: |
|
---|---|
Raises : | NoDeviceError |
Writes data to the device.
Parameters: | data (str) – Data to write |
---|---|
Raises : | CommError |
Bases: pyad2.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: pyad2.devices.Device
Device that supports communication with an 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 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 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 AD2 devices.
Bases: object
Base class for messages.
The raw message text
Bases: pyad2.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: pyad2.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: pyad2.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: pyad2.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