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


Question

Posted

I have several AV equipment connected to my HC2. Each of them as a virtual device with all remote control buttons mapped on them, and they work as expected. Now, I am trying to create a virtual device with all important functions of the various audio video equipment on them. 

 

I tried the following:

 

fibaro:call(162, "pressButton", "Button82");

 

In which 162 is the virtual device ID of the device I want to control, and "Button82" is the id of the button I would like to press. This does not work.What do I need to change to get it to work?

Recommended Posts

  • 0
Posted

Ok so i have found those actions..........but what do i do with them?  Can i use that string just in the LUA code for a button?

 

Sorry im a novice!

  • 0
Posted

can anyone help me with above?  i have no idea what to do from here.......

  • 0
Posted

I didn't tried it myself but maybe you could try something like making a VD with on the General tab values:

IP Address: 127.0.0.1

TCP Port: 80

 

then in the second tab use a button lua code like:

Please login or register to see this code.

As I mentioned, I didn't try the above code but it should give you a start to work with. I hope...

Please login or register to see this image.

/emoticons/default_icon_wink.gif" alt=";-)" />

  • 0
Posted

Here is example of scene that performs HTTP calls. Note, that path needs to be adjusted, by looking up the link with Firebug. This code works only in scenes in V4 software, VDs have different Lua environment.
 

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