apexad / eufy-robovac

NodeJS library to control Eufy RoboVac
MIT License
60 stars 17 forks source link

iPhone #10

Closed Homekitworkerx closed 4 years ago

Homekitworkerx commented 4 years ago

You mentioned that this works with an Android phone; is there any way to get the localKey with an iPhone and Mac?

apexad commented 4 years ago

Mac, yes (using Blue Stacks emulator). iPhone, no.

You can get both pieces of information by using logcat to "sniff" the data on an android phone OR emulator (like BlueStacks. This is known to work on Eufy Home v2.3.2 (click the link to download the apk)

More detailed steps on using logcat:

  1. Close the app on your mobile device
  2. Connect the device to your laptop and enable USB debugging
  3. Run adb logcat -e 'tuya.m.my.group.device.list' (assumes you have already installed the Android debug tools)
  4. Launch the Eufy Home app
  5. The output lines contain JSON, you're looking for the values of localKey (16 character hex string) and devId (20 character hex string).
imsturmdernacht commented 3 years ago

You can use Charles on your PC / Mac as an SSL proxy to log the data traffic when opening the EufyApp. Here you can read out both parameters.