Can't Access NOC through API
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.
Comments
7 comments
Hello,
Did you add read/write_presence scope in your /authorize request ?
Have a good day,
Leslie - Community Manager
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
Hi again,
Can you write me on the contact form and send me :
Have a good day,
Leslie - Community Manager
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
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
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.
this solved the problem. thx for your support.
Please sign in to leave a comment.