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

Status on, off #206

Closed fabiohblage closed 3 years ago

fabiohblage commented 3 years ago

Hello, @milo526

I'm doing bench tests with SMARTLIFE,

I realized that when I turn the light on manually by the switch,

status on or off is not received on homebrige.

milo526 commented 3 years ago

Please make sure you have a polling interval defined in your config file.

It will then update after max 5 minutes (or longer if you define a longer polling interval)

I know this is not ideal but it is the best I can do given the API that this plugin is using.

fabiohblage commented 3 years ago

What smaller range can I use?

@milo526

milo526 commented 3 years ago

Any range you want, however the plugin will overwrite it and set it to 605 seconds.

Any value below 605 will be set to 605, any value above will be respected. Any faster and the plugin will actually work worse.

fabiohblage commented 3 years ago

Is it possible to use your local (lan) plugin and get a faster response?

milo526 commented 3 years ago

I don't have a local lan plugin? But by all means switch to the homebridge-tuya-lan plugin if that suits your needs better!