Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Still can't get to the device ID and local ID #8

Closed
treforparr opened this issue Jul 9, 2020 · 7 comments
Closed

Still can't get to the device ID and local ID #8

treforparr opened this issue Jul 9, 2020 · 7 comments

Comments

@treforparr
Copy link

Struggling to get to device and local ID

@apexad
Copy link
Owner

apexad commented Aug 1, 2020

You are following the instructions in the README? Using Blue Stacks and the older version of the Eufy Robovac App? https://www.apkmirror.com/apk/anker/eufyhome/eufyhome-2-3-2-release/eufyhome-2-3-2-android-apk-download/

@treforparr
Copy link
Author

treforparr commented Aug 2, 2020 via email

@treforparr
Copy link
Author

I have tried several ways of getting it working no joy

@apexad
Copy link
Owner

apexad commented Sep 25, 2020

Closing due to inactivity.

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

@apexad apexad closed this as completed Sep 25, 2020
Repository owner deleted a comment from dallombra Nov 3, 2020
@techguydave
Copy link

I'm running into the same thing. Looking at the output, it seems the JSON response is incomplete. Using Eufy Home v2.3.2, tried it on both BlueStacks and my actual phone.

image

The entire text of the erroneous node above:

{
  "result":[
    {
      "schemaInfo":{
        "schemaExt":"[]",
          "schema":"[{\"mode\":\"rw\",\"code\":\"power\",\"name\":\"电源开关\",\"property\":{\"type\":\"bool\"},\"iconname\":\"icon-dp_power2\",\"id\":1,\"type\":\"obj\",\"desc\":\"\"},{\"mode\":\"rw\",\"code\":\"power_go\",\"name\":\"清扫开关\",\"property\":{\"type\":\"bool\"},\"iconname\":\"icon-dp_power\",\"id\":2,\"type\":\"obj\",\"desc\":\"1是 开始工作(工作中),0是停止工作(待机中)\"},{\"mode\":\"rw\",\"code\":\"direction\",\"name\":\"清扫方向\",\"property\":{\"range\":[\"forward\",\"back\",\"left\",\"right\"],\"type\":\"enum\"},\"iconname\":\"icon-dp_mode\",\"id\":3,\"type\":\"obj\",\"desc\":\"\"},{\"mode\":\"rw\",\"code\":\"mode\",\"name\":\"清扫模式\",\"property\":{\"range\":[\"auto\",\"SmallRoom\",\"Spot\",\"Edge\",\"Nosweep\",\"remote\",\"bf1\",\"bf2\",\"bf3\"],\"type\":\"enum\"},\"iconname\":\"icon-dp_dust\",\"id\":5,\"type\":\"obj\",\"desc\":\"自动模式;小房间模式;定点模式;延边模式……可按产品实际功能进行修改\"},{\"mode\":\"ro\",\"code\":\"status\",\"name\":\"工作状态\",\"property\":{\"range\":[\"Running\",\"standby\",\"Sleeping\",\"Charging\",\"completed\",\"Recharge\"],\"type\":\"enum\"},\"iconname\":\"icon-dp_direction\",\"id\":15,\"type\":\"obj\",\"desc\":\"0x00:运行中\\n0x01:待机中\\n0x02:休眠中\\n0x03:充电中\\n0x04:充电完成\\n0x05:回充中\"},{\"mode\":\"rw\",\"code\":\"FMR\",\"name\":\"自动回充\",\"property\":{\"type\":\"bool\"},\"id\":101,\"type\":\"obj\",\"desc\":\"\"},{\"mode\":\"rw\",\"code\":\"Cleaning_intensity\",\"name\":\"清扫强度\",\"property\":{\"range\":[\"Standard\",\"Turbo\",\"Max\",\"Boost_IQ\"],\"type\":\"enum\"},\"id\":102,\"type\":\"obj\",\"desc\":\"Standard、Turbo、Max、Boost IQ\"},{\"mode\":\"rw\",\"code\":\"Looking_weeper\",\"name\":\"寻找扫地机\",\"property\":{\"type\":\"bool\"},\"id\":103,\"type\":\"obj\",\"desc\":\"\"},{\"mode\":\"ro\",\"code\":\"electricity_left1\",\"name\":\"剩余电量\",\"property\":{\"unit\":\"\",\"min\":0,\"max\":100,\"scale\":0,\"step\":1,\"type\":\"value\"},\"id\":104,\"type\":\"obj\",\"desc\":\"\"},{\"mode\":\"ro\",\"code\":\"Fault_report\",\"name\":\"故障提示\",\"property\":{\"unit\":\"\",\"min\":0,\"max\":10000,\"scale\":0,\"step\":1,\"type\":\"value\"},\"id\":106,\"type\":\"obj\",\"desc\":\"\"},{\"mode\":\"rw\",\"code\":\"ForbidMode\",\"name\":\"勿扰模式状态\",\"property\":{\"type\":\"bool\"},\"id\":107,\"type\":\"obj\",\"desc\":\"1:在勿扰模式  0:不在勿扰 目前只做上报\"},{\"mode\":\"ro\",\"code\":\"ClearTime\",\"name\":\"清扫时间\",\"property\":{\"unit\":\"s\",\"min\":0,\"max\":10000000,\"scale\":0,\"step\":1,\"type\":\"value\"},\"id\":109,\"type\":\"obj\",\"desc\":\"\"},{\"mode\":\"ro\",\"code\":\"ClearArea\",\"name\":\"清扫面积\",\"property\":{\"unit\":\"m2\",\"min\":0,\"max\":10000000,\"scale\":0,\"step\":1,\"type\":\"value\"},\"id\":110,\"type\":\"obj\",\"desc\":\"\"},{\"mode\":\"rw\",\"code\":\"Loudness\",\"name\":\"音 量调节\",\"property\":{\"unit\":\"\",\"min\":0,\"max\":100,\"scale\":0,\"step\":1,\"type\":\"value\"},\"id\":111,\"type\":\"obj\",\"desc\":\"\"},{\"mode\":\"rw\",\"code\":\"pauseStar\",\"name\":\"暂停/继续\",\"property\":{\"range\":[\"Nosweep\",\"Pause\",\"Continue\"

@techguydave
Copy link

techguydave commented Nov 29, 2020

Nevermind. Looks like if the device is shared with you, it won't show you the keys/IDs. Getting the device owner to login on BlueStacks worked.

@apexad
Copy link
Owner

apexad commented Nov 30, 2020

That makes a lot of sense. Thanks for finding that out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants