-
Notifications
You must be signed in to change notification settings - Fork 18
Lights works perfect but Switches have random delay #25
Comments
The Tuya API Cloud not always respond, this is an issue not related to the component.
|
I put this in config file: After 15min I got this in the logger: I have 35 switches connected but they all works instant when using smartlife app. Thanks for you reply!! // Fredrik |
To have right debug log you should put this line (with right indentation):
Anyway consider that the problem is related to the Cloud API dedicated to HA, that from some months are limited in number of possible requests. Considering the number of switchs, you can consider a delay of 30s a good result, will be very hard to have better result, also because this component use cloud poll and so you will never have a real time status refresh. |
May you can try TuyaGateway, I try to use it one week and this addon work without any delay, work as localtuya, but faster. More difficult to set up, but the only component for HA that works without delay. I use it parallel with tuya_custom for testing |
Ok, I actually used that indentation, just forgot the ".tuya_custom: debug" instead of ".tuya: debug" |
Thanks for the tip, I would really like to try this! But I get stuck because my limited knowledge in coding but I found the addon now so will test that! |
@Shaman2 How do I run this? |
no, install addon for home assistant for get localkey I uses LDPlayer4, where install Packet Capture and TuyaSmart (old version 3.11). Its very simple for me without command line |
@Shaman2 Thanks for the tip! When retrieving the packages, how did you find the localkey? |
Tested to install a fresh setup on both RaspPi3b+ and Virtual machine running Linux on a Laptop.
Everything is the latest version, including tuya_custom. Get the same problem on both.
Smartlife app is instant and I have a 100Gb fiber with a netgear nighthawk router.
The Lights are working instant! but the switches are randomly delayed up to 30s.
The logfile: "Updating tuya_custom switch took longer than the scheduled update interval 0:00:15"
Any ide on what can cause this and am I the only one with this problem?
The text was updated successfully, but these errors were encountered: