Welcome to Smart Home Forum by FIBARO
Dear Guest,
as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.
As a member you can:
- Start new topics and reply to others
- Follow topics and users to get email updates
- Get your own profile page and make new friends
- Send personal messages
- ... and learn a lot about our system!
Regards,
Smart Home Forum by FIBARO Team

Question
rb338 5
I've connected several third party WiFi RGBW LED controllers to my HC2, using virtual devices. Now I have created a slider, which can be used to set the LED brightness.
I would like to be able to dim the lights the same way as a regular Fibaro dimmer does. This would mean building a couple of Lua pieces:
When button pushed: start sliding.
When button released: stop sliding.
This would probably not be that difficult. However, what a Fibaro dimmer also does is reverse the direction when you release and push again.
How could this be done? I would need to know, when button pushed, how much time has passed since the button was last released. And I would need to know which direction the slider was going when the button was last released.
Is there anyone who made something like this? It could also be used to control your media volume (Sonos, XBMC, etc)
Please login or register to see this image.
/emoticons/default_smile.png" alt=":)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.