pyg90alarm.local.history
History protocol entity.
Classes
|
Represents a history entry from the alarm panel. |
- class pyg90alarm.local.history.G90History(*args, **kwargs)
Bases:
objectRepresents a history entry from the alarm panel.
- property datetime: <property object at 0x70ce71455cb0>
Date/time of the history entry.
- property type: G90AlertTypes | None
Type of the history entry.
- property state: G90HistoryStates | None
State for the history entry.
- property source: G90AlertSources | None
Source of the history entry.
- property sensor_name: str | None
Name of the sensor related to the history entry, might be empty if none associated.
- property sensor_idx: int | None
ID of the sensor related to the history entry, might be empty if none associated.
- as_device_alert()
Returns the history entry represented as device alert structure, suitable for
G90DeviceNotifications._handle_alert().- Return type: