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've made a script that should switch another lamp if I press the main switch for that room. According to the level of the main lamp, the other lamp should be adjusted. That is, unless I manually control the secondary lamp. In that case it should stop adjusting according to the other lamp. As soon as I switch off the main lamp, the override is reset.
Basically everything is working. The lamps are interacting nicely, override is working and it is reset once the main lamp is switched off. Except for the 3rd elseif statement. For some reason the light won't be adjusted if "salontafel_status" get's over 50%. As far as I can see it doesn't deviate from the other 2 elseif statements, so I don't understand why it doesn't work.
Please login or register to see this code.
What is wrong here? I was so proud finally having written something a little more advanced than "Hello world!" now...
Please login or register to see this image.
/emoticons/default_icon_wink.gif" alt=";-)" />3 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.