question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Accessible devices don't appear in getDevices()

See original GitHub issue

When 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:open
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
vdkuilcommented, Dec 17, 2020

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.

1reaction
skydivercommented, Oct 12, 2020

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 🤞

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found