Can't Access NOC through API

apherren

with existing code which worked ok i now can no longer access parameters from NOC devices. Scope of refresh token checked and OK.

"/api/homestatus"

request {"home_id": "5efxxxxxxxxxxxxxxxxxx", "device_types": ["NOC", "NACamera"] }

returns only NACamera devices.

 

 

0

Comments

7 comments

  • Comment author
    Leslie Community moderator

    Hello,

    Did you add read/write_presence scope in your /authorize request ?

    Have a good day,

    Leslie - Community Manager

    0
  • Comment author
    apherren

    Hi Leslie

    yes I did in the same form where you the the token. and authorised afterwards in the google window. the irritating thing to me is that i get the NOC listed in the /homesdata. but not in the /homestatus.

    Kind Regards

    Andreas

    0
  • Comment author
    Leslie Community moderator

    Hi again,

    Can you write me on the contact form and send me : 

    • the exact /authorize request you sent
    • the exact /token request you send (the first one with authorization_code as a grant_type)
    • the exact /homestatus request you send

    Have a good day,

    Leslie - Community Manager

    0
  • Comment author
    Leslie Community moderator

    Andreas,

    I copy/pasted your message on my side. It contains private information not to share on a public forum

    Once more, the best is to write me via the contact form link I sent you 

    Have a good day,

    Leslie - Community Manager

    0
  • Comment author
    Leslie Community moderator

    Hi again,

    If you remove this part : \"device_types\": [\"NACamera\",\"NOC\"] <= do you see your NACamera + NOC in the /homestatus request ? 

    If yes, it means that this part of code is not correctly written

    Have a good day,

    Leslie - Community Manager

    0
  • Comment author
    apherren

    i removed the device_types but it still just shows all devices except for the NOC.

    I get NAMain, NAModule4, NAModule1 and NACamera.

    I think the problem is elsewhere there are two different home_id in the JSON I sent. I am working on this.

     

    0
  • Comment author
    apherren

    this solved the problem. thx for your support.

    0

Please sign in to leave a comment.