ewelink-api icon indicating copy to clipboard operation
ewelink-api copied to clipboard

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

Open BeepLoveKarki opened this issue 6 years ago • 5 comments

BeepLoveKarki avatar Aug 06 '19 04:08 BeepLoveKarki

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.

skydiver avatar Aug 16 '19 04:08 skydiver

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

peterbuga avatar Oct 16 '19 18:10 peterbuga

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

skydiver avatar Oct 16 '19 18:10 skydiver

@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.

fadidevv avatar Dec 11 '19 16:12 fadidevv

@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.

ttz642 avatar Dec 11 '19 18:12 ttz642