Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unavailable #83

Open
georgejung opened this issue Jun 19, 2022 · 5 comments
Open

Unavailable #83

georgejung opened this issue Jun 19, 2022 · 5 comments

Comments

@georgejung
Copy link

Version of the custom_component

0.22

Configuration

I don't have anything in my config for govee...

Describe the bug

The device is unavailable and has been for about a week. I can control it via the Govee App.
I tried updating my API. As soon as I got a new API it did seem to start giving errors. When I updated the api, in the logs it seems to be working, but the API itself was working fine before i requested a new key, from what I can tell. Its just remains unavailable.

I deleted the integration, rebooted, re-downloaded from HACS, rebooted and added and my new device was immediately unavailable.

About 3 days ago i updated the polling setting (first to 300, then to 150) and am now using 200. It hasn't been available for at least a week.

Debug log

2022-06-18 21:48:40 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration govee which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-06-18 21:50:16 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] govee_api_laggat v0.2.2
2022-06-18 21:50:16 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] get_devices
2022-06-18 21:50:16 DEBUG (MainThread) [govee_api_laggat.api] get_devices
2022-06-18 21:50:17 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] govee_api_laggat v0.2.2
2022-06-18 21:50:17 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] get_devices
2022-06-18 21:50:17 DEBUG (MainThread) [govee_api_laggat.api] get_devices
2022-06-18 21:50:17 WARNING (MainThread) [custom_components.govee] API is back online.
2022-06-18 21:50:17 INFO (MainThread) [custom_components.govee.learning_storage] Loaded learning information from /config/govee_learning.yaml.
2022-06-18 21:50:17 DEBUG (MainThread) [custom_components.govee.light] Setting up Govee lights
2022-06-18 21:50:17 DEBUG (MainThread) [custom_components.govee.light] _async_update
2022-06-18 21:50:17 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] get_states
2022-06-18 21:50:17 DEBUG (MainThread) [govee_api_laggat.api] state returned from API: {'data': {'device': '5C:80:A4:C1:38:CC:F3:72', 'model': 'H6110', 'properties': [{'online': 'false'}, {'powerState': 'off'}, {'brightness': 9}, {'color': {'r': 255, 'b': 0, 'g': 0}}]}, 'message': 'Success', 'code': 200}, resulting state object: GoveeDevice(device='5C:80:A4:C1:38:CC:F3:72', model='H6110', device_name='Kian', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=False, power_state=False, brightness=22, color=(255, 0, 0), color_temp=0, timestamp=1655603417.44828, source=<GoveeSource.API: 'api'>, error=None, lock_set_until=0, lock_get_until=0, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False)
2022-06-18 21:50:17 DEBUG (MainThread) [custom_components.govee.light] Finished fetching govee data in 0.046 seconds (success: True)
2022-06-18 21:53:37 DEBUG (MainThread) [custom_components.govee.light] _async_update
2022-06-18 21:53:37 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] get_states
2022-06-18 21:53:37 DEBUG (MainThread) [govee_api_laggat.api] state returned from API: {'data': {'device': '5C:80:A4:C1:38:CC:F3:72', 'model': 'H6110', 'properties': [{'online': 'false'}, {'powerState': 'off'}, {'brightness': 9}, {'color': {'r': 255, 'b': 0, 'g': 0}}]}, 'message': 'Success', 'code': 200}, resulting state object: GoveeDevice(device='5C:80:A4:C1:38:CC:F3:72', model='H6110', device_name='Kian', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=False, power_state=False, brightness=22, color=(255, 0, 0), color_temp=0, timestamp=1655603617.259576, source=<GoveeSource.API: 'api'>, error=None, lock_set_until=0, lock_get_until=0, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False)
2022-06-18 21:53:37 DEBUG (MainThread) [custom_components.govee.light] Finished fetching govee data in 0.259 seconds (success: True)```

Thanks for your help

@georgejung
Copy link
Author

Oh wow, I was getting thrown off by being able to connect to it via the app, and the api seemingly working. I forgot it has bluetooth connectivity as well, even though I saw in the logs it said online: false.

I just needed to reconnect the wifi in the govee home app. Not sure why it dropped, its working now.

@Dragontamer333
Copy link

I am unable to get it to connect right now. I have gotten new API and it doesn't work and neither does the old one. I also have been dealing with issues of the lights constantly disconnecting from the internet. I have to reopen the app and connect to each device over bluetooth to get them working again.

@LanceMcCarthy
Copy link

I had the same issue, but was able to fix it.

For about a week or so, my Govee devices have been consistently unavailable in HA (even though they're all available in the Govee app. Looking at the logs, it just says "Cannot communicate with API" setup failed).

I contacted Govee and asked them to regenerate a new API key for me (took about 12 hours for them to reply). It is now working again. If I had to take a wild guess, maybe my API key was too old (I've been using it for years)

@LanceMcCarthy
Copy link

FYI - It seems there is a secondary problem when you start adding more devices... API rate limits.

Error:

Could not connect to Govee API: API: API-Error 429: {"message":"rate limited! the limit is 10000 requests every 24 hours. X-RateLimit-Reset in Http Response Header shows the reset time."}

I have changed my polling interval to 20 in the hopes it gives me some more breathing room

@agustusbotti
Copy link

Hello everyone! My Govee the issue of the connection with HA was solved.
Since July 7 I have no more connection problems and seeing the time it was solved, the only thing I did was restart the Router due to another problem I was having.
I hope this helps you solve your issue.
Captura de pantalla 2022-07-11 105013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants