homebridge-eufy-security / plugin

Homebridge plugin to control certain Eufy Security devices
Apache License 2.0
167 stars 23 forks source link

[Bug]: [homebridge-eufy-security] [1.0.8] DEBUG: Captcha verification received #8

Closed gintonic4all closed 2 years ago

gintonic4all commented 2 years ago

What happened?

I just wanted to re-setup my eufy security for migration to another raspi-device.

Because I could not remember my password, I reset it via the eufy website. When (re)logging in again in the eufy app not only the password is required - also a captcha code is presented and asked to be entered. Here: no problems following the procedure (that seems to be new to me).

Now in the homebridge eufy-security package the setup wizzard stops after having entered user-name and password. I have the 2FA-option set in the eufy app. And the protocol says "[homebridge-eufy-security] [1.0.8] DEBUG: Captcha verification received"...

Seems the (new?) log-in method needs to be implemented in the package, isn't it?

Best regards, gintonic4all

Device Type

Station (Supported)

Plugin Version

v1.0.x (Supported)

HomeBridge Version

v1.4.x (Supported)

NodeJS Version

v16 (Supported)

Operating System

Raspbian 10+ (Supported)

Relevant log output

[15/04/2022, 17:57:57] [Homebridge UI] [homebridge-eufy-security] [1.0.8] INFO:  Switching to another API_BASE (https://security-app-eu.eufylife.com) and get new token.
[15/04/2022, 17:57:57] [Homebridge UI] [homebridge-eufy-security] [1.0.8] DEBUG: Renew token
[15/04/2022, 17:57:57] [Homebridge UI] [homebridge-eufy-security] [1.0.8] DEBUG: Authenticate and get an access token { token: null, tokenExpiration: null }
[15/04/2022, 17:57:57] [Homebridge UI] [homebridge-eufy-security] [1.0.8] DEBUG: Request: {
  method: 'post',
  endpoint: 'v2/passport/login',
  baseUrl: 'https://security-app-eu.eufylife.com',
  token: null,
  data: {
    client_secret_info: {
      public_key: '043631b4e5bc7520bd0f105dd93e649899517acbc98784e52d7188892a0775ee4f0f3faa32746d6e1e0d0c6c098f025a1043c6182097f5905d9cd272ae9b23f126'
    },
    enc: 0,
    email: 'xxx@yyy.com', // I have deleted my e-mail adress here 
    password: 'w1YqWTaiHoMefbqSt4fywQ==', //this one is not my real pw... it's from the log
    time_zone: 7200000,
    transaction: '1650038277236'
  },
  headers: {
    app_version: 'v3.3.1_1058',
    os_type: 'android',
    os_version: '30',
    phone_model: 'EUFYCLIENT',
    country: 'US',
    language: 'en',
    openudid: '1ae3d784aa54bc01',
    uid: '',
    net_type: 'wifi',
    mnc: '02',
    mcc: '262',
    sn: 'd5127e10d030',
    Model_type: 'PHONE',
    timezone: 'GMT+02:00',
    'Cache-Control': 'no-cache',
    gtoken: '4f6749e34ef5d4c5a6515070e6cb1bf2'
  }
}
[15/04/2022, 17:57:57] [Homebridge UI] [homebridge-eufy-security] [1.0.8] DEBUG: Response: {
  code: 100032,
  msg: 'Failed to request.',
  data: {
    captcha_id: '924ecf25-acf2-4016-b730-fc2882ecde29',
    item: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFUAAAArCAIAAACGv1O8AAAJTklEQVR4nOxafUxbVf+/7aW97daX2/VttIFKXxWl1cyaImnngm/TJYvGVawuLmqWmRCzf/xDw3yJzMXMGV8SM2WwaAhKNYpRoySCEMDKiwiYEkohKaWUtraFvre39/b+8vM+T1Nb2t75PNPlYZ+/yDnnc77nc873+z3fe0oNjuPALgb1n17AP4zr+nc3ruvf3biuf3fjuv7djWtdP4ZhV7VCrbl6UwMAgKIoCIIUCuWKWBiGeb3eubk5t9vNYrEOHz4sEon+2gL8fj8MwxAElRtQRX80GqXRaEwm84qsIggSCoUikYjP59vc3ERR9NChQ2KxGARBKrWKx2EYNj4+/vHHH8/MzGxsbITD4a6urhMnToAgSNJ6LpeLRCKZTMbj8Vy8ePHxxx83Go01NWWU4mWQy+WcTudzzz03MDCQTCYrOGER0W63v/nmmw888IBYLAYAgMFgyOVynU73yiuvzM3NJRKJchYJuN3uo0eP0ul0AACEQmFLS4vNZkMQpDKraIYLFy6Yzeba2loAANra2ubn58sNLqsfx/Hz588LhcJDhw79/PPPFYaRPJaqO05s+vnz50UiEYfDaW9vn5mZQVGUnOr/h9frfeONN/h8fqG5xsbG7u7ucpRK3igSiWAYXltb++WXX0jq8Xg8J0+epFAozc3NX3/99cLCwo8//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ektd69lnn+XxeB0dHYFAgKQM4glkY2ODQqFAEPT999+TJyYSiby/EFGpUCieeeaZ4eHhCixSaYZKpR49enR7e/vGG29samoq6mX9gVJWW1ubVqttbm4WCoXko4NCoeA4rtFoYrEYn8/HMIzkE8iePXvS6TSDwbBarbFYTCqVEpdiFevkj2Vzc9Pr9ZI/EBRF4/F4Op0mTyGQyWTef//9K11hkWmSQUe5Nv//g/CC0r//67jWf/+42iiOfzIl5/8S/uRaRWXmP7sFf89JXN3fv/4T/D27v9vj/0/6C7d8l8R/sf/vEtl57Hb//78AAAD//0bqA8HMSrLbAAAAAElFTkSuQmCC'
  }
}
[15/04/2022, 17:57:57] [Homebridge UI] [homebridge-eufy-security] [1.0.8] DEBUG: Captcha verification received {
  captchaId: '924ecf25-acf2-4016-b730-fc2882ecde29',
  item: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFUAAAArCAIAAACGv1O8AAAJTklEQVR4nOxafUxbVf+/7aW97daX2/VttIFKXxWl1cyaImnngm/TJYvGVawuLmqWmRCzf/xDw3yJzMXMGV8SM2WwaAhKNYpRoySCEMDKiwiYEkohKaWUtraFvre39/b+8vM+T1Nb2t75PNPlYZ+/yDnnc77nc873+z3fe0oNjuPALgb1n17AP4zr+nc3ruvf3biuf3fjuv7djWtdP4ZhV7VCrbl6UwMAgKIoCIIUCuWKWBiGeb3eubk5t9vNYrEOHz4sEon+2gL8fj8MwxAElRtQRX80GqXRaEwm84qsIggSCoUikYjP59vc3ERR9NChQ2KxGARBKrWKx2EYNj4+/vHHH8/MzGxsbITD4a6urhMnToAgSNJ6LpeLRCKZTMbj8Vy8ePHxxx83Go01NWWU4mWQy+WcTudzzz03MDCQTCYrOGER0W63v/nmmw888IBYLAYAgMFgyOVynU73yiuvzM3NJRKJchYJuN3uo0eP0ul0AACEQmFLS4vNZkMQpDKraIYLFy6Yzeba2loAANra2ubn58sNLqsfx/Hz588LhcJDhw79/PPPFYaRPJaqO05s+vnz50UiEYfDaW9vn5m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BkMmkw0MDJCkeDyed999l6hH2Gy2SqXas2cPkTjkcvlbb71FPOGUgpR+DMM6OjrodPqRI0d+/fXXot5YLOb1ektd69lnn+XxeB0dHYFAgKQM4glkY2ODQqFAEPT999+TJyYSiby/EFGpUCieeeaZ4eHhCixSaYZKpR49enR7e/vGG29samoq6mX9gVJWW1ubVqttbm4WCoXko4NCoeA4rtFoYrEYn8/HMIzkE8iePXvS6TSDwbBarbFYTCqVEpdiFevkj2Vzc9Pr9ZI/EBRF4/F4Op0mTyGQyWTef//9K11hkWmSQUe5Nv//g/CC0r//67jWf/+42iiOfzIl5/8S/uRaRWXmP7sFf89JXN3fv/4T/D27v9vj/0/6C7d8l8R/sf/vEtl57Hb//78AAAD//0bqA8HMSrLbAAAAAElFTkSuQmCC'
}
github-actions[bot] commented 2 years ago

Did you check this Common Issues pages ?

lenoxys commented 2 years ago

Hello you will need to use the beta unfortunately

gintonic4all commented 2 years ago

Hello you will need to use the beta unfortunately

Hi, just tried the beta. Unfortunately the status log shows something's wrong when I restart homebridge after configuration of the EufySecurity plugin:

[15/04/2022, 22:51:30] [EufySecurity] Initializing EufySecurity platform... [15/04/2022, 22:51:30] [EufySecurity] warning: planned changes, see https://github.com/homebridge-eufy-security/plugin/issues/1 [15/04/2022, 22:51:30] [EufySecurity] Country set: DE [15/04/2022, 22:51:30] Error: EEXIST: file already exists, copyfile '/var/lib/homebridge/persistent.json' -> '/var/lib/homebridge/eufysecurity/persistent.json' at Object.copyFileSync (node:fs:2804:3) at new EufySecurityPlatform (/usr/local/lib/node_modules/homebridge-eufy-security/src/platform.ts:138:10) at /usr/local/lib/node_modules/homebridge/src/server.ts:440:40 at Array.forEach () at Server.loadPlatforms (/usr/local/lib/node_modules/homebridge/src/server.ts:372:27) at Server.start (/usr/local/lib/node_modules/homebridge/src/server.ts:159:29)

Would be great, if someone has any idea :-)

Thanks in advance :-)

lenoxys commented 2 years ago

Duplicate #7 ; should be good with .52

lenoxys commented 2 years ago

Looks good ! Closing this case