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.
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
togot
.