module documentation

The remote interface for a server-side BaseMachineryItem.

Class BaseRemoteComponent The remote interface for a server-side BaseMachineryItem.
Class NotificationEvent OPC UA notification event data.
Class RemoteComponent The remote interface for a server-side BaseComponent.
Async Function _init_skill Undocumented
Function _parse_item_state Parse an OPC UA CurrentState value into a MachineryItemState.
Constant _ITEM_STATES Undocumented
async def _init_skill(skill: RemoteSkill, *, target_mapping: dict[str, RemoteSkill]):

Undocumented

def _parse_item_state(val: str | ua.LocalizedText | None) -> MachineryItemState | None:

Parse an OPC UA CurrentState value into a MachineryItemState.

Ignores case, spaces and underscores (e.g. Not Executing or NOT_EXECUTING).

Returns
MachineryItemState | NoneNone for empty values.
Raises
UnknownStateErrorfor non-empty values not matching any MachineryItemState.
_ITEM_STATES: dict[str, MachineryItemState] =

Undocumented

Value
{s.value.lower(): s for s in MachineryItemState}