Skip to content

[BUG] Control state objects in LevelControl cluster for dynamic endpoints are never initialized #24645

Open
@raven-worx

Description

Reproduction steps

I am implementing a dynamic-bridge Matter device. Some of the dynamic endpoints have a LevelControl cluster added.

The problem now is that the LevelControl cluster doesn't work when the value is about to be changed via a command.
After debugging the LevelControl cluster implementation i found that the retrieved state pointer (eg. inside moveToLevelHandler() method) is not initialized properly.

This is only the case for dynamically added endpoints. The dummy endpoint's (the endpoint to include all clusters in ZAP tool) state object gets initialized in emberAfLevelControlClusterServerInitCallback(). Especially the maxLevel/minLevel members remain 0 and thus the command never executes correctly.

The attributes are set properly, see my endpoint dump attached.

Bug prevalence

always

GitHub hash of the SDK that was being used

43dd327

Platform

other

Platform Version(s)

1.0.0.2

Anything else?

repl_dump.txt

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Labels

app-clustersApplication cluster workdynamic-bridgeIssues in the dynamic-bridge example

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions