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
hvb83 1
I have another LUA-noob question that I can't figure out.
At night I would like to have the lights in the staircase turn on in a much more dimmed fashion. Therefor the script should check what time it is and if it's between sunset and sunrise, it should turn on with a much lower value than normal. So far this is working.
But of course I should be able to adjust the value. So once the light is on, you will still be able to adjust it without the dimmer being adjusted by this rule, until the light is switched off.
But that is where it goes wrong; the light doesn't switch off anymore. Which makes sense; the scene is triggered.
Since I would like to show I've put some effort in getting it done, I'm pasting my code here. How can I adjust it so that it once the light is turned off, it's not switched on again?
Please login or register to see this code.
5 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.