Jump to content

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


  • 0

Question

Posted

Hi.

 

I'm looking for a sample on how to increase light of a dimmer when button on keypad (remote) is pressed. Right now I have a fibaro dimmer module and a keypad. Currently I've implemented the scene below to test. The lights are now turned on/off. The keypad sends 12 when button is held down, and 11 when it is released. What I would like to accomplish is to increase the current light value while the button is held down, and off course do the opposite with another button.

 

Any tips is appreciated.

 

Cheers

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" />!

Please login or register to see this code.

2 answers to this question

Recommended Posts

  • 0
Posted

hello

i believe that this is the scene you are after.

ive just programmed single press up by 5 and press and hold up by 10

you can amend these values as needed and same for dimming down.

ive also added in an 'off' command for when level drops below 1.

hope it helps

 

Please login or register to see this code.

  • 0
  • Inquirer
  • Posted

    Thx for the input. Below is the code I've implemented inspired by you:

     

    I guess it is not possible to dynamically to increase light level when button is held, for then to stop increasing the light level when it is released. This is due to the fact that the value of the button pressed is retrieved once per scene making it impossible to create a loop. I do understand it can be archieved in principle by using external global variables, but I'm not going to explore it furuther do to some time constraints.

     

    If anyone have implemented the above part, please feel free to share. Again, thx for the input

    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" />.

    Please login or register to see this code.

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Answer this question...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    ×
    ×
    • Create New...