samemory / homebridge-eufy-security

Work in progress
Apache License 2.0
97 stars 14 forks source link

[Bug]: No devices fetched after successful login #304

Closed rangerek closed 2 years ago

rangerek commented 2 years ago

What happened?

doesn't matter if on main user or on guest with admin - plugin connects to eufy's api but fetches empty list of devices

Device Type

Station (Supported)

Plugin Version

v1.0.x (Supported)

HomeBridge Version

v1.3.x (Supported)

NodeJS Version

v14 (Supported)

Operating System

Ubuntu

Relevant log output

Dec 23 15:10:22 homebridge homebridge[1231]: [12/23/2021, 3:10:22 PM] Loaded plugin: homebridge-eufy-security@1.0.8
Dec 23 15:10:22 homebridge homebridge[1231]: [12/23/2021, 3:10:22 PM] Registering platform 'homebridge-eufy-security.EufySecurity'
Dec 23 15:10:30 homebridge homebridge[1231]: [12/23/2021, 3:10:30 PM] [EufySecurity] Initializing EufySecurity platform...
Dec 23 15:10:30 homebridge homebridge[1231]: [12/23/2021, 3:10:30 PM] [EufySecurity-1.0.8] INFO:  Eufy Security Plugin: enableDetailedLogging on
Dec 23 15:10:30 homebridge homebridge[1231]: [12/23/2021, 3:10:30 PM] [EufySecurity-1.0.8] DEBUG: Load previous login_hash: xxxx
Dec 23 15:10:30 homebridge homebridge[1231]: [12/23/2021, 3:10:30 PM] [EufySecurity-1.0.8] DEBUG: Load previous api_base: https://security-app.eufylife.com
Dec 23 15:10:30 homebridge homebridge[1231]: [12/23/2021, 3:10:30 PM] [EufySecurity-1.0.8] DEBUG: Load previous token: {
Dec 23 15:10:30 homebridge homebridge[1231]: [12/23/2021, 3:10:30 PM] [EufySecurity-1.0.8] INFO:  Finished initializing Eufy Security Platform
Dec 23 15:10:31 homebridge homebridge[1231]: [12/23/2021, 3:10:31 PM] [EufySecurity-1.0.8] DEBUG: discoveringDevices
Dec 23 15:10:31 homebridge homebridge[1231]: [12/23/2021, 3:10:31 PM] [EufySecurity-1.0.8] DEBUG: Authenticate and get an access token {
Dec 23 15:10:31 homebridge homebridge[1231]: [12/23/2021, 3:10:31 PM] [EufySecurity-1.0.8] DEBUG: Request: {
Dec 23 15:10:31 homebridge homebridge[1231]:   baseUrl: 'https://security-app.eufylife.com',
Dec 23 15:10:31 homebridge homebridge[1231]:     phone_model: 'EUFYCLIENT',
Dec 23 15:10:31 homebridge homebridge[1231]: [12/23/2021, 3:10:31 PM] [EufySecurity-1.0.8] DEBUG: EufyClient connected true
Dec 23 15:10:31 homebridge homebridge[1231]: [12/23/2021, 3:10:31 PM] [EufySecurity-1.0.8] DEBUG: PollingInterval: 30
Dec 23 15:10:31 homebridge homebridge[1231]: [12/23/2021, 3:10:31 PM] [EufySecurity-1.0.8] DEBUG: Refresh data from cloud and schedule next refresh.
Dec 23 15:10:31 homebridge homebridge[1231]: [12/23/2021, 3:10:31 PM] [EufySecurity-1.0.8] DEBUG: Request: {
Dec 23 15:10:31 homebridge homebridge[1231]:   baseUrl: 'https://security-app.eufylife.com',
Dec 23 15:10:31 homebridge homebridge[1231]:     phone_model: 'EUFYCLIENT',
Dec 23 15:10:34 homebridge homebridge[1231]: [12/23/2021, 3:10:34 PM] [EufySecurity-1.0.8] DEBUG: Stations - Response: { code: 0, msg: 'Succeed.', data: null }
Dec 23 15:10:34 homebridge homebridge[1231]: [12/23/2021, 3:10:34 PM] [EufySecurity-1.0.8] INFO:  No stations found.
Dec 23 15:10:35 homebridge homebridge[1231]: [12/23/2021, 3:10:35 PM] [EufySecurity-1.0.8] DEBUG: Request: {
Dec 23 15:10:35 homebridge homebridge[1231]:   baseUrl: 'https://security-app.eufylife.com',
Dec 23 15:10:35 homebridge homebridge[1231]:     phone_model: 'EUFYCLIENT',
Dec 23 15:10:35 homebridge homebridge[1231]: [12/23/2021, 3:10:35 PM] [EufySecurity-1.0.8] DEBUG: Response: { code: 0, msg: 'ok', data: { list: [] } }
Dec 23 15:10:35 homebridge homebridge[1231]: [12/23/2021, 3:10:35 PM] [EufySecurity-1.0.8] DEBUG: Save cloud token and token expiration {
Dec 23 15:10:35 homebridge homebridge[1231]: [12/23/2021, 3:10:35 PM] [EufySecurity-1.0.8] DEBUG: Login with previous push credentials... {
Dec 23 15:10:35 homebridge homebridge[1231]: [12/23/2021, 3:10:35 PM] [EufySecurity-1.0.8] DEBUG: Request: {
Dec 23 15:10:35 homebridge homebridge[1231]:   baseUrl: 'https://security-app.eufylife.com',
Dec 23 15:10:35 homebridge homebridge[1231]:     phone_model: 'EUFYCLIENT',
Dec 23 15:10:36 homebridge homebridge[1231]: [12/23/2021, 3:10:36 PM] [EufySecurity-1.0.8] DEBUG: Devices - Response: { code: 0, msg: 'Succeed.', data: null }
Dec 23 15:10:36 homebridge homebridge[1231]: [12/23/2021, 3:10:36 PM] [EufySecurity-1.0.8] INFO:  No devices found.
Dec 23 15:10:36 homebridge homebridge[1231]: [12/23/2021, 3:10:36 PM] [EufySecurity-1.0.8] DEBUG: Found 0 stations.
Dec 23 15:10:36 homebridge homebridge[1231]: [12/23/2021, 3:10:36 PM] [EufySecurity-1.0.8] DEBUG: Found 0 devices.
Dec 23 15:10:36 homebridge homebridge[1231]: [12/23/2021, 3:10:36 PM] [EufySecurity-1.0.8] DEBUG: Stations - Response: { code: 0, msg: 'Succeed.', data: null }
Dec 23 15:10:36 homebridge homebridge[1231]: [12/23/2021, 3:10:36 PM] [EufySecurity-1.0.8] INFO:  No stations found.
Dec 23 15:10:36 homebridge homebridge[1231]: [12/23/2021, 3:10:36 PM] [EufySecurity-1.0.8] DEBUG: Request: {
Dec 23 15:10:36 homebridge homebridge[1231]:   baseUrl: 'https://security-app.eufylife.com',
Dec 23 15:10:36 homebridge homebridge[1231]:     phone_model: 'EUFYCLIENT',
Dec 23 15:10:36 homebridge homebridge[1231]: [12/23/2021, 3:10:36 PM] [EufySecurity-1.0.8] DEBUG: Devices - Response: { code: 0, msg: 'Succeed.', data: null }
Dec 23 15:10:36 homebridge homebridge[1231]: [12/23/2021, 3:10:36 PM] [EufySecurity-1.0.8] INFO:  No devices found.
Dec 23 15:10:38 homebridge homebridge[1231]: [12/23/2021, 3:10:38 PM] [EufySecurity-1.0.8] DEBUG: Login response: GCM -> logged in -> waiting for push messages...
Dec 23 15:10:38 homebridge homebridge[1231]: [12/23/2021, 3:10:38 PM] [EufySecurity-1.0.8] DEBUG: Request: {
Dec 23 15:10:38 homebridge homebridge[1231]:   baseUrl: 'https://security-app.eufylife.com',
Dec 23 15:10:38 homebridge homebridge[1231]:     phone_model: 'EUFYCLIENT',
Dec 23 15:10:38 homebridge homebridge[1231]: [12/23/2021, 3:10:38 PM] [EufySecurity-1.0.8] DEBUG: IqStanza: Not implemented {
Dec 23 15:10:38 homebridge homebridge[1231]: [12/23/2021, 3:10:38 PM] [EufySecurity-1.0.8] DEBUG: Response: { code: 0, msg: 'Succeed.' }
Dec 23 15:10:38 homebridge homebridge[1231]: [12/23/2021, 3:10:38 PM] [EufySecurity-1.0.8] DEBUG: Push token registered successfully
Dec 23 15:10:38 homebridge homebridge[1231]: [12/23/2021, 3:10:38 PM] [EufySecurity-1.0.8] DEBUG: Request: {
Dec 23 15:10:38 homebridge homebridge[1231]:   baseUrl: 'https://security-app.eufylife.com',
Dec 23 15:10:38 homebridge homebridge[1231]:   data: { app_type: 'eufySecurity', transaction: '1640268638679' },
Dec 23 15:10:38 homebridge homebridge[1231]:     phone_model: 'EUFYCLIENT',
Dec 23 15:10:38 homebridge homebridge[1231]: [12/23/2021, 3:10:38 PM] [EufySecurity-1.0.8] DEBUG: Response: { code: 0, msg: 'Succeed.' }
Dec 23 15:10:38 homebridge homebridge[1231]: [12/23/2021, 3:10:38 PM] [EufySecurity-1.0.8] DEBUG: Push token OK
Dec 23 15:10:38 homebridge homebridge[1231]: [12/23/2021, 3:10:38 PM] [EufySecurity-1.0.8] INFO:  Push notification connection successfully established
Dec 23 15:10:38 homebridge homebridge[1231]: [12/23/2021, 3:10:38 PM] [EufySecurity-1.0.8] DEBUG: Push Connected!
github-actions[bot] commented 2 years ago

Did you check this Common Issues pages ?

rangerek commented 2 years ago

and just to confirm like in issue 34 from bropat (author of the eufy-communication plugin) it works OK with a different plugin for eufy: birkir/homebridge-plugin-eufy-security so credentials ad push token are ok

schliemann commented 2 years ago

@rangerek Birkirs plugin uses the old and deprecated library. Difficult to determine the case of your issue. You could try and clear cached data in homebridge.

rangerek commented 2 years ago

@rangerek Birkirs plugin uses the old and deprecated library. Difficult to determine the case of your issue. You could try and clear cached data in homebridge.

I know it uses old library - just used it as an example that the guest account works I believe it is something new again that doesn’t work in the client - tried on 1.06, 1.0.8 and 1.1.1 and everywhere same story - when logging in I get an empty table of devices reported from eufy

schliemann commented 2 years ago

You should try what I proposed in my last reply. Clear cache.

rangerek commented 2 years ago

did it already before still same problem: Dec 24 12:50:13 homebridge homebridge[566]: [12/24/2021, 12:50:13 PM] [Homebridge UI] [homebridge-eufy-security] [1.0.8] DEBUG: Response: { code: 0, msg: 'ok', data: { list: [] } }

schliemann commented 2 years ago

Probably not the fault of this plugin then. You are welcome to ask bropat if he can figure out what is wrong.

schliemann commented 2 years ago

@rangerek Did you ever solve this issue?

rangerek commented 2 years ago

Yes - runs on my primary account unfortunately

schliemann commented 2 years ago

Ok. So you never got a guest account to get access?

rangerek commented 2 years ago

Nope - with multiple attempts, guest account had full access and powers within the app, but never got list of devices in HB While owner account got the list from the first try (so never went back to check more from guest)