Giter Club home page Giter Club logo

hacs-govee's Introduction

'Govee' integration

The Govee integration allows you to control and monitor lights and switches using the Govee API.

Installation

  • The installation is done inside HACS (Home Assistant Community Store). If you don't have HACS, you must install it before adding this integration. Installation instructions here.
  • Once HACS is installed, navigate to the 'Integrations' tab in HACS and search for the 'Govee' integration there. Click "Download this repository in HACS". On the next screen, select "Download". Once fully downloaded, restart HomeAssistant.
  • In the sidebar, click 'Configuration', then 'Devices & Services'. Click the + icon to add "Govee" to your Home Assistant installation. An API key is required, you need to obtain it in the 'Govee Home' app on your mobile device. This can be done from the Account Page (Far right icon at the bottom) > Settings (top right icon) > About Us > Apply for API Key. The key will be sent to your account email.

Sponsor

A lot of effort is going into that integration. So if you can afford it and want to support us:

Buy Me A Coffee

Thank you!

Is it stable?

We think so. It is used often, and the support thread is active.

usage statistics per version

Usage Data is taken from Home Assistant analytics, and plotted over time by us. You need to enable analytics if you want to show here.

Is there an issue right now?

This graph uses the same library to do simple checks. If you see round dots on the right of the graph (= today), probably there is an issue.

Govee API running?

Pulling or assuming state

Some devices do not support pulling state. In this case we assume the state on your last input. For others, we assume the state just after controlling the light, but will otherwise request it from the cloud API.

DISABLING state updates for specific attributes

You shouldn't use this feature in normal operation, but if something is broke e.g. on Govee API you could help yourself and others on the forum with a little tweak.

Not all attribute updates can be disabled, but most can. Fiddling here could also lead to other misbehavours, but it could help with some issues.

Let's talk about an example:

What if power_state isn't correctly returned from API?

We can have state from two sources: 'API' and 'HISTORY'. History for example means, when we turn on a light we already guess the state will be on, so we set a history state of on before we get data from the API. In the default configuration you could also see this, as it shows two buttons until the final state from API arrives.

two-button-state

So let's say we have an issue, that the ON/OFF state from API is wrong, we always get OFF. (This happended, and this is why I developed that feature). If we disable the power state we get from API we could work around this, and thats exactly what we do:

  1. 'API' or 'History': state from which source do we want to disable? In our example the API state is wrong, as we could see in logs, so we choose 'API'
  2. Look up the attribute you want to disable in GoveeDevice data class. Don't worry, you don't need to understand any of the code here. Here is that data class (click). In our Example we will find 'power_state'
  3. Next, in Home Assistant we open Configuration - Integrations and click on the options on the Govee integration. Here is an example how this config option could look:

DISABLE state updates option

  1. With the information from 1. and 2. we could write a string disabling power_state from API. This will do the trick for our case:
API:power_state

IF you want to disable a state from both sources, do that separately. You may have as many disables as you like.

API:online;HISTORY:online

If you fix an issue like that, consider helping other users on the forum thread (click).

ALWAYS REMEMBER: this should always be a temporarly workaround, if you use it in daily business you should probably request a feature or bug fix :)

To remind you disabling it asap, this wil log a warning on every update.

What is config/govee_learning.yaml

Usually you don't have to do anything here - just in case something feels wrong read on:

40:83:FF:FF:FF:FF:FF:FF:
  set_brightness_max: 100
  get_brightness_max: 100
  before_set_brightness_turn_on: false
  config_offline_is_off: false

Different Govee devices use different settings. These will be learned by the used library, or can be configured by you.

  • set_brightness_max: is autolearned, defines the range to set the brightness to 0-100 or 0-254.
  • get_brightness_max: is autolearned, defines the range how to interpet brightness state (also 0-100 or 0-254).
  • before_set_brightness_turn_on: Configurable by you, default false. When true, if the device is off and you set the brightness > 0 the device is turned on first, then after a second the brightness is set. Some device don't turn on with the set brightness command.
  • config_offline_is_off: Configurable by you, default false. This is useful if your device is e.g. powered by a TV's USB port, where when the TV is off, the LED is also off. Usually we stay in the state we know, this changes this to OFF state when the device disconnects.

Support

Support thread is here: https://community.home-assistant.io/t/govee-led-strips-integration/228516 There you'll also find links to code repositories and their issue trackers.

For bug reports, include the debug log, which can be enabled in configuration YAML + restart:

logger:
  default: warning
  logs:
    homeassistant.components.govee: debug
    custom_components.govee: debug
    govee_api_laggat: debug

Then in Settings - Logs click on “full logs” button and add them to the bug report after removing personal data.

Caveats

You can set a poll interval, but don't set it too low as the API has a limit of 60 requests per minute, and each device needs one request per state pull and control action. If you have more than one lamp use a higher interval. Govee wants to implement a single request for all devices in 2021.

Once the integration is active, you will see all your registered devices, and may control on/off, brightness, color temperature and color.

hacs-govee's People

Contributors

actions-user avatar alray31 avatar brentwilkins avatar chriscn avatar curtisjk avatar laggat avatar lash-l avatar leandroissa avatar michaelmior avatar neekster avatar wrt54g avatar wwelles avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hacs-govee's Issues

integration no longer works with HA 2022.4.0

Version, from the manifest file says 0.2.2 I pulled the latest version from git, and the bug report says to check const.py for the version number, but all that this file contains is this :

"""Constants for the Govee LED strips integration."""

DOMAIN = "govee"

CONF_DISABLE_ATTRIBUTE_UPDATES = "disable_attribute_updates"
CONF_OFFLINE_IS_OFF = "offline_is_off"
CONF_USE_ASSUMED_STATE = "use_assumed_state"

COLOR_TEMP_KELVIN_MIN = 2000
COLOR_TEMP_KELVIN_MAX = 9000

Nothing in the logs

The integration says it failed to start, deleted it and tried to re-add which produced this error dialogue:

image

Support for Govee API v1.4

Is your feature request related to a problem? Please describe.
I tried to add the Govee Neon Rope Lights (model: H61A0) in HA but the device is not automatically found by the integration. In the Govee API Reference it is mentioned that support for this device has been added in API version 1.4. Besides, I have another device that is supposed to work with API version 1.3 which I am able to integrate into HA. Thus it seems like v1.3 devices are supported but v1.4 devices aren't yet or there is simply an issue with model H61A0. I'd highly appreciate if you could have a look into this. As I own the device I offer support in testing.

Read allowed color temperature values from API

Is your feature request related to a problem? Please describe.
Color temperature range is set with fixed values inside the library.

Describe the solution you'd like
According to 1.3 version of the API docs this range is given for each device. This could just be used to...

  • Tell Home Assistant, what the min/max values are
  • validate input.

Describe alternatives you've considered

Additional context
https://govee-public.s3.amazonaws.com/developer-docs/GoveeAPIReference.pdf

, "properties": { "colorTem": { "range": { "min": 2000, "max": 9000 } } }

Unable to find Govee on Integrations

Version of the custom_component

Configuration

Add your logs here.

Describe the bug

Hi,
First of all, thank you for this integration.
I am having an issue installing Govee in Home Assistant. I have installed the integration through Hacs as recommended. I restart Home assistant and proceed to go to Configuration > Integrations to add it, but there is no Govee entry available when I search for it. I have tried this process twice and I've tried with a restart after adding it in Hacs and without restarting. There simply is not entry for govee in the integrations menu. Hacs does show it as installed though. The Home Assistant logs show nothing related to Govee or Hacs on startup.
I am runnning Home Assistant Core 2021.9.6, Home Assistant OS 6.4 and latest stable Govee version available in Hacs.
Thank you in advance for your help.

Debug log


Add your logs here.

Integration not appearing

Hello,
I installed the latest version from HACS (0.2.1) and I don't see any HA integration named govee in HA. I tried to restart the OS for many times but with the same result. I'm using hassio, version core-2021.11.1 on a rPI 4. I don't have any logs to provide since doesn't seems to throw any error at the installation of the HACS plugin.

Devices removed from Govee App are not removed from HA

I had three Govee devices in the Govee Home Android app. I removed two from the app, but they still show up in HA, even after reloading the Govee integration and also restarting HA completely.

HA: 2022.3.8
HACS-Govee: 0.2.2 (was an issue in earlier version already)

Unknown error when entering API key

I have looked through other issues. I saw that if you didn't have any devices, this error popped up, but I have added a device and can control it with my phone.

Version of the custom_component

Using current beta version (0.1.6-beta.1)

Configuration

Haven't configured, can't get through API key entry

Add your logs here.

Logger: custom_components.govee.config_flow
Source: custom_components/govee/config_flow.py:28
Integration: Govee LED strips (documentation, issues)
First occurred: 12:17:16 AM (3 occurrences)
Last logged: 12:19:52 AM

Unexpected exception: generator didn't stop after athrow()
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/govee_api_laggat/govee_api_laggat.py", line 169, in _api_request_internal
yield response
File "/usr/local/lib/python3.8/site-packages/govee_api_laggat/govee_api_laggat.py", line 152, in _api_get
yield response
File "/usr/local/lib/python3.8/site-packages/govee_api_laggat/govee_api_laggat.py", line 356, in get_devices
for item in result["data"]["devices"]:
KeyError: 'devices'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/config/custom_components/govee/config_flow.py", line 48, in async_step_user
user_input = await validate_api_key(self.hass, user_input)
File "/config/custom_components/govee/config_flow.py", line 28, in validate_api_key
_, error = await hub.get_devices()
File "/usr/local/lib/python3.8/site-packages/govee_api_laggat/govee_api_laggat.py", line 410, in get_devices
err = f"API-Error {response.status}: {result}"
File "/usr/local/lib/python3.8/contextlib.py", line 189, in aexit
await self.gen.athrow(typ, value, traceback)
File "/usr/local/lib/python3.8/site-packages/govee_api_laggat/govee_api_laggat.py", line 152, in _api_get
yield response
File "/usr/local/lib/python3.8/contextlib.py", line 190, in aexit
raise RuntimeError("generator didn't stop after athrow()")
RuntimeError: generator didn't stop after athrow()

Unable to enter the API key. Tried uninstalling a reinstalling two times. Rebooted server 3 times. Installed through HACS.

Warning during startup, "device_state_attributes"

2022-02-07 14:17:04 WARNING (MainThread) [custom_components.govee] API is back online.
2022-02-07 14:17:04 WARNING (MainThread) [homeassistant.helpers.entity] Entity light.kitchen_cabinet_2 (<class 'custom_components.govee.light.GoveeLightEntity'>) implements device_state_attributes. Please report it to the custom component author.

It asked that it be reported, so here you go. :)

Govee API update

I received the following email from Govee and am wondering if this change impacts the current integration Govee integration in Home Assistant and whether a change in code is required.

Dear User,Thank you for choosing Govee and for your constant support! For 2022, we have some important updates for our Govee API to inform you about.1. “Govee API” has been officially renamed to the more standard “Govee Developer API”.2. We have updated the Terms of Service for the Govee Developer API to better protect the legitimate rights and interests of both parties. Terms of Service documentation can be accessed here.3. Due to the limited resources of the API server, the flow of some high-frequency API calls will be limited in order to make the API server more stable and serve more users.If your current usage scenario does not call the API frequently, your applications will not be affected.If your current usage scenario calls the API frequently, your application might be affected and may not function properly. Therefore, you will need to modify your applications to call the API less frequently. Specific rules related to this are listed in the latest API reference document.The limit on API call frequency will be implemented started May 5, 2022. We hope you can complete any needed modification of your API applications before this date so your applications will continue to run normally.If you have any question, please contact us via [email protected] Regards,Govee Team
--


Dear User,

Thank you for choosing Govee and for your constant support!

For 2022, we have some important updates for our Govee API to inform you about.

1. “Govee API” has been officially renamed to the more standard “Govee Developer API”.


2. We have updated the Terms of Service for the Govee Developer API to better protect the legitimate rights and interests of both parties. Terms of Service documentation can be accessed [here.](https://click.mlsend.com/link/c/YT0xOTE4ODc5NTY5MzE4Nzc5NTIzJmM9ajVkNSZlPTAmYj05NTE0Mjk0NDAmZD1nNGkzejZ1.K1rxWT1JaLepWnRhAS5EZaFEDjpJjzrOg1G7kuxb4jc)

3. Due to the limited resources of the API server, the flow of some high-frequency API calls will be limited in order to make the API server more stable and serve more users.

If your current usage scenario does not call the API frequently, your applications will not be affected.
If your current usage scenario calls the API frequently, your application might be affected and may not function properly. Therefore, you will need to modify your applications to call the API less frequently. Specific rules related to this are listed in the latest [API reference document](https://click.mlsend.com/link/c/YT0xOTE4ODc5NTY5MzE4Nzc5NTIzJmM9ajVkNSZlPTAmYj05NTE0Mjk0NTAmZD1zOXU1YjV0.Ae_DgWqEOXCYlCcWNm9dMvdowRAipnVW__jr38jh2DE).
The limit on API call frequency will be implemented started May 5, 2022. We hope you can complete any needed modification of your API applications before this date so your applications will continue to run normally.
If you have any question, please contact us via [[email protected].](mailto:[email protected].)[](https://click.mlsend.com/link/c/YT0xOTE4ODc5NTY5MzE4Nzc5NTIzJmM9ajVkNSZlPTAmYj05NTE0Mjk0NjEmZD13NWE3bjNv.pyqdVGkaDb_xDojHKAQGJ2StpKqowYe5nSe4ErSQegw)



Best Regards,

Govee Team

Missing govee_learning.yaml

I keep getting the below error in my log.
Setup through HACS with no issues and everything works fine.
I have a H6104 but will be replacing it with a H6199 (probably today).

I do not have the govee_learning.yaml in config folder, it's also not in the custom_compoents folder either.

Logger: custom_components.govee.learning_storage
Source: custom_components/govee/learning_storage.py:40
Integration: Govee LED strips (documentation, issues)
First occurred: 9:07:02 (1 occurrences)
Last logged: 9:07:02

There is no /config/govee_learning.yaml file containing learned information about your devices. This is normal for first start of Govee integration.

Can not add repo

I am getting the following error any help?

21-01-05 21:52:15 ERROR (MainThread) [supervisor.store] https://github.com/LaggAt/hacs-govee is not a valid add-on repository
21-01-05 21:52:15 ERROR (MainThread) [supervisor.utils.json] Can't read json from /data/addons/git/217cf69b/repository.json: [Errno 2] No such file or directory: '/data/addons/git/217cf69b/repository.json'

Can't configure after reinstallation

Version of the custom_component

v0.2.1

Configuration

don't have one

Describe the bug

image

Basically I've had to uninstall the integration from HACS, and then reinstallation after reboot went fine, but when trying to add the integration into HA the above comes up (it says that the integration doesn't have a way to configure it via GUI)

Debug log

2022-03-22 23:01:12 ERROR (MainThread) [homeassistant.config_entries] Error occurred loading configuration flow for integration govee: cannot import name 'Govee' from 'govee_api_laggat' (/usr/local/lib/python3.9/site-packages/govee_api_laggat/__init__.py)

HA: v2022.3.6
If more info is needed then please say what is needed and I'll try to provide that.

Color gradient and flashing modes

Is there any plan to add a color mode for gradient or flashing type modes? I find myself using the Govee app to apply those modes. But, then something gets messed up and I have to reset Home Assistant. I'd rather just not use the Govee app at all.

Keep getting this error logged

Logger: custom_components.govee.light
Source: custom_components/govee/light.py:114
Integration: Govee (documentation, issues)
First occurred: 10:47:52 AM (4 occurrences)
Last logged: 10:50:52 AM

Unexpected error fetching govee data: generator didn't stop after athrow()
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/govee_api_laggat/api.py", line 118, in _api_request_internal
yield response
File "/usr/local/lib/python3.9/site-packages/govee_api_laggat/api.py", line 101, in _api_get
yield response
File "/usr/local/lib/python3.9/site-packages/govee_api_laggat/api.py", line 591, in _get_device_state
prop["color"]["r"],
KeyError: 'r'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 187, in _async_refresh
self.data = await self._async_update_data()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 147, in _async_update_data
return await self.update_method()
File "/config/custom_components/govee/light.py", line 114, in _async_update
device_states = await hub.get_states()
File "/usr/local/lib/python3.9/site-packages/govee_api_laggat/govee_api_laggat.py", line 444, in get_states
_, err = await self._api._get_device_state(device)
File "/usr/local/lib/python3.9/site-packages/govee_api_laggat/api.py", line 650, in _get_device_state
err = f"API-Error {response.status}: {errText}"
File "/usr/local/lib/python3.9/contextlib.py", line 193, in aexit
await self.gen.athrow(typ, value, traceback)
File "/usr/local/lib/python3.9/site-packages/govee_api_laggat/api.py", line 101, in _api_get
yield response
File "/usr/local/lib/python3.9/contextlib.py", line 194, in aexit
raise RuntimeError("generator didn't stop after athrow()")
RuntimeError: generator didn't stop after athrow()

Support for Govee LED strip "DIY" scenes and other modes?

Is your feature request related to a problem? Please describe.
I'd like to apply Govee DIY scenes I've either saved or created or initiate various modes via Home Assistant -- is there any possibility this could be added to the integration? Does the API give you access to scenes and modes? Or just single, full-strip color adjustments?

Describe the solution you'd like
Trigger a GOVEE DIY or other mode via HomeAssistant.

Describe alternatives you've considered
N/A

Additional context
N/A

Not working with 2022.3.3

Version of the custom_component

Latest

Configuration

Using configuration UI

Describe the bug

Govee integration was not working and showing an error in the integrations page. Removed integration, but now it won't even add.

Debug log

Error setting up entry govee for govee
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 335, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/config/custom_components/govee/__init__.py", line 67, in async_setup_entry
    await hub.rate_limit_delay()
AttributeError: 'Govee' object has no attribute 'rate_limit_delay'

Error during configuration - generator didn't stop after athrow

Version of the custom_component

I can't tell as I wasn't able to set it up through integrations. I got as far as adding it via HACS but when I got to Configuration > Add > Govee and then input the api key, I got an "Unknown error".

Configuration

None. Set up via Integrations per instructions.
Add your logs here.

Describe the bug

A clear and concise description of what the bug is.
I get an "Unknown Error" when I attempt to add my API key in the configuration. I'm using Docker on ubuntu 18.04 with HA .118.5.

Debug log


Add your logs here.
Logger: custom_components.govee.config_flow
Source: custom_components/govee/config_flow.py:25
Integration: Govee LED strips (documentation, issues)
First occurred: 8:59:21 PM (1 occurrences)
Last logged: 8:59:21 PM

Unexpected exception: generator didn't stop after athrow()
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/govee_api_laggat/govee_api_laggat.py", line 168, in _api_request_internal
    yield response
  File "/usr/local/lib/python3.8/site-packages/govee_api_laggat/govee_api_laggat.py", line 151, in _api_get
    yield response
  File "/usr/local/lib/python3.8/site-packages/govee_api_laggat/govee_api_laggat.py", line 355, in get_devices
    for item in result["data"]["devices"]:
KeyError: 'devices'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/config/custom_components/govee/config_flow.py", line 45, in async_step_user
    info = await validate_input(self.hass, user_input)
  File "/config/custom_components/govee/config_flow.py", line 25, in validate_input
    _, error = await hub.get_devices()
  File "/usr/local/lib/python3.8/site-packages/govee_api_laggat/govee_api_laggat.py", line 409, in get_devices
    err = f"API-Error {response.status}: {result}"
  File "/usr/local/lib/python3.8/contextlib.py", line 189, in __aexit__
    await self.gen.athrow(typ, value, traceback)
  File "/usr/local/lib/python3.8/site-packages/govee_api_laggat/govee_api_laggat.py", line 151, in _api_get
    yield response
  File "/usr/local/lib/python3.8/contextlib.py", line 190, in __aexit__
    raise RuntimeError("generator didn't stop after athrow()")
RuntimeError: generator didn't stop after athrow()

Error code 400: Device not found

Version of the custom_component

0.2.1

Configuration

1C:B5:A4:C1:38:A6:3B:77:
  set_brightness_max: 100
  get_brightness_max: 100
  before_set_brightness_turn_on: false
  config_offline_is_off: false
9B:11:A4:C1:38:A6:AD:AC:
  set_brightness_max: 100
  get_brightness_max: 100
  before_set_brightness_turn_on: false
  config_offline_is_off: false
C3:99:A4:C1:38:9C:76:A0:
  set_brightness_max: 100
  get_brightness_max: 100
  before_set_brightness_turn_on: false
  config_offline_is_off: false
D4:BB:A4:C1:38:47:95:79:
  set_brightness_max: 100
  get_brightness_max: 100
  before_set_brightness_turn_on: false
  config_offline_is_off: false

Describe the bug

I am receiving this warning too often, so my Govee LEDs do not respond to my commands, or the response is too slow.

I tried many times to track the debug logs of this component, but the logger is writing too many information and it's difficult to catch something related about this error.

Debug log

2021-10-17 09:46:49 WARNING (MainThread) [govee_api_laggat.govee_api_laggat] error getting state for device GoveeDevice(device='9B:11:A4:C1:38:A6:AD:AC', model='H6159', device_name='living-main', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=False, brightness=200, color=(255, 255, 240), color_temp=0, timestamp=1634453198.774006, source=<GoveeSource.API: 'api'>, error=None, lock_set_until=1634382919.911053, lock_get_until=1634382920.911069, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False): API-Error 400: {"status":400,"errors":"Device Not Found"}
2021-10-17 09:46:49 WARNING (MainThread) [custom_components.govee.light] update failed for 9B:11:A4:C1:38:A6:AD:AC: API-Error 400: {"status":400,"errors":"Device Not Found"}
2021-10-17 10:39:28 WARNING (MainThread) [govee_api_laggat.govee_api_laggat] error getting state for device GoveeDevice(device='9B:11:A4:C1:38:A6:AD:AC', model='H6159', device_name='living-main', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=False, brightness=200, color=(255, 255, 240), color_temp=0, timestamp=1634456357.826918, source=<GoveeSource.API: 'api'>, error=None, lock_set_until=1634382919.911053, lock_get_until=1634382920.911069, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False): API-Error 502: <html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
</body>
</html>

2021-10-17 10:39:28 WARNING (MainThread) [custom_components.govee.light] update failed for 9B:11:A4:C1:38:A6:AD:AC: API-Error 502: <html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
</body>
</html>
2021-10-17 11:30:35 WARNING (MainThread) [govee_api_laggat.govee_api_laggat] error getting state for device GoveeDevice(device='1C:B5:A4:C1:38:A6:3B:77', model='H6159', device_name='living-sec', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=False, brightness=200, color=(255, 255, 240), color_temp=0, timestamp=1634459425.412653, source=<GoveeSource.API: 'api'>, error=None, lock_set_until=1634382919.730236, lock_get_until=1634382920.730253, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False): API-Error 400: {"status":400,"errors":"Device Not Found"}
2021-10-17 11:30:36 WARNING (MainThread) [custom_components.govee.light] update failed for 1C:B5:A4:C1:38:A6:3B:77: API-Error 400: {"status":400,"errors":"Device Not Found"}
2021-10-17 13:00:36 WARNING (MainThread) [govee_api_laggat.govee_api_laggat] error getting state for device GoveeDevice(device='C3:99:A4:C1:38:9C:76:A0', model='H6109', device_name='bedroom-main', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=False, brightness=127, color=(255, 63, 0), color_temp=0, timestamp=1634464824.948232, 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): API-Error 400: {"status":400,"errors":"Device Not Found"}
2021-10-17 13:00:36 WARNING (MainThread) [custom_components.govee.light] update failed for C3:99:A4:C1:38:9C:76:A0: API-Error 400: {"status":400,"errors":"Device Not Found"}
2021-10-17 13:41:31 WARNING (MainThread) [govee_api_laggat.govee_api_laggat] error getting state for device GoveeDevice(device='9B:11:A4:C1:38:A6:AD:AC', model='H6159', device_name='living-main', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=False, brightness=200, color=(255, 255, 240), color_temp=0, timestamp=1634467280.758593, source=<GoveeSource.API: 'api'>, error=None, lock_set_until=1634382919.911053, lock_get_until=1634382920.911069, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False): API-Error 400: {"status":400,"errors":"Device Not Found"}
2021-10-17 13:41:32 WARNING (MainThread) [custom_components.govee.light] update failed for 9B:11:A4:C1:38:A6:AD:AC: API-Error 400: {"status":400,"errors":"Device Not Found"}
2021-10-17 16:54:38 WARNING (MainThread) [govee_api_laggat.govee_api_laggat] error getting state for device GoveeDevice(device='1C:B5:A4:C1:38:A6:3B:77', model='H6159', device_name='living-sec', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=False, brightness=200, color=(255, 255, 240), color_temp=0, timestamp=1634478868.428692, source=<GoveeSource.API: 'api'>, error=None, lock_set_until=1634382919.730236, lock_get_until=1634382920.730253, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False): API-Error 400: {"status":400,"errors":"Device Not Found"}
2021-10-17 16:54:38 WARNING (MainThread) [custom_components.govee.light] update failed for 1C:B5:A4:C1:38:A6:3B:77: API-Error 400: {"status":400,"errors":"Device Not Found"}
2021-10-17 18:07:18 WARNING (MainThread) [govee_api_laggat.govee_api_laggat] error getting state for device GoveeDevice(device='1C:B5:A4:C1:38:A6:3B:77', model='H6159', device_name='living-sec', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=False, brightness=200, color=(255, 255, 240), color_temp=0, timestamp=1634483228.414595, source=<GoveeSource.API: 'api'>, error=None, lock_set_until=1634382919.730236, lock_get_until=1634382920.730253, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False): API-Error 400: {"status":400,"errors":"Device Not Found"}
2021-10-17 18:07:19 WARNING (MainThread) [custom_components.govee.light] update failed for 1C:B5:A4:C1:38:A6:3B:77: API-Error 400: {"status":400,"errors":"Device Not Found"}
2021-10-17 18:53:42 WARNING (MainThread) [govee_api_laggat.govee_api_laggat] error getting state for device GoveeDevice(device='1C:B5:A4:C1:38:A6:3B:77', model='H6159', device_name='living-sec', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=True, brightness=200, color=(255, 255, 240), color_temp=0, timestamp=1634486012.416118, source=<GoveeSource.API: 'api'>, error=None, lock_set_until=1634485666.016368, lock_get_until=1634485667.016381, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False): API-Error 400: {"status":400,"errors":"Device Not Found"}
2021-10-17 18:53:43 WARNING (MainThread) [custom_components.govee.light] update failed for 1C:B5:A4:C1:38:A6:3B:77: API-Error 400: {"status":400,"errors":"Device Not Found"}
2021-10-17 19:18:00 WARNING (MainThread) [govee_api_laggat.govee_api_laggat] error getting state for device GoveeDevice(device='1C:B5:A4:C1:38:A6:3B:77', model='H6159', device_name='living-sec', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=True, brightness=200, color=(255, 255, 240), color_temp=0, timestamp=1634487469.405974, source=<GoveeSource.API: 'api'>, error=None, lock_set_until=1634485666.016368, lock_get_until=1634485667.016381, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False): API-Error 400: {"status":400,"errors":"Device Not Found"}
2021-10-17 19:18:01 WARNING (MainThread) [custom_components.govee.light] update failed for 1C:B5:A4:C1:38:A6:3B:77: API-Error 400: {"status":400,"errors":"Device Not Found"}
2021-10-17 19:18:33 WARNING (MainThread) [govee_api_laggat.govee_api_laggat] error getting state for device GoveeDevice(device='9B:11:A4:C1:38:A6:AD:AC', model='H6159', device_name='living-main', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=True, brightness=200, color=(255, 255, 240), color_temp=0, timestamp=1634487502.74679, source=<GoveeSource.API: 'api'>, error=None, lock_set_until=1634485667.735499, lock_get_until=1634485668.735516, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False): API-Error 400: {"status":400,"errors":"Device Not Found"}
2021-10-17 19:18:33 WARNING (MainThread) [custom_components.govee.light] update failed for 9B:11:A4:C1:38:A6:AD:AC: API-Error 400: {"status":400,"errors":"Device Not Found"}
2021-10-17 19:54:56 WARNING (MainThread) [govee_api_laggat.govee_api_laggat] error getting state for device GoveeDevice(device='1C:B5:A4:C1:38:A6:3B:77', model='H6159', device_name='living-sec', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=True, brightness=200, color=(255, 255, 240), color_temp=0, timestamp=1634489685.614779, source=<GoveeSource.API: 'api'>, error=None, lock_set_until=1634485666.016368, lock_get_until=1634485667.016381, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False): API-Error 400: {"status":400,"errors":"Device Not Found"}
2021-10-17 19:54:57 WARNING (MainThread) [custom_components.govee.light] update failed for 1C:B5:A4:C1:38:A6:3B:77: API-Error 400: {"status":400,"errors":"Device Not Found"}
2021-10-17 20:27:55 WARNING (MainThread) [govee_api_laggat.govee_api_laggat] error getting state for device GoveeDevice(device='9B:11:A4:C1:38:A6:AD:AC', model='H6159', device_name='living-main', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=True, brightness=200, color=(255, 255, 240), color_temp=0, timestamp=1634491665.683013, source=<GoveeSource.API: 'api'>, error=None, lock_set_until=1634485667.735499, lock_get_until=1634485668.735516, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False): API-Error 400: {"status":400,"errors":"Device Not Found"}
2021-10-17 20:27:55 WARNING (MainThread) [custom_components.govee.light] update failed for 9B:11:A4:C1:38:A6:AD:AC: API-Error 400: {"status":400,"errors":"Device Not Found"}
2021-10-17 21:41:43 WARNING (MainThread) [govee_api_laggat.govee_api_laggat] error getting state for device GoveeDevice(device='9B:11:A4:C1:38:A6:AD:AC', model='H6159', device_name='living-main', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=True, brightness=200, color=(255, 255, 240), color_temp=0, timestamp=1634496092.734169, source=<GoveeSource.API: 'api'>, error=None, lock_set_until=1634485667.735499, lock_get_until=1634485668.735516, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False): API-Error 400: {"status":400,"errors":"Device Not Found"}
2021-10-17 21:41:44 WARNING (MainThread) [custom_components.govee.light] update failed for 9B:11:A4:C1:38:A6:AD:AC: API-Error 400: {"status":400,"errors":"Device Not Found"}
2021-10-18 00:31:11 WARNING (MainThread) [govee_api_laggat.govee_api_laggat] error getting state for device GoveeDevice(device='C3:99:A4:C1:38:9C:76:A0', model='H6109', device_name='bedroom-main', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=True, brightness=127, color=(255, 63, 0), color_temp=0, timestamp=1634506259.909706, source=<GoveeSource.API: 'api'>, error=None, lock_set_until=1634489374.596086, lock_get_until=1634489375.596103, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False): API-Error 400: {"status":400,"errors":"Device Not Found"}
2021-10-18 00:31:11 WARNING (MainThread) [custom_components.govee.light] update failed for C3:99:A4:C1:38:9C:76:A0: API-Error 400: {"status":400,"errors":"Device Not Found"}
2021-10-18 00:49:15 WARNING (MainThread) [govee_api_laggat.govee_api_laggat] error getting state for device GoveeDevice(device='1C:B5:A4:C1:38:A6:3B:77', model='H6159', device_name='living-sec', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=False, brightness=200, color=(255, 255, 240), color_temp=0, timestamp=1634507344.579656, source=<GoveeSource.API: 'api'>, error=None, lock_set_until=1634499885.62345, lock_get_until=1634499886.623468, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False): API-Error 400: {"status":400,"errors":"Device Not Found"}
2021-10-18 00:49:16 WARNING (MainThread) [custom_components.govee.light] update failed for 1C:B5:A4:C1:38:A6:3B:77: API-Error 400: {"status":400,"errors":"Device Not Found"}
2021-10-18 01:09:10 WARNING (MainThread) [govee_api_laggat.govee_api_laggat] error getting state for device GoveeDevice(device='9B:11:A4:C1:38:A6:AD:AC', model='H6159', device_name='living-main', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=False, brightness=200, color=(255, 255, 240), color_temp=0, timestamp=1634508539.792534, source=<GoveeSource.API: 'api'>, error=None, lock_set_until=1634499885.822306, lock_get_until=1634499886.82232, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False): API-Error 400: {"status":400,"errors":"Device Not Found"}
2021-10-18 01:09:11 WARNING (MainThread) [custom_components.govee.light] update failed for 9B:11:A4:C1:38:A6:AD:AC: API-Error 400: {"status":400,"errors":"Device Not Found"}
2021-10-18 02:00:25 WARNING (MainThread) [govee_api_laggat.govee_api_laggat] error getting state for device GoveeDevice(device='1C:B5:A4:C1:38:A6:3B:77', model='H6159', device_name='living-sec', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=False, brightness=200, color=(255, 255, 240), color_temp=0, timestamp=1634511614.528982, source=<GoveeSource.API: 'api'>, error=None, lock_set_until=1634499885.62345, lock_get_until=1634499886.623468, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False): API-Error 400: {"status":400,"errors":"Device Not Found"}
2021-10-18 02:00:26 WARNING (MainThread) [custom_components.govee.light] update failed for 1C:B5:A4:C1:38:A6:3B:77: API-Error 400: {"status":400,"errors":"Device Not Found"}
2021-10-18 03:17:26 WARNING (MainThread) [govee_api_laggat.govee_api_laggat] error getting state for device GoveeDevice(device='9B:11:A4:C1:38:A6:AD:AC', model='H6159', device_name='living-main', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=False, brightness=200, color=(255, 255, 240), color_temp=0, timestamp=1634516235.725352, source=<GoveeSource.API: 'api'>, error=None, lock_set_until=1634499885.822306, lock_get_until=1634499886.82232, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False): API-Error 400: {"status":400,"errors":"Device Not Found"}
2021-10-18 03:17:27 WARNING (MainThread) [custom_components.govee.light] update failed for 9B:11:A4:C1:38:A6:AD:AC: API-Error 400: {"status":400,"errors":"Device Not Found"}
2021-10-18 04:24:57 WARNING (MainThread) [govee_api_laggat.govee_api_laggat] error getting state for device GoveeDevice(device='9B:11:A4:C1:38:A6:AD:AC', model='H6159', device_name='living-main', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=False, brightness=200, color=(255, 255, 240), color_temp=0, timestamp=1634520286.822194, source=<GoveeSource.API: 'api'>, error=None, lock_set_until=1634499885.822306, lock_get_until=1634499886.82232, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False): API-Error 400: {"status":400,"errors":"Device Not Found"}
2021-10-18 04:24:58 WARNING (MainThread) [custom_components.govee.light] update failed for 9B:11:A4:C1:38:A6:AD:AC: API-Error 400: {"status":400,"errors":"Device Not Found"}
2021-10-18 04:35:54 WARNING (MainThread) [govee_api_laggat.govee_api_laggat] error getting state for device GoveeDevice(device='9B:11:A4:C1:38:A6:AD:AC', model='H6159', device_name='living-main', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=False, brightness=200, color=(255, 255, 240), color_temp=0, timestamp=1634520943.769926, source=<GoveeSource.API: 'api'>, error=None, lock_set_until=1634499885.822306, lock_get_until=1634499886.82232, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False): API-Error 400: {"status":400,"errors":"Device Not Found"}
2021-10-18 04:35:55 WARNING (MainThread) [custom_components.govee.light] update failed for 9B:11:A4:C1:38:A6:AD:AC: API-Error 400: {"status":400,"errors":"Device Not Found"}
2021-10-18 04:53:14 WARNING (MainThread) [govee_api_laggat.govee_api_laggat] error getting state for device GoveeDevice(device='D4:BB:A4:C1:38:47:95:79', model='H6159', device_name='bedroom-sec', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=False, brightness=152, color=(255, 63, 0), color_temp=0, timestamp=1634521983.058598, source=<GoveeSource.API: 'api'>, error=None, lock_set_until=1634513142.783293, lock_get_until=1634513143.783308, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False): API-Error 400: {"status":400,"errors":"Device Not Found"}
2021-10-18 04:53:14 WARNING (MainThread) [custom_components.govee.light] update failed for D4:BB:A4:C1:38:47:95:79: API-Error 400: {"status":400,"errors":"Device Not Found"}
2021-10-18 04:54:19 WARNING (MainThread) [govee_api_laggat.govee_api_laggat] error getting state for device GoveeDevice(device='1C:B5:A4:C1:38:A6:3B:77', model='H6159', device_name='living-sec', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=False, brightness=200, color=(255, 255, 240), color_temp=0, timestamp=1634522048.431816, source=<GoveeSource.API: 'api'>, error=None, lock_set_until=1634499885.62345, lock_get_until=1634499886.623468, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False): API-Error 400: {"status":400,"errors":"Device Not Found"}
2021-10-18 04:54:20 WARNING (MainThread) [custom_components.govee.light] update failed for 1C:B5:A4:C1:38:A6:3B:77: API-Error 400: {"status":400,"errors":"Device Not Found"}
2021-10-18 05:14:54 WARNING (MainThread) [govee_api_laggat.govee_api_laggat] error getting state for device GoveeDevice(device='9B:11:A4:C1:38:A6:AD:AC', model='H6159', device_name='living-main', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=False, brightness=200, color=(255, 255, 240), color_temp=0, timestamp=1634523283.765277, source=<GoveeSource.API: 'api'>, error=None, lock_set_until=1634499885.822306, lock_get_until=1634499886.82232, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False): API-Error 400: {"status":400,"errors":"Device Not Found"}
2021-10-18 05:14:55 WARNING (MainThread) [custom_components.govee.light] update failed for 9B:11:A4:C1:38:A6:AD:AC: API-Error 400: {"status":400,"errors":"Device Not Found"}
2021-10-18 05:23:07 WARNING (MainThread) [govee_api_laggat.govee_api_laggat] error getting state for device GoveeDevice(device='1C:B5:A4:C1:38:A6:3B:77', model='H6159', device_name='living-sec', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=False, brightness=200, color=(255, 255, 240), color_temp=0, timestamp=1634523776.530209, source=<GoveeSource.API: 'api'>, error=None, lock_set_until=1634499885.62345, lock_get_until=1634499886.623468, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False): API-Error 400: {"status":400,"errors":"Device Not Found"}
2021-10-18 05:23:08 WARNING (MainThread) [custom_components.govee.light] update failed for 1C:B5:A4:C1:38:A6:3B:77: API-Error 400: {"status":400,"errors":"Device Not Found"}
2021-10-18 06:13:04 WARNING (MainThread) [govee_api_laggat.govee_api_laggat] error getting state for device GoveeDevice(device='9B:11:A4:C1:38:A6:AD:AC', model='H6159', device_name='living-main', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=False, brightness=200, color=(255, 255, 240), color_temp=0, timestamp=1634526773.770957, source=<GoveeSource.API: 'api'>, error=None, lock_set_until=1634499885.822306, lock_get_until=1634499886.82232, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False): API-Error 400: {"status":400,"errors":"Device Not Found"}
2021-10-18 06:13:05 WARNING (MainThread) [custom_components.govee.light] update failed for 9B:11:A4:C1:38:A6:AD:AC: API-Error 400: {"status":400,"errors":"Device Not Found"}
2021-10-18 07:31:10 WARNING (MainThread) [govee_api_laggat.govee_api_laggat] error getting state for device GoveeDevice(device='1C:B5:A4:C1:38:A6:3B:77', model='H6159', device_name='living-sec', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=True, brightness=200, color=(255, 255, 240), color_temp=0, timestamp=1634531460.418537, source=<GoveeSource.API: 'api'>, error=None, lock_set_until=1634529522.520878, lock_get_until=1634529523.520892, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False): API-Error 400: {"status":400,"errors":"Device Not Found"}
2021-10-18 07:31:10 WARNING (MainThread) [custom_components.govee.light] update failed for 1C:B5:A4:C1:38:A6:3B:77: API-Error 400: {"status":400,"errors":"Device Not Found"}
2021-10-18 07:50:11 WARNING (MainThread) [govee_api_laggat.govee_api_laggat] error getting state for device GoveeDevice(device='9B:11:A4:C1:38:A6:AD:AC', model='H6159', device_name='living-main', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=True, brightness=200, color=(255, 255, 240), color_temp=0, timestamp=1634532601.662349, source=<GoveeSource.API: 'api'>, error=None, lock_set_until=1634529522.738734, lock_get_until=1634529523.738751, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False): API-Error 400: {"status":400,"errors":"Device Not Found"}
2021-10-18 07:50:12 WARNING (MainThread) [custom_components.govee.light] update failed for 9B:11:A4:C1:38:A6:AD:AC: API-Error 400: {"status":400,"errors":"Device Not Found"}
2021-10-18 09:42:39 WARNING (MainThread) [govee_api_laggat.govee_api_laggat] error getting state for device GoveeDevice(device='9B:11:A4:C1:38:A6:AD:AC', model='H6159', device_name='living-main', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=False, brightness=200, color=(255, 255, 240), color_temp=0, timestamp=1634539348.768606, source=<GoveeSource.API: 'api'>, error=None, lock_set_until=1634534478.977346, lock_get_until=1634534479.977362, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False): API-Error 400: {"status":400,"errors":"Device Not Found"}
2021-10-18 09:42:39 WARNING (MainThread) [custom_components.govee.light] update failed for 9B:11:A4:C1:38:A6:AD:AC: API-Error 400: {"status":400,"errors":"Device Not Found"}
2021-10-18 10:26:52 WARNING (MainThread) [govee_api_laggat.govee_api_laggat] error getting state for device GoveeDevice(device='1C:B5:A4:C1:38:A6:3B:77', model='H6159', device_name='living-sec', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=False, brightness=200, color=(255, 255, 240), color_temp=0, timestamp=1634542001.507504, source=<GoveeSource.API: 'api'>, error=None, lock_set_until=1634534478.796225, lock_get_until=1634534479.796242, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False): API-Error 400: {"status":400,"errors":"Device Not Found"}
2021-10-18 10:26:53 WARNING (MainThread) [custom_components.govee.light] update failed for 1C:B5:A4:C1:38:A6:3B:77: API-Error 400: {"status":400,"errors":"Device Not Found"}

Light state turn off after 10s

After turn on the Light @Home Assistant Light turn off after 10s Refresh-Rate (H6159 / H6163)

Also the brightness is still 40%.....

2021-04-17_15h14_05.mp4

Different Polling Intervals for Different Devices

It would be great if I could individually set the polling interval for my devices. For example, I use my Glow lamp to trigger Automations, so I want it to poll often. I don't really care if my Modem Smart Plug polls at all though.

Potential support for wifi hygrometer/thermometer

Hi, I'm looking into possibly working on extending this to work with my Govee wifi hygrometer/thermometers and I'm not exactly sure where to start experimenting. Does the python-govee-api project already support this or would that be the first place I'd need to start contributing?

No 'version' key in the manifest file for custom integration 'goove'

On 2021.03:

2021-03-04 20:34:36 WARNING (MainThread) [homeassistant.loader] No 'version' key in the manifest file for custom integration 'govee'. This will not be allowed in a future version of Home Assistant. Please report this to the maintainer of 'govee'

https://developers.home-assistant.io/blog/2021/01/29/custom-integration-changes outlines the information as for why

Version of the custom_component

v0.1.5

Describe the bug

HA v2021.3 has introduced rqt for version key in the manifest file.

Brigthness problem with H6199

Hi,

With the Govee H6199 when I set the light (from within the Govee app or Lovelace) at 1% the brightness value become -17 at 50% it go to 36 and at 100% it go to 89.

The brightness is set correctly but the value returned is wrong and that force Lovelace to show the cursor at a lower level that the light is currently set.

Any idea ?

Thank you

HA 2021.12.0. Error: implements device_state_attributes. Please report it to the custom component author.

Version of the custom_component

govee 0.2.1

Configuration

  • Integration
    Device info H6104 by Govee

Describe the bug

(<class 'custom_components.govee.light.GoveeLightEntity'>) implements device_state_attributes

Debug log

Logger: homeassistant.helpers.entity
Source: helpers/entity.py:522
First occurred: 5:36:28 PM (3 occurrences)
Last logged: 5:36:38 PM

Entity light.tvled_lg (<class 'custom_components.govee.light.GoveeLightEntity'>) implements device_state_attributes. Please report it to the custom component author.

System Info

version | core-2021.12.0.dev20211124
-- | --
installation_type | Home Assistant Container
dev | true
hassio | false
docker | true
user | docker_haume
virtualenv | false
python_version | 3.9.7
os_name | Linux
os_version | 5.8.0-63-generic
arch | x86_64
timezone | Europe/Vaduz

Multiple Instances of Govee Integration not working right

We got my 3 children each Govee strip lights for their Bedrooms (2 H6110 & 1 H619C). Because they are kids and keep messing with each other, we've separated each strip light into a separate Govee account, 1 for each kid/strip light. I added each Govee account into Home Assistant with the Govee integration and API.

This initially works ok, but over time and reboots, the integration stops working and creates duplicate device/entities under each integration.

Example:
Integration: Govee - Kid1
Device/Entity:
Kid1's Strip Lights/light.kid1s_strip_lights
Kids2's Strip Lights/light.kid2s_strip_lights
Kid3's Strip Lights/light.kid3s_strip_lights

It has also created duplicate devices under the same Integration:
Integration: Govee - Kid1
Device/Entity:
Kid1's Strip Lights/light.kid1s_strip_lights
Kid1's Strip Lights/light.kid1s_strip_lights_2

Additionally, the entities stop working even though the strip lights have not been unplugged and the WiFi network has not gone down.

Overall, it's just very unpredictable.

Version of the custom_component

0.2.1

Debug log

There are several different errors that appear in the logs, here are a few:

2022-01-25 21:28:36 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/govee_api_laggat/govee_api_laggat.py", line 309, in _schedule_get_devices
await asyncio.sleep(SCHEDULE_GET_DEVICES_SECONDS)
NameError: name 'SCHEDULE_GET_DEVICES_SECONDS' is not defined


2022-01-25 21:35:10 ERROR (MainThread) [homeassistant.config_entries] Error unloading entry Govee - Kid1 for govee
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 452, in async_unload
    result = await component.async_unload_entry(hass, self)  # type: ignore
  File "/config/custom_components/govee/__init__.py", line 83, in async_unload_entry
    await asyncio.gather(
  File "/usr/local/lib/python3.9/asyncio/tasks.py", line 827, in gather
    fut = ensure_future(arg, loop=loop)
  File "/usr/local/lib/python3.9/asyncio/tasks.py", line 680, in ensure_future
    raise TypeError('An asyncio.Future, a coroutine or an awaitable is '
TypeError: An asyncio.Future, a coroutine or an awaitable is required

2022-01-24 08:50:06 WARNING (MainThread) [govee_api_laggat.govee_api_laggat] error getting state for device GoveeDevice(device='<MAC>', model='H6110', device_name='Kid3 Strip Lights', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=False, brightness=129, color=(255, 0, 0), color_temp=0, timestamp=1643032203.042125, source=<GoveeSource.API: 'api'>, error=None, lock_set_until=0, lock_get_until=0, learned_set_brightness_max=None, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False): API-Error 400: {"message":"Device Not Found","status":400}

2022-01-25 06:06:35 WARNING (MainThread) [govee_api_laggat.govee_api_laggat] error getting state for device GoveeDevice(device='<MAC>', model='H6110', device_name='Kid3 Strip Lights', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=False, brightness=129, color=(255, 0, 0), color_temp=0, timestamp=1643108785.059516, source=<GoveeSource.API: 'api'>, error=None, lock_set_until=0, lock_get_until=0, learned_set_brightness_max=None, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False): API-Error 502: <html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
</body>
</html>

2022-01-25 06:10:55 WARNING (MainThread) [govee_api_laggat.govee_api_laggat] error getting state for device GoveeDevice(device='<MAC>', model='H6110', device_name='Kid3 Strip Lights', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=False, brightness=129, color=(255, 0, 0), color_temp=0, timestamp=1643109045.047372, source=<GoveeSource.API: 'api'>, error=None, lock_set_until=0, lock_get_until=0, learned_set_brightness_max=None, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False): API-Error 504: <html>
<head><title>504 Gateway Time-out</title></head>
<body>
<center><h1>504 Gateway Time-out</h1></center>
</body>
</html>

Missing features for Govee Lyra (H6072)

Set up the integration with a Govee Lyra floor lamp - the only thing I can do in HA is turn it on and off. Can't change colors or select presets. Any way to add these features? Happy to write the code myself and submit a PR if you have any pointers.

Device is duplicated after renaming the Integration and rebooting Home Assistant

Version of the custom_component

0.2.1
image

System Health

version core-2021.9.6
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.9.6
os_name Linux
os_version 5.10.17-v8
arch aarch64
timezone America/Toronto
Home Assistant Community Store
GitHub API ok
Github API Calls Remaining 4447
Installed Version 1.15.2
Stage running
Available Repositories 881
Installed Repositories 12
Home Assistant Cloud
logged_in true
subscription_expiration October 9, 2021, 8:00 PM
relayer_connected true
remote_enabled true
remote_connected true
alexa_enabled false
google_enabled true
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 6.3
update_channel stable
supervisor_version supervisor-2021.09.0
docker_version 20.10.7
disk_total 58.0 GB
disk_used 8.7 GB
healthy true
supported true
board rpi4-64
supervisor_api ok
version_api ok
installed_addons File editor (5.3.3), Terminal & SSH (9.1.3), Samba share (9.5.1), Network UPS Tools (0.8.0), Z-Wave JS (0.1.40), Check Home Assistant configuration (3.8.0), Home Assistant Google Drive Backup (0.105.1), ESPHome (2021.8.2), AirCast (3.1.1), Mosquitto broker (6.0.1)
Lovelace
dashboards 1
resources 7
views 4
mode storage
Spotify
api_endpoint_reachable ok

Configuration

govee_learning.yaml

XX:XX:XX:XX:XX:XX:XX:XX:
  set_brightness_max: 100
  get_brightness_max: 100
  before_set_brightness_turn_on: false
  config_offline_is_off: false

Supervisor log after the reboot that duplicates the groove device

21-09-13 18:15:32 INFO (MainThread) [supervisor.backups.manager] Found 5 backup files
21-09-13 18:15:32 INFO (MainThread) [supervisor.backups.manager] Found 5 backup files
21-09-13 18:33:16 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
21-09-13 19:00:37 INFO (MainThread) [supervisor.api.middleware.security] /supervisor/info access from cebe7a76_hassio_google_drive_backup
21-09-13 19:00:37 INFO (MainThread) [supervisor.api.middleware.security] /backups access from cebe7a76_hassio_google_drive_backup
21-09-13 19:01:12 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state CoreState.RUNNING
21-09-13 19:01:12 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.SECURITY/ContextType.CORE
21-09-13 19:01:12 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.TRUST/ContextType.PLUGIN
21-09-13 19:01:12 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.TRUST/ContextType.CORE
21-09-13 19:01:12 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.TRUST/ContextType.SUPERVISOR
21-09-13 19:01:12 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.PWNED/ContextType.ADDON
21-09-13 19:01:12 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.FREE_SPACE/ContextType.SYSTEM
21-09-13 19:01:12 INFO (MainThread) [supervisor.resolution.check] System checks complete
21-09-13 19:01:12 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.RUNNING
21-09-13 19:01:12 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
21-09-13 19:01:12 INFO (MainThread) [supervisor.resolution.fixup] Starting system autofix at state CoreState.RUNNING
21-09-13 19:01:12 INFO (MainThread) [supervisor.resolution.fixup] System autofix complete
21-09-13 19:03:02 INFO (MainThread) [supervisor.updater] Fetching update data from https://version.home-assistant.io/stable.json
21-09-13 19:03:14 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/hassio-addons/repository repository
21-09-13 19:03:14 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/sabeechen/hassio-google-drive-backup repository
21-09-13 19:03:14 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/home-assistant/addons repository
21-09-13 19:03:15 WARNING (MainThread) [supervisor.addons.validate] Add-on config 'snapshot_exclude' is deprecated, 'backup_exclude' should be used instead. Please report this to the maintainer of AdGuard Home
21-09-13 19:03:16 WARNING (MainThread) [supervisor.addons.validate] Add-on config 'snapshot_exclude' is deprecated, 'backup_exclude' should be used instead. Please report this to the maintainer of ESPHome
21-09-13 19:03:16 WARNING (MainThread) [supervisor.addons.validate] Add-on config 'snapshot' is deprecated, 'backup' should be used instead. Please report this to the maintainer of UniFi Controller
21-09-13 19:03:16 WARNING (MainThread) [supervisor.addons.validate] Add-on config 'snapshot_exclude' is deprecated, 'backup_exclude' should be used instead. Please report this to the maintainer of AdGuard Home
21-09-13 19:03:16 WARNING (MainThread) [supervisor.addons.validate] Add-on config 'snapshot_exclude' is deprecated, 'backup_exclude' should be used instead. Please report this to the maintainer of ESPHome
21-09-13 19:03:17 WARNING (MainThread) [supervisor.addons.validate] Add-on config 'snapshot' is deprecated, 'backup' should be used instead. Please report this to the maintainer of UniFi Controller
21-09-13 19:03:17 INFO (MainThread) [supervisor.store] Loading add-ons from store: 64 all - 0 new - 0 remove
21-09-13 19:03:17 INFO (MainThread) [supervisor.store] Loading add-ons from store: 64 all - 0 new - 0 remove
21-09-13 19:03:17 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
21-09-13 19:33:17 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
21-09-13 20:00:38 INFO (MainThread) [supervisor.api.middleware.security] /supervisor/info access from cebe7a76_hassio_google_drive_backup
21-09-13 20:00:38 INFO (MainThread) [supervisor.api.middleware.security] /backups access from cebe7a76_hassio_google_drive_backup
21-09-13 20:01:12 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state CoreState.RUNNING
21-09-13 20:01:12 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.SECURITY/ContextType.CORE
21-09-13 20:01:12 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.TRUST/ContextType.PLUGIN
21-09-13 20:01:13 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.TRUST/ContextType.CORE
21-09-13 20:01:13 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.TRUST/ContextType.SUPERVISOR
21-09-13 20:01:13 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.PWNED/ContextType.ADDON
21-09-13 20:01:13 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.FREE_SPACE/ContextType.SYSTEM
21-09-13 20:01:13 INFO (MainThread) [supervisor.resolution.check] System checks complete
21-09-13 20:01:13 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.RUNNING
21-09-13 20:01:13 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
21-09-13 20:01:13 INFO (MainThread) [supervisor.resolution.fixup] Starting system autofix at state CoreState.RUNNING
21-09-13 20:01:13 INFO (MainThread) [supervisor.resolution.fixup] System autofix complete
21-09-13 20:03:17 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
21-09-13 20:03:30 INFO (MainThread) [supervisor.host.info] Updating local host information
21-09-13 20:03:30 INFO (MainThread) [supervisor.host.services] Updating service information
21-09-13 20:03:31 INFO (MainThread) [supervisor.host.network] Updating local network information
21-09-13 20:03:33 INFO (MainThread) [supervisor.host.sound] Updating PulseAudio information
21-09-13 20:03:33 INFO (MainThread) [supervisor.host.manager] Host information reload completed
21-09-13 20:18:39 INFO (SyncWorker_6) [supervisor.docker.interface] Restarting ghcr.io/home-assistant/raspberrypi4-64-homeassistant
21-09-13 20:18:49 INFO (MainThread) [supervisor.homeassistant.core] Wait until Home Assistant is ready
21-09-13 20:18:58 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.RUNNING
21-09-13 20:18:58 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
21-09-13 20:19:48 INFO (MainThread) [supervisor.homeassistant.core] Detect a running Home Assistant instance
21-09-13 20:22:03 INFO (SyncWorker_0) [supervisor.docker.interface] Restarting ghcr.io/home-assistant/raspberrypi4-64-homeassistant
21-09-13 20:22:14 INFO (MainThread) [supervisor.homeassistant.core] Wait until Home Assistant is ready
21-09-13 20:22:23 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.RUNNING
21-09-13 20:22:23 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
21-09-13 20:23:09 INFO (MainThread) [supervisor.homeassistant.core] Detect a running Home Assistant instance
21-09-13 20:24:08 INFO (SyncWorker_1) [supervisor.docker.interface] Restarting ghcr.io/home-assistant/raspberrypi4-64-homeassistant
21-09-13 20:24:20 INFO (MainThread) [supervisor.homeassistant.core] Wait until Home Assistant is ready
21-09-13 20:24:29 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.RUNNING
21-09-13 20:24:29 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
21-09-13 20:25:15 INFO (MainThread) [supervisor.homeassistant.core] Detect a running Home Assistant instance
21-09-13 20:25:49 INFO (SyncWorker_3) [supervisor.docker.interface] Restarting ghcr.io/home-assistant/raspberrypi4-64-homeassistant
21-09-13 20:26:05 INFO (MainThread) [supervisor.homeassistant.core] Wait until Home Assistant is ready
21-09-13 20:26:14 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.RUNNING
21-09-13 20:26:14 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
21-09-13 20:27:06 INFO (MainThread) [supervisor.homeassistant.core] Detect a running Home Assistant instance

Describe the bug

The problem

I just have one Govee device, a TV ambient light. It works flawlessly; however, if after I configuring the govee integration I rename it to Govee, it will duplicate the device and entity.

Steps to replicate the problem

  • Install Govee integration using HACS
  • Add Govee integration to Home Assistant
  • Reboot Home Assistant - So fa nothing happens
  • Rename the integration form govee to Govee (yes, I have OCD and need all integration names starting with uppercase or all my family dies....lol)
  • Reboot Home Assistant
  • Now you have duplicate entities
    image

!Note: This happens to "any" name you use I tried Bob and Govee Cloud Intregration and the device was duplicated

Debug log

Core Log after the reboot that duplicates the groove device

2021-09-13 20:28:15 DEBUG (MainThread) [custom_components.govee.light] Finished fetching govee data in 0.173 seconds (success: True)
2021-09-13 20:28:25 DEBUG (MainThread) [custom_components.govee.light] _async_update
2021-09-13 20:28:25 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] get_states
2021-09-13 20:28:25 DEBUG (MainThread) [govee_api_laggat.api] Rate limit total: 100, remaining: 95 in 9.872174978256226 seconds
2021-09-13 20:28:25 DEBUG (MainThread) [govee_api_laggat.api] state returned from API: {'data': {'device': 'XX:XX:XX:XX:XX:XX:XX:XX', 'model': 'H6199', 'properties': [{'online': True}, {'powerState': 'off'}, {'brightness': 100}, {'color': {'r': 255, 'b': 156, 'g': 211}}]}, 'message': 'Success', 'code': 200}, resulting state object: GoveeDevice(device='XX:XX:XX:XX:XX:XX:XX:XX', model='H6199', device_name='Living Room TV Ambient', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=False, brightness=254, color=(255, 211, 156), color_temp=0, timestamp=1631579305.158317, 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)
2021-09-13 20:28:25 DEBUG (MainThread) [custom_components.govee.light] Finished fetching govee data in 0.157 seconds (success: True)
2021-09-13 20:28:35 DEBUG (MainThread) [custom_components.govee.light] _async_update
2021-09-13 20:28:35 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] get_states
2021-09-13 20:28:35 DEBUG (MainThread) [govee_api_laggat.api] Rate limit total: 100, remaining: 99 in 59.857779026031494 seconds
2021-09-13 20:28:35 DEBUG (MainThread) [govee_api_laggat.api] state returned from API: {'data': {'device': 'XX:XX:XX:XX:XX:XX:XX:XX', 'model': 'H6199', 'properties': [{'online': True}, {'powerState': 'off'}, {'brightness': 100}, {'color': {'r': 255, 'b': 156, 'g': 211}}]}, 'message': 'Success', 'code': 200}, resulting state object: GoveeDevice(device='XX:XX:XX:XX:XX:XX:XX:XX', model='H6199', device_name='Living Room TV Ambient', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=False, brightness=254, color=(255, 211, 156), color_temp=0, timestamp=1631579315.178308, 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)
2021-09-13 20:28:35 DEBUG (MainThread) [custom_components.govee.light] Finished fetching govee data in 0.176 seconds (success: True)
2021-09-13 20:28:45 DEBUG (MainThread) [custom_components.govee.light] _async_update
2021-09-13 20:28:45 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] get_states
2021-09-13 20:28:45 DEBUG (MainThread) [govee_api_laggat.api] Rate limit total: 100, remaining: 98 in 49.84489893913269 seconds
2021-09-13 20:28:45 DEBUG (MainThread) [govee_api_laggat.api] state returned from API: {'data': {'device': 'XX:XX:XX:XX:XX:XX:XX:XX', 'model': 'H6199', 'properties': [{'online': True}, {'powerState': 'off'}, {'brightness': 100}, {'color': {'r': 255, 'b': 156, 'g': 211}}]}, 'message': 'Success', 'code': 200}, resulting state object: GoveeDevice(device='XX:XX:XX:XX:XX:XX:XX:XX', model='H6199', device_name='Living Room TV Ambient', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=False, brightness=254, color=(255, 211, 156), color_temp=0, timestamp=1631579325.19152, 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)
2021-09-13 20:28:45 DEBUG (MainThread) [custom_components.govee.light] Finished fetching govee data in 0.189 seconds (success: True)
2021-09-13 20:28:55 DEBUG (MainThread) [custom_components.govee.light] _async_update
2021-09-13 20:28:55 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] get_states
2021-09-13 20:28:55 DEBUG (MainThread) [govee_api_laggat.api] Rate limit total: 100, remaining: 99 in 59.86969304084778 seconds
2021-09-13 20:28:55 DEBUG (MainThread) [govee_api_laggat.api] state returned from API: {'data': {'device': 'XX:XX:XX:XX:XX:XX:XX:XX', 'model': 'H6199', 'properties': [{'online': True}, {'powerState': 'off'}, {'brightness': 100}, {'color': {'r': 255, 'b': 156, 'g': 211}}]}, 'message': 'Success', 'code': 200}, resulting state object: GoveeDevice(device='XX:XX:XX:XX:XX:XX:XX:XX', model='H6199', device_name='Living Room TV Ambient', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=False, brightness=254, color=(255, 211, 156), color_temp=0, timestamp=1631579335.161166, 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)
2021-09-13 20:28:55 DEBUG (MainThread) [custom_components.govee.light] Finished fetching govee data in 0.160 seconds (success: True)
2021-09-13 20:29:05 DEBUG (MainThread) [custom_components.govee.light] _async_update
2021-09-13 20:29:05 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] get_states
2021-09-13 20:29:05 DEBUG (MainThread) [govee_api_laggat.api] Rate limit total: 100, remaining: 98 in 49.88291001319885 seconds
2021-09-13 20:29:05 DEBUG (MainThread) [govee_api_laggat.api] state returned from API: {'data': {'device': 'XX:XX:XX:XX:XX:XX:XX:XX', 'model': 'H6199', 'properties': [{'online': True}, {'powerState': 'off'}, {'brightness': 100}, {'color': {'r': 255, 'b': 156, 'g': 211}}]}, 'message': 'Success', 'code': 200}, resulting state object: GoveeDevice(device='XX:XX:XX:XX:XX:XX:XX:XX', model='H6199', device_name='Living Room TV Ambient', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=False, brightness=254, color=(255, 211, 156), color_temp=0, timestamp=1631579345.1477, 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)
2021-09-13 20:29:05 DEBUG (MainThread) [custom_components.govee.light] Finished fetching govee data in 0.145 seconds (success: True)
2021-09-13 20:29:15 DEBUG (MainThread) [custom_components.govee.light] _async_update
2021-09-13 20:29:15 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] get_states
2021-09-13 20:29:15 DEBUG (MainThread) [govee_api_laggat.api] Rate limit total: 100, remaining: 97 in 19.867242097854614 seconds
2021-09-13 20:29:15 DEBUG (MainThread) [govee_api_laggat.api] state returned from API: {'data': {'device': 'XX:XX:XX:XX:XX:XX:XX:XX', 'model': 'H6199', 'properties': [{'online': True}, {'powerState': 'off'}, {'brightness': 100}, {'color': {'r': 255, 'b': 156, 'g': 211}}]}, 'message': 'Success', 'code': 200}, resulting state object: GoveeDevice(device='XX:XX:XX:XX:XX:XX:XX:XX', model='H6199', device_name='Living Room TV Ambient', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=False, brightness=254, color=(255, 211, 156), color_temp=0, timestamp=1631579355.168569, 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)
2021-09-13 20:29:15 DEBUG (MainThread) [custom_components.govee.light] Finished fetching govee data in 0.166 seconds (success: True)
2021-09-13 20:29:25 DEBUG (MainThread) [custom_components.govee.light] _async_update
2021-09-13 20:29:25 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] get_states
2021-09-13 20:29:25 DEBUG (MainThread) [govee_api_laggat.api] Rate limit total: 100, remaining: 96 in 9.842455863952637 seconds
2021-09-13 20:29:25 DEBUG (MainThread) [govee_api_laggat.api] state returned from API: {'data': {'device': 'XX:XX:XX:XX:XX:XX:XX:XX', 'model': 'H6199', 'properties': [{'online': True}, {'powerState': 'off'}, {'brightness': 100}, {'color': {'r': 255, 'b': 156, 'g': 211}}]}, 'message': 'Success', 'code': 200}, resulting state object: GoveeDevice(device='XX:XX:XX:XX:XX:XX:XX:XX', model='H6199', device_name='Living Room TV Ambient', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=False, brightness=254, color=(255, 211, 156), color_temp=0, timestamp=1631579365.193368, 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)
2021-09-13 20:29:25 DEBUG (MainThread) [custom_components.govee.light] Finished fetching govee data in 0.192 seconds (success: True)
2021-09-13 20:29:35 DEBUG (MainThread) [custom_components.govee.light] _async_update
2021-09-13 20:29:35 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] get_states
2021-09-13 20:29:35 DEBUG (MainThread) [govee_api_laggat.api] Rate limit total: 100, remaining: 97 in 19.810621976852417 seconds
2021-09-13 20:29:35 DEBUG (MainThread) [govee_api_laggat.api] state returned from API: {'data': {'device': 'XX:XX:XX:XX:XX:XX:XX:XX', 'model': 'H6199', 'properties': [{'online': True}, {'powerState': 'off'}, {'brightness': 100}, {'color': {'r': 255, 'b': 156, 'g': 211}}]}, 'message': 'Success', 'code': 200}, resulting state object: GoveeDevice(device='XX:XX:XX:XX:XX:XX:XX:XX', model='H6199', device_name='Living Room TV Ambient', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=False, brightness=254, color=(255, 211, 156), color_temp=0, timestamp=1631579375.219756, 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)
2021-09-13 20:29:35 DEBUG (MainThread) [custom_components.govee.light] Finished fetching govee data in 0.215 seconds (success: True)
2021-09-13 20:29:45 DEBUG (MainThread) [custom_components.govee.light] _async_update
2021-09-13 20:29:45 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] get_states
2021-09-13 20:29:45 DEBUG (MainThread) [govee_api_laggat.api] Rate limit total: 100, remaining: 96 in 9.801378965377808 seconds
2021-09-13 20:29:45 DEBUG (MainThread) [govee_api_laggat.api] state returned from API: {'data': {'device': 'XX:XX:XX:XX:XX:XX:XX:XX', 'model': 'H6199', 'properties': [{'online': True}, {'powerState': 'off'}, {'brightness': 100}, {'color': {'r': 255, 'b': 156, 'g': 211}}]}, 'message': 'Success', 'code': 200}, resulting state object: GoveeDevice(device='XX:XX:XX:XX:XX:XX:XX:XX', model='H6199', device_name='Living Room TV Ambient', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=False, brightness=254, color=(255, 211, 156), color_temp=0, timestamp=1631579385.2291, 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)
2021-09-13 20:29:45 DEBUG (MainThread) [custom_components.govee.light] Finished fetching govee data in 0.228 seconds (success: True)
2021-09-13 20:29:55 DEBUG (MainThread) [custom_components.govee.light] _async_update
2021-09-13 20:29:55 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] get_states
2021-09-13 20:29:55 DEBUG (MainThread) [govee_api_laggat.api] Rate limit total: 100, remaining: 95 in -0.12773609161376953 seconds
2021-09-13 20:29:55 DEBUG (MainThread) [govee_api_laggat.api] state returned from API: {'data': {'device': 'XX:XX:XX:XX:XX:XX:XX:XX', 'model': 'H6199', 'properties': [{'online': True}, {'powerState': 'off'}, {'brightness': 100}, {'color': {'r': 255, 'b': 156, 'g': 211}}]}, 'message': 'Success', 'code': 200}, resulting state object: GoveeDevice(device='XX:XX:XX:XX:XX:XX:XX:XX', model='H6199', device_name='Living Room TV Ambient', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=False, brightness=254, color=(255, 211, 156), color_temp=0, timestamp=1631579395.158723, 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)
2021-09-13 20:29:55 DEBUG (MainThread) [custom_components.govee.light] Finished fetching govee data in 0.158 seconds (success: True)
2021-09-13 20:30:05 DEBUG (MainThread) [custom_components.govee.light] _async_update
2021-09-13 20:30:05 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] get_states
2021-09-13 20:30:05 DEBUG (MainThread) [govee_api_laggat.api] Rate limit total: 100, remaining: 99 in 59.583818197250366 seconds
2021-09-13 20:30:05 DEBUG (MainThread) [govee_api_laggat.api] state returned from API: {'data': {'device': 'XX:XX:XX:XX:XX:XX:XX:XX', 'model': 'H6199', 'properties': [{'online': True}, {'powerState': 'off'}, {'brightness': 100}, {'color': {'r': 255, 'b': 156, 'g': 211}}]}, 'message': 'Success', 'code': 200}, resulting state object: GoveeDevice(device='XX:XX:XX:XX:XX:XX:XX:XX', model='H6199', device_name='Living Room TV Ambient', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=False, brightness=254, color=(255, 211, 156), color_temp=0, timestamp=1631579405.450259, 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)
2021-09-13 20:30:05 DEBUG (MainThread) [custom_components.govee.light] Finished fetching govee data in 0.448 seconds (success: True)
2021-09-13 20:30:15 DEBUG (MainThread) [custom_components.govee.light] _async_update
2021-09-13 20:30:15 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] get_states
2021-09-13 20:30:15 DEBUG (MainThread) [govee_api_laggat.api] Rate limit total: 100, remaining: 98 in 49.85759902000427 seconds
2021-09-13 20:30:15 DEBUG (MainThread) [govee_api_laggat.api] state returned from API: {'data': {'device': 'XX:XX:XX:XX:XX:XX:XX:XX', 'model': 'H6199', 'properties': [{'online': True}, {'powerState': 'off'}, {'brightness': 100}, {'color': {'r': 255, 'b': 156, 'g': 211}}]}, 'message': 'Success', 'code': 200}, resulting state object: GoveeDevice(device='XX:XX:XX:XX:XX:XX:XX:XX', model='H6199', device_name='Living Room TV Ambient', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=False, brightness=254, color=(255, 211, 156), color_temp=0, timestamp=1631579415.176585, 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)
2021-09-13 20:30:15 DEBUG (MainThread) [custom_components.govee.light] Finished fetching govee data in 0.175 seconds (success: True)
2021-09-13 20:30:25 DEBUG (MainThread) [custom_components.govee.light] _async_update
2021-09-13 20:30:25 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] get_states
2021-09-13 20:30:25 DEBUG (MainThread) [govee_api_laggat.api] Rate limit total: 100, remaining: 97 in 39.86404204368591 seconds
2021-09-13 20:30:25 DEBUG (MainThread) [govee_api_laggat.api] state returned from API: {'data': {'device': 'XX:XX:XX:XX:XX:XX:XX:XX', 'model': 'H6199', 'properties': [{'online': True}, {'powerState': 'off'}, {'brightness': 100}, {'color': {'r': 255, 'b': 156, 'g': 211}}]}, 'message': 'Success', 'code': 200}, resulting state object: GoveeDevice(device='XX:XX:XX:XX:XX:XX:XX:XX', model='H6199', device_name='Living Room TV Ambient', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=False, brightness=254, color=(255, 211, 156), color_temp=0, timestamp=1631579425.169308, 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)
2021-09-13 20:30:25 DEBUG (MainThread) [custom_components.govee.light] Finished fetching govee data in 0.168 seconds (success: True)
2021-09-13 20:30:35 DEBUG (MainThread) [custom_components.govee.light] _async_update
2021-09-13 20:30:35 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] get_states
2021-09-13 20:30:35 DEBUG (MainThread) [govee_api_laggat.api] Rate limit total: 100, remaining: 99 in 59.859013080596924 seconds
2021-09-13 20:30:35 DEBUG (MainThread) [govee_api_laggat.api] state returned from API: {'data': {'device': 'XX:XX:XX:XX:XX:XX:XX:XX', 'model': 'H6199', 'properties': [{'online': True}, {'powerState': 'off'}, {'brightness': 100}, {'color': {'r': 255, 'b': 156, 'g': 211}}]}, 'message': 'Success', 'code': 200}, resulting state object: GoveeDevice(device='XX:XX:XX:XX:XX:XX:XX:XX', model='H6199', device_name='Living Room TV Ambient', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=False, brightness=254, color=(255, 211, 156), color_temp=0, timestamp=1631579435.165063, 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)
2021-09-13 20:30:35 DEBUG (MainThread) [custom_components.govee.light] Finished fetching govee data in 0.163 seconds (success: True)
2021-09-13 20:30:45 DEBUG (MainThread) [custom_components.govee.light] _async_update
2021-09-13 20:30:45 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] get_states
2021-09-13 20:30:45 DEBUG (MainThread) [govee_api_laggat.api] Rate limit total: 100, remaining: 96 in 19.80396604537964 seconds
2021-09-13 20:30:45 DEBUG (MainThread) [govee_api_laggat.api] state returned from API: {'data': {'device': 'XX:XX:XX:XX:XX:XX:XX:XX', 'model': 'H6199', 'properties': [{'online': True}, {'powerState': 'off'}, {'brightness': 100}, {'color': {'r': 255, 'b': 156, 'g': 211}}]}, 'message': 'Success', 'code': 200}, resulting state object: GoveeDevice(device='XX:XX:XX:XX:XX:XX:XX:XX', model='H6199', device_name='Living Room TV Ambient', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=False, brightness=254, color=(255, 211, 156), color_temp=0, timestamp=1631579445.229431, 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)
2021-09-13 20:30:45 DEBUG (MainThread) [custom_components.govee.light] Finished fetching govee data in 0.227 seconds (success: True)
2021-09-13 20:30:49 WARNING (MainThread) [homeassistant.components.automation.all_hs210_extra_nudge] Integration - HS210 "Extra Nudge" Upstairs Hallway: Already running
2021-09-13 20:30:49 WARNING (MainThread) [homeassistant.components.automation.integration_hs210_extra_nudge_kitchen_hallway] Integration - HS210 "Extra Nudge" Kitchen Hallway: Already running
2021-09-13 20:30:49 WARNING (MainThread) [homeassistant.components.automation.integration_hs210_extra_nudge_front_door_hallway] Integration - HS210 "Extra Nudge" Front Door Hallway: Already running
2021-09-13 20:30:49 WARNING (MainThread) [homeassistant.components.automation.integration_hs210_extra_nudge_basement_hallway] Integration - HS210 "Extra Nudge" Basement Hallway: Already running
2021-09-13 20:30:55 DEBUG (MainThread) [custom_components.govee.light] _async_update
2021-09-13 20:30:55 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] get_states
2021-09-13 20:30:55 DEBUG (MainThread) [govee_api_laggat.api] Rate limit total: 100, remaining: 95 in 9.857483148574829 seconds
2021-09-13 20:30:55 DEBUG (MainThread) [govee_api_laggat.api] state returned from API: {'data': {'device': 'XX:XX:XX:XX:XX:XX:XX:XX', 'model': 'H6199', 'properties': [{'online': True}, {'powerState': 'off'}, {'brightness': 100}, {'color': {'r': 255, 'b': 156, 'g': 211}}]}, 'message': 'Success', 'code': 200}, resulting state object: GoveeDevice(device='XX:XX:XX:XX:XX:XX:XX:XX', model='H6199', device_name='Living Room TV Ambient', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=False, brightness=254, color=(255, 211, 156), color_temp=0, timestamp=1631579455.176311, 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)
2021-09-13 20:30:55 DEBUG (MainThread) [custom_components.govee.light] Finished fetching govee data in 0.175 seconds (success: True)
2021-09-13 20:31:05 DEBUG (MainThread) [custom_components.govee.light] _async_update
2021-09-13 20:31:05 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] get_states
2021-09-13 20:31:05 DEBUG (MainThread) [govee_api_laggat.api] Rate limit total: 100, remaining: 94 in -0.1329197883605957 seconds
2021-09-13 20:31:05 DEBUG (MainThread) [govee_api_laggat.api] state returned from API: {'data': {'device': 'XX:XX:XX:XX:XX:XX:XX:XX', 'model': 'H6199', 'properties': [{'online': True}, {'powerState': 'off'}, {'brightness': 100}, {'color': {'r': 255, 'b': 156, 'g': 211}}]}, 'message': 'Success', 'code': 200}, resulting state object: GoveeDevice(device='XX:XX:XX:XX:XX:XX:XX:XX', model='H6199', device_name='Living Room TV Ambient', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=False, brightness=254, color=(255, 211, 156), color_temp=0, timestamp=1631579465.166493, 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)
2021-09-13 20:31:05 DEBUG (MainThread) [custom_components.govee.light] Finished fetching govee data in 0.165 seconds (success: True)
2021-09-13 20:31:15 DEBUG (MainThread) [custom_components.govee.light] _async_update
2021-09-13 20:31:15 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] get_states
2021-09-13 20:31:15 DEBUG (MainThread) [govee_api_laggat.api] Rate limit total: 100, remaining: 99 in 59.85931205749512 seconds
2021-09-13 20:31:15 DEBUG (MainThread) [govee_api_laggat.api] state returned from API: {'data': {'device': 'XX:XX:XX:XX:XX:XX:XX:XX', 'model': 'H6199', 'properties': [{'online': True}, {'powerState': 'off'}, {'brightness': 100}, {'color': {'r': 255, 'b': 156, 'g': 211}}]}, 'message': 'Success', 'code': 200}, resulting state object: GoveeDevice(device='XX:XX:XX:XX:XX:XX:XX:XX', model='H6199', device_name='Living Room TV Ambient', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=False, brightness=254, color=(255, 211, 156), color_temp=0, timestamp=1631579475.17221, 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)
2021-09-13 20:31:15 DEBUG (MainThread) [custom_components.govee.light] Finished fetching govee data in 0.170 seconds (success: True)
2021-09-13 20:31:25 DEBUG (MainThread) [custom_components.govee.light] _async_update
2021-09-13 20:31:25 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] get_states
2021-09-13 20:31:25 DEBUG (MainThread) [govee_api_laggat.api] Rate limit total: 100, remaining: 98 in 49.85133504867554 seconds
2021-09-13 20:31:25 DEBUG (MainThread) [govee_api_laggat.api] state returned from API: {'data': {'device': 'XX:XX:XX:XX:XX:XX:XX:XX', 'model': 'H6199', 'properties': [{'online': True}, {'powerState': 'off'}, {'brightness': 100}, {'color': {'r': 255, 'b': 156, 'g': 211}}]}, 'message': 'Success', 'code': 200}, resulting state object: GoveeDevice(device='XX:XX:XX:XX:XX:XX:XX:XX', model='H6199', device_name='Living Room TV Ambient', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=False, brightness=254, color=(255, 211, 156), color_temp=0, timestamp=1631579485.180539, 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)
2021-09-13 20:31:25 DEBUG (MainThread) [custom_components.govee.light] Finished fetching govee data in 0.179 seconds (success: True)

