Accessible devices don't appear in getDevices()
See original GitHub issueWhen running getDevices()
, I was receiving an empty array []
. However, if I log into the ewelink app and find the device ID of one of the BLue50 SX1 smart plugs I have and manually put it into getDevice()
it connects successfully and can be controlled.
const connection = new ewelink({
email: '[MY_EMAIL]',
password: '[MY_PASSWORD]',
region: 'us'
});
//this doesn't work, returns an empty array
const devices = await connection.getDevices();
console.log(devices);
//this works, returns the device successfully
const device = await connection.getDevice([KNOWN_DEVICE_ID])
console.log(device);
The advice given in #88 for non-sonoff devices didn’t help - I still receive an empty array.
The device firmware is 3.4.1 (current version), and my ewelink app is on v4.4.1
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
MATLAB daq.getDevices - MathWorks
daq.getDevices lists devices available to your system. Tips. Devices not supported by the toolbox are denoted in the output list with an asterisk...
Read more >Bluetooth.getDevices() - Web APIs - MDN Web Docs
The getDevices() method of Bluetooth interface of Web Bluetooth API exposes the Bluetooth devices this origin is allowed to access.
Read more >Accessible devices does not show device in TIA V14 - 177608
I attached a printscreen showing how all IP-addresses seem OK and ping works, yet the device is not shown in accessible nodes.
Read more >Querying all available devices using WebUSB's getDevices w ...
The first of these protections is the requestDevice() function. ... a given device is sensitive information your page/app should not be able ...
Read more >Get Available Devices - Spotify for Developers
curl -X "GET" "https://api.spotify.com/v1/me/player/devices" -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer " ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Seems like the change required for me was the change of APP_ID and APP_SECRET. Once I changed them back to the old values from ewe-link version 2.0.0 everything seems to work again.
sadly i don’t have a non sonoff device to test
you can take a look if this issue helps: https://github.com/skydiver/ewelink-api/issues/88#issuecomment-643574472
if not, hopefully someone can help 🤞