Replies: 2 comments
-
The more sensors added per camera, the more cameras used - the worse it gets. Caching highly required. I'll PR when you are ready. Either as part of #5, or after merge of #5 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Now added to PR #5 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey,
I have working code on-top of PR #5 that caches the response to reduce number of requests to Wyze, leading to long response times when having many cameras and sensors.
The source comes from this page and extends the lru_cache decorator:
For this to be effective, the the request will not filter on mac on the request. Instead, a larger list will be fetched and cached.
get_latest_event()
->get_event_list()
-> NEW and CACHEDget_complete_event_list()
get_events()
->get_event_list()
-> NEW and CACHEDget_complete_event_list()
Since it extends PR #5, I hesitate to push updates before merged. This new code addresses parts of the issue 168 in ha-wyzeapi.
Beta Was this translation helpful? Give feedback.
All reactions