Govee integration

Release is available. Thanks for reporting.
I assume this also fixes the issue not showing Govee in integrations for some time after installing. Searched for that a long time now :smiley:

i have the H6182, this is dropping the brightness in HA to 40%. device is still 100. Any chance of a little help with this please?

1 Like

you might try to switch brightness to highest value and wait a bit, integration should learn the ranges the specific led uses.

Switch it to the highest on the Govee app then on ha? And whatā€™s a bit? Few mins few hours?
So far it still keeps dropping back

1 Like

in HA, and just some seconds until a state is pulled.

In that case Iā€™ll need debug logs, thereā€™s an howto in the first post.

I will check that out tomorrow and see if I can work it out to send

1 Like

Tell me what to doWhen Ihave govee h6199 I try to connect between it and the phone via bluetooth, I get this messageThe device has been registered/bound by another account. Unbind it to link to a new account.

1 Like

You should ask this at Govee support, I can only support Integration questions.

Umm, after installing the govee in hacs, i canā€™t find the integration from the ui listā€¦ Has it been removed? Or do i need to activate something?

1 Like

You need to add the integration in Configuration / Integrations. There you can enter your api key.

For instructions see first post.

FYI, the H7020 outdoor string lights to work with this too. At least for on/off.

2 Likes

i am also getting the 40% showing in HA, a few seconds after setting the brightness to 100% via HA. The bigger problem for me is that I canā€™t set the brightness below 7% via HA. When I set the brightness to 1% via govee app my states in HA shows brightness as -3. If I set brightness to 1 it turns itself off. I use the light as a night light for my son and he likes 1% :slight_smile:

Iā€™ll try to post my debug logs shortly or tonight

