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

VD pressButton confused


Sirhideo

Question

Hello,  I have the following VD to control Sony HT-Z9F soundbar, each individual button is working fine if pressed manually.

 

Please login or register to see this image.

/monthly_2019_03/Z9F-VD.jpg.00d055a4f7273d3750b0032f5a34070d.jpg" alt="Z9F-VD.jpg.00d055a4f7273d3750b0032f5a34070d.jpg" />

 

Buttons.jpg.1e6de336f172ca754e43c7b1baa01fb1.jpg

 

I would like to press HDMI1 or maybe 2 in a scene.  It looks like fibaro:call(vdID, "pressButton", 2) is not doing thing correctly.  Is it because it is a 2 buttons per line?  If so, what is the lua code to press HDMI1 or HDMI2 correctly?  Thanks!

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Hi @Sirhideo,

 

Try following format:

Please login or register to see this code.

 

In your case:

Please login or register to see this code.

 

Best regards,

Jakub

Link to comment
Share on other sites

  • 0
9 minutes ago, Sirhideo said:

Oh, didn't know button id can be used, thank you very much!

One tip. In LUA programming in HC2 it's about IDs, not names.

Link to comment
Share on other sites

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