tuya / tuya-home-assistant

Home Assistant integration for controlling Powered by Tuya (PBT) devices using Tuya Open API, maintained by the Home Assistant Community and Tuya Developer Team.
MIT License
868 stars 206 forks source link

Slow response between Homeassitent #731

Open HansHM opened 2 years ago

HansHM commented 2 years ago

Describe the bug Checking buttons in HA do not respond, respond slow, switching on off, lights do not turn on or off

Expected behavior When switch on or off the light respond accordenly

Screenshots

Home Assistant Version

System Health

version core-2021.11.5
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.9.7
os_name Linux
os_version 5.10.17-v8
arch aarch64
timezone Etc/GMT
Home Assistant Community Store GitHub API | ok -- | -- Github API Calls Remaining | 5000 Installed Version | 1.18.0 Stage | running Available Repositories | 912 Installed Repositories | 12
Home Assistant Cloud logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | ok
Home Assistant Supervisor host_os | Home Assistant OS 6.6 -- | -- update_channel | stable supervisor_version | supervisor-2021.12.1 docker_version | 20.10.8 disk_total | 58.0 GB disk_used | 7.0 GB healthy | true supported | true board | rpi4-64 supervisor_api | ok version_api | ok installed_addons | Duck DNS (1.14.0), File editor (5.3.3), Let's Encrypt (4.12.0), Mosquitto broker (6.0.1), Samba share (9.5.1), Terminal & SSH (9.2.1), motionEye (0.16.0)
Lovelace dashboards | 5 -- | -- resources | 2 views | 21 mode | storage

Same problem as before again. https://github.com/tuya/tuya-home-assistant/issues/704 https://github.com/tuya/tuya-home-assistant/issues/706

stalakerob commented 2 years ago

Also in core-2021.12.0

FranSooS commented 2 years ago

Also in core-2021.12.1

DIMMonchik commented 2 years ago

It works for me at best 5 times. And the temperature sensors may not be updated several times

DIMMonchik commented 2 years ago

This may of course be a coincidence, but as soon as I logged into the tuya api server through the browser, all the data was updated

nethead25 commented 2 years ago

Same. .12.1. Have found that state gets out of sync and toggle doesn’t work. Manually flipping on-off-on in developer tools sometimes gets it back on track.

HansHM commented 2 years ago

Yesterday evenig when i access the tuya app, is saw that the lights not where updated (turned on by voice). I don't no what they are doing at Tuya, but it is goning to be a big mess.

andreasc1 commented 2 years ago

same behavor for me as well. Sometimes toggle switches in app do not obey properly. the tuya app works every time. sometimes i turn on in HA and then when i turn off it doesn't obey. If i reload the integration then it does. I am thinking of adding an automation to reload automation after every action..

HansHM commented 2 years ago

same behavor for me as well. Sometimes toggle switches in app do not obey properly. the tuya app works every time. sometimes i turn on in HA and then when i turn off it doesn't obey. If i reload the integration then it does. I am thinking of adding an automation to reload automation after every action..

Can you tell me how to do that?

RichardvanGestel commented 2 years ago

alias: Reparatie Tuya reload alle lampen description: '' trigger:

Op za 25 dec. 2021 08:25 schreef HansHM @.***>:

same behavor for me as well. Sometimes toggle switches in app do not obey properly. the tuya app works every time. sometimes i turn on in HA and then when i turn off it doesn't obey. If i reload the integration then it does. I am thinking of adding an automation to reload automation after every action..

Can you tell me how to do that?

— Reply to this email directly, view it on GitHub https://github.com/tuya/tuya-home-assistant/issues/731#issuecomment-1000984755, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAN3QJVYHTZGWBVQGMA6ZR3USVWWPANCNFSM5J3DQKYQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

patzobil commented 11 months ago

alias: Reparatie Tuya reload alle lampen description: '' trigger: - platform: time_pattern minutes: /15 condition: [] action: - service: homeassistant.reload_config_entry target: entity_id: - light.lsc_gu10_cct_1 - light.lsc_a60_rgb_cct_1 - light.candle_gold mode: single ------------------------------------- This works for me... Op za 25 dec. 2021 08:25 schreef HansHM @.***>:

That's a decent workaround, thanks! Another thing to do is, run those reloads also when the devices are triggered perhaps! Interestingly enough, once you reload only one of the Tuya devices, the whole integration is then more "alive/active"...