Apollon77 / ioBroker.tuya

ioBroker adapter to connect to several small and cheap Wifi devices that care connected to the Tuya Cloud and mostly use the Smartlife App/Alexa-Skill
MIT License
88 stars 22 forks source link

Performance effect with too small sync intervals and Tuya IoT enabled #567

Open c1328 opened 8 months ago

c1328 commented 8 months ago

Describe the bug
I had trouble with interval times smaller than 120 seconds (local and cloud) and Tuya IoT enabled also. Setting the interval to 60 seconds causes massive input/output events (more than 3.500) and made the system slow and laking responsiveness. I think there were too many syncs quued.

Now interval is set to 300 and it works perfekt and stable. Question: Why not setting the interval to more than 300 seconds when IoT Cloud is enabled because its "realtime" sync anyway, correct?

If I did not noticed the recommendation keeping the interval at minimum of 120 second - sorry for that.

To Reproduce
Steps to reproduce the behavior:

  1. Set interval to 60 seconds for local and cloud connections
  2. enable Tuya IoT Platform also
  3. having >20 devices
  4. monitor input/output events

Expected behavior
Giving a warning when interval is too small when having IoT enabled

Screenshots & Logfiles
If applicable, add screenshots and logfiles to help explain your problem.

Versions: