Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question]: Where to enter the 2fa code? #320

Open
Bandoffe opened this issue Apr 7, 2024 · 5 comments
Open

[Question]: Where to enter the 2fa code? #320

Bandoffe opened this issue Apr 7, 2024 · 5 comments
Labels
question Further information is requested

Comments

@Bandoffe
Copy link

Bandoffe commented Apr 7, 2024

Ask your question

I use my Eufy app with 2fa. Registration in the add-on is not possible because I can't find a way to enter my 2fa code. Am I missing something, or is this not possible?

@Bandoffe Bandoffe added the question Further information is requested label Apr 7, 2024
@tsmanz
Copy link

tsmanz commented May 7, 2024

I'm facing the same issue. I've searched for a solution and it appears some people have been able to authenticate with 2fa in place, but I can't find any step by step instructions on how to do it. Some people have suggested creating a separate eufy account without 2fa disabled to use with the app, but I'd like to avoid that. I get the email with 2fa code, but there doesn't appear to be anywhere to enter it.

@PhilippEngler
Copy link

As far as I remember, there must be a API-function called verify code or similar.

@dweeden
Copy link

dweeden commented May 22, 2024

I ran into this same problem (plus captcha) while running the server manually with this command: tsx src/bin/server.ts

Note that I'm using tsx as ts-node from the "try it out" instructions seems to struggle with ts files (filed bug #332)

It strangely seemed to hang, but providing a -v param to the server invocation showed it was actually needing captcha, which it sends back via a base64 image you can copy into https://www.base64decode.net/base64-image-decoder for viewing.

Once you know that, you can set it from another terminal window (server has to keeping running in the first) as follows:

tsx src/bin/client.ts --command device.set_captcha -a abcd

Filed feature request #333 to make this more easily apparent.

Once you're (potentially) past the captcha hurdle, you should get a verify code via email from eufy that can be set as follows:

tsx src/bin/client.ts --command device.set_verify_code -a 123456

@rkbest13
Copy link

  • Where do you enter these commands. I have my home assistant vm running the addon and wonder if these steps are to be performed on the vm itself with hassos?

@dweeden
Copy link

dweeden commented May 24, 2024

I was running those commands on a linux machine after downloading this repo. Within HA you should download and follow the instructions for eufy_security. The HA OS should spawn dialogs for you to enter info for these fields. If it's not, changing the password within your eufy mobile app should trigger it to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants