Tuya integration not updating status after 2025.4.1 update
The problem
Hey folks,
First time reporting a bug here. And I'm a huge admirer of the whole community and everything you don.
I Just updated my local HA server to the latest version 2025.4.1.
Unfortunately, my Tuya integration is now out of order. I have a couple of window sensors that were working just fine before. Now the Tuya integration does not update the status of the sensors at all. I need to reload the integration to get the latest status of the sensors, but then again if the status is changed HA never updates it until the next Tuya reload.
On the other hand, the sensors status is updated quite well on the native Tuya app.
Thanks, Dimitar
What version of Home Assistant Core has the issue?
2025.4.1
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Tuya
Link to integration documentation on our website
No response
Diagnostics information
No response
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response
Hey there @tuya, @zlinoliver, mind taking a look at this issue as it has been labeled with an integration (tuya) you are listed as a code owner for? Thanks!
Code owner commands
Code owners of tuya can trigger bot actions by commenting:
-
@home-assistant closeCloses the issue. -
@home-assistant rename Awesome new titleRenames the issue. -
@home-assistant reopenReopen the issue. -
@home-assistant unassign tuyaRemoves the current integration label and assignees on the issue, add the integration domain after the command. -
@home-assistant add-label needs-more-informationAdd a label (needs-more-information, problem in dependency, problem in custom component) to the issue. -
@home-assistant remove-label needs-more-informationRemove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.
(message by CodeOwnersMention)
tuya documentation tuya source (message by IssueLinks)
The same problem here since I updated to the new core version this morning.
Made some tests:
Disabled most of the devices: Temp./Humid. Sensors, Smartplugs, .. Left only two 50A Circuit Breakers enabled Tuya Integration Hub was going to state: active Enabled the first Temp./Humid. Sensors, then the next one and so on Tuya Integration Hub stays in state: active Enabled the first Smartplug , then the next one and so on Tuya Integration Hub goes to state: Initializing for about 5 minutes or more After this time the Tuya Integration Hub was going to state: active
All 10 devices with 33 entities are available.
I also have problems with Tuya after upgrading to HA Core 2025.4.1. Specifically I can't get power readings or toggle on/off on switches, when I set to On, they go back to Off in the UI, while the hardware is set On.
Log output:
2025-04-05 19:58:46.082 WARNING (ImportExecutor_0) [homeassistant.backports.enum] StrEnum was used from tuya, this is a deprecated alias which will be removed in HA Core 2025.5. Use enum.StrEnum instead, please report it to the author of the 'tuya' custom integration
2025-04-05 19:58:46.369 ERROR (Thread-2) [root] Uncaught thread exception
Traceback (most recent call last):
File "/usr/local/lib/python3.13/threading.py", line 1041, in _bootstrap_inner
self.run()
~~~~~~~~^^
File "/usr/local/lib/python3.13/site-packages/tuya_iot/openmq.py", line 158, in run
self.__run_mqtt()
~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.13/site-packages/tuya_iot/openmq.py", line 172, in __run_mqtt
mqttc = self._start(mq_config)
File "/usr/local/lib/python3.13/site-packages/tuya_iot/openmq.py", line 179, in _start
mqttc = mqtt.Client(mq_config.client_id)
File "/usr/local/lib/python3.13/site-packages/paho/mqtt/client.py", line 772, in __init__
raise ValueError(
"Unsupported callback API version: version 2.0 added a callback_api_version, see docs/migrations.rst for details"
)
Moin,
after reading other posts here, I have a solution for my HA Tuya integration.
Disabling IP6 protocol stack in the HA network settings causes the Tuya integration to run again normally. The duration of reloading the Hub takes only one or two seconds; with IP6 activated five minutes and longer.
It seems it is a network problem with the Tuya Cloud, not a pure Tuya integration problem.
Does Matter work when I put ipv6 off? I thought it does not work with v4.
The Problem with the integration is not new. I’ve seen it some weeks ago. And made a rollback to Core 2025.2.2, Supervisor 2025.03.4, Operating System 14.2.
My problem was a routing issue caused by wire guard client. It was not configured well so the integration used the vpn gateway wich could not connect to tuya api.
You can check the routing in the terminal with
traceroute openapi.tuyaeu.com
The first result step is the used gateway of your home assistant
I haven't changed anything on my system, including my network components. The error specifically occurred with the HA update. This is also being discussed in some other forums. Some people have created a workaround by reloading the integration every 15 minutes. (It works, but it's not exactly nice.)
I don't mean to say that the HA guys made a mistake here. But something is suddenly different. And this was almost two months ago. As described above, my workaround is to wait with the update until a solution is found. Unfortunately, I have some Tuya devices that are only gradually being replaced.
Greetz from Germany NRW
I tried the proposal to downgrade to Core 2025.2.2, Supervisor 2025.03.4, Operating System 14.2. but no success here. My TUYA binary sensors are just stuck and change their state only when I reload the Tuya hub.
Haven't tried @principat proposal yet, but not sure if it applies to me tough as I have no vpn configured on my ha server.
same problem on all tuya devices. It starts updating for about a minute whenever I open the smart life app. Tuya Hub seems to have changed a lot.
If I don't touch anything, at least the switches work but once they get changed from the app or any other source than HASS, they don't get recognised. I can turn them on then but not off anymore as they jump back to the off state.
This is quite bad as I am controlling my entire PV and battery system with tuya.
same problem on all tuya devices. It starts updating for about a minute whenever I open the smart life app. Tuya Hub seems to have changed a lot.
I have exactly the same issue. Tuya derived entities are frozen until I open the same Tuya device on my Tuya mobile app then the values update. If then I exit the app they seem to freeze or update randomly and often 20 minutes between updates. I too have lots of devices albeit none of them have critical functions, I do hope they (Tuya) fix it soon...
I have the same problem as the author. The sensors are updated only when the integration is restarted.
Same here. Imho it is not HA problem
Same here. Imho it is not HA problem
I actually think it might be.
I pulled the plugs on ha and my router because I worked on something else and once I restarted everything, it worked flawlessly over the entire night.
Once I made a change, I think manually setting a switch from the smart life app, everything falls apart.
Rebooting my ha does not solve it, only when the router and the tuya rail devices do reboot as well.
There seems to be a tie in with 2025.4.1 and/or 2025.4.2 from previous posts and my experience. Also, I noticed erratic pings/slow response from the Tuya API portal openapi.tuyaeu.com
Interesting if you use ChatGPT with the following... "My Tuya devices are slow to update in Home Assistant integration and there seems to be a problem with Tuya API calls"
Enabled debug log and got this:
Uncaught thread exception
Traceback (most recent call last):
File "/usr/local/lib/python3.13/threading.py", line 1041, in _bootstrap_inner
self.run()
~~~~~~~~^^
File "/usr/local/lib/python3.13/site-packages/tuya_sharing/mq.py", line 118, in run
self.__run_mqtt()
~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.13/site-packages/tuya_sharing/mq.py", line 136, in __run_mqtt
mqttc = self._start(mq_config)
File "/usr/src/homeassistant/homeassistant/components/tuya/__init__.py", line 112, in _start
mqttc.connect(url.hostname, url.port)
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/paho/mqtt/client.py", line 1435, in connect
return self.reconnect()
~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.13/site-packages/paho/mqtt/client.py", line 1598, in reconnect
self._sock = self._create_socket()
~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.13/site-packages/paho/mqtt/client.py", line 4612, in _create_socket
sock = self._ssl_wrap_socket(sock)
File "/usr/local/lib/python3.13/site-packages/paho/mqtt/client.py", line 4671, in _ssl_wrap_socket
ssl_sock.do_handshake()
~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.13/ssl.py", line 1372, in do_handshake
self._sslobj.do_handshake()
~~~~~~~~~~~~~~~~~~~~~~~~~^^
TimeoutError: _ssl.c:1011: The handshake operation timed out
my mqtt broker works fine with all other integrations.
hope it helps
https://github.com/fhempy/fhempy/issues/485
Disabling IP6 did not help me.
It's been an issue for a long time... https://github.com/home-assistant/core/issues/110162
hi, So what's the end result? on version 2025.4.2 tuya still doesn't work. It is updated exactly once at the start of the HA or the integration reboot. Disabling IPv6 does not help.
Same issue here, started with the first 2025 upgrade. Reverted to 2024 but then it stopped working around 5-6 weeks ago. Updated everything to the then current version, all worked fine for 4 weeks and last week it stopped working again. Restarting HA will make Tuya work for an hour or two and then it gets stuck again. I can turn things on and off, but updates from Tuya (eg temperature) don't come through until next restart.
2025.4.3 tuya still not works. WTF is going on?
The situation is similar. Home Assistant Core 2025.4.3 Supervisor 2025.04.0 User Interface 20250411.0
I have also been seeing this problem for several weeks. I haven't changed anything special in the HA settings, but many sensors have stopped working. At first, only temperature sensors connected via BT through a hub were glitching. Now, almost all devices do not receive the current state until the integration is rebooted, but the switch control works fine. The HA version is the latest available.
I still have the issue with Tuya readings not updating and it's still broken after 2025.4.3. The main issue for me is with readings from various devices such as power, temperature and humidity. Automations and manual outputs to Tuya switches such as lights and sockets all seem to work ok. It's as if HA isn't polling the API data as it should, all the readings that are not updating in HA do update correctly in the Tuya App, so the finger again points at HA. How does this issue get escalated?
Reloading the integration does not work for me - it reads the data but gets stuck again immediately. It happens with all device that should return status. I am now restarting HA every 3 hours, then it works but of course this is not very desirable...
Overview of temperature with crash, reload and restart:
Overview of temperature with automatic restart every 3 hours:
Reloading the integration does not work for me - it reads the data but gets stuck again immediately. It happens with all device that should return status. I am now restarting HA every 3 hours, then it works but of course this is not very desirable...
Overview of temperature with crash, reload and restart:
Overview of temperature with automatic restart every 3 hours:
I tried restarting but sometimes this actually breaks even more by adding up a different issue. My power readings in tuya get almost doubled. It doesn't happen every time but on several restarts my entire energy monitor for the day is just impossible.
I tried restarting but sometimes this actually breaks even more by adding up a different issue. My power readings in tuya get almost doubled. It doesn't happen every time but on several restarts my entire energy monitor for the day is just impossible.
It's really annoying, after I reverted to 2024 version it worked for a few days, but then there were some many other HACS integrations getting outdated. After an update a few weeks ago everything seemed to work until 2 weeks ago. I am considering using a different approach, but that means replacing hardware and setup.
I tried restarting but sometimes this actually breaks even more by adding up a different issue. My power readings in tuya get almost doubled. It doesn't happen every time but on several restarts my entire energy monitor for the day is just impossible.
It's really annoying, after I reverted to 2024 version it worked for a few days, but then there were some many other HACS integrations getting outdated. After an update a few weeks ago everything seemed to work until 2 weeks ago. I am considering using a different approach, but that means replacing hardware and setup.
I actually kind of did this. Ordered some esp32 boards and started using them for the switch while the tuya is now only used for the consumption reading with xtend, which does not have a problem as the time of input doesn't matter here. Only the power would be nice to have frequently.
День добрый всем. У меня такая же проблема. Сегодня обновил Core на 2025.4.4 - не помогло. Тогда я решил поиграть с настройкой сети. Выключил автонастройку локального адреса и все заработало. Огорчился что работало всего 5 минут
День добрый всем. У меня такая же проблема. Сегодня обновил Core на 2025.4.4 - не помогло. Тогда я решил поиграть с настройкой сети. Выключил автонастройку локального адреса и все заработало. Огорчился что работало всего 5 минут Unable to read this, but after running it through translate: does this mean that it worked for 5 minutes and is not working now?