pyg90alarm.local.sia_config

Interprets configuration data fields for SIA Internet reporting, GETSIA/SETSIA commands.

Classes

G90SiaConfig([host, port, account, ...])

Interprets data fields of GETSIA/SETSIA commands.

class pyg90alarm.local.sia_config.G90SiaConfig(host=<pyg90alarm.dataclass.validation.StringLengthValidator object>, port=<pyg90alarm.dataclass.validation.IntRangeValidator object>, account=<pyg90alarm.dataclass.validation.StringLengthValidator object>, receiver=<pyg90alarm.dataclass.validation.StringLengthValidator object>, prefix=<pyg90alarm.dataclass.validation.StringLengthValidator object>, aes_key=<pyg90alarm.dataclass.validation.StringLengthValidator object>, _encryption=<pyg90alarm.dataclass.validation.IntRangeValidator object>, _enabled=<pyg90alarm.dataclass.validation.IntRangeValidator object>, event_flags=<pyg90alarm.dataclass.validation.StringLengthValidator object>, heartbeat_interval=<pyg90alarm.dataclass.load_save.ReadOnlyIfNotProvided object>)

Bases: DataclassLoadSave

Interprets data fields of GETSIA/SETSIA commands.

property encryption: bool

Returns whether SIA encryption is enabled.

property enabled: bool

Returns whether SIA Internet reporting is enabled.

async classmethod load(parent, force=False)

Create an instance with values loaded from the device.

Parameters:

force (bool) – If True, bypass policy cache (if any).

Return type:

TypeVar(DataclassLoadSaveT, bound= DataclassLoadSave)

Returns:

An instance of the dataclass loaded from the device.

async classmethod load_uncached(parent)

Create an instance with values loaded from the device bypassing cache.

Return type:

TypeVar(DataclassLoadSaveT, bound= DataclassLoadSave)

async save()

Save the current data to the device.

Refreshes the load policy cache (if any): the initial load(..., force=True) repopulates the policy’s entry for this parent with the newly loaded instance used for read-modify-write.

Return type:

None

serialize()

Returns the dataclass fields as a list suitable for SETSIA.

The event_flags element is always set to FFFFFFFF regardless of the current value, as expected by the panel.

Return type:

list[Any]