Tuya login error: Retrying setup: 'code': 2406, 'msg': 'skill id invalid'

Anyone getting this error today with Tuya?

Retrying setup: {'code': 2406, 'msg': 'skill id invalid',....

Rebooted HA and keep getting this now.

1 Like

The Tuya integartion stopped working also for me one hour ago. With the following error:

Logger: homeassistant.config_entries
Source: components/tuya/__init__.py:79
First occurred: 09:59:34 (4 occurrences)
Last logged: 10:41:56

Error setting up entry ..... for tuya
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 357, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/usr/src/homeassistant/homeassistant/components/tuya/__init__.py", line 79, in async_setup_entry
    response = await hass.async_add_executor_job(
  File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.10/site-packages/tuya_iot/openapi.py", line 222, in connect
    self.token_info = TuyaTokenInfo(response)
  File "/usr/local/lib/python3.10/site-packages/tuya_iot/openapi.py", line 41, in __init__
    token_response.get("t", 0)
TypeError: unsupported operand type(s) for +: 'int' and 'str'

HA restart does not help.

Same here exactly, something must have broke over at Tuya HQ LOL

App works fine, they killed our access :frowning:
Does the api key they provide us expire eventually?

The project at iot.tuya expires every 12 months, but I assume yeah maybe the one for HA must also expire if that’s the right terminology

I think loads of people are affected so I doubt all our keys expired?

1 Like

Ditto … Multiple Restarts + Hard Reboot … Still No Go


Logger: homeassistant.config_entries
Source: components/tuya/__init__.py:79
First occurred: 5:24:35 AM (1 occurrences)
Last logged: 5:24:35 AM

Error setting up entry -------- for tuya
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 357, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/usr/src/homeassistant/homeassistant/components/tuya/__init__.py", line 79, in async_setup_entry
    response = await hass.async_add_executor_job(
  File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.10/site-packages/tuya_iot/openapi.py", line 222, in connect
    self.token_info = TuyaTokenInfo(response)
  File "/usr/local/lib/python3.10/site-packages/tuya_iot/openapi.py", line 41, in __init__
    token_response.get("t", 0)
TypeError: unsupported operand type(s) for +: 'int' and 'str'

Same here…

Same issue for me, I added LocalTuya with HACS which also use the same API tokens to get the initial access. That works for me…

Same here too. Tried to delete it, restart HA and then try again too;

image

Same here, guess there is a issue somewhere on their end

somehow the token response changed from INT to STR
File “/usr/local/lib/python3.10/site-packages/tuya_iot/openapi.py”, line 41, in init
token_response.get(“t”, 0)
TypeError: unsupported operand type(s) for +: ‘int’ and ‘str’

there are more tickets on tuya now, so i hope this change gets reverted on their end.

Same here…

Restart HA. Now it should work.

Try now. It seems to have been resolved.

yep all up again

Same here yeah

Yes, it’s back!

Just started happening for me about an hour ago. Reboot HA didn’t resolve the issue. I can still control the lights through the Smart Life app. Does anyone have any suggestions?

1 Like

Same here…