skydiver / ewelink-api

eWeLink API for JavaScript
https://www.npmjs.com/package/ewelink-api
MIT License
267 stars 108 forks source link

Can we have other APIs like register user, add wifi to device type? #9

Open BeepLoveKarki opened 5 years ago

skydiver commented 5 years ago

Hello @BeepLoveKarki

I never saw any existing code or info for these functionalities, so i think some reverse engineering must be done on the app.

Will be great if someone has time and energy to make this research.

peterbuga commented 4 years ago

@BeepLoveKarki just wait for me to do it and then @skydiver will nicely copy-paste it ;) without adding any credits....

skydiver commented 4 years ago

Hey @peterbuga, let me know how to credit you, i'd be happy to do this.

fadidevv commented 4 years ago

@skydiver Hi man, i'm on inspecting eWeLink-app i successfully Pair the devices with WIFI but i need your help for registering the device to SONOFF servers for example at: as-disp.coolkit.cc after the Pairing success i have payload for sending to register device but i need to send action to SONOFF Hardware via SOCKET action looks like this: 'register' same as other actions like 'update' and the URL looks like this: wss://as-disp.coolkit.cc:443 we don't need any SSL for this because it's on SONOFF servers not in our localServer so how can we done this via SOCKET? as i saw in your library supports Listening-events not Sending-events!

Thank you.

ttz642 commented 4 years ago

@skydiver Hi man, i'm on inspecting eWeLink-app i successfully Pair the devices with WIFI but i need your help for registering the device to SONOFF servers for example at: as-disp.coolkit.cc after the Pairing success i have payload for sending to register device but i need to send action to SONOFF Hardware via SOCKET action looks like this: 'register' same as other actions like 'update' and the URL looks like this: wss://as-disp.coolkit.cc:443 we don't need any SSL for this because it's on SONOFF servers not in our localServer so how can we done this via SOCKET?

We'd need a complete replacement for the sonoff server for registration process.

as i saw in your library supports Listening-events not Sending-events!

The listener is getting the events from the sonoff server not the local devices.

the ZeroConf stuff being added will allow local control after the devices are registered.