Setting device mode

Is your feature request related to a problem? Please describe.
I have a TV backlight strip. I'd like to be able to change between solid color and video (sync to screen) modes, but Govee does not currently provide a field for this in their official API.

Describe the solution you'd like
I contacted Govee to see if they'd be willing to add this but they said no:

I am sorry that we do not have any plans to release the scences and modes now.
So it could not support mode control through API.
Your udnerstanding is highly appreciated.

I figured it wouldn't hurt if you could reach out as well since you have ~500 users 😛.

Describe alternatives you've considered
Sniffing Bluetooth traffic and just replaying the mode-setting packet.

Additional context
Might be related to #36.

Can not found device in database

Version of the custom_component

Latest

Configuration

This error originated from a custom integration.

Logger: custom_components.govee.light
Source: custom_components/govee/light.py:117 
Integration: Govee (documentation, issues) 
First occurred: 12:00:06 PM (1597 occurrences) 
Last logged: 4:26:06 PM

update failed for 2A:28:C3:33:36:32:5E:80: API-Error 400: {"status":400,"errors":"Can not found device in database,info:1630527926063,22,43"}
update failed for 2A:28:C3:33:36:32:5E:80: API-Error 400: {"status":400,"errors":"Can not found device in database,info:1630527936064,36,63"}
update failed for 2A:28:C3:33:36:32:5E:80: API-Error 400: {"status":400,"errors":"Can not found device in database,info:1630527946093,30,61"}
update failed for 2A:28:C3:33:36:32:5E:80: API-Error 400: {"status":400,"errors":"Can not found device in database,info:1630527956092,21,44"}
update failed for 2A:28:C3:33:36:32:5E:80: API-Error 400: {"status":400,"errors":"Can not found device in database,info:1630527966110,51,76"}

Describe the bug

Device and entity are discovered but trying to control them through Hass is not working

Debug log


Logger: govee_api_laggat.govee_api_laggat
Source: /usr/local/lib/python3.9/site-packages/govee_api_laggat/govee_api_laggat.py:446 
First occurred: 12:00:06 PM (1597 occurrences) 
Last logged: 4:26:06 PM

error getting state for device GoveeDevice(device='2A:28:C3:33:36:32:5E:80', model='H6054', device_name='Monitor Lights', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=True, brightness=211, color=(0, 0, 0), color_temp=0, timestamp=1630525911.564094, source=<GoveeSource.HISTORY: 'history'>, error='API-Error 400: {"status":400,"errors":"Can not found device in database,info:1630527926063,22,43"}', lock_set_until=1630525912.563606, lock_get_until=1630525913.563618, learned_set_brightness_max=100, learned_get_brightness_max=None, before_set_brightness_turn_on=False, config_offline_is_off=False): API-Error 400: {"status":400,"errors":"Can not found device in database,info:1630527926063,22,43"}
error getting state for device GoveeDevice(device='2A:28:C3:33:36:32:5E:80', model='H6054', device_name='Monitor Lights', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=True, brightness=211, color=(0, 0, 0), color_temp=0, timestamp=1630525911.564094, source=<GoveeSource.HISTORY: 'history'>, error='API-Error 400: {"status":400,"errors":"Can not found device in database,info:1630527936064,36,63"}', lock_set_until=1630525912.563606, lock_get_until=1630525913.563618, learned_set_brightness_max=100, learned_get_brightness_max=None, before_set_brightness_turn_on=False, config_offline_is_off=False): API-Error 400: {"status":400,"errors":"Can not found device in database,info:1630527936064,36,63"}
error getting state for device GoveeDevice(device='2A:28:C3:33:36:32:5E:80', model='H6054', device_name='Monitor Lights', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=True, brightness=211, color=(0, 0, 0), color_temp=0, timestamp=1630525911.564094, source=<GoveeSource.HISTORY: 'history'>, error='API-Error 400: {"status":400,"errors":"Can not found device in database,info:1630527946093,30,61"}', lock_set_until=1630525912.563606, lock_get_until=1630525913.563618, learned_set_brightness_max=100, learned_get_brightness_max=None, before_set_brightness_turn_on=False, config_offline_is_off=False): API-Error 400: {"status":400,"errors":"Can not found device in database,info:1630527946093,30,61"}
error getting state for device GoveeDevice(device='2A:28:C3:33:36:32:5E:80', model='H6054', device_name='Monitor Lights', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=True, brightness=211, color=(0, 0, 0), color_temp=0, timestamp=1630527953.070667, source=<GoveeSource.HISTORY: 'history'>, error='API-Error 400: {"status":400,"errors":"Can not found device in database,info:1630527956092,21,44"}', lock_set_until=1630527954.070055, lock_get_until=1630527955.070075, learned_set_brightness_max=100, learned_get_brightness_max=None, before_set_brightness_turn_on=False, config_offline_is_off=False): API-Error 400: {"status":400,"errors":"Can not found device in database,info:1630527956092,21,44"}
error getting state for device GoveeDevice(device='2A:28:C3:33:36:32:5E:80', model='H6054', device_name='Monitor Lights', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=True, brightness=211, color=(0, 0, 0), color_temp=0, timestamp=1630527960.537015, source=<GoveeSource.HISTORY: 'history'>, error='API-Error 400: {"status":400,"errors":"Can not found device in database,info:1630527966110,51,76"}', lock_set_until=1630527961.536489, lock_get_until=1630527962.536506, learned_set_brightness_max=100, learned_get_brightness_max=None, before_set_brightness_turn_on=False, config_offline_is_off=False): API-Error 400: {"status":400,"errors":"Can not found device in database,info:1630527966110,51,76"}

