question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Question] Strategy for manufacturer-specific attributes in standard clusters?

See original GitHub issue

As already mentioned in my last pull request, I am implementing support for some ubisys devices at the moment. To e.g. calibrate their shutter controller to the run-time from fully open to fully closed, they use quite a lot of manufacturer-specific attributes within standard clusters (e.g. attributes 0x1000 and up in closuresWindowCovering). Currently, I have these implemented as numeric values in code but thought it might be nicer to have them somewhere in a central location, but could not really figure out an obvious way to do it. One idea is to implement them in additional clusters that have numerical ids with the manufacturer id as upper bytes, e.g. for ubisys (manufacturer id is 0x10f2) and the cluster closuresWindowCovering (258 = 0x102) it would be 0x10f20102 = 284295426. But even this would mean that I will need to touch quite some central code inside zigbee-shepherd and zigbee2mqtt to implement it correctly…
Do you have any opinion or suggestions for me or should I rather stick with the way I have it implemented currently?

Current implementation in my code: https://github.com/felixstorm/zigbee2mqtt/blob/f41f754135f918a9b60ad14501311e48f5ae1114/lib/extension/ubisys.js#L166 ubisys documentation (if interested): https://www.ubisys.de/wp-content/uploads/ubisys-j1-technical-reference.pdf

Thanks, Felix

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:30 (30 by maintainers)

github_iconTop GitHub Comments

1reaction
felixstormcommented, Aug 1, 2019

Sorry for the delay, just came back from vacation.

Option 2 without the zigbee object could probably work if the array returned from the converters is allowed to contain both objects to publish to zigbee as well as promises which would then all be processed sequentially so that we can write an attribute, wait, send a command, wait etc.

1reaction
felixstormcommented, Jul 9, 2019

Great, sounds very good to me! If you find a way to also take care of manufacturer-specific properties inside standard clusters that would sure be helpful as well (so we won’t get in trouble in case of duplicate attribute ids either).

I’ll then go ahead with my personal implementation for now and will update it to the new spec as soon as it is available.

Thanks, Felix

Read more comments on GitHub >

github_iconTop Results From Across the Web

Make distinction between manufacturer attributes and ... - GitHub
Manufacturer specific attributes within a standard ZigBee cluster can be defined over the full 16-bit range. Is it correct that Zigpy ignores ...
Read more >
What is Product Attribute Clustering And Is It Really Worth It?
Product attributes are the features, quality and design of a product that works together to get your customers to make a purchase.
Read more >
How to select features for clustering and, once the model is ...
I am using open data to do a clustering on all manufacturers within a certain region. Attributes are like number of locations, number...
Read more >
10 Tips for Choosing the Optimal Number of Clusters | by Matt.0
Another clustering validation method would be to choose the optimal number of cluster by minimizing the within-cluster sum of squares (a measure ...
Read more >
Cluster Analysis and Segmentation
Clustering and Segmentation in 9 steps · Step 1: Confirm data is metric · Step 2: Scale the data · Step 3: Select...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found