pyg90alarm.local.cid_config
Interprets configuration data fields for CID (Contact ID) phone reporting, GETCID/SETCID commands.
Classes
|
Interprets data fields of GETCID/SETCID commands. |
- class pyg90alarm.local.cid_config.G90CidConfig(phone1=<pyg90alarm.dataclass.validation.StringLengthValidator object>, phone2=<pyg90alarm.dataclass.validation.StringLengthValidator object>, user=<pyg90alarm.dataclass.validation.StringLengthValidator object>, _enabled=<pyg90alarm.dataclass.validation.IntRangeValidator object>, event_flags=<pyg90alarm.dataclass.validation.StringLengthValidator object>)
Bases:
DataclassLoadSaveInterprets data fields of GETCID/SETCID commands.
- serialize()
Returns the dataclass fields as a list suitable for SETCID.
The event_flags element is always set to FFFF regardless of the current value, as expected by the panel.
- async classmethod load(parent, force=False)
Create an instance with values loaded from the device.