Creating a new release.

Please can you create a new release with the new code regarding attributes?

I'd also like to discuss the possibility of removing the Govee state entity.

Edit: I'd be happy to work on this and help deploy this but would need contributor access.

Integration doesn't reconnect after error during HA statrup

Version of the custom_component

Describe the bug

Integration doesn't reconnect to Govee servers after error during statrup. There was 503 error from govee api.
After that there is also no option to reload integration in HA panel.
Devices remain unavailable until HA restart.

Debug log

2020-11-25 18:00:00 WARNING (MainThread) [custom_components.govee] Could not connect to Govee API: API-Error 503: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
</body>
</html>

2020-11-25 18:00:00 ERROR (MainThread) [homeassistant.config_entries] Error unloading entry govee for light
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 321, in async_unload
    result = await component.async_unload_entry(hass, self)  # type: ignore
  File "/usr/src/homeassistant/homeassistant/components/light/__init__.py", line 270, in async_unload_entry
    return await hass.data[DOMAIN].async_unload_entry(entry)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 172, in async_unload_entry
    raise ValueError("Config entry was never loaded!")
ValueError: Config entry was never loaded!

2020-11-25 18:00:00 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry govee for govee
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 236, in async_setup
    result = await component.async_setup_entry(hass, self)  # type: ignore
  File "/config/custom_components/govee/__init__.py", line 61, in async_setup_entry
    raise PlatformNotReady()
homeassistant.exceptions.PlatformNotReady

No more entries in logs for this component

Integration Name Change - s/Govee LED Strips/Govee/

Currently the integration is called "Govee LED Strips" however as already shown/proven in the forum(s) and I can also confirm, the H5081 plug works, so maybe a better name for the Integration is simply "Govee" as it does more than LED strips...

Document installation without HACS

I'm running HA in Kubernetes, and the standard image doesn't come with aiogithubapi queueman, which makes installing HACS a pain. Is there any way to install this without HACS to my /config directory?

Support BLE control

Is your feature request related to a problem? Please describe.
Internet connection and Govee API aren't always reliable, and the limit of one request per second makes some uses impossible (as blinking fast). Also features are missing in the API which could possibly supported using BLE.

Describe the solution you'd like
I want to be able to control the lights using BLE from a Raspberry Pi 4 using Home Assistant. For now we stick to the base functionality on/off/color/brightness and extend later. I also want the user to opt-out from API use and use BLE only, or provide a combined approach as the Govee android app does.

Describe alternatives you've considered
Custom LED strips with arduino? :)

Additional context
see feature branch: feature/ble

MacOS Govee API Key request goes into error 2.0b

Version of the custom_component

0.2.0b
@LaggAt
45
1
hacs
Project Maintenance
BuyMeCoffee

