-
-
Notifications
You must be signed in to change notification settings - Fork 30.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tuya integration not updating entity states. #110162
Comments
Hey there @tuya, @zlinoliver, @frenck, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) tuya documentation |
I am having a similar issue with pir sensors, once they detect they remain detected in HA and won't clear. A restart of HA or the integration resolves the issue temporarily, but it goes back to the same issue. Started occuring from 2024.2.0 |
Same issue here with door openers. Both garage and fence are not reporting correct states, alarm panel works ok, Zigbee smart gateway and all devices connected to it work. Reloading integration updates states but next change in state isn't updated automatically. |
Exactly, same problem |
Even I am having the exact problem here. Using Home Assistant in docker environment. So far I have tried downgrading to 2024.1.6 - but unable to make the Tuya integration work the old way. Then had to remove it and again move up to 2024.2.1 and use the new method to authenticate - which was successful, however the issue persists. I am also unable to connect to TP-Link Omada software controller post the upgrade to 2024.2.1. For the Tuya integration, I see errors in the log file - which I am attaching, in case it helps fix whatever the issue is. home-assistant_2024-02-11T16-10-53.423Z.log @frenck, please see if this helps. |
In the history graph of sensor.pc191ha_voltage it seems to update the state exactly once per hour or occasionally once per two hours. Then occasionally there may be an update at some random time between the hourly update. The attached file is from the history window download. |
@frenck @shihuimiao @zlinoliver I have submitted a PR tuya/tuya-device-sharing-sdk#9 that fixes 1 issue and by way of a workaround around resolved the the 2nd issues effecting my Tuya PIR's and door contact sensors. The issues are similar to those described in this issue and a number of other issues. There were no changes required to HA the only changes where in |
Hi, I'm not yet switching to 2024.2.1 due to the problems encountered with Tuya. Has the problem of the PIRs and battery status of the TRW valves been resolved? |
Hi, |
I hope they find a solution... otherwise the tuya pir sensors are unusable |
same here with PIR sensors, the " clear" state is not updating, just stuck in the "motion" one |
Looks like the tuya sensors will no longer work in HA. |
Any update on this?, it's been a while now normally someone resolves these kind of issues quite quickly. I think I have seen a similar issue about pir sensor not updating, I think it's related |
Even an acknowledgment from Tuya that this is an issue would be showing some respect to the thousands of users who are wondering when and where to turn to next. |
I guess it's not Tuya issue because in SmartLife app my garage door sensor shows door are closed but in HA it remains open. To bypass this error I'm using LocalTuya integration and with it I'm reading sensor state (because localtuya shows correct state) and every minute automation sets correct sensors state In Tuya integration. |
My workaround for PIRs stucked in the motion state. HA Automation:
python_scripts/set_state.py #Set the state or other attributes for the specified entity (or create the attribute)
|
I've implemented a workaround waiting for a fix for this issue.
Where : NB : It works fine for power sockets but LocalTuya isn't supporting sensors, so it won't work for the one of you suffering the issues sith PIR sensors. |
Is there any update on this, seems like it's affects loads of people, with no proper alternative other that reloading the integration in some way |
I rolled back to before this bug was introduced. No more updates for me until this is fixed. |
Same here… still not reliable. Some of my Tuya plugs sometimes send values, others don’t. |
Same here. Most of my Tuya automations stopped working because of this! It's really annoying. |
Hi. I have also the Problems Power and Voltage does not update constantly. |
Does anyone know why exactly this is happening? |
Same issue. I have one tuya triple switch to control 2 lights and a fan. Status shows whatever the switch is at whenever home assistant boots up. Then it keeps that state regardless of actual state. Making this unusable. |
Still getting this and now keep getting Tuya authentications issues too, no one seems to be investigating, I'm sure many people are being affected by both issues with the Tuya Integration |
Still not working :( Still broken (or broken again…) It could be fixed but the decision seems to be to leave it broken … home-assistant/core#121731 |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
I have just retested this on latest version of HA, I am still getting the same issue. I have a PIR, an the Tuya App shows clear of motion but HA integration never clears the motion Core : 2021.10.4 |
I can confirm that the reported figures still do not update on a regular basis. For example last update was almost 20 minutes ago, even though the grid voltage is changing constantly. HA was updated to latest versions today. |
All that I use are the lights and switches from Tuya. My issue at least is now resolved. The following commit done to HASS release 2024.10.2 fixed it for me. |
The problem
I have an Arlec Grid Connect Smart plug in socket that uses the Tuya integration on a Hom Assistant Green. The sock can be turned on and off and reports sensible values of current, voltage and power when it is turned on, but the values do not update. The last update was listed at 44 minutes ago as I write this.
What version of Home Assistant Core has the issue?
2024.2.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
https://www.home-assistant.io/integrations/tuya/
Diagnostics information
tuya-5ce0396de1b63de9aa86bfaf4bb48a16-PC191HA-baaaeb4dc156c8613788090b8b267ef9 (1).json
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
If I turn the outlet off and then on again in the home assistant dashboard, the entity value update once, but never again.
The text was updated successfully, but these errors were encountered: