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

are there any documentation?


Question

Posted

hy guys,

is there any documentation about the topic: how to add virtuel device ? which codes are possible...and how it works?

 

sorry i'm a newly, but i didn't find any info for this topic

 

 

PS: for the HCL...

11 answers to this question

Recommended Posts

  • 0
Posted

Welcome to the forum

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 note, that this forum is not meant to ask questions. Do not worry, I moved your topic.

For HCL only HTTP requests or sending strings over raw TCP is possible. HTTP request are passed in standards way and the only thing needed for sending TCP string is filling out two field for IP and port, content of button will be send to that address once clicked.

  • 0
  • Inquirer
  • Posted

    what is to do for example this url:

    Please login or register to see this link.

    • 0
    Posted

    Sorry, I do not understand. Do you want to perform a GET request on this url?

    • 0
  • Inquirer
  • Posted

    i've installed a virtuell device. ip 10.0.1.100

    now i added a button. with a klick on it it should send this url: 

    Please login or register to see this link.

     

    how can i to that?

     

    thx

    • 0
    Posted

    Sorry, I do not understand. Do you want to perform a GET request on this url?

     

    Hi, i would like to know more about performing a get request from 3rd party api.

     

    Thanks.

    • 0
    Posted

    This is example HTTP GET request made in virtual device in string form:

    Please login or register to see this code.

    You can delete line for Authentication if you co not need it.

    • 0
    Posted

    Any possible way to do it in lua? 

     

    Would like to get in json format and decode using lua.

    • 0
    Posted

    Any possible way to do it in lua? 

     

    Would like to get in json format and decode using lua.

     

    Sure, there are multiple example all around the forum, look up the Knowledge Base forum. Of course not in HCL.

    • 0
    Posted

    This is example HTTP GET request made in virtual device in string form:

    Please login or register to see this code.

    You can delete line for Authentication if you co not need it.

     

    Tried and it's not working.

    Please login or register to see this code.

    • 0
    Posted

    Sure, there are multiple example all around the forum, look up the Knowledge Base forum. Of course not in HCL.

     

    Mind giving an example?

    • 0
    Posted

     

    Tried and it's not working.

    Please login or register to see this code.

     

    You can see example of GET and PUT here:

    Please login or register to see this link.

    POST is done the same as PUT, with a payload.

     

    Also add 127.0.01 as IP of device and host and set Port to 11111

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