Component to integrate with Govee.

-->

Configuration

Add your logs here.

Logger: custom_components.govee.config_flow
Source: custom_components/govee/config_flow.py:34 
Integration: Govee (documentation, issues) 
First occurred: 9:24:08 PM (2 occurrences) 
Last logged: 9:32:41 PM

Cannot connect: API: API-Error -1: _api_request_internal: error from aiohttp: ClientConnectorCertificateError(ConnectionKey(host='developer-api.govee.com', port=443, is_ssl=True, ssl=None, proxy=None, proxy_auth=None, proxy_headers_hash=None), SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)'))
Traceback (most recent call last):
  File "/Users/gary/.homeassistant/custom_components/govee/config_flow.py", line 68, in async_step_user
    user_input = await validate_api_key(self.hass, user_input)
  File "/Users/gary/.homeassistant/custom_components/govee/config_flow.py", line 34, in validate_api_key
    raise CannotConnect(error)
custom_components.govee.config_flow.CannotConnect: API: API-Error -1: _api_request_internal: error from aiohttp: ClientConnectorCertificateError(ConnectionKey(host='developer-api.govee.com', port=443, is_ssl=True, ssl=None, proxy=None, proxy_auth=None, proxy_headers_hash=None), SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)'))

## Describe the bug
A clear and concise description of what the bug is.

