Govee integration

Im using HomeAssistant on my SynologyNAS/Docker and I have the Govee integration from HACS going. I can see my H6199 by Govee in devices and for automations it turns on when my RokuTV does but for the life of me I cant seem to get any automation working that turns the LED Strip OFF… wondering if anyone else has had this same issue?

Hi, I try to catch-up while beeing a bit busy these days, so …

Without Internet access from home assistant AND the devices we cannot do anything. Up to now, we just control the devices using the API available in the internet.

scenes are still not supported on the API.

Great to hear! Welcome.

If re-registering in API (and restarting home assistant) doesn’t help, we 're a bit out of options.
The referenced issue was resolved that way. If there is still a problem - is there anything in the logs? Please enable debug logging as described in first post before checking.

Yea, still need to find some time :slight_smile: Looking forward for it too!

No probably, not that I know off. I’ve no such device (and no use for it here).
If you are into coding and want to start here we could talk and get it included.

Hi, scenes are not supported in API.

Thanks for helping the community!

At the current development stage: yes, only API is completed. Bluetooth is on progress, no idea how far it will go on RGBIC. Public knowledge is limited here.

Seems they are not available here in Europe.

I have seen some ‘automations’ that work, personally I’m into Node-Red instead. Could you share your automation to inspect it?

Hello. I’m using H619C light strip and the only functionality that’s working in HomeAssistant is on/off switching. Unfortunately, there’s no color selection or brightness available. Is that a limitation of the API or can I tweak configuration somehow to enable those?

1 Like

Welcome. Could you provide some debug logs about whats happening? Howto is described in first post.

Hello, i just got the RGB flood light, which has 4 lamps.
In the app i am able to manually change the color of each app.
But from HA, all lamps change color to the same color, are we going to be able to individually change each lamp color from HA in the future, or does it depend on the API?

2 Likes

Hi, I don’t know that one. do they show up as one device in Home Assistant? If so, they are reported as a single device, and currently we could only switch it that way.

Hello, is anyone having trouble with setting a transition on a govee led strip? When i set it like this:

    - service: light.turn_on
      target:
        entity_id: light.led_light
      data:
        brightness_pct: 100
        transition: 10

it goes straight to 100 percent. It doesnt matter if the led strip is turned on. I have H6182 model

1 Like

There is no such thing as transition in API, it’s not supported.

Оh alright, seems I’ve misunderstood

1 Like

Sorry, just now got around to enabling logs. Here’s all I’m seeing that’s related to Govee integration:

