tplink-cloud-api
tplink-cloud-api copied to clipboard
Issues with get device list
We have followed the node tplink-cloud-api module examples and has provided the user name and password. the account has a LB120 light Smart wifi LED buld associated with it. When we execute the myTPLink.getDeviceList() , we are getting an empty array as response. Will this function list the lights associated with an account?
hey @jijoamt , I haven't started using this library personally. (But I'm planing to use it soon and I'm keeping an eye on this project).
It looks like, this library calls the API to get all the devises , in this method, that means, if the API returns all the devises, you should get all.
There are few things you can check I believe,
1 - Check if you can see your LB120 is registered and shows in your KASA app. I'm assuming the APP uses same API, Coz it looks like , this library is simulating an Android connection.
2 - Check if you see any errors from your browsers developer tools. E.g chrome dev tools.
HTH
Sam