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


Device not listed using rest api


YngveL

Recommended Posts

I'm using HC2.

 

I recently added a Fibaro multisensor (the eye) to a part of the house with (possibly) slightly worse mesh coverage than the rest of the house. The connection test from the device indicates sufficient signal, though (green light mostly).

 

Using the app or the web UI I can get readings from the device, but using the REST API the new devices are not included in the JSON output. My 4 other identical sensors are.

 

Does anyone have any idea of what would cause this? Browsing through the device parameters in the Web UI I cannot pinpoint any differences in config that seem relevant.

 

So I'm thinking it's connectivity related, but the connection test all seem to report OK.

 

(I've tried with another spare sensor I have also - same result)

 

Am I missing something obvious?

 

 

Edited by YngveL
Forgot to specify controller I'm using
Link to comment
Share on other sites

  • 2 weeks later...

Hi @YngveL ,

 

I suppose that you are trying to get all same devices by filtering using type? Fibaro has changed type for newer eyes and is com.fibaro.FGMS001v2 while for older ones is com.fibaro.FGMS001. Maybe you can try to filter devices by baseType instead?

 

Link to comment
Share on other sites

  • Topic Author
  • Hi @Sankotronic !

     

    I'm actually just doing a curl call and parsing the resulting JSON data using 'jq'. The Fibaro HomeCenter 2 GUI tells me the sensor have ID numbers from 300 and up to 305, and even have updated readings for the sensors (motion/light/sensor/temp)
     

    BUT - calling the REST API  doesn't return any values for devices 300 to 305 at all:


    curl -s -u user:password http://10.10.10.10/api/devices

     

    Same goes when calling them one by one:

     

    curl -s -u user:password http://10.10.10.10/api/devices/301   (and up to 305)

     

     

    It just seems odd the HC2 UI has data, while the REST API doesn't .....

     

     

     

    Link to comment
    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
    Reply to this topic...

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