-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Button events for QBKG03LM: hold, release. Cube event sides and angels #9
Conversation
else if (value === 3) action = {'action': 'fall'}; | ||
else if (value >= 512) action = {'action': 'tap', 'side': value-512}; | ||
else if (value >= 256) action = {'action': 'slide', 'side': value-256}; | ||
else if (value >= 128) action = {'action': 'flip180', 'side': value-128}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I understand correctly side
is a number, what does this mean?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it is number. Sides numered as picture (from file):
+---+
| 2 |
+---+---+---+
| 4 | 0 | 1 |
+---+---+---+
|M5I|
+---+
| 3 |
+---+
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is mean side on top of cube on perform action
Thank you |
* start on znp refactor. * More updates. * More refactors. * Zigbee2mqtt boots! :) * Refactor types. * Remove check option property. * Add parsers for all types. * Refactors. * Add tests. * Add tests and fix some parsers. * Add znp tests * complete tests * Fix intialization * Update README.md
and I suggest renaming ep items "l1" and "l2" to "left" and "right" as buttons:
???