samemory / homebridge-eufy-security

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

[Bug]: can’t login after plug-in remove #254

Closed danidindin closed 3 years ago

danidindin commented 3 years ago

What happened?

The plug in was working well, But after I uninstall the plug in and installed again I can’t login again and cannot get the my camera.

I get the error: “this.driver.refreshData is not a functional” Someone was get this error?

What can I do?

Thanks

Device Type

Doorbell (Supported)

Plugin Version

v1.0.x (Supported)

HomeBridge Version

v1.3.x (Supported)

NodeJS Version

v12 (Supported)

Operating System

Mac OS X

Relevant log output

No response

github-actions[bot] commented 3 years ago

Did you check this Common Issues pages ?

danidindin commented 3 years ago

Another Log

[Homebridge UI] [homebridge-eufy-security] TypeError: this.driver.refreshData is not a function at UiServer.requestOtp (/usr/local/lib/node_modules/homebridge-eufy-security/homebridge-ui/server.js:63:25) at processTicksAndRejections (internal/process/task_queues.js:95:5) at async UiServer.processRequest (/usr/local/lib/node_modules/homebridge-eufy-security/node_modules/@homebridge/plugin-ui-utils/dist/server.js:75:30)

charlierushton commented 3 years ago

I am also getting this problem.

I am new to Homebridge so don't really know where to start

Logs: [10/18/2021, 10:55:42 AM] [EufySecurity] Error refreshing data from Eufy: TypeError: client.refreshData is not a function at EufySecurityPlatform.refreshData (/opt/homebrew/lib/node_modules/homebridge-eufy-security/src/platform.ts:418:22) at EufySecurityPlatform.discoverDevices (/opt/homebrew/lib/node_modules/homebridge-eufy-security/src/platform.ts:151:16) at HomebridgeAPI. (/opt/homebrew/lib/node_modules/homebridge-eufy-security/src/platform.ts:119:7)

lenoxys commented 3 years ago

Hello,

the best is to remove eufy security configuration and redo the install process.

How to do it :

Click delete icon when editing the setting of the plugin

screenshot-192 168 86 159_8581-2021 10 18-12_33_40

charlierushton commented 3 years ago

@lenoxys No joy, I've tried removing the configuration & uninstalling / reinstalling the plugin

Screenshot 2021-10-18 at 11 40 16
lenoxys commented 3 years ago

Did you use a specific account for the plugin or use the same than the one in the Eufy App ?

charlierushton commented 3 years ago

I use the same account as in the eufy app @lenoxys

danidindin commented 3 years ago

I also try to uninstall the pulg-in, install again and get the error I deleted all the homebridge and module folder, create new homebridge and also doesn't work I create 2 deferent users and get this error aging

charlierushton commented 3 years ago

I also created a separate account / guest user and tried that, didn't work

lenoxys commented 3 years ago

Which version of MacOS you're using ?

lenoxys commented 3 years ago

I use the same account as in the eufy app @lenoxys

We recommend to use a different account.

charlierushton commented 3 years ago
Screenshot 2021-10-18 at 11 55 37
charlierushton commented 3 years ago

@lenoxys I've tried using a guest account, I've tried clearing the config and re-adding it via the JSON file rather than the wizard. No joy. I'm running macOS 11.6 on an M1 chip.

Any suggestions?

lenoxys commented 3 years ago

Look like an issue with MacOS. I'm able to reproduce the issue. Let me check.

danidindin commented 3 years ago

The real issue is that it worked until i uninstall the plugin and reinstall because of problem, i tryed in my other homebridge on rpi and Iven there it doesn't work after uninstall and reinstall it.

Someone can check if hem uninstall the plug in they can login back agin? maybe the user is locked on the server and cant get the token again.

lenoxys commented 3 years ago

can you test the 1.0.1 ?

crushton97 commented 3 years ago

@lenoxys I can confirm 1.0.1 allows me to get past the login stage of installation, and I can see all of my devices in Home app.

However none of my cameras (2 cams, 1 doorbell) won't stream video

[10/18/2021, 3:49:43 PM] [EufySecurity] FFmpeg process creation failed: spawn ffmpeg ENOENT Doorbell

crushton97 commented 3 years ago

Please ignore last post - realised I didn't have FFmpeg installed

lenoxys commented 3 years ago

Cool thanks for your feedback. I'm closing this.