Welcome to Smart Home Forum by FIBARO
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!
Smart Home Forum by FIBARO Team
Search the Community
Showing results for tags 'slider value'.
Found 1 result
Slider Value in Virtual devices
northyorks posted a question in Scenes and InterfaceI have made a slider in a virtual device for my lightwave lights. They have a normal range of 0-32, so in my virtual device slider i have used: local LWRF_DimLevel = math.floor((_sliderValue_ / 100) * 32) However when I put the slider between the values of 0-4 (so very dim) the actual light level goes to 100% brightness. I assume my math.floor must need changing? Or is there any code I can use to not allow the slider to go below say 5? Or if slider <5 then 'press button' off for example?