pyg90alarm.definitions.sensors

Sensor definitions for G90 alarm panel.

Classes

G90SensorDefinitions()

Sensor definitions for G90 devices, required when modifying them since writing a sensor to the device requires values not present on read.

class pyg90alarm.definitions.sensors.G90SensorDefinitions

Bases: G90PeripheralDefinitionsBase

Sensor definitions for G90 devices, required when modifying them since writing a sensor to the device requires values not present on read.

classmethod definitions()

Gets all sensor definitions.

Return type:

list[G90PeripheralDefinition]

Returns:

List of sensor 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