SecKatie / ha-wyzeapi

Home Assistant Integration for Wyze devices.
733 stars 112 forks source link

[Issue] Wyze Integration Unable to Communicate with Bulbs #260

Closed SkoFi closed 2 years ago

SkoFi commented 2 years ago

Issue

After initially working with full functionality, the HA integration becomes unable to power on Wyze bulbs. Once in this state, Reloading the Integration within HA (at a minimum) is required to restore function. Integration continues to work properly for a period of time, then after powering bulbs off, and a period of ~18 hrs elapses, return to the non-communicative state, repeatably--unclear when actual onset within 18 hrs is.

Debug

Recommended debug log was included, and HA log only indicate the following on attempt to toggle bulbs whilst unresponsive:

Logger: homeassistant.components.light
Source: helpers/entity_platform.py:692
Integration: Light (documentation, issues)
First occurred: 6:35:31 AM (1432 occurrences)
Last logged: 6:31:04 PM

Updating wyzeapi light took longer than the scheduled update interval 0:00:30

Integration was un-installed and re-installed but it did not clear the issue. Only reloading the Integration (or restarting the host) restores function.

Configuration

HA: core-2021.9.6 OS: Home Assistant OS 6.3 OS Version: 5.10.17-v7

SecKatie commented 2 years ago

So if you have a lot of bulbs you might be hitting the rate limit. We are working on a solution to stay under the limit here soon. Btw what version are you using?

SkoFi commented 2 years ago

Ah ok, so this may be a noob issue on my part--I thought I had updated all of HA system, but realized I hadn't updated your integration via HACS (just core/OS/etc.). I had been running Wyze ver. 2021.05.21, and just recently updated to Head. Doesn't explain why suddenly started having the issue with unresponsiveness, but I'll just start by monitoring over next couple of days and see if the updates resolve my issue, and mark issue resolved if so (or get back to you if not).

Thanks for responding, Slavko

On Thu, Sep 23, 2021 at 9:56 PM Joshua Mulliken @.***> wrote:

So if you have a lot of bulbs you might be hitting the rate limit. We are working on a solution to stay under the limit here soon. Btw what version are you using?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/JoshuaMulliken/ha-wyzeapi/issues/260#issuecomment-926285501, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALYJOY3PGBTCIFV7RROMMBTUDPLGFANCNFSM5EU4KBOQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

JoeSchubert commented 2 years ago

Definitely recommend updating via HACS. Many of the changes right now require changes in the backend that is pulled from PyPi during HACS updates, but it doesn't really do this if you're manually updating the integration. It seems that HomeAssistant only pulls manifest requirements during the initial installation of an integration.

SkoFi commented 2 years ago

Thanks again for replies; looks like it was just the update after all! I'll mark issue resolved in git.

-Slavko

On Fri, Sep 24, 2021 at 8:28 PM Joe Schubert @.***> wrote:

Definitely recommend updating via HACS. Many of the changes right now require changes in the backend that is pulled from PyPi during HACS updates, but it doesn't really do this if you're manually updating the integration. It seems that HomeAssistant only pulls manifest requirements during the initial installation of an integration.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/JoshuaMulliken/ha-wyzeapi/issues/260#issuecomment-926980873, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALYJOY5D34TQGHU3COFV4PLUDUJRLANCNFSM5EU4KBOQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

SkoFi commented 2 years ago

Issue was completely resolved by updating the Wyze Integration in HACS to Head.