pyg90alarm.definitions.devices
Device (relays, sockets) definitions for G90 alarm panel.
Classes
Device definitions, required when modifying them since writing a device to the panel requires values not present on read. |
- class pyg90alarm.definitions.devices.G90DeviceDefinitions
Bases:
G90PeripheralDefinitionsBaseDevice definitions, required when modifying them since writing a device to the panel requires values not present on read.
- classmethod definitions()
Gets all device definitions.
- Return type:
- Returns:
List of device definitions.
- classmethod get_by_id(id_type, id_subtype, protocol)
Gets peripheral definition by type, subtype and protocol.
- Parameters:
id_type (
G90PeripheralTypes) – Peripheral type.id_subtype (
int) – Peripheral subtype.protocol (
G90PeripheralProtocols) – Peripheral protocol.
- Raises:
G90PeripheralDefinitionNotFound – If definition not found.
- Return type:
- classmethod get_by_name(name)
Gets peripheral definition by name.
- Parameters:
name (
str) – Peripheral name.- Raises:
G90PeripheralDefinitionNotFound – If definition not found.
- Return type: