romedtino / simple-wyze-vac

Home Assistant Custom Component for Wyze Vacuum
48 stars 8 forks source link

Cannot get to work with TOTP #37

Closed iainsmacleod closed 2 years ago

iainsmacleod commented 2 years ago

I removed Wyze 2FA and got the app to work fine, however I prefer to have it enabled. When reenabling, and copying the base32 code, I was unable to get the Simple Vacuum integration to work.

2022-06-22 20:09:44 ERROR (MainThread) [custom_components.simple_wyze_vac.config_flow] Failed to login Wyze servers.

romedtino commented 2 years ago

Perhaps the Wyze servers were down when you tried this? Have you tried it again?

I just tried it on my account with a fresh 2FA setup and it worked. Make sure you follow the order of sequences here - https://github.com/romedtino/simple-wyze-vac#totp

Specifically, the part where you copy the Base32 code, set it up on your Authenticator account, then setup Simple Wyze Vac with that same Base32 code NOT the TOTP 6 digits from the Authenticator you use.

iainsmacleod commented 2 years ago

Tried it several times. I'm reluctant to reset the code again, as I have a lot of automation and scenes around wyze cameras, and it will lose it when I redo the process.

On Wed, Jul 13, 2022, 14:47 Jerome Tolentino @.***> wrote:

Perhaps the Wyze servers were down when you tried this? Have you tried it again?

I just tried it on my account with a fresh 2FA setup and it worked. Make sure you follow the order of sequences here - https://github.com/romedtino/simple-wyze-vac#totp

Specifically, the part where you copy the Base32 code, set it up on your Authenticator account, then setup Simple Wyze Vac with that same Base32 code NOT the TOTP 6 digits from the Authenticator you use.

— Reply to this email directly, view it on GitHub https://github.com/romedtino/simple-wyze-vac/issues/37#issuecomment-1183561222, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABAAPIWNAYEREXYX4FQ3N7TVT4FNDANCNFSM5ZSOLJVA . You are receiving this because you authored the thread.Message ID: @.***>

iainsmacleod commented 2 years ago

I just reset my 2FA to try this again. Copied and pasted the recovery code. Used my username and password to log in, and it just errors.

romedtino commented 2 years ago

It's not the recovery code you copy and paste, it's the base32 code you get that you're supposed to provide in the Authenticator app.

Here's a screenshot of that value you will need to copy when setting up Simple Wyze Vac.

image

and the excerpt from the TOTP steps I outlined

Read the instructions from Wyze BUT make sure to copy and KEEP the value in step 3. This is your Base32 SECRET used to generate TOTP.

This is also the same key you would put in the Authenticator app. Depending on which you setup first, you can induce an error in Home Assistant but as long as you setup both the Authenticator and Home Assistant, it should still login. e.g. If you grab the Base32 code first and put it in Simple Wyze Vac with your username and password, it will show an error in the log (this is because you haven't setup your Authenticator yet.) But once you finish setting up your Authenticator and finish the Wyze 2FA setup, the login on Simple Wyze Vac should work.

iainsmacleod commented 2 years ago

I apologize. I did not follow that at all. I will try again. Many thanks!

On Sat, Jul 16, 2022, 02:41 Jerome Tolentino @.***> wrote:

It's not the recovery code you copy and paste, it's the base32 code you get that you're supposed to put in the Authenticator.

Here's a screenshot of that value you will need to copy when setting up Simple Wyze Vac

[image: image] https://user-images.githubusercontent.com/18567128/179343369-18c38381-0151-45e7-84ec-494f7c8ab6f1.png

and the excerpt from the TOTP steps I outlined

Read the instructions from Wyze BUT make sure to copy and KEEP the value in step 3. This is your Base32 SECRET used to generate TOTP.

This is also the same key you would put in the Authenticator app. Depending on which you setup first, you can induce an error in Home Assistant but as long as you setup both the Authenticator and Home Assistant, it should still login. e.g. If you grab the Base32 code first and put it in Simple Wyze Vac with your username and password, it will show an error in the log (this is because you haven't setup your Authenticator yet.) But once you finish setting up your Authenticator and finish the Wyze 2FA setup, the login on Simple Wyze Vac should work.

— Reply to this email directly, view it on GitHub https://github.com/romedtino/simple-wyze-vac/issues/37#issuecomment-1186101842, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABAAPIXWPD2UKN56272XHNTVUJKQDANCNFSM5ZSOLJVA . You are receiving this because you authored the thread.Message ID: @.***>

iainsmacleod commented 2 years ago

It worked! Thank you for your patience.

On Sat, Jul 16, 2022 at 8:04 AM Iain MacLeod @.***> wrote:

I apologize. I did not follow that at all. I will try again. Many thanks!

On Sat, Jul 16, 2022, 02:41 Jerome Tolentino @.***> wrote:

It's not the recovery code you copy and paste, it's the base32 code you get that you're supposed to put in the Authenticator.

Here's a screenshot of that value you will need to copy when setting up Simple Wyze Vac

[image: image] https://user-images.githubusercontent.com/18567128/179343369-18c38381-0151-45e7-84ec-494f7c8ab6f1.png

and the excerpt from the TOTP steps I outlined

Read the instructions from Wyze BUT make sure to copy and KEEP the value in step 3. This is your Base32 SECRET used to generate TOTP.

This is also the same key you would put in the Authenticator app. Depending on which you setup first, you can induce an error in Home Assistant but as long as you setup both the Authenticator and Home Assistant, it should still login. e.g. If you grab the Base32 code first and put it in Simple Wyze Vac with your username and password, it will show an error in the log (this is because you haven't setup your Authenticator yet.) But once you finish setting up your Authenticator and finish the Wyze 2FA setup, the login on Simple Wyze Vac should work.

— Reply to this email directly, view it on GitHub https://github.com/romedtino/simple-wyze-vac/issues/37#issuecomment-1186101842, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABAAPIXWPD2UKN56272XHNTVUJKQDANCNFSM5ZSOLJVA . You are receiving this because you authored the thread.Message ID: @.***>

romedtino commented 2 years ago

Sounds good, glad you got it working!