IEC61850ControlObject#

class wattson.iec61850.iec61850_control_object.IEC61850ControlObject(data_object: IEC61850DataObject)#

Bases: object

Methods

__init__

async_cancel

async_operate

async_select

async_select_and_operate

Automatically selects the object before operating if applicable (i.e., when in SBO mode).

async_select_with_value

cancel

get_control_model

get_operate_mms_attribute

get_operate_mms_type

operate

select

select_and_operate

Automatically selects the object before operating if applicable (i.e., when in SBO mode).

select_with_value

__init__(data_object: IEC61850DataObject)#
async_select_and_operate(value: Any, callback: Callable[[bool, IEC61850RemoteDataAttribute | IEC61850DataObject, str | None, MmsControlError], None], operation_timestamp: int = 0, custom_id: str | None = None, custom_data_object_or_attribute: IEC61850RemoteDataAttribute | IEC61850DataObject | None = None) MmsControlError#

Automatically selects the object before operating if applicable (i.e., when in SBO mode). Otherwise, directly operates.

Parameters:
  • value (Any) – The target value

  • callback (Callable[[bool, Union['IEC61850RemoteDataAttribute', 'IEC61850DataObject'], Optional[str], MmsControlError], None]) – The callback to call after the operation concluded.

  • operation_timestamp (int, optional) – (Default value = 0)

  • custom_id (Optional[str], optional) – An optional custom ID to pass to the callback (Default value = None)

  • custom_data_object_or_attribute (Optional[Union['IEC61850RemoteDataAttribute', 'IEC61850DataObject']], optional) – An optional custom data object or data attribute to pass to the callback. Per default, this object is used.

Returns:

Whether the request has been made successfully (not whether it was successful!)

Return type:

MmsControlError

select_and_operate(value: Any) MmsControlError#

Automatically selects the object before operating if applicable (i.e., when in SBO mode). Otherwise, directly operates.

Parameters:

value (Any) – The target value

Returns:

Whether the operation was successful.

Return type:

MmsControlError