pyg90alarm.definitions.devices

Device (relays, sockets) definitions for G90 alarm panel.

Classes

G90DeviceDefinitions()

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: G90PeripheralDefinitionsBase

Device 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:

list[G90PeripheralDefinition]

Returns:

List of device definitions.

classmethod get_by_id(id_type, id_subtype, protocol)

Gets peripheral definition by type, subtype and protocol.

Parameters:
Raises:

G90PeripheralDefinitionNotFound – If definition not found.

Return type:

G90PeripheralDefinition

classmethod get_by_name(name)

Gets peripheral definition by name.

Parameters:

name (str) – Peripheral name.

Raises:

G90PeripheralDefinitionNotFound – If definition not found.

Return type:

G90PeripheralDefinition