samemory / homebridge-eufy-security

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

[Bug]: Wrong username or password #346

Closed MartinJRS closed 2 years ago

MartinJRS commented 2 years ago

What happened?

Wrong username or password is prompted when trying to get started with the plugin. I am 100% sure to enter the correct login data.

Device Type

Station (Supported)

Plugin Version

v1.0.x (Supported)

HomeBridge Version

v1.3.x (Supported)

NodeJS Version

v16 (Supported)

Operating System

Raspbian 10+ (Supported)

Relevant log output

[30/01/2022, 21:30:52] [EufySecurity] Initializing EufySecurity platform... [1/30/2022, 9:30:52 PM] [EufySecurity-1.0.8] INFO: Eufy Security Plugin: enableDetailedLogging on [1/30/2022, 9:30:52 PM] [EufySecurity-1.0.8] INFO: Finished initializing Eufy Security Platform [1/30/2022, 9:30:54 PM] [EufySecurity-1.0.8] DEBUG: EufyClient connected false [1/30/2022, 9:30:54 PM] [EufySecurity-1.0.8] ERROR: Not connected can't continue!

github-actions[bot] commented 2 years ago

Did you check this Common Issues pages ?

MartinJRS commented 2 years ago

I have just tested to re-login on my iPad and iPhone. After typing my login data, I am now prompted to enter a verification-key that is shown ... is that new? Is that maybe the reason why the plugin's login fails?

fullphat commented 2 years ago

Most likely, yes. You're better off creating a new account, signing in to the Eufy app with it and passing any Captcha verification. Then sign out and use the credentials for the plugin. If you can, disable 2FA for this account as well.

Note that this account will need to be an admin one, but you can choose to share as many devices as you want (I only share one of my Eufy devices).

Post back if you still have issues.

MartinJRS commented 2 years ago

Alright, many thanks. I did everything as described.

[31/01/2022, 00:24:00] [EufySecurity] Initializing EufySecurity platform... [1/31/2022, 12:24:01 AM] [EufySecurity-1.0.8] INFO: Eufy Security Plugin: enableDetailedLogging on [1/31/2022, 12:24:01 AM] [EufySecurity-1.0.8] INFO: Finished initializing Eufy Security Platform [1/31/2022, 12:24:01 AM] [EufySecurity-1.0.8] DEBUG: discoveringDevices [1/31/2022, 12:24:01 AM] [EufySecurity-1.0.8] DEBUG: EufyClient connected true [1/31/2022, 12:24:01 AM] [EufySecurity-1.0.8] DEBUG: PollingInterval: 30 [1/31/2022, 12:24:01 AM] [EufySecurity-1.0.8] DEBUG: Refresh data from cloud and schedule next refresh. [1/31/2022, 12:24:02 AM] [EufySecurity-1.0.8] DEBUG: Found 0 stations. [1/31/2022, 12:24:02 AM] [EufySecurity-1.0.8] DEBUG: Found 0 devices. [1/31/2022, 12:24:03 AM] [EufySecurity-1.0.8] WARN: Push Closed! [1/31/2022, 12:24:03 AM] [EufySecurity-1.0.8] DEBUG: Push Connected!

After this seem to be fine ... none of my devices are shown in the Homebridge device overview. Am I missing something?

schliemann commented 2 years ago

@MartinJRS The problem with no found devices is unfortunately not resolved currently. And we don't know why this happen. Previously I thought it had something to do with the country setting. But I'm not that confident anymore.

MartinJRS commented 2 years ago

Thanks for responding. So, this is also new for you and might be related to the latest updates on Eufy's side? There is nothing wrong with my settings?
{ "platform": "EufySecurity", "username": "name@domain.com", "password": "****", "country": "DE", "ignoreStations": [ "" ], "ignoreDevices": [ "T8113N**", "T8113N**", "T8113N**" ], "enableCamera": true, "pollingIntervalMinutes": 5, "hkHome": 1, "hkAway": 0, "hkNight": 3, "hkOff": 63, "enableDetailedLogging": 0 }

schliemann commented 2 years ago

@MartinJRS Could you try and set enableDetailedLogging to 2 and share your log?

MartinJRS commented 2 years ago

Yes ... changed it. Where to find the specific Log you need?

MartinJRS commented 2 years ago

REMOVED

schliemann commented 2 years ago

@MartinJRS Could you try and change the country in the platform.js file to DE. The beta lets you specify a country, but the 1.0.8 does not currently.

https://github.com/samemory/homebridge-eufy-security/blob/7584d96b4a9a21baa260f8ec96342d5d7e83d939/src/platform.ts#L67

MartinJRS commented 2 years ago

Uhm, sure ... but I am not certain of how to do that ... is there an easy way to tell?

MartinJRS commented 2 years ago

I mean, I do not know where to find the platform.js file and if I have to install the beta ... and if so, how to. Sorry, I am pretty new to all this.

schliemann commented 2 years ago

@MartinJRS No need to apologize. It is not trivial.

What are you running homebridge on?

