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

ZME_RC@ controller read input of buttons


Question

Posted

Hello,

 

I want to read the value of the buttons 1 to 7 of the remote controller and use them to send signals to other devices.

 

With a script I can read the values of the three "scene" buttons  with the fibaro:getValue(61, "sceneActivation") function.

The values are 81 82 91 92 101 and 102

 

What I want is with another function to read the input of the buttons 1 to 7 so i can use these values to send an command to a scene or device.

 

Maybe someone knows the values of button 1 to 7

 

They have on and of and dim functions with their specific codes.

 

 

 

 

Help is much appreciated.

 

Regards,

 

Robert

 

 

2 answers to this question

Recommended Posts

  • 0
Posted

You can create a little lua script like this and then perform all the actions:

Please login or register to see this code.

This will tell you the exact values (don't own the remote so I cannot tell you otherwise).

  • 0
  • Inquirer
  • Posted

    You can create a little lua script like this and then perform all the actions:

    Please login or register to see this code.

    This will tell you the exact values (don't own the remote so I cannot tell you otherwise).

    Remko,

     

    Tahnks for your reply.

     

    I tried it but it gives me a nill value.

    I used the following script to test it:

     

    --[[

    %% properties

    61 sceneActivation

    61 value

    %% globals

    --]]

    myVariable2 = fibaro:getValue(61, "value")

    myVariable =   fibaro:getValue(61, "sceneActivation")

    fibaro:debug ( "value="..myVariable);

    fibaro:debug ( "value="..myVariable2);

     

     

    After debug it gives me the message:

     

    [DEBUG] 16:51:09: value=81 (with the 61 sceneActivation array)

    [ERROR] 16:51:09: line 12: attempt to concatenate global 'myVariable2' (a nil value) (with the 61 value array)

     

    If I press the button 1 to 7 the script does not give me any return information.

     

    Only the buttons for the scene (three buttons) give me the above result.

     

    Any other thoughts?

     

    Regards,

     

    Robert

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