2021-07-28 16:08:03 DEBUG (MainThread) [custom_components.govee.light] _async_update
2021-07-28 16:08:03 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] get_states
2021-07-28 16:08:03 DEBUG (MainThread) [govee_api_laggat.api] Rate limit total: 100, remaining: 97 in 24.682185888290405 seconds
2021-07-28 16:08:03 DEBUG (MainThread) [govee_api_laggat.api] state returned from API: {'data': {'device': '5C:XX:XX:XX:XX', 'model': 'H6110', 'properties': [{'online': True}, {'powerState': 'on'}, {'brightness': 1}, {'color': {'r': 255, 'b': 0, 'g': 0}}]}, 'message': 'Success', 'code': 200}, resulting state object: GoveeDevice(device='5C:XX:XX:XX:XX', model='H6110', device_name='Light', 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=1, color=(255, 0, 0), color_temp=0, timestamp=1627488483.103119, source=<GoveeSource.API: 'api'>, error=None, lock_set_until=1627488466.053216, lock_get_until=1627488467.053223, learned_set_brightness_max=100, learned_get_brightness_max=254, before_set_brightness_turn_on=False, config_offline_is_off=False)
2021-07-28 16:08:03 DEBUG (MainThread) [custom_components.govee.light] Finished fetching govee data in 0.102 seconds
2021-07-28 16:08:13 DEBUG (MainThread) [custom_components.govee.light] _async_update
2021-07-28 16:08:13 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] get_states
2021-07-28 16:08:13 DEBUG (MainThread) [govee_api_laggat.api] Rate limit total: 100, remaining: 95 in 9.86521291732788 seconds
2021-07-28 16:08:13 DEBUG (MainThread) [govee_api_laggat.api] state returned from API: {'data': {'device': '5C:XX:XX:XX:XX', 'model': 'H6110', 'properties': [{'online': True}, {'powerState': 'on'}, {'brightness': 1}, {'color': {'r': 255, 'b': 0, 'g': 0}}]}, 'message': 'Success', 'code': 200}, resulting state object: GoveeDevice(device='5C:XX:XX:XX:XX', model='H6110', device_name='Light', 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=1, color=(255, 0, 0), color_temp=0, timestamp=1627488493.178506, source=<GoveeSource.API: 'api'>, error=None, lock_set_until=1627488466.053216, lock_get_until=1627488467.053223, learned_set_brightness_max=100, learned_get_brightness_max=254, before_set_brightness_turn_on=False, config_offline_is_off=False)
2021-07-28 16:08:13 DEBUG (MainThread) [custom_components.govee.light] Finished fetching govee data in 0.178 seconds```

ok. so my learning yaml file was set as get_brightness_max: 254 which was making everything get divided by 254 as per the logic. I manually adjusted the value to 100, restarted, and voila my values seem to be staying put.

however i am still having the same issue when setting the low brightness, i set to the lowest on the slider in HA and the app sets it to 7%. If I set it via govee to 1% this pops up in the log with a - brightness, either -4 or -11ā€¦ Still if i set brightness to 1 it is off. If i set it to 2 it goes to 7% in goveeā€¦

Is there a brightness_min i need to set?

2021-07-28 16:24:16 DEBUG (MainThread) [custom_components.govee.light] _async_update
2021-07-28 16:24:16 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] get_states
2021-07-28 16:24:16 DEBUG (MainThread) [govee_api_laggat.api] Rate limit total: 100, remaining: 99 in 59.92808389663696 seconds
2021-07-28 16:24:16 DEBUG (MainThread) [govee_api_laggat.api] state returned from API: {'data': {'device': '5C:XX:XX:XX:XX', 'model': 'H6110', 'properties': [{'online': True}, {'powerState': 'on'}, {'brightness': -4}, {'color': {'r': 255, 'b': 0, 'g': 0}}]}, 'message': 'Success', 'code': 200}, resulting state object: GoveeDevice(device='5C:XX:XX:XX:XX', model='H6110', device_name='Light', 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=-11, color=(255, 0, 0), color_temp=0, timestamp=1627489456.10377, source=<GoveeSource.API: 'api'>, error=None, lock_set_until=1627489396.502493, lock_get_until=1627489397.502496, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False)
2021-07-28 16:24:16 DEBUG (MainThread) [custom_components.govee.light] Finished fetching govee data in 0.103 seconds
2021-07-28 16:24:26 DEBUG (MainThread) [custom_components.govee.light] _async_update
2021-07-28 16:24:26 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] get_states
2021-07-28 16:24:26 DEBUG (MainThread) [govee_api_laggat.api] Rate limit total: 100, remaining: 95 in -0.10951399803161621 seconds
2021-07-28 16:24:26 DEBUG (MainThread) [govee_api_laggat.api] state returned from API: {'data': {'device': '5C:XX:XX:XX:XX', 'model': 'H6110', 'properties': [{'online': True}, {'powerState': 'on'}, {'brightness': -4}, {'color': {'r': 255, 'b': 0, 'g': 0}}]}, 'message': 'Success', 'code': 200}, resulting state object: GoveeDevice(device='5C:XX:XX:XX:XX', model='H6110', device_name='Light', 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=-11, color=(255, 0, 0), color_temp=0, timestamp=1627489466.146496, source=<GoveeSource.API: 'api'>, error=None, lock_set_until=1627489396.502493, lock_get_until=1627489397.502496, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False)
2021-07-28 16:24:26 DEBUG (MainThread) [custom_components.govee.light] Finished fetching govee data in 0.145 seconds

Has anyone done a teardown of the outdoor string lights to see what theyā€™re using?
Itā€™d be really interesting to see if theyā€™re the individually addressable chips that WLED can talk to.
Iā€™m tempted to take a peek and try it out, it could be an expensive risk but the build quality is nice and it fits the bill for a couple of projects Iā€™ve had in mindā€¦

1 Like

Has anyone looked at getting the Govee water sensors working with this integration? I assume they are sending data through the same API.

1 Like

Love the integration!! Thank you so much for the hard work on this project! Iā€™m sure itā€™ll only get better. I am curious if there are any plans to add accessibility to the segmented RGBIC (ex. H6143). They connect in HA great, just wondering if the segment function might be available eventually?

Thanks in advance!

1 Like

Let me start off by saying that I am completely new to home assistant. I have a govee product which I am trying to link with HA. When going to the integration section in HA and search for govee, it does not show up. Is there a library in which I have to manually download? Thanks for the help.

1 Like

Thx, added in first post.

Iā€™m having the same issue, if you find anything out please let me know

Uhm, will they be as lights in Home assistant? Just wondering.
Do you have API docs for these?