-
-
Notifications
You must be signed in to change notification settings - Fork 260
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
Light Hook: Made the transition period configurable. #33
base: main
Are you sure you want to change the base?
Conversation
Hi @vandalon, thank you! |
Are you sure you want to remove the float filter? the output has to always be float right? |
Hi @vandalon, Most importantly, I used the Pseudocode for each step:
|
I'm afraid that won't work, the delay should be static. Because of debouncing the difference between transition time and the actually delay is causing it to be less smooth. So if you now sync those two again it will cause the issue I tried to fix :) |
Not required as stated in the Jinja2 documentation. https://jinja.palletsprojects.com/en/2.11.x/templates/#math
Also I did check this on my instance before committing. :) |
Could you test this on your instance? Moreover, we should be careful not to mess up with assumptions between different blueprints. For the Light Hook, debouncing on a Controller blueprint should not exist: the Hook already receives filtered events and should never be aware of any mechanism Controller blueprints implement to fire events. Btw this should already be in place: in the code of Controller blueprints the event for a long action is sent only once, before looping the custom action. As a result, no duplicate events are sent for long actions, if controller events are correctly debounced. I'm not excluding using a parametric Thank you for the quick feedback. :D |
I will test it :) You are right in regards to the debouncing part, it should not interfere with the timings in the hook. |
Hi @vandalon, Today I performed a few tests with this configuration. On my instance everything works great (and increasing the I've just pushed a fix for the Please let me know when you have time to complete your tests. After that if you are okey with it I think we can merge this PR and make the feature publicly available. :) Thank you again for your help! |
Sorry, not had time for this one yet, hope to find some time in the weekend :) |
Don't worry @vandalon, you are already doing a lot for this project. Really appreciate your effort :) |
Added an option to make the transition period when dimming, configurable.
I encountered the issue that dimming for me was just not smooth, upping it with 10ms fixed this for me.
I can imagine this is also depended on the controller and debounce settings so I made it configurable :)