-
Notifications
You must be signed in to change notification settings - Fork 530
Fix handling Hue Effects state attribute #7576
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
Conversation
Additional clusters for IKEA Vindstyrka, see #6756.
Fix `numtostr` and add debug log message.
Typo in comment.
Validator nonsense.
More validator nonsense
And even more validator nonsense
And even more validation nonsense
This reverts commit af37958.
Remove workaround for GUI bug #6832. Fix indentation.
Refine definitions of: - _Hue Capabilities_ command in _Basic_ cluster; - _Hue Button_ cluster.
|
Looks fine but I wouldn't include the eslint comments. |
|
I would, obviously, but removed the comment. I would hope the JS is parsed and compiled only once? Or is it compiled at every invocation (in which case, we might want to remove white space, comments, use short variable names, etc)? |
|
Thanks, imho such things better go into a $EDITOR /eslint user.preferences or we provide a global one.
Right now it is actually parsed, compiled and executed on each invocation. I've looked into DuktapeJS docs and it is indeed possible to safe/reload the generated bytecode which would safe the repeated parsing and compile steps (still much slower than a V8 engine JIT, but safes a few cycles). I'm planning to test this out more but first some other refactoring needs to be done to cut more drastic bottle necks. You can get a feeling on the performance by enabling MEASURE and JS debug logging. Even with the non optimized approach it's surprisingly fast on average and mostly uses less than 250 KB on RAM in total. We currently have a lot of other more heavier performance hogs in the C++ side of the code base. But as said earlier for me JS should be kept to a minimum and really boring noob safe code :) From my point of view the more complex JS scripts we have are only temporary to figure out generic ways later on to tackle the tasks they do in a declarative way. |
Fixes parsing the State attribute of the Hue Effects cluster, see #7551
on,bri, andct;on, also for unsupported modes.(Dunno why it lists all these commits, but only one changed file).