pyg90alarm.definitions.sensors
Sensor definitions for G90 alarm panel.
Classes
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:
G90PeripheralDefinitionsBaseSensor 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:
- Returns:
List of sensor 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: