Skip to content

state from FrameNodeStatePositionChangedNotification #536

@MaGeHome

Description

@MaGeHome

Is it possible to extend the pyvlx library so that the state from the FrameNodeStatePositionChangedNotification is saved so that it can be retrieved via node.state?

Feature: Expose state from FrameNodeStatePositionChangedNotification

To store the state (e.g. RUNNING, DONE, FAILED, etc.) from FrameNodeStatePositionChangedNotification directly as a node.state attribute.

Changes

In the file node_updater.py after await node.after_update() added:
node._last_frame = frame

In the file nodes.py after def __init__ self.__nodes: List[Node] = [] added:
self._last_frame = None

Example Usage

print(node.name, node.state)  # e.g., "Rollladen RUNNING"

I'm not sure, that's why I'm asking this way. If this is correct, it would be great if you could implement it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions