plugin: [Bug]: Login failed
What happened?
As a follow-up to #201 which was closed, I’m still observing generalized and systematic login issues (always fails) between the homebridge-eufy-security plugin and Eufy.
With release 2.1.3 (for which I believe included the necessary fix(es) for #201), I still can’t login … Homebridge logs say:
[12/18/2022, 6:47:15 PM] [EufySecurity-2.1.3] ERROR: Not connected can't continue!
Different login attempts with either my main Eufy account or another one I created for Homebridge purposes are both failing while those 2 accounts are working fine when used from the Eufy mobile app. I’m also seeing this in the Homebridge logs after I attempt a login:
[18/12/2022, 19:23:54] [Homebridge UI] [homebridge-eufy-security] Incoming Request: /login
[18/12/2022, 19:27:13] [Homebridge UI] [homebridge-eufy-security] Terminating child process...
[18/12/2022, 19:27:13] [Homebridge UI] [homebridge-eufy-security] Child process ended
From the plugin’s UI, when I’m trying to use my main account which has 2FA configured, I do receive the Eufy email and I do get challenged by the plugin to enter my 2FA code in the Homebridge Eufy Plug-in UI, but it fails after … For my other Eufy account that doesn’t have 2FA enabled, I obviously don’t get challenged for a 2FA code and it fails immediately with a message that says "Login was not successful!" … I do get some Captha challenges along the way, so it looks like some communication between the Homebridge plugin and Eufy is happening, but it just doesn’t seem to be able to finalize.
BTW, Eufy country for me is set to Canada (both in Eufy account and in the Homebridge plugin), maybe it could be related to that?
If any additional details are needed to troubleshoot, please let me know.
Thanks,
Device Type
Station (Supported)
Plugin Version
v2.0.x (Supported)
HomeBridge Version
v1.4.x (Supported)
NodeJS Version
v16 (Supported)
Operating System
Raspbian 10+ (Supported)
Relevant log output
[12/18/2022, 6:47:15 PM] [EufySecurity-2.1.3] ERROR: Not connected can't continue!
[18/12/2022, 19:23:54] [Homebridge UI] [homebridge-eufy-security] Incoming Request: /login
[18/12/2022, 19:27:13] [Homebridge UI] [homebridge-eufy-security] Terminating child process...
[18/12/2022, 19:27:13] [Homebridge UI] [homebridge-eufy-security] Child process ended
config
{
"platform": "EufySecurity",
"username": "****redacted****",
"password": "****redacted****",
"pollingIntervalMinutes": 30,
"hkHome": 1,
"hkAway": 0,
"hkNight": 3,
"hkOff": 63,
"enableDetailedLogging": true,
"ignoreStations": [
"****redacted****",
"****redacted****",
"****redacted****"
],
"ignoreDevices": [
"****redacted****",
"****redacted****",
"****redacted****",
"****redacted****"
],
"country": "CA",
"CameraMaxLivestreamDuration": 30,
"cleanCache": true,
"_bridge": {
"username": "****redacted****",
"port": 53985
},
"cameras": [
{
"serialNumber": "****redacted****",
"rtsp": false,
"talkback": false
},
{
"serialNumber": "****redacted****",
"rtsp": false,
"talkback": false
},
{
"serialNumber": "****redacted****",
"rtsp": false,
"talkback": false
}
]
}
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 122 (16 by maintainers)
Hi folks,
so I’ve just published
2.2.0-beta.15which in theory has a fix for the login. Unfortunately this version installs not correctly on my server due to some errors. I don’t know if I’ll get around to debugging this because of the holidays (kudos to eufy who had the balls to make such changes to their login the week before christmas).So to any fellow programmers who like to help out - maybe one of you has experience with this:
eufy-security-clientto the beta branch to include the necessary changes directlyHere is what I found:
first there was some obscure error, that a ‘dev’ setting could not set by npm - I got around this by updating npm to the latest
9.2.0- don’t know what that was aboutnow when installing npm complains that the
package.jsonof the submodule is not found - even though it is there if you open the directory afterwardsThis prevents the package from installing correctly. You can use it nevertheless if you run
npm installin the plugin install path - but for now I don’t know why it won’t work at first install. At least after that the login seems to work again.Unfortunately the
beta.15is therefore broken for now. Maybe someone has a hint. I’ll try to get back to it as soon as I can.still open here.
seems like this will absolutely require a code fix, for logons, getting the list of devices, and ultimately the encrypted URLs, maybe even thumbnails although I doubt that last one as the web portal from Eufy themselves has no thumbnails for previews, they’re just grey.
the Homey eufy security app for that platform has been getting hot fix updates this afternoon, so it can log in, get the list of devices, and integrate as far as the Homey platform goes, but as that hardware has nowhere near enough horsepower to do an ffmpeg, using as a HKSV cam is simply out of the question. Using that kit, I have no cams or doorbells integrated, but my motion sensors for automated lighting inside the house are up and running using that and an hour of automation setting…
these is some hope I guess!
Not a great day, and especially not for the folks who put together these plugins - it looks like a lot of work, as eufy is changing a lot on the fly…
After a bit more testing it seems as if eufy has increased its captcha frequency quite a bit. Maybe it’s just this why some of you experience the login failure with captchas right now.
I have already an idea what can be done about that, but I’m afraid that I will not be able to implement that over the holidays. If someone finds a pattern in the captcha requests, please do share your findings
@outrageouskiwi Thx for the offer. If you really want there is a ‘Support’ section on the main page of the repo, or a ‘Donation’-Link on the Plugins-Page in Homebridge-UI. But please do know that you don’t have to. If you want to give something nevertheless, it will be highly appreciated. Thx!
Hi again.
2.2.0-beta.17is out and should at least install correctly now.As for the ones not being able to login again: Is this always accompanied with a log warning, that a captcha was requested? Then it could also be that your account was flagged by eufy for too much logins. Maybe try with a new guest account that you share your devices with?
Anything to do with this? https://community.security.eufy.com/t/to-our-eufy-security-customers-and-partners/3568215 “Today, users can still log in to our Web portal to view live streams of their cameras. However, users can no longer view live streams (or share active links to these live streams with others) outside of eufy’s secure Web portal. Anyone wishing to view these links must first log in to the Web portal.”
I hope I had fixed it.
Now it is working… I hope it persists after a restart.
Really grateful for the updates. It’s working better than before. Is there a tip jar? That’s a lot of bug-fixing on a holiday! On Dec 23, 2022 at 10:49 AM -0800, noppie @.***>, wrote:
Hey together
I’m running Homebridge with the Sinology spk on my disk station. The Install of the Beta16 worked after installing it two times. After this update I was able to log in to my guest account again and to see the devices.
But the Plugin still dropped the following error: [12/23/2022, 8:38:35 AM] [EufySecurity-2.2.0-beta.16] ERROR: Not connected can’t continue!
So for me the issue still is not solved.
removed and re-added beta 15 because I wasn’t able to add my doorbell for some reason. I now get the same error about cannot find module “got”