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

[API] What http command to use to press VD button?


Question

Posted

How can I press a button in a Virtual Device with a http-command?

(sending from another computer)

 

Please help!

5 answers to this question

Recommended Posts

  • 0
Posted

Please login or register to see this link.

 

<IP> = HC IP

<ID> = Device ID

<BUTTON> = Number of button (like in lua)

  • 0
  • Inquirer
  • Posted

    Thank you very much!

    Please login or register to see this image.

    /emoticons/default_icon_mrgreen.gif" alt=":mrgreen:" />

    • 0
    Posted

    Thanks for this as well Lambik.

     

    Iv'e tried this in IE and Chrome and all I get is a blank web page with {} at the top.

     

    I have tried: -

    Please login or register to see this link.

    and also  "

    Please login or register to see this link.

    and still the same. 

     

    Virtual Device id: - 379

    Button Id: - But1

     

    I have tried changing the Buttton ID and still the same. 

     

    Can anyone help.

     

    I am running version 4.062 on HC2

     

    Thanks,

     

    Hallamnet

    • 0
    Posted

    Hi Hallamnet,

     

    You need a number of the button (not But1 or b)

     

    So if you have a VD and you have a button a label and another button and you want to press the first button the id is 1, if you want to press the second button it is 3 (no typing mistake, you have to count everything in the VD, also the labels, etc).

    • 0
    Posted

    AWESOME!

     

    Thanks for this boerremk

     

    Finally managed to get my GeoFencey working with ace accuracy! 

     

    Who need the Fibaro location panel when you can use geofencey. 

     

    Please login or register to see this image.

    /emoticons/default_icon_biggrin.gif" alt=":-D" /> What can i say, it just works!

    Please login or register to see this image.

    /emoticons/default_icon_biggrin.gif" alt=":-D" />

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