klanchman / homebridge-logi-circle-controls

Homebridge plugin for extended Logitech Circle camera controls
MIT License
21 stars 1 forks source link

Plugin makes many duplicate API requests #28

Closed klanchman closed 3 years ago

klanchman commented 3 years ago

The plugin makes as many API requests as it has enabled switches per camera. In other words, if you have 1 camera and all 4 switches enabled, when the Home app refreshes switch statuses, the plugin may make 4 authentication requests, and will make 4 API requests to get accessory state. We can do better 😉

When I do this, I'll probably rework the API client significantly, and may switch from axios to got.