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

Any API for remote access to connect the Fibaro HC2 or HC3 outside local network


Question

Posted

Hello all,

 

I'm new in Fibaro gateway. I would like to know if it is possible to connect my HC2 (or HC3) outside my local network thro API? I searched old post that I can setup port forwarding in my router to do it. But I would like to know any official API is available except this method? 

 

Thank you for your help.

 

Regards,
Sunny 

7 answers to this question

Recommended Posts

  • 0
Posted

Yes, the HC2 or the HC3 has its own API. 
 

Port forwarding has nothing to do wether it is an official API or not. From outside your network port forwarding is a method to reach your HC2 or HC3. 

  • Like 1
  • 0
  • Inquirer
  • Posted

    Hi SmartHomeEddy, 

     

    Thank you for your feedback. 

     

    Is that the resource for HC2?

    Please login or register to see this link.

     

    For HC3, I see I can reach my Zwave device(Sensor multilevel capability)  by using MQTT client API from outside network. Am I right?

     

    Please login or register to see this link.

     

    Is there any other way to do it without building a MQTT broker?

     

    Thank you for your help.

    • 0
    Posted
    57 minutes ago, HK IT Support said:

    Is that the resource for HC2?

     

    Yes it is for the HC2. 

     

    The API for the HC3 is basically the same. You mention MQTT. I don't use MQTT, so don't know any details, but it is not mandatory for connecting to the API. Maybe because you found the document, you think it is. 

     

    I don't have a document of the HC3 API. I have seen it on this forum, but can't find it. I simply use the Swagger on the HC3 and it has for me the right informatie, examples. 

     

    So to reach the API on the HC2 or HC3 is simply typing in the right address in your browser. If you aren't locally connected, you need a network setup to connect from outside your network to your HC2 or HC3, the mentioned port forwarding. 

     

     

    • 0
  • Inquirer
  • Posted
    On 11/11/2020 at 5:03 PM, SmartHomeEddy said:

     

    Yes it is for the HC2. 

     

    The API for the HC3 is basically the same. You mention MQTT. I don't use MQTT, so don't know any details, but it is not mandatory for connecting to the API. Maybe because you found the document, you think it is. 

     

    I don't have a document of the HC3 API. I have seen it on this forum, but can't find it. I simply use the Swagger on the HC3 and it has for me the right informatie, examples. 

     

    So to reach the API on the HC2 or HC3 is simply typing in the right address in your browser. If you aren't locally connected, you need a network setup to connect from outside your network to your HC2 or HC3, the mentioned port forwarding. 

     

     

     

    For the HC2 API, I still have a little bit confuse about how to fill in the <ip> field of my gateway.

     

    Normally, we need to login this page when we try to remote access of the gateway.

     

    Please login or register to see this link.

     

    After I login with Fibaro ID, I see the URL is like this.

    Please login or register to see this link.



    How can I get the <unknown code> of my gateway? 

     

    Thank you for your help again.

     

     

     

    • 0
    Posted

    you need to understand the concept of “port forwarding”. 
     

    You need to connect directly to your HC2. If you are on your local network, you connect to your HC2 with the IP address of the HC2 for example 192.168.1.25. 
     

    But if you are not on your local network you need to make an extra setting on your router to “port forward” from your external IP address to your HC2 IP address
     

    If your external IP address is for example 213.10.15.20 and you made a port forward from for example port 5000 to the port 80 of your HC2, then if you type in 213.10.15.20:5000 you will connect to your HC2. 

    • 0
  • Inquirer
  • Posted

     

    Many thanks for your patience and explanation in detail. I really appreciate that. 

     

    I thought it can be like this. (Without modify any setting in my router)

    <I quote an example that the url of google API> 

    Please login or register to see this code.

    Do HC2 (or HC3) API support this? I can't found it....

     

    Many thanks.

     

    • 0
    Posted

    It is possible to call API’s of other parties from the HC2 and HC3. It depends on the response what you can do with it on your homecenter. I don’t know what this Google response does. 
     

    For example I use API responses of sensor.community, or my air quality sensor or Buienradar.nl or waterlevels in France on my HC3. 

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