samemory / homebridge-eufy-security

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

EufySecurity ERROR Not connected can't continue! #190

Closed Gaby690 closed 3 years ago

Gaby690 commented 3 years ago

What happened?

What can I do to fix it?

EufySecurity Finished initializing Eufy Security Platform EufySecurity ERROR Not connected can't continue!

Plugin Version

v1.0.x (Supported)

HomeBridge Version

v1.3.x (Supported)

NodeJS Version

v14 (Supported)

Operating System

Raspbian

Relevant log output

8/21/2021, 5:39:03 PM Home EufySecurity Finished initializing Eufy Security Platform
8/21/2021, 5:39:05 PM Home EufySecurity ERROR Not connected can't continue!
lenoxys commented 3 years ago

Hello,

Can you enable debug and post the log output ?

Gaby690 commented 3 years ago
8/22/2021, 12:55:32 PM Home[2021-08-22T16:55:32.440Z]  INFO: ef/2744 on v0.3.36: Finished initializing Eufy Security Platform

8/22/2021, 12:55:32 PM Home[2021-08-22T16:55:32.553Z] DEBUG: ef/2744 on v0.3.36: discoveringDevices

8/22/2021, 12:55:34 PM Home[2021-08-22T16:55:34.056Z] DEBUG: ef/2744 on v0.3.36: EufyClient connected false

8/22/2021, 12:55:34 PM Home[2021-08-22T16:55:34.057Z] ERROR: ef/2744 on v0.3.36: Not connected can't continue!

8/22/2021, 12:55:35 PM Home WARNING unhandled rejection: Error: Request failed: https://mysecurity.eufylife.com/api/v1/passport/login -> 100028 - Failed to request.
lenoxys commented 3 years ago

Can you update to 1.0.0-rc2 and do the Start over the wizard process within the plugin config ?

Gaby690 commented 3 years ago

it's on 1.0.0-rc2 and I'm using Hoobs

Gaby690 commented 3 years ago

8/22/2021, 3:53:40 PM Home [2021-08-22T19:53:40.659Z] DEBUG: ef/14550 on v1.0.0-rc.2: discoveringDevices

8/22/2021, 3:53:40 PM Home [2021-08-22T19:53:40.676Z] DEBUG: ef/14550 on v1.0.0-rc.2: Authenticate and get an access token { token: null, tokenExpiration: null }

8/22/2021, 3:53:40 PM Home[2021-08-22T19:53:40.683Z] DEBUG: ef/14550 on v1.0.0-rc.2:

8/22/2021, 3:53:40 PM Home Request: {

8/22/2021, 3:53:40 PM Home method: 'post',

8/22/2021, 3:53:40 PM Home endpoint: 'passport/login',

8/22/2021, 3:53:40 PM Home baseUrl: 'https://mysecurity.eufylife.com/api/v1',

8/22/2021, 3:53:40 PM Home token: null,

8/22/2021, 3:53:40 PM Home data: { email: 'XXX@gmail.com', password: 'XXX' },

8/22/2021, 3:53:40 PM Home headers: {

8/22/2021, 3:53:40 PM Home app_version: 'v2.8.0_887',

8/22/2021, 3:53:40 PM Home os_type: 'android',

8/22/2021, 3:53:40 PM Home os_version: '30',

8/22/2021, 3:53:40 PM Home phone_model: 'EUFYCLIENT',

8/22/2021, 3:53:40 PM Home country: 'US',

8/22/2021, 3:53:40 PM Home language: 'en',

8/22/2021, 3:53:40 PM Home openudid: '327a9b5618b0bc3',

8/22/2021, 3:53:40 PM Home uid: '',

8/22/2021, 3:53:40 PM Home net_type: 'wifi',

8/22/2021, 3:53:40 PM Home mnc: '02',

8/22/2021, 3:53:40 PM Home mcc: '262',

8/22/2021, 3:53:40 PM Home sn: '6b2514e00ac2',

8/22/2021, 3:53:40 PM Home Model_type: 'PHONE',

8/22/2021, 3:53:40 PM Home timezone: 'GMT-04:00'

8/22/2021, 3:53:40 PM Home }

8/22/2021, 3:53:40 PM Home }

8/22/2021, 3:53:40 PM Home

For what it seems it can't get the token so it can log in

Gaby690 commented 3 years ago

I uninstalled it, installed it again, did the username and password on the script and now it got it connected but still its not showing the cameras and I'm getting the warning at the bottom. I only get that warning with Eufy if I uninstall it it doesn't show it.

8/23/2021, 2:03:02 AM Home EufySecurity Finished initializing Eufy Security Platform

8/23/2021, 2:03:02 AM Home EufySecurity discoveringDevices

8/23/2021, 2:03:03 AM Home EufySecurityEufyClient connected true

8/23/2021, 2:03:03 AM Home EufySecurityPollingInterval: 10

8/23/2021, 2:03:03 AM Home EufySecurityRefresh data from cloud and schedule next refresh.

8/23/2021, 2:03:08 AM Home EufySecurityFound 2 stations.

8/23/2021, 2:03:08 AM Home EufySecurityFound Station Serial Number of my device Home Base STATION { value: '192.168.1.14', timestamp: 1629619166000 }

8/23/2021, 2:03:08 AM Home WARNING unhandled rejection: TypeError: Cannot read property 'indexOf' of undefined

8/23/2021, 2:15:20 AMHomeEufySecurityPush Connected!

lenoxys commented 3 years ago

Can you do that again but enable debug straigh away ?

Gaby690 commented 3 years ago

8/23/2021, 3:36:13 AMHome[2021-08-23T07:36:13.416Z]  INFO: ef/3091 on v1.0.0-rc.2: Eufy Security Plugin: enableDetailedLogging on 8/23/2021, 3:36:13 AMHome[2021-08-23T07:36:13.438Z]  INFO: ef/3091 on v1.0.0-rc.2: Finished initializing Eufy Security Platform 8/23/2021, 3:36:13 AMHome[2021-08-23T07:36:13.537Z] DEBUG: ef/3091 on v1.0.0-rc.2: discoveringDevices 8/23/2021, 3:36:13 AMHome[2021-08-23T07:36:13.913Z] DEBUG: ef/3091 on v1.0.0-rc.2: EufyClient connected true 8/23/2021, 3:36:13 AMHome[2021-08-23T07:36:13.915Z] DEBUG: ef/3091 on v1.0.0-rc.2: PollingInterval: 10 8/23/2021, 3:36:13 AMHome[2021-08-23T07:36:13.916Z] DEBUG: ef/3091 on v1.0.0-rc.2: Refresh data from cloud and schedule next 8/23/2021, 3:36:32 AMHome[2021-08-23T07:36:32.861Z] DEBUG: ef/3091 on v1.0.0-rc.2: Found 2 stations. 8/23/2021, 3:36:32 AMHome[2021-08-23T07:36:32.880Z] DEBUG: ef/3091 on v1.0.0-rc.2: Found Station T8010P1320450AE4 Home Base STATION { value: '192.168.1.14', timestamp: 1629619166000 } 8/23/2021, 3:36:32 AMHomeWARNINGunhandled rejection: TypeError: Cannot read property 'indexOf' of undefined 8/23/2021, 3:36:43 AMHome[2021-08-23T07:36:43.985Z] DEBUG: ef/3091 on v1.0.0-rc.2: Push Connected!

Gaby690 commented 3 years ago

I put the default settings in Pollong intervals, ignoring devices and ignoring stating, and it shows them but it doesn't open them

8/23/2021, 3:52:52 AMHomeEufySecurityRestoring existing accessory from cache: Home Base 8/23/2021, 3:52:52 AMHomeEufySecurityWARNINGBackyard looks station but it's not could imply some errors Type: 3 8/23/2021, 3:52:52 AMHomeEufySecurityRestoring existing accessory from cache: Backyard 8/23/2021, 3:52:52 AMHomeEufySecurityRestoring existing accessory from cache: Front of the House 8/23/2021, 3:52:52 AMHomeEufySecurityWARNINGBackyard Looks like not compatible with hasBattery 8/23/2021, 3:52:52 AMHomeEufySecurityRestoring existing accessory from cache: Backyard 8/23/2021, 3:55:56 AMHome[Backyard] The image snapshot handler for the given accessory is slow to respond! See https://git.io/JtMGR for more info. 8/23/2021, 3:56:02 AMHome[Front of the House] The image snapshot handler for the given accessory is slow to respond! See https://git.io/JtMGR for more info. 8/23/2021, 3:56:04 AMHomeEufySecurityStarting video stream: 1280 x 720, 30 fps, 299 kbps Backyard 8/23/2021, 3:56:16 AMHomeEufySecurityDevice appears to be inactive. Stopping stream. Backyard 8/23/2021, 3:56:16 AMHomeEufySecurityStopped video stream. Backyard

lenoxys commented 3 years ago

can you share your device to me ? eufy-plugin-test@secugrator.com

Gaby690 commented 3 years ago

I just send you the invite

Gaby690 commented 3 years ago

Now it's working but it takes long time to load

Also the logs are showing this:

8/23/2021, 4:17:39 AM Eufy ERROR [Eufy A2B7@Backyard@Enabled@On] Unhandled error thrown inside read handler for characteristic: Cannot read property 'value' of undefined 8/23/2021, 4:17:39 AM Eufy ERROR [Eufy A2B7@Backyard@Motion@On] Unhandled error thrown inside read handler for characteristic: Cannot read property 'value' of undefined

Gaby690 commented 3 years ago

log.txt

lenoxys commented 3 years ago

Was able to reproduce, look like lib issue need more time to identify where and push a PR to bropat

Gaby690 commented 3 years ago

Ok at least you could find what us happening

lenoxys commented 3 years ago

Can you test on rc3 ?

Gaby690 commented 3 years ago

It takes a long time to stream the cameras, sometimes it works and sometimes it just shows No Response this camera is not responding message in HomeKit

Gaby690 commented 3 years ago

Eufy[2021-08-24T02:09:08.776Z] DEBUG: ef/28139 on v1.0.0-rc.3: FFmpeg exited with code: null and signal: SIGKILL (Expected) Front of the House true

Gaby690 commented 3 years ago

log.txt

github-actions[bot] commented 3 years ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] commented 3 years ago

This issue was closed because it has been stalled for 5 days with no activity.