Skip to content

Defer use case connection setup until scenario verification (#190, #198)#207

Open
DerAndereAndi wants to merge 1 commit intodevfrom
feature/binding-handling
Open

Defer use case connection setup until scenario verification (#190, #198)#207
DerAndereAndi wants to merge 1 commit intodevfrom
feature/binding-handling

Conversation

@DerAndereAndi
Copy link
Copy Markdown
Member

Move subscribe/bind/read from entity-added events to an OnScenariosChanged callback that fires once NodeManagementUseCaseData confirms the remote entity actually supports the use case. This prevents cross-triggering between devices running the same use case (e.g. two eg/lpc instances).

All HandleEvent data handlers are now gated by IsScenarioAvailableAtEntity so data is only processed for verified use cases. Stale scenarios are cleared when a use case is removed or set unavailable.

CS use cases (cs/lpc, cs/lpp) retain binding-driven heartbeat subscription, gated with a scenario check.

Fixes #190 and #198

Move subscribe/bind/read from entity-added events to an OnScenariosChanged
callback that fires once NodeManagementUseCaseData confirms the remote
entity actually supports the use case. This prevents cross-triggering
between devices running the same use case (e.g. two eg/lpc instances).

All HandleEvent data handlers are now gated by IsScenarioAvailableAtEntity
so data is only processed for verified use cases. Stale scenarios are
cleared when a use case is removed or set unavailable.

CS use cases (cs/lpc, cs/lpp) retain binding-driven heartbeat subscription,
gated with a scenario check.
@DerAndereAndi DerAndereAndi added the bug Something isn't working label Feb 24, 2026
@DerAndereAndi DerAndereAndi added this to the Version 0.8 milestone Feb 25, 2026
@sthelen-enqs sthelen-enqs self-requested a review March 30, 2026 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Usecase inital requests should be done on usecase detection not single feature matches

2 participants