Why, with my credentials, do I only see six of my 16 devices listed when I issue a V2/device/thing command? It appears that all are Sonoff branded. When I was using the old API with the old credentials that have now been deactivated, it was returning all 16 devices. Is what you can see tied to your appID? If so, why?
Pinging related staff on your question @jiale.liu
Thanks Ward. Did your pings get any responses? It would be extremely useful and important to get a full device list from the API. I understand limiting the free version’s functionality somewhat but (v2/device/thing), in my opinion, is a basic function that should not be limited.
Hi, I need your appid and the deviceid that cannot be returned by the interface. Could you please send it to me? You can check the device id on the eWeLink app. In addition, the interface is limited in that it can only return authorized brand devices (such as sonoff), and unauthorized brand devices are not authorized to obtain.
Sorry for the delay, please check the response from our staff.
My appid:
ZWSZuHks1Aghw2sFtVL02VK5hvMTTbaf
The 10 device IDs that are not showing on API:
1001e2233e
10001f11e9
1000090d3e
100009138f
10001de8c3
1000092cad
10000912f8
100022d4c1
100022c50c
100023ae32
The first device is a temperature TH20 sensor which may not be Sonoff. Most of the other devices are Sonoff Basics and Sonoff smart plugs. At least I think they are Sonoff brand. They were all purchased on eBay from various merchants and came in Sonoff labeled packaging.
Why in the world would the API be limited and not show all devices? This is a very basic function that is needed to develop even the most basic apps.
Any word on this? I am still getting only 6 of my 16 devices. Of the 10 that don’t show on the list I posted, all but the TH20 are brand Maker and Sonoff models. I interrogated them using individual device IDs.
Unfound device list: => id, brand, model, ON/OFFline
1001e2233e, New Smart , TH-20, ONline
10001f11e9, Maker, Sonoff, ONline
1000090d3e, Maker, Sonoff, ONline
100009138f, Maker, Sonoff, ONline
10001de8c3, Maker, Sonoff, ONline
1000092cad, Maker, Sonoff, ONline
10000912f8, Maker, Sonoff, ONline
100022d4c1, Maker, S20, ONline
100022c50c, Maker, S20, OFFline
100023ae32, Maker, Sonoff Pow, ONline
I have checked the above equipment brands, please send me your appid, I will help you apply for sonoff brand authorization, we do not have permission for other brands, please kindly contact the manufacturer to obtain permission, please contact BD team (bd@coolkit.cn) for details.
My app ID was posted in the first reply to you on here. It is: ZWSZuHks1Aghw2sFtVL02VK5hvMTTbaf
What you are saying makes no sense to me. All apps should be able to see all devices in a logged-in user’s account. The user can already see the ids in the eWeLink app and eWeLink web on the advanced plan. The user owns those devices and should not be forced to enter the device ids manually! I am not going to pay CoolKit or any manufacturer to perform a basic API function, especially not in the development stages. This limitation should be removed. You are damaging your own prospects by doing things this way.
At present, your appid has authorized Maker brand. I think you misunderstood my answer. It does not mean that you need to pay for authorization, but you need to contact the manufacturer for authorization, and contact the BD team, who can give you the corresponding authorization template. The APP can be obtained because the appid used by the APP has been authorized by the manufacturer.
Thanks, I can see 15 of my 16 devices now. I still don’t follow the reasoning behind limiting the API such that developers need authorizations from dozens of brands just to programmatically get a list of devices in a user’s account. The user can already see the devices he owns in the eWeLink app or on the web. The user was “authorized” when he put the money down for the device. To make developers jump through hoops gathering authorizations is, in my opinion, crazy. That said, If “Maker” is included in the Sonoff family of brands then it should be authorized by default in all accounts along with all others in the family.