pySwitchbot icon indicating copy to clipboard operation
pySwitchbot copied to clipboard

get_encryption_key is not working: Authentication failed: Incorrect username or password, status code: 2020

Open carferrer opened this issue 1 year ago • 5 comments

I can`t get the locks encryption key. I get the error "Authentication failed: Incorrect username or password, status code: 2020". I have double check user, password, change password and nit work. II can login to the website https://eu.switch-bot.com. My country region is Spain.

carferrer avatar May 27 '24 20:05 carferrer

I have create a new account on switchbot website and works fine. It looks like have been and account update and with my old one (7 devices) does'nt work and with the new one works (1 device).

carferrer avatar May 30 '24 10:05 carferrer

I had to type it manually, everywhere else it was possible with copypaste. Maybe this helps someone.

wunderbaum avatar Jul 05 '24 14:07 wunderbaum

The users of this website and the users of the SwitchBot app do not share the same account. If you have only logged in through the website, you are likely using an official website account. Can you enter and login with your username and password on the app?

huyuwei1996 avatar Jul 18 '24 04:07 huyuwei1996

I'm struggling with this. I even created a fresh account with a different email (registered within the app) and I get the 2020 error. My region is switzerland. Are there different Apis for different regions?

Which credentials do I need? from the website or from the app?

nerumo avatar Aug 12 '24 19:08 nerumo

You need the credential used in the app.

carferrer avatar Aug 12 '24 19:08 carferrer