2021-12-11 11:50:02 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] govee_api_laggat v0.2.1
2021-12-11 11:50:02 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] get_devices
2021-12-11 11:50:02 DEBUG (MainThread) [govee_api_laggat.api] get_devices
2021-12-11 11:50:03 WARNING (MainThread) [custom_components.govee] API is back online.
2021-12-11 11:50:03 DEBUG (MainThread) [govee_api_laggat.api] Rate limit total: 100, remaining: 96 in 7.056859970092773 seconds
2021-12-11 11:50:03 INFO (MainThread) [custom_components.govee.learning_storage] Loaded learning information from /config/govee_learning.yaml.
2021-12-11 11:50:04 DEBUG (MainThread) [custom_components.govee.light] Setting up Govee lights
2021-12-11 11:50:04 DEBUG (MainThread) [custom_components.govee.light] _async_update
2021-12-11 11:50:04 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] get_states
2021-12-11 11:50:04 DEBUG (MainThread) [govee_api_laggat.api] Rate limit total: 100, remaining: 95 in 6.922446966171265 seconds
2021-12-11 11:50:04 DEBUG (MainThread) [govee_api_laggat.api] unknown state property '{'colorTem': 61450}'
2021-12-11 11:50:04 DEBUG (MainThread) [govee_api_laggat.api] state returned from API: {'data': {'device': 'xx:xx:xx:xx:xx:xx:xx:xx', 'model': 'H619C', 'properties': [{'online': True}, {'powerState': 'off'}, {'brightness': 100}, {'colorTemInKelvin': 61450}, {'colorTem': 61450}]}, 'message': 'Success', 'code': 200}, resulting state object: GoveeDevice(device='xx:xx:xx:xx:xx:xx:xx:xx', model='H619C', device_name='Home Theater 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=(0, 0, 0), color_temp=61450, timestamp=1639241404.078168, 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)
2021-12-11 11:50:04 DEBUG (MainThread) [custom_components.govee.light] Finished fetching govee data in 0.060 seconds (success: True)
2021-12-11 11:50:14 DEBUG (MainThread) [custom_components.govee.light] _async_update
2021-12-11 11:50:14 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] get_states
2021-12-11 11:50:14 DEBUG (MainThread) [govee_api_laggat.api] Rate limit total: 100, remaining: 95 in 6.8601460456848145 seconds
2021-12-11 11:50:14 DEBUG (MainThread) [govee_api_laggat.api] unknown state property '{'colorTem': 61450}'
2021-12-11 11:50:14 DEBUG (MainThread) [govee_api_laggat.api] state returned from API: {'data': {'device': 'xx:xx:xx:xx:xx:xx:xx:xx', 'model': 'H619C', 'properties': [{'online': True}, {'powerState': 'off'}, {'brightness': 100}, {'colorTemInKelvin': 61450}, {'colorTem': 61450}]}, 'message': 'Success', 'code': 200}, resulting state object: GoveeDevice(device='xx:xx:xx:xx:xx:xx:xx:xx', model='H619C', device_name='Home Theater 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=(0, 0, 0), color_temp=61450, timestamp=1639241414.140369, 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)
2021-12-11 11:50:14 DEBUG (MainThread) [custom_components.govee.light] Finished fetching govee data in 0.124 seconds (success: True)
2021-12-11 11:50:24 DEBUG (MainThread) [custom_components.govee.light] _async_update
2021-12-11 11:50:24 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] get_states
2021-12-11 11:50:24 DEBUG (MainThread) [govee_api_laggat.api] Rate limit total: 100, remaining: 95 in 6.965254068374634 seconds
2021-12-11 11:50:24 DEBUG (MainThread) [govee_api_laggat.api] unknown state property '{'colorTem': 61450}'
2021-12-11 11:50:24 DEBUG (MainThread) [govee_api_laggat.api] state returned from API: {'data': {'device': 'xx:xx:xx:xx:xx:xx:xx:xx', 'model': 'H619C', 'properties': [{'online': True}, {'powerState': 'off'}, {'brightness': 100}, {'colorTemInKelvin': 61450}, {'colorTem': 61450}]}, 'message': 'Success', 'code': 200}, resulting state object: GoveeDevice(device='xx:xx:xx:xx:xx:xx:xx:xx', model='H619C', device_name='Home Theater 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=(0, 0, 0), color_temp=61450, timestamp=1639241424.035333, 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)
2021-12-11 11:50:24 DEBUG (MainThread) [custom_components.govee.light] Finished fetching govee data in 0.034 seconds (success: True)
2021-12-11 11:50:34 DEBUG (MainThread) [custom_components.govee.light] _async_update
2021-12-11 11:50:34 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] get_states
2021-12-11 11:50:34 DEBUG (MainThread) [govee_api_laggat.api] Rate limit total: 100, remaining: 95 in 28.9497230052948 seconds
2021-12-11 11:50:34 DEBUG (MainThread) [govee_api_laggat.api] unknown state property '{'colorTem': 61450}'
2021-12-11 11:50:34 DEBUG (MainThread) [govee_api_laggat.api] state returned from API: {'data': {'device': 'xx:xx:xx:xx:xx:xx:xx:xx', 'model': 'H619C', 'properties': [{'online': True}, {'powerState': 'off'}, {'brightness': 100}, {'colorTemInKelvin': 61450}, {'colorTem': 61450}]}, 'message': 'Success', 'code': 200}, resulting state object: GoveeDevice(device='xx:xx:xx:xx:xx:xx:xx:xx', model='H619C', device_name='Home Theater 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=(0, 0, 0), color_temp=61450, timestamp=1639241434.051693, 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)
2021-12-11 11:50:34 DEBUG (MainThread) [custom_components.govee.light] Finished fetching govee data in 0.051 seconds (success: True)

yay, 1000+ users with analytics enabled :smiley:

Great!

1 Like

Love this integration. Worked perfectly for me and had various scenes set up to change lights in association with Mqtt when changing states of playing devices. But since upgrading to 2021.12 my Govee devices are offline.
The only entry in the logs is warning API is back online

I’ve enabled logging and this is what I see, so it looks like the integration is communication, it’s just that my devices show as unavailable:

2021-12-19 16:33:29 DEBUG (MainThread) [custom_components.govee.light] _async_update
2021-12-19 16:33:29 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] get_states
2021-12-19 16:33:29 DEBUG (MainThread) [govee_api_laggat.api] Rate limit total: 100, remaining: 87 in 7.603671073913574 seconds
2021-12-19 16:33:29 DEBUG (MainThread) [govee_api_laggat.api] state returned from API: {'data': {'device': 'XX:XX:XX:XX:XX:XX:XX:XX', 'model': 'H6159', 'properties': [{'online': 'false'}, {'powerState': 'off'}, {'brightness': 53}, {'color': {'r': 255, 'b': 255, 'g': 255}}]}, 'message': 'Success', 'code': 200}, resulting state object: GoveeDevice(device='XX:XX:XX:XX:XX:XX:XX:XX', model='H6159', device_name='Led strip1', 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=134, color=(255, 255, 255), color_temp=0, timestamp=1639931609.397193, 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-12-19 16:33:29 DEBUG (MainThread) [govee_api_laggat.api] Rate limit total: 100, remaining: 86 in 7.489486932754517 seconds
2021-12-19 16:33:29 DEBUG (MainThread) [govee_api_laggat.api] state returned from API: {'data': {'device': 'XX:XX:XX:XX:XX:XX:XX:XX', 'model': 'H6159', 'properties': [{'online': 'false'}, {'powerState': 'off'}, {'brightness': 100}, {'color': {'r': 13, 'b': 13, 'g': 13}}]}, 'message': 'Success', 'code': 200}, resulting state object: GoveeDevice(device='XX:XX:XX:XX:XX:XX:XX:XX', model='H6159', device_name='Led strip2', 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=254, color=(13, 13, 13), color_temp=0, timestamp=1639931609.511502, 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-12-19 16:33:29 DEBUG (MainThread) [govee_api_laggat.api] Rate limit total: 100, remaining: 85 in 7.385499954223633 seconds
2021-12-19 16:33:29 DEBUG (MainThread) [govee_api_laggat.api] state returned from API: {'data': {'device': 'XX:XX:XX:XX:XX:XX:XX:XX', 'model': 'H6159', 'properties': [{'online': 'false'}, {'powerState': 'off'}, {'brightness': 24}, {'color': {'r': 255, 'b': 0, 'g': 0}}]}, 'message': 'Success', 'code': 200}, resulting state object: GoveeDevice(device='XX:XX:XX:XX:XX:XX:XX:XX', model='H6159', device_name='Led strip3', 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=60, color=(255, 0, 0), color_temp=0, timestamp=1639931609.616066, 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-12-19 16:33:29 DEBUG (MainThread) [custom_components.govee.light] Finished fetching govee data in 0.339 seconds (success: True)

Hello,
i use wi-fi thermo-hygrometer H5179.
how to get them to appear in HA please ?
Thank’s.
Best regards

I found them through this integration: Bluetooth Low Energy Monitor Passive BLE monitor

Thanks for the integration. Just installed a 7021 LED bulb string lights (96 ft, 30 bulbs), and it works. So far, light turn on service control colors.

Two options for you.
I would recommend the BLE Monitor HACS integration, as it automatically finds devices.
You can also use the Govee Temp/Humidity HACS integration, but you do have to manually add the Bluetooth MAC address, which can be found using the Bluetooth MAC Finder app for Android.

Hello,Neekster and admiralgingercid
no possibility that it works with the cloud?
I don’t have Home Assistant in the same city as the govee

I wish. Unfortunately, it only works via BLE at this time. You might be able to connect the sensor to a secondary HomeAssistant instance, and then connect that secondary HA instance to your primary HA instance using the Remote HomeAssistant HACS integration or something similar.

I’ve got a govee glide and have managed to get this to work as far as turning the light on and off and changing the colour but it doesn’t give me the options to change the effects like my ESPHome and Nanoleaf lights do.
How do I enable the effects please?
Many Thanks