jfarmer08 / homebridge-wyze-smart-home

Wyze Smart Home plugin for Homebridge.
MIT License
103 stars 17 forks source link

Reloading accessories every 4 minutes #77

Closed vascott1 closed 1 year ago

vascott1 commented 1 year ago

I was just browsing around and saw homebridge restart which seemed odd. right after that restart I saw this plugin reload all of my devices as expected. I then scrolled up through the log and sas that it was reloading all of my accessories from cache every 4 minutes. Is this normal behavior? Everything is working well but the log is kinda crazy and has so much noise. I have 24 Wyze devices. Just wanted to see if there are any thoughts on this.

Thanks

jfarmer08 commented 1 year ago

What is your refresh interval

vascott1 commented 1 year ago

The default of 60000. Which doesn’t match with the 4 minutes but does the refresh put so much traffic on the log? Does it really need to be every minute? Is that looking for new devices or states as well. Lots of questions. Sorry.

On Jan 30, 2023 at 8:37 AM, <jfarmer08 @.***)> wrote:

What is your refresh interval

— Reply to this email directly, view it on GitHub (https://github.com/jfarmer08/homebridge-wyze-smart-home/issues/77#issuecomment-1408646144), or unsubscribe (https://github.com/notifications/unsubscribe-auth/ALLAX27YX63VR7MWZMJXHFDWU67Z3ANCNFSM6AAAAAAUHAWKQA). You are receiving this because you authored the thread.Message ID: @.***>

jfarmer08 commented 1 year ago

The refresh is looking for new devices along with the state of any known device.

jfarmer08 commented 1 year ago

So the plugin is check states every 60 seconds.

jzuhone commented 1 year ago

Is there any way to disable this option in the logs? Would a PR for such a thing be welcome?

jfarmer08 commented 1 year ago

PRs are welcomed, but what would you like to see?