misenhower / homebridge-wyze-connected-home

Wyze Connected Home plugin for Homebridge
MIT License
70 stars 52 forks source link

Error getting devices: Error: UserOpenTwoFactorAuth #1

Closed pjotal closed 4 years ago

pjotal commented 4 years ago

Provided all necessary information in config.json but it's not working due to failing on two factor authentication.

here is the error message captured from the logs:

5/14/2020, 9:38:59 AM > [5/14/2020, 9:38:59 AM] [Wyze] Refreshing devices...
5/14/2020, 9:38:59 AM > [5/14/2020, 9:38:59 AM] [Wyze] Performing request: app/user/login
5/14/2020, 9:38:59 AM > [5/14/2020, 9:38:59 AM] [Wyze] API response: {"ts":<long-number-here>,"code":"<4-digits-here>","msg":"UserOpenTwoFactorAuth","data":{}}
5/14/2020, 9:38:59 AM > [5/14/2020, 9:38:59 AM] [Wyze] Error getting devices: Error: UserOpenTwoFactorAuth
misenhower commented 4 years ago

2FA isn't currently supported, but I'll look into this in the future to see if I can implement it via refresh tokens. I'd suggest disabling 2FA for now if you want to use this plugin. Thanks!

pjotal commented 4 years ago

well.. good news for you. in the PR i just submitted i added support for 2FA as well :) took the chance to enhance a bit the error handling and logging here and there, nothing major.