home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
72.16k stars 30.2k forks source link

Tuya Integration requires frequent Reload #62318

Closed FrankJaco closed 2 years ago

FrankJaco commented 2 years ago

The problem

All of my Tuya devices (bulbs, dimmers, PIR will not show proper status in Lovelace. If I reload the v2 Tuya integration it will work normally for a period of time (~1 hour I think), then it will stop working again. A reload solves it every time. I strongly believe this issue starting occuring when I did the .12 update. I had not reported at first as I was at the same time battling issues with my Wyze integration, which turned out to be due to the widespread AWS outages. (I had hoped that somehow the AWS issue was causing the Tuya issues, but that is not the case.)

A personal note to Frenck.... You do good work sir! PLease do keep it up!

Thx, fj

What version of Home Assistant Core has the issue?

2021.12.12

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

New Tuya

Link to integration documentation on our website

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

probot-home-assistant[bot] commented 2 years ago

Hey there @tuya, @zlinoliver, @metisu, @frenck, 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! (message by CodeOwnersMention)


tuya documentation tuya source (message by IssueLinks)

alonbendavid commented 2 years ago

I have the same issue for more than a week now. I’ve created an automation to reload Tuya every few minutes and a reset button in the dashboard as a work around until a fix will be provided Thanks

fourtrax01 commented 2 years ago

this has been driving me crazy I thought it was because I was using tuya V2 so I switched to the new tuya integration and it is still doing it. The toggle is never correct and the lights become uncontrollable I have to just cut power to the bulbs to turn them off at times. I am using a shelly switch inputs to control the bulbs. What is weird is that the slider works to turn the lights on and off and dim but the toggle always shows as off.

dr-thirsty commented 2 years ago

I am having the same issues. Not sure how to fix it, seems to work for a short time and then not anymore?

goatie999 commented 2 years ago

Similar comments from my own setup. Control of my Tuya connected devices from HA (v 2021.11.5) is not possible without selecting the integration and using the 'reload' option. Whist HA is unable to control the device, I'm still able to directly interface with the device via the Tuya Smart app.

My temporary fix for now is a daily automation to perform a reload of integration:

alias: Integration Reload - Tuya
description: ''
trigger:
  - platform: time
    at: '05:00'
condition: []
action:
  - service: homeassistant.reload_config_entry
    data:
      entry_id: <Tuya Entry_ID from the config/.storage/core.config_entries file>
mode: single
adeathe85 commented 2 years ago

I'm having the same issue now. It worked fine with 2021.11. Now that I have upgraded to 2021.12, I'm having to reload the integration to get the lights to work properly.

teknogeek commented 2 years ago

Same issue here on 2021.12.3

ResteNarquois commented 2 years ago

As there are now several duplicate reports on this, I've tried to pull all the findings together in one place: #62408. Please move further discussion there!