Re-Authenticate Tuya Devices in Home Assistant

Authentication of Tuya devices within Home Assistant needs to be re-established from time to time. At times though, the experience can be frustrating and blocking. Knowing how to find the right way to solve the problems results in a quick resolution without frustration. Here are some of the top issues that might arise.

Home Assistant Tuya Re-Authentication

Re-Authenticate in Home Assistant with QR code

Overtime, Home Assistant will need to be re-authenticated to Tuya / SmartLife App for the system to work. The process of re-authentication is pretty straightforward – just scan a QR code in the SmartLife app.

Home Assistant Tuya authentication expired notification

However, by time you get into Home Assistant to do this, the QR code may have expired thus causing the process to fail. So how does one proceed? The QR code just needs to be regenerated. See the steps below.

Tuya SmartLife app indicating QR code has expired

Home Assistant Tuya re-authentication QR code

Here are the steps to get the QR code to scan and re-authenticate with the Tuya SmartLife app.

  1. Go to: Settings -> Devices & Services -> Tuya
  2. Click the 3 dots on the Hub that needs to be re-authenticated and choose Reload
  3. Click the Reconfigure button
  4. On your phone, open the SmartLife app
  5. Tap the + icon in the top right
  6. Tap Scan
  7. Scan the QR Code in Home Assistant with your phone

At this point things should be re-authenticated and you’re all set to go.

Home Assistant Tuya device successfully authenticated

Resources

Resetting API Keys

Tuya only grants API for so long – a few months at a time. You’ll need to renew this for devices to continue to work. Navigating the Tuya platform can be a bit confusing at times, so here are the steps to take. An email should be sent with some guidance. But if not, this should get you on track.

  1. Login at: https://www.tuya.com/vas/user/service
  2. Under the My Services tab, click on the View Used Progress link for the IoT Core entry
  3. Click the Renewal button for entry where Service Item Name = IoT Core