milo526 / homebridge-tuya-web

Hoobs and Homebridge plugin for Tuya devices using Home Assistant Tuya Web Api
MIT License
219 stars 95 forks source link

This plugin slows down Homebridge. The read handler for the characteristic 'On' didn't respond at all!.... #389

Closed Tango4us closed 2 years ago

Tango4us commented 2 years ago

Describe the bug

Following messages appear in the log file: "This plugin slows down Homebridge. The read handler for the characteristic 'On' didn't respond at all!. Please check that you properly call the callback! See https://git.io/JtMGR for more info." I moved back to v1.0.2 - it does not report these messages anymore from this older revision. I also noticed the bridge response is very slow.

Steps To Reproduce

Plugin Version

Homebridge Config

{
            "platform": "TuyaWebPlatform",
            "name": "TuyaWebPlatform",
            "_bridge": {
                "username": "0E:C8:B6:BC:9B:28",
                "port": 33825
            },
            "options": {
                "username": "REDACTED",
                "password": "REDACTED",
                "countryCode": "972",
                "platform": "smart_life",
                "pollingInterval": 1800
            }

Device Config

Additional Context

milo526 commented 2 years ago

Duplicate of #388

paschalis-mpeis commented 2 years ago

BTW what's the minimum polling interval?

Digging a little bit into the code it looks like it doesn't let it go below 10 minutes (TUYA_DISCOVERY_TIMEOUT*1e3)

Can't we set it to something like 10 seconds?

milo526 commented 2 years ago

@Paschalis please create a new issue when you have an unrelated question instead of adding them to another issue.