Tuya camera not responding

hi, i try to get my tuya camera working (Battery Camera WIFICBO20WT (yjuae5hncav6ncv9)),
but everything is greyed and not responding.
i have a error in tuya addon:

Logger: homeassistant.config_entries
Source: components/tuya/__init__.py:79
First occurred: 10:36:47 (1 occurrences)
Last logged: 10:36:47

Error setting up entry [email protected] for tuya
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 335, 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.9/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.9/site-packages/tuya_iot/openapi.py", line 222, in connect
    self.token_info = TuyaTokenInfo(response)
  File "/usr/local/lib/python3.9/site-packages/tuya_iot/openapi.py", line 41, in __init__
    token_response.get("t", 0)
TypeError: unsupported operand type(s) for +: 'int' and 'str'

i’m running 2022.4.7 in a docker.
i hope somebody can help me :wink:

I have the same issue with my tuya integration. I do not have tuya camera, but a lot of other tuya devices, they are all unavailable since an hour.

I also have the same issue with all my Tuya devices. It has only happened in the last couple of hours.
It is telling me the devices are not supported.

happened to me as well, seems like the token API was changed and token expiration became a string instead of expected int.

'expire_time': '7200'

dont want to metoo here… but that int string indication should be fixable by one self? THink as i’m running HASOSS i cant modify the py file that contains this piece of code right? (i did for custom components lots of times, but not for internal integrations)

same here…

Home Assistant 2022.9.7
Supervisor 2022.09.1
Operating System 9.0
Frontend 20220907.2 - latest

Same here since an hour ago

Home Assistant core 2022.9.6

fix discussion failure to initiate tuya integration on home assistant · Issue #64 · tuya/tuya-iot-python-sdk · GitHub
fix suggestion TypeError: unsupported operand type(s) for +: 'int' and 'str' · Issue #851 · tuya/tuya-home-assistant · GitHub

1 Like

Same here since some hours ago.

I have got my Tuya devices running again. Here is what I did.

I first updated the Tuya android app (there is a recent update). After updating the Tuya app I restarted my home assistant and it started working again. I hope this helps.

It is correct. Tuya v4.4.1 came out yesterday, but I am using Smart Life android app, and not Tuya.
There is not new version of it. The last upgrade was in August. I have tried the HA restart anyway (again), and now it solved the problem. Tuya integration is working again.

1 Like