Integration doesn't reconnect after error

Version of the custom_component

v0.1.6-beta.1

Configuration

image

Describe the bug

My device becomes unavailable permanently after an error. Even ther is an entry sayint that API i back online.
Need to reload integration or restart HA to get it working.

Debug log


2021-01-11 21:43:10 WARNING (MainThread) [custom_components.govee] API is offline.
2021-01-11 21:43:10 WARNING (MainThread) [govee_api_laggat.govee_api_laggat] control XX:XX:XX:XX:XX:XX:XX not possible: API-Error -1 on command {'name': 'turn', 'value': 'off'}: _api_request_internal: error from aiohttp: ClientConnectorError(ConnectionKey(host='developer-api.govee.com', port=443, is_ssl=True, ssl=None, proxy=None, proxy_auth=None, proxy_headers_hash=None), gaierror(-3, 'Try again')) for device GoveeDevice(device='XX:XX:XX:XX:XX:XX:XX', model='H6104', device_name='TV ambient light', controllable=True, retrievable=False, 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=0, color=(0, 0, 0), color_temp=0, timestamp=1610395656.214468, source='history', error=None, lock_set_until=0, lock_get_until=0, learned_set_brightness_max=100, learned_get_brightness_max=-1, before_set_brightness_turn_on=False, config_offline_is_off=False)
2021-01-11 21:43:22 WARNING (SyncWorker_36) [urllib3.connectionpool] Retrying (Retry(total=2, connect=None, read=False, redirect=None, status=3)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x6fd0ed90>: Failed to establish a new connection: [Errno 101] Network unreachable')': /v1/me/player
2021-01-11 21:43:24 WARNING (MainThread) [custom_components.govee] API is back online.

HA doesn't list integration anymore after update

Version of the custom_component

  • Home Assistant 2021.9.6
  • HACS 1.15.2
  • hacs-govee 0.2.1

Describe the bug

After updating to the latest Home Assistant 2021.9.6 the integration did not work any more. After deleting the integration, I wanted to add it again, but it cannot be found at configuration > integration > add integration like described at the readme. Versions are currently the latest available, as stated above. I also tried uninstalling and doing a fresh installation of hacs-govee from HACS, which did not fix the issue.

H7061 - cannot control individual flood lights

This is a single controller that can control 2 or 4 individual flood lights. Through the native Govee app, they can be controlled individually (color, brightness), but not through HA. Not sure if this is a limitation of the API, but wondering if there is a path to fixing it.

Govee H6159 stopped working

Version of the custom_component

0.2.1

Configuration

No custom yaml code

Add your logs here.

No issues in logs

Describe the bug

A clear and concise description of what the bug is.
The device stopped working.
I tried to delete the integration, re install, get a new API key with no luck.
On the Govee App I can do everything with the device, the device is connected to the Wifi network (the same wifi network on which HA is running).
do you have any suggestions to try?

Debug log


Add your logs here.

Color Temperature Information lost when applying scene

Version of the custom_component

0.2.1

Configuration

- id: '1633882911270'
  name: dimmed light
  entities:
    light.lille_fillsta:
      min_mireds: 111
      max_mireds: 500
      supported_color_modes:
      - color_temp
      - hs
      color_mode: hs
      brightness: 3
      hs_color:
      - 0
      - 0
      rgb_color:
      - 255
      - 255
      - 255
      xy_color:
      - 0.323
      - 0.329
      color_temp: 500
      rate_limit_total: 100
      rate_limit_remaining: 94
      rate_limit_reset_seconds: 9.698782920837402
      rate_limit_reset: 1633970643.102669
      rate_limit_on: 5
      manufacturer: Govee
      model: H6003
      friendly_name: LILLE FILLSTA
      supported_features: 19
      state: 'on'

Describe the bug

I setup a scene with my H6003, where it is dimmed and has maximum color temperature. However, when I execute the scene, the light returns to the minimum color temperature. This also happens with color temperatures that are not the maximum, or when the light is set to full brightness.

Debug log

2021-10-11 18:49:03 DEBUG (MainThread) [custom_components.govee.light] _async_update
2021-10-11 18:49:03 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] get_states
2021-10-11 18:49:03 DEBUG (MainThread) [govee_api_laggat.api] Rate limit total: 100, remaining: 97 in 29.71827507019043 seconds
2021-10-11 18:49:03 DEBUG (MainThread) [govee_api_laggat.api] unknown state property '{'colorTem': 2000}'
2021-10-11 18:49:03 DEBUG (MainThread) [govee_api_laggat.api] state returned from API: {'data': {'device': 'ee:5f:7c:a6:b0:c0:df:62', 'model': 'H6003', 'properties': [{'online': True}, {'powerState': 'on'}, {'brightness': 98}, {'colorTemInKelvin': 2000}, {'colorTem': 2000}]}, 'message': 'Success', 'code': 200}, resulting state object: GoveeDevice(device='ee:5f:7c:a6:b0:c0:df:62', model='H6003', device_name='LILLE FILLSTA', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=True, brightness=248, color=(0, 0, 0), color_temp=2000, timestamp=1633970943.371932, source=<GoveeSource.API: 'api'>, error=None, lock_set_until=1633970820.589437, lock_get_until=1633970821.589458, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False)
2021-10-11 18:49:03 DEBUG (MainThread) [custom_components.govee.light] Finished fetching govee data in 0.370 seconds (success: True)
2021-10-11 18:49:13 DEBUG (MainThread) [custom_components.govee.light] _async_update
2021-10-11 18:49:13 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] get_states
2021-10-11 18:49:13 DEBUG (MainThread) [govee_api_laggat.api] Rate limit total: 100, remaining: 99 in 59.66534900665283 seconds
2021-10-11 18:49:13 DEBUG (MainThread) [govee_api_laggat.api] unknown state property '{'colorTem': 2000}'
2021-10-11 18:49:13 DEBUG (MainThread) [govee_api_laggat.api] state returned from API: {'data': {'device': 'ee:5f:7c:a6:b0:c0:df:62', 'model': 'H6003', 'properties': [{'online': True}, {'powerState': 'on'}, {'brightness': 98}, {'colorTemInKelvin': 2000}, {'colorTem': 2000}]}, 'message': 'Success', 'code': 200}, resulting state object: GoveeDevice(device='ee:5f:7c:a6:b0:c0:df:62', model='H6003', device_name='LILLE FILLSTA', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=True, brightness=248, color=(0, 0, 0), color_temp=2000, timestamp=1633970953.442961, source=<GoveeSource.API: 'api'>, error=None, lock_set_until=1633970820.589437, lock_get_until=1633970821.589458, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False)
2021-10-11 18:49:13 DEBUG (MainThread) [custom_components.govee.light] Finished fetching govee data in 0.441 seconds (success: True)
2021-10-11 18:49:17 DEBUG (MainThread) [custom_components.govee.light] async_turn_on for Govee light ee:5f:7c:a6:b0:c0:df:62, kwargs: {'brightness': 3, 'hs_color': (0.0, 0.0)}
2021-10-11 18:49:17 DEBUG (MainThread) [govee_api_laggat.api] control ee:5f:7c:a6:b0:c0:df:62: {'name': 'color', 'value': {'r': 255, 'g': 255, 'b': 255}}
2021-10-11 18:49:17 DEBUG (MainThread) [govee_api_laggat.api] Rate limit total: 100, remaining: 96 in 15.376769065856934 seconds
2021-10-11 18:49:17 DEBUG (MainThread) [govee_api_laggat.api] control ee:5f:7c:a6:b0:c0:df:62: {'name': 'brightness', 'value': 1}
2021-10-11 18:49:17 DEBUG (MainThread) [govee_api_laggat.api] control ee:5f:7c:a6:b0:c0:df:62 is locked for 0.998769998550415 seconds. Command waiting: {'name': 'brightness', 'value': 1}
2021-10-11 18:49:18 DEBUG (MainThread) [govee_api_laggat.api] Rate limit total: 100, remaining: 98 in 54.21823215484619 seconds
2021-10-11 18:49:23 DEBUG (MainThread) [custom_components.govee.light] _async_update
2021-10-11 18:49:23 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] get_states
2021-10-11 18:49:23 DEBUG (MainThread) [govee_api_laggat.api] Rate limit total: 100, remaining: 97 in 49.73490810394287 seconds
2021-10-11 18:49:23 DEBUG (MainThread) [govee_api_laggat.api] state returned from API: {'data': {'device': 'ee:5f:7c:a6:b0:c0:df:62', 'model': 'H6003', 'properties': [{'online': True}, {'powerState': 'on'}, {'brightness': 1}, {'color': {'r': 255, 'b': 255, 'g': 255}}]}, 'message': 'Success', 'code': 200}, resulting state object: GoveeDevice(device='ee:5f:7c:a6:b0:c0:df:62', model='H6003', device_name='LILLE FILLSTA', controllable=True, retrievable=True, support_cmds=['turn', 'brightness', 'color', 'colorTem'], support_turn=True, support_brightness=True, support_color=True, support_color_tem=True, online=True, power_state=True, brightness=2, color=(255, 255, 255), color_temp=0, timestamp=1633970963.373293, source=<GoveeSource.API: 'api'>, error=None, lock_set_until=1633970959.888917, lock_get_until=1633970960.888934, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False)
2021-10-11 18:49:23 DEBUG (MainThread) [custom_components.govee.light] Finished fetching govee data in 0.371 seconds (success: True)

When set to max temp, the light is reported to have a temperature of 2000, maybe that has something to do with it?

Update failed bad gateway

Hello

Its about few days that i see this erorr in the home assistant log and the entity become unavaible, but not in the govee app. This Is the log:

update failed for xx:xx:xx:xx:xx:xx:xx:xx: API-Error 400: {"message":"Device Not Found","status":400}
update failed for xx:xx:xx:xx:xx:xx:xx:xx: API-Error 502: <title>502 Bad Gateway</title>

502 Bad Gateway

And

error getting state for device GoveeDevice(device='xx:xx:xx:xx:xx:xx:xx:xx', model='H6199', device_name='ambilight tv', 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=137, color=(217, 225, 255), color_temp=0, timestamp=1646314286.30328, source=<GoveeSource.API: 'api'>, error='API-Error 400: {"message":"Device Not Found","status":400}', lock_set_until=1646261818.676849, lock_get_until=1646261819.676884, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False): API-Error 400: {"message":"Device Not Found","status":400}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.