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

Hi

Is it possible to create a native device(eg a thermometer) using the API and "write" values from a VD or an external device/computer.

 

The reason why I want to do this is that a VD is limited in many ways og using it, but a "native thermometer" is recognized by HC2 as...an thermometer and can be used accordingly.

Edited by tnesheim

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

No. VD can’t be used like normal physical device. You can develop plugin. But plugin API was closed by Fibaro some years ago.

Share this post


Link to post
Share on other sites
  • 0
  • Inquirer
  • My question is not really about using VDs like a physical device, its rather the reason for my quetion.  

     

    I have looked at the API and it looks like it’s possible to create native/physical devices in the HC2, at least that what it looks like?

     

    And if so, can I e.g. create a thermometer that gets its values updated from an external source(that writers to the API)....

    Share this post


    Link to post
    Share on other sites
    • 0
    2 hours ago, tnesheim said:

    My question is not really about using VDs like a physical device, its rather the reason for my quetion.  

     

    I have looked at the API and it looks like it’s possible to create native/physical devices in the HC2, at least that what it looks like?

     

    And if so, can I e.g. create a thermometer that gets its values updated from an external source(that writers to the API)....

     

    It depends on why you want to integrate it.

    -Do you want it to be treated as a (native) temperature sensor that you can assign the a room and get displayed in the Fibaro GUI (web/app)? - no luck.

    -Do you want it to be accessible as a temperature sensor in block scenes - no luck.

    -Do you want Lua scenes that you have written yourselves to trigger on or read temperature changes and act on them - easy, no need for native device...

    -Do you want others' Lua scenes to trigger on or read your temperature changes and act on them - possible by patching the scenes and overriding fibaro:call and/or fibaro:getSourceTrigger.

     

    One could ask why we can't make VDs that look like and are integrated in similar ways as native device. I'm not into the details but I think that Fibaro chose an overly complex model for the plugins and a much more lightweight approach and a simpler contract could have been defined. 

    • Thanks 1

    Share this post


    Link to post
    Share on other sites
    • 0
  • Inquirer
  • I use Imperihome as smart home user front end, and it's quite ok. Biggest drawback is that the Imperihome can only show one text line per "tile" for HC2 VDs...and that results in quite a few tiles. Native/physical device can be somewhat more efficient utilized, they can be joined and grouped in Imperihome.

     

    Imperihome can also show web pages. I then made a string(with the information I wanted to display) and embedded HTML-codes and put it all in a global variable as a string. I then called the global variable from Imperihome but the response was a JSON structure and the Imperihome "browser" did not recognize the HTML-code.

     

    If possible I will try(tonight) to make the response contain the variable value only...by calling something like this   http://<my ip>/API/GlobalVariables/HTMLstr(value)

    Share this post


    Link to post
    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...