MartinJRS commented 2 years ago

Thanks for helping. I run it on a Raspberry Pi 400 ...

fullphat commented 2 years ago

I mean, I do not know where to find the platform.js file and if I have to install the beta ... and if so, how to. Sorry, I am pretty new to all this.

I'm new to all this as well. 😊 To install the beta, assuming you're running the HomeBridge-UI plugin, login to the HomeBridge portal on your RPi and find the Eufy Security plugin in the plugins page. Click "install previous version" and pick the beta from the list that appears (it'll be near the top).

To find the right folder, in a terminal session enter:

where HomeBridge

Navigate to the folder that appears and then do:

ls -l

look for the HomeBridge entry and navigate to where the symlink points to.

MartinJRS commented 2 years ago

Okay, thank you guys for being so helping. I have now established homebridge-eufy-security v1.1.1-beta.15 ... Still not finding devices. Here is the log:

REMOVED

MartinJRS commented 2 years ago

I hope there is no sensitive data included 😂

schliemann commented 2 years ago

@MartinJRS

You can remove the log again.

MartinJRS commented 2 years ago

Thanks

schliemann commented 2 years ago

@MartinJRS

I think it is concerning that we are seeing this amount of people having this issue. Would you help and create an issue on the eufy-security-client github? You would need to supply your log to Bropat. Maybe then we can get to the bottom of these problems.

schliemann commented 2 years ago

@MartinJRS

Before doing that however please check out bropats reply here:

https://github.com/bropat/eufy-security-client/issues/91

schliemann commented 2 years ago

@MartinJRS Might simply be a Eufy bug.

MartinJRS commented 2 years ago

Yeah, I am pretty sure all this is indeed due to Eufy's latest update and changes ... frankly starting to hate that company.

Very much appreciate your help and your good work

MartinJRS commented 2 years ago

So, is there a chance for it to be working again any time soon?

schliemann commented 2 years ago

@MartinJRS My guess would be a release pretty soon. But I don't know his plans.

schliemann commented 2 years ago

Bropat wrote it will be fixed in the next version.

MartinJRS commented 2 years ago

Alright, thanks many times ... very much appreciated.

schliemann commented 2 years ago

@MartinJRS

The work around from Bropat until next release is here:

bropat/eufy-security-ws#74 (comment)

On iOS it might be difficult to control the version. But on Android it is do-able.

schliemann commented 2 years ago

@MartinJRS I can see that @lenoxys updated the package. Please re-test.

MartinJRS commented 2 years ago

Okay, thanks. Using homebridge-eufy-security v1.1.1-beta.18 ... still not working for me.

schliemann commented 2 years ago

@MartinJRS Odd. Some of the other people with this issue reported that it got solved. Can you try and delete the cache?

MartinJRS commented 2 years ago

Morning and thanks for replying. I have now deleted the Eufy devices from cache, restarted the server, uninstalled and re-installed the plugin (homebridge-eufy-security v1.1.1-beta.18) ... but still, there are no devices.

        "platform": "EufySecurity",
        "username": "name@domain.xx",
        "password": "xxxxxx-xxxxxx-xxxxxx",
        "country": "DE",
        "ignoreStations": [
            ""
        ],
        "ignoreDevices": [
            "T8113Nxxxxxxxxx1",
            "T8113Nxxxxxxxxx2",
            "T8113Nxxxxxxxxx3"
        ],
        "enableCamera": false,
        "pollingIntervalMinutes": 30,
        "hkHome": 1,
        "hkAway": 0,
        "hkNight": 3,
        "hkOff": 63,
        "enableDetailedLogging": 0,
        "CameraMaxLivestreamDuration": 30

[07/02/2022, 08:11:36] [EufySecurity] Initializing EufySecurity platform... [07/02/2022, 08:11:36] [EufySecurity] Country set: DE [07/02/2022, 08:11:36] [EufySecurity] Finished initializing Eufy Security Platform [07/02/2022, 08:11:39] [EufySecurity] Push Closed!

What am I doing wrong?

schliemann commented 2 years ago

Which devices are you ignoring?

Get Outlook for iOShttps://aka.ms/o0ukef


From: Martin @.> Sent: Monday, February 7, 2022 8:14:27 AM To: samemory/homebridge-eufy-security @.> Cc: schliemann @.>; Comment @.> Subject: Re: [samemory/homebridge-eufy-security] [Bug]: Wrong username or password (Issue #346)

Morning and thanks for replying. I have now deleted the Eufy devices from cache, restarted the server, uninstalled and re-installed the plugin (homebridge-eufy-security v1.1.1-beta.18) ... but still, there are no devices.

    "platform": "EufySecurity",
    "username": ***@***.***",
    "password": "xxxxxx-xxxxxx-xxxxxx",
    "country": "DE",
    "ignoreStations": [
        ""
    ],
    "ignoreDevices": [
        "T8113Nxxxxxxxxx1",
        "T8113Nxxxxxxxxx2",
        "T8113Nxxxxxxxxx3"
    ],
    "enableCamera": false,
    "pollingIntervalMinutes": 30,
    "hkHome": 1,
    "hkAway": 0,
    "hkNight": 3,
    "hkOff": 63,
    "enableDetailedLogging": 0,
    "CameraMaxLivestreamDuration": 30

[07/02/2022, 08:11:36] [EufySecurity] Initializing EufySecurity platform... [07/02/2022, 08:11:36] [EufySecurity] Country set: DE [07/02/2022, 08:11:36] [EufySecurity] Finished initializing Eufy Security Platform [07/02/2022, 08:11:39] [EufySecurity] Push Closed!

What am I doing wrong?

— Reply to this email directly, view it on GitHubhttps://github.com/samemory/homebridge-eufy-security/issues/346#issuecomment-1031144121, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACSRD7ETQCZ3QZCDK3QBE5TUZ5WNHANCNFSM5NEVBCHA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you commented.Message ID: @.***>

MartinJRS commented 2 years ago

It's 3 eufyCam 2C

schliemann commented 2 years ago

@MartinJRS Which devices do you have besides the three eufy cams?

MartinJRS commented 2 years ago

There are 2 eufyCam E and several door/window sensors

schliemann commented 2 years ago

Bropat released a new version. Might make a new beta build tonight.

schliemann commented 2 years ago

https://github.com/bropat/eufy-security-client/issues/116#issuecomment-1031701260

lenoxys commented 2 years ago

please have a look on the latest beta (>=.19)

MartinJRS commented 2 years ago

Okay, thanks ... should it be working right after installing homebridge-eufy-security v1.1.1-beta.19 and restarting Homebridge?

No changes for me ☚ī¸ sorry, hope I am not doing something wrong or so ...

lenoxys commented 2 years ago

Can you clear your browser cache ? If not working could you uninstall and reinstall the plug-in with a reboot between them

MartinJRS commented 2 years ago

Have done all these steps with the result that now I cannot even login to Eufy inside the plugin.

Bildschirmfoto 2022-02-10 um 12 52 53

aididhaiqal commented 2 years ago

Hi @lenoxys, I'm not sure if this is related but the Country selector doesn't work now. Even if I select other country, it still sending US country code. Manually changing in code to my country does appear to help me login again

r33ce15 commented 2 years ago

Have done all these steps with the result that now I cannot even login to Eufy inside the plugin.

Bildschirmfoto 2022-02-10 um 12 52 53

I had same issue! today my doorbell freaked out couldn't get back into account through homebridge despite login still working online so made new account updated to latest beta and now receive this error too and can't get back in

MartinJRS commented 2 years ago

Anything new?

r33ce15 commented 2 years ago

I have reinstalled this plugin today and picked up beta 19 and I am now logged in and all working again I saw the eufy security app has been updated so errors we saw few days ago could be linked

MartinJRS commented 2 years ago

Can't confirm ... still same error here

lenoxys commented 2 years ago

Can you test the beta (.21) ? If it's not working I've implemented a reset wizard which clear everything related to this plugin. You will find it on the advanced settings.

MartinJRS commented 2 years ago

Thanks for keeping up your help. Alright, I have now installed ".21" and were able to establish the plugin. Sadly, still not finding any Eufy based devices.

Where exactly can I find that "Reset Wizard"? The only thing I find is a green button that says "Startover the Wizard Process" and a yellow button in the very bottom of "Advanced Setting" that says "Reset". "Startover the Wizard Process" still causes this error message: Bildschirmfoto 2022-02-17 um 18 18 07

"Reset" doesn't do anything.

Here are the current settings: { "platform": "EufySecurity", "username": "name@domain.de", "password": "xxxxxx-xxxxxx-xxxxxx", "enableCamera": true, "pollingIntervalMinutes": 5, "hkHome": 1, "hkAway": 0, "hkNight": 3, "hkOff": 63, "enableDetailedLogging": 0, "ignoreStations": [ "" ], "ignoreDevices": [ "T8113Nxxxxxxxxxx", "T8113Nxxxxxxxxxx", "T8113Nxxxxxxxxxx" ], "country": "DE", "CameraMaxLivestreamDuration": 30 }

Latest Protocol: [17/02/2022, 18:20:37] Loaded plugin: homebridge-eufy-security@1.1.1-beta.21 [17/02/2022, 18:20:37] Registering platform 'homebridge-eufy-security.EufySecurity' [17/02/2022, 18:20:40] [EufySecurity] Initializing EufySecurity platform... [17/02/2022, 18:20:40] [EufySecurity] Country set: DE [17/02/2022, 18:20:40] [EufySecurity] Finished initializing Eufy Security Platform [17/02/2022, 18:20:42] [EufySecurity] Push Closed! [17/02/2022, 18:20:42] [EufySecurity] Push Closed! [17/02/2022, 18:20:48] [EufySecurity] Push Closed!

lenoxys commented 2 years ago

I'm referring to this reset wizard : Reset

Be sure to validate by clicking on Reset Everything