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
northyorks 35
I 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?
Link to comment
Share on other sites
1 answer 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.