Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing cluster, but message came from device #151

Open
atifarkas opened this issue Mar 21, 2021 · 0 comments
Open

Missing cluster, but message came from device #151

atifarkas opened this issue Mar 21, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@atifarkas
Copy link

atifarkas commented Mar 21, 2021

Hi @Mr-Markus !

Xiaomi round sensor WSDCGQ01LM device descriptor is not contain any information about temperature and humidity cluster. But when the parameter changing, message is arrived. If code changed to like this:
ZigBeeNetworkManager.cs:804
ZclCluster cluster = endpoint.GetInputCluster(apsFrame.Cluster);
if (cluster == null)
{
cluster = endpoint.GetClusterClass(apsFrame.Cluster);
if (cluster != null)
{
endpoint.AddInputCluster(apsFrame.Cluster, cluster);
}
else
{
Log.Debug("Unknown input cluster {Cluster}", apsFrame.Cluster);
return null;
}
}

And creating this function on ZigBeeEndpoint.cs
public void AddInputCluster(int key, ZclCluster cluster)
{
_inputClusters.TryAdd(key, cluster);
}

In this case missing cluster is created when message arrived, data parsed and config saved into datastore.

@Mr-Markus Mr-Markus added the bug Something isn't working label Apr 11, 2021
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

No branches or pull requests

2 participants