Govee integration

Well, no there is no setting. The integration can connect to the API. The device itself seems to be disconnected. Can the device access internet/dns service? Maybe reconnect it using the Govee app?

Having this same issue here. Oddly enough, the integration didn’t show up in HACS, and I had to manually add it. I’ve restarted HA a few times now, but it still won’t load the integration in the list.

EDIT: It’s the browser cache. Use CTRL+F5 to reload HA properly. Working now.

1 Like

Hey LaggAt: wasn’t sure where best place to put device functional updates at so figured I’d drop it here. I have the H6148 (RGBWW) and the most recent integration I pulled from your Git does work with the 2x additional white LEDs (warm white / daylight white) when I adjust the color balance slider individually. When I try to create a scene with these same settings though it doesn’t seem to save the color temperature setting (slider will show correct color temperature but only RGB LED is active, resulting in purplish light). Any known issues with Home Assistant scenes or anything I can supply to help troubleshoot? Thanks for putting this integration together!

1 Like

Well, up to now, no, I know of no such issue.
Could you share how you configured the automation? It could also help to enable debug logging (see first post) and document what you or the automation is doing, what the led’s do and which lines in log match the time something is happening.

As I do not have multiple Govee lights I am probably limited with debugging, but I try my best to help.

Not sure what the best way to detail is. Times / filtered debug log below (Have the full debug for the time period but just small selection below):

9:32: Change TV Light Strip, Turn off
9:33: Turn on, Color / Temp is correct (Additional White LED active)
9:34: Bump Color Temp to Far Left in selector
2nd White LED active like expected
9:35: Configuration -> Scenes -> Office General (Existing Scene I had created)
Edit Office General
White LED off, RGB LED set to white (slightly purlish output)
9:36: In scene editor, select TV Light Strip color and move color temperature slider
Corrects light output on LED strip
Close and Save
Save button never seems to commit
9:37: Navigate to different menu and back
9:38: Play Scene Office General
Output purplish

I’ve noticed that when creating my other scenes typically the save button clears / disappears but when creating with the govee lights it constantly comes back up. not sure why.

2021-02-02 21:32:16 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] state returned from API: {‘data’: {‘device’: , ‘model’: ‘H6148’, ‘properties’: [{‘online’: True}, {‘powerState’: ‘on’}, {‘brightness’: 100}, {‘colorTemInKelvin’: 4200}]}, ‘message’: ‘Success’, ‘code’: 200}, resulting state object: GoveeDevice(device=, model=‘H6148’, device_name=‘Office TV Bias’, 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=254, color=(0, 0, 0), color_temp=4200, timestamp=1612330336.203683, source=‘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-02-02 21:33:00 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] state returned from API: {‘data’: {‘device’: , ‘model’: ‘H6148’, ‘properties’: [{‘online’: True}, {‘powerState’: ‘off’}, {‘brightness’: 100}, {‘colorTemInKelvin’: 4200}]}, ‘message’: ‘Success’, ‘code’: 200}, resulting state object: GoveeDevice(device=, model=‘H6148’, device_name=‘Office TV Bias’, 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=4200, timestamp=1612330380.34247, source=‘api’, error=None, lock_set_until=1612330375.511816, lock_get_until=1612330376.511824, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False)

2021-02-02 21:34:00 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] state returned from API: {‘data’: {‘device’: , ‘model’: ‘H6148’, ‘properties’: [{‘online’: True}, {‘powerState’: ‘on’}, {‘brightness’: 100}, {‘colorTemInKelvin’: 4200}]}, ‘message’: ‘Success’, ‘code’: 200}, resulting state object: GoveeDevice(device=, model=‘H6148’, device_name=‘Office TV Bias’, 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=254, color=(0, 0, 0), color_temp=4200, timestamp=1612330440.480502, source=‘api’, error=None, lock_set_until=1612330385.90084, lock_get_until=1612330386.900848, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False)

2021-02-02 21:35:00 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] state returned from API: {‘data’: {‘device’: , ‘model’: ‘H6148’, ‘properties’: [{‘online’: True}, {‘powerState’: ‘on’}, {‘brightness’: 100}, {‘colorTemInKelvin’: 9000}]}, ‘message’: ‘Success’, ‘code’: 200}, resulting state object: GoveeDevice(device=, model=‘H6148’, device_name=‘Office TV Bias’, 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=254, color=(0, 0, 0), color_temp=9000, timestamp=1612330500.388358, source=‘api’, error=None, lock_set_until=1612330446.599334, lock_get_until=1612330447.599342, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False)

2021-02-02 21:36:00 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] state returned from API: {‘data’: {‘device’: , ‘model’: ‘H6148’, ‘properties’: [{‘online’: True}, {‘powerState’: ‘on’}, {‘brightness’: 100}, {‘color’: {‘r’: 255, ‘b’: 255, ‘g’: 255}}]}, ‘message’: ‘Success’, ‘code’: 200}, resulting state object: GoveeDevice(device=, model=‘H6148’, device_name=‘Office TV Bias’, 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=254, color=(255, 255, 255), color_temp=0, timestamp=1612330560.414383, source=‘api’, error=None, lock_set_until=1612330550.202659, lock_get_until=1612330551.202665, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False)

2021-02-02 21:37:00 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] state returned from API: {‘data’: {‘device’: , ‘model’: ‘H6148’, ‘properties’: [{‘online’: True}, {‘powerState’: ‘on’}, {‘brightness’: 100}, {‘colorTemInKelvin’: 9000}]}, ‘message’: ‘Success’, ‘code’: 200}, resulting state object: GoveeDevice(device=, model=‘H6148’, device_name=‘Office TV Bias’, 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=254, color=(0, 0, 0), color_temp=9000, timestamp=1612330620.326361, source=‘api’, error=None, lock_set_until=1612330593.012237, lock_get_until=1612330594.012242, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False)

2021-02-02 21:38:00 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] state returned from API: {‘data’: {‘device’: , ‘model’: ‘H6148’, ‘properties’: [{‘online’: True}, {‘powerState’: ‘on’}, {‘brightness’: 100}, {‘colorTemInKelvin’: 9000}]}, ‘message’: ‘Success’, ‘code’: 200}, resulting state object: GoveeDevice(device=, model=‘H6148’, device_name=‘Office TV Bias’, 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=254, color=(0, 0, 0), color_temp=9000, timestamp=1612330680.660551, source=‘api’, error=None, lock_set_until=1612330593.012237, lock_get_until=1612330594.012242, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False)

2021-02-02 21:38:58 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] state object returned from cache: GoveeDevice(device=, model=‘H6148’, device_name=‘Office TV Bias’, 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=254, color=(255, 255, 255), color_temp=0, timestamp=<bound method Govee._utcnow of <govee_api_laggat.govee_api_laggat.Govee object at 0x7f449d7fa100>>, source=‘history’, error=None, lock_set_until=1612330737.19851, lock_get_until=1612330738.198516, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False), next state for 92:BA:A4:C1:38:E7:F5:77 from api allowed in 0.06402778625488281 seconds

1 Like

Hi, I do not use Scenes at all, maybe that’s the reason I don’t understand what you are describing here. Could you try to help with some Screenshots or GIF animations? On Windows ShareX is a good tool for both. Also please also include the control commands in the debug log,

and format them as code (preformatted text) using the button at the top (or triple-backticks).

Thanks.

Just tried this with the H6199 (behind tv strip lights with camera), am I correct to assume the ‘modes’ don’t work? I really only want it in a single mode, the Video mode so that it’ll use the camera all the time.

But when I set it in the app to be on this mode by default, and I turn it on with the HA, it just defaults to custom mode with single colour, no camera integration.

1 Like

Video of what I’m referring to (scenes enables you to create pre-defined combination of lighting you can reference):

Scene will turn off the LED strip at the door and turn on my Desk & TV Light Strip with set colors. While the color and temp is set the same as from my dashboard, the light output from LED is different when called from scene. Manually adjusting color temp around will correct until calling scene again. When using the Govee LED in scenes Save button not working normally (compared to Kasa lights); seems like HASS thinks propreties are still changing.

Thanks for clarifying how to insert. Only seeing 2 types of entries in debug log; can you clarify what the control commands format is?

2021-02-02 21:32:14 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] state returned from API: {'data': {'device': <MAC>, 'model': 'H6148', 'properties': [{'online': True}, {'powerState': 'on'}, {'brightness': 100}, {'colorTemInKelvin': 4200}]}, 'message': 'Success', 'code': 200}, resulting state object: GoveeDevice(device=<MAC>, model='H6148', device_name='Office TV Bias', 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=254, color=(0, 0, 0), color_temp=4200, timestamp=1612330334.020725, source='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-02-02 21:32:56 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] state object returned from cache: GoveeDevice(device=<MAC>, model='H6148', device_name='Office TV Bias', 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=4200, timestamp=<bound method Govee._utcnow of <govee_api_laggat.govee_api_laggat.Govee object at 0x7f449d7fa100>>, source='history', error=None, lock_set_until=1612330375.511816, lock_get_until=1612330376.511824, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False), next state for <MAC> from api allowed in 0.40932583808898926 seconds
2021-02-02 21:33:00 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] state returned from API: {'data': {'device': <MAC>, 'model': 'H6148', 'properties': [{'online': True}, {'powerState': 'off'}, {'brightness': 100}, {'colorTemInKelvin': 4200}]}, 'message': 'Success', 'code': 200}, resulting state object: GoveeDevice(device=<MAC>, model='H6148', device_name='Office TV Bias', 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=4200, timestamp=1612330380.34247, source='api', error=None, lock_set_until=1612330375.511816, lock_get_until=1612330376.511824, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False)
2021-02-02 21:33:06 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] state object returned from cache: GoveeDevice(device=<MAC>, model='H6148', device_name='Office TV Bias', 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=254, color=(0, 0, 0), color_temp=4200, timestamp=<bound method Govee._utcnow of <govee_api_laggat.govee_api_laggat.Govee object at 0x7f449d7fa100>>, source='history', error=None, lock_set_until=1612330385.90084, lock_get_until=1612330386.900848, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False), next state for <MAC> from api allowed in 0.7769668102264404 seconds
2021-02-02 21:34:06 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] state object returned from cache: GoveeDevice(device=<MAC>, model='H6148', device_name='Office TV Bias', 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=254, color=(0, 0, 0), color_temp=9000, timestamp=<bound method Govee._utcnow of <govee_api_laggat.govee_api_laggat.Govee object at 0x7f449d7fa100>>, source='history', error=None, lock_set_until=1612330446.599334, lock_get_until=1612330447.599342, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False), next state for <MAC> from api allowed in 1.4916701316833496 seconds
2021-02-02 21:34:08 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] state returned from API: {'data': {'device': <MAC>, 'model': 'H6148', 'properties': [{'online': True}, {'powerState': 'on'}, {'brightness': 100}, {'colorTemInKelvin': 4200}]}, 'message': 'Success', 'code': 200}, resulting state object: GoveeDevice(device=<MAC>, model='H6148', device_name='Office TV Bias', 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=254, color=(0, 0, 0), color_temp=4200, timestamp=1612330448.261932, source='api', error=None, lock_set_until=1612330446.599334, lock_get_until=1612330447.599342, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False)
2021-02-02 21:34:10 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] state returned from API: {'data': {'device': <MAC>, 'model': 'H6148', 'properties': [{'online': True}, {'powerState': 'on'}, {'brightness': 100}, {'colorTemInKelvin': 9000}]}, 'message': 'Success', 'code': 200}, resulting state object: GoveeDevice(device=<MAC>, model='H6148', device_name='Office TV Bias', 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=254, color=(0, 0, 0), color_temp=9000, timestamp=1612330450.407283, source='api', error=None, lock_set_until=1612330446.599334, lock_get_until=1612330447.599342, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False)
2021-02-02 21:35:00 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] state returned from API: {'data': {'device': <MAC>, 'model': 'H6148', 'properties': [{'online': True}, {'powerState': 'on'}, {'brightness': 100}, {'colorTemInKelvin': 9000}]}, 'message': 'Success', 'code': 200}, resulting state object: GoveeDevice(device=<MAC>, model='H6148', device_name='Office TV Bias', 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=254, color=(0, 0, 0), color_temp=9000, timestamp=1612330500.388358, source='api', error=None, lock_set_until=1612330446.599334, lock_get_until=1612330447.599342, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False)
2021-02-02 21:35:48 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] state object returned from cache: GoveeDevice(device=<MAC>, model='H6148', device_name='Office TV Bias', 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=254, color=(255, 255, 255), color_temp=9000, timestamp=<bound method Govee._utcnow of <govee_api_laggat.govee_api_laggat.Govee object at 0x7f449d7fa100>>, source='history', error=None, lock_set_until=1612330549.057748, lock_get_until=1612330550.057754, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False), next state for <MAC> from api allowed in 1.6404170989990234 seconds
2021-02-02 21:35:50 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] state object returned from cache: GoveeDevice(device=<MAC>, model='H6148', device_name='Office TV Bias', 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=254, color=(255, 255, 255), color_temp=9000, timestamp=<bound method Govee._utcnow of <govee_api_laggat.govee_api_laggat.Govee object at 0x7f449d7fa100>>, source='history', error=None, lock_set_until=1612330550.202659, lock_get_until=1612330551.202665, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False), next state for <MAC> from api allowed in 0.9986100196838379 seconds
2021-02-02 21:35:52 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] state returned from API: {'data': {'device': <MAC>, 'model': 'H6148', 'properties': [{'online': True}, {'powerState': 'on'}, {'brightness': 100}, {'color': {'r': 255, 'b': 255, 'g': 255}}]}, 'message': 'Success', 'code': 200}, resulting state object: GoveeDevice(device=<MAC>, model='H6148', device_name='Office TV Bias', 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=254, color=(255, 255, 255), color_temp=0, timestamp=1612330552.323305, source='api', error=None, lock_set_until=1612330550.202659, lock_get_until=1612330551.202665, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False)
2021-02-02 21:36:00 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] state returned from API: {'data': {'device': <MAC>, 'model': 'H6148', 'properties': [{'online': True}, {'powerState': 'on'}, {'brightness': 100}, {'color': {'r': 255, 'b': 255, 'g': 255}}]}, 'message': 'Success', 'code': 200}, resulting state object: GoveeDevice(device=<MAC>, model='H6148', device_name='Office TV Bias', 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=254, color=(255, 255, 255), color_temp=0, timestamp=1612330560.414383, source='api', error=None, lock_set_until=1612330550.202659, lock_get_until=1612330551.202665, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False)
2021-02-02 21:36:32 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] state object returned from cache: GoveeDevice(device=<MAC>, model='H6148', device_name='Office TV Bias', 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=254, color=(255, 255, 255), color_temp=9000, timestamp=<bound method Govee._utcnow of <govee_api_laggat.govee_api_laggat.Govee object at 0x7f449d7fa100>>, source='history', error=None, lock_set_until=1612330593.012237, lock_get_until=1612330594.012242, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False), next state for <MAC> from api allowed in 1.8866150379180908 seconds
2021-02-02 21:36:34 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] state returned from API: {'data': {'device': <MAC>, 'model': 'H6148', 'properties': [{'online': True}, {'powerState': 'on'}, {'brightness': 100}, {'colorTemInKelvin': 9000}]}, 'message': 'Success', 'code': 200}, resulting state object: GoveeDevice(device=<MAC>, model='H6148', device_name='Office TV Bias', 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=254, color=(0, 0, 0), color_temp=9000, timestamp=1612330594.222497, source='api', error=None, lock_set_until=1612330593.012237, lock_get_until=1612330594.012242, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False)
2021-02-02 21:38:26 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] state object returned from cache: GoveeDevice(device=<MAC>, model='H6148', device_name='Office TV Bias', 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=254, color=(255, 255, 255), color_temp=9000, timestamp=<bound method Govee._utcnow of <govee_api_laggat.govee_api_laggat.Govee object at 0x7f449d7fa100>>, source='history', error=None, lock_set_until=1612330706.683663, lock_get_until=1612330707.683669, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False), next state for <MAC> from api allowed in 1.5770061016082764 seconds
2021-02-02 21:38:28 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] state returned from API: {'data': {'device': <MAC>, 'model': 'H6148', 'properties': [{'online': True}, {'powerState': 'on'}, {'brightness': 100}, {'color': {'r': 255, 'b': 255, 'g': 255}}]}, 'message': 'Success', 'code': 200}, resulting state object: GoveeDevice(device=<MAC>, model='H6148', device_name='Office TV Bias', 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=254, color=(255, 255, 255), color_temp=0, timestamp=1612330708.235973, source='api', error=None, lock_set_until=1612330706.683663, lock_get_until=1612330707.683669, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False)
2021-02-02 21:38:56 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] state object returned from cache: GoveeDevice(device=<MAC>, model='H6148', device_name='Office TV Bias', 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=254, color=(255, 255, 255), color_temp=0, timestamp=<bound method Govee._utcnow of <govee_api_laggat.govee_api_laggat.Govee object at 0x7f449d7fa100>>, source='history', error=None, lock_set_until=1612330737.19851, lock_get_until=1612330738.198516, learned_set_brightness_max=100, learned_get_brightness_max=100, before_set_brightness_turn_on=False, config_offline_is_off=False), next state for <MAC> from api allowed in 1.879342794418335 seconds

1 Like

Hi, we cannot switch them because the API does not support it. Feel free to request this at Govee API Support. Thanks.

Thank you @LaggAt for this excellent integration. This was the main reason I chose Govee LED strips :blush:
I combined it with an Aqara door sensor to turn on the strips. Very cool. I even made a little video about it too: https://youtu.be/xfs3fptPOJM

2 Likes

Also very cool!

I linked your video in the first post, I like how you describe the setup in HACS and how to use color in automations. I didn’t know you must use scenes, I do all my automations in Node-Red which I find better suited for my needs - well maybe it’s more the programmers style. Good to see we have both variants.

Thanks for publishing the video, well done.
Oh yea, and this part is cute: https://youtu.be/xfs3fptPOJM?t=375

1 Like

I hadn’t heard of Node-Red. That looks like a really nice environment too. Will explore :nerd_face:.
Thanks again Florian.

Hi, i tried the ‘Automations’ with Scenes myself, i do turn on, set color, set color temp and set brightness when configuring the scene. When activating the same scene I get a command to turn on, set brightness and color. There is no color temp set, maybe this helps you.

2021-02-07 16:11:27 DEBUG (MainThread) [custom_components.govee.light] async_turn_on for Govee light 40:83:FF:FF:FF:FF:FF:FF, kwargs: {'brightness': 255}
2021-02-07 16:11:27 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] control 40:83:FF:FF:FF:FF:FF:FF: {'name': 'color', 'value': {'r': 255, 'g': 255, 'b': 255}}
2021-02-07 16:11:27 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] Rate limit total: 100, remaining: 97 in 32.21383500099182 seconds
2021-02-07 16:11:27 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] control 40:83:FF:FF:FF:FF:FF:FF: {'name': 'brightness', 'value': 100}
2021-02-07 16:11:27 DEBUG (MainThread) [govee_api_laggat.govee_api_laggat] control 40:83:FF:FF:FF:FF:FF:FF is locked for 0.9990279674530029 seconds. Command waiting: {'name': 'brightness', 'value': 100}

To switch multiple things at once we need to wait a bit between commands we send, therefore you see that “command waiting” debug information. I’ll try to help more, but it seems the HASS dev version doesn’t load the custom component, at least not in my dev environment. Think that is a requirement for being helpful.

Just enable it in supervisor, it’s really great! You could do simple light controls, but it’s also capable to chat with you on telegram. I even did an Alexa flash briefing content which tells me if I have mail, if there is laundry ready in the basement and/or if the humidity is too high in my rooms.

1 Like

Ok, I tracked it a bit further … my dev version has better logging, so I could see what is really sent from home assistant. And as expected, I only get color and brightness.

{'brightness': 255, 'hs_color': (149.882, 100.0)}

I fiddled a bit with the values in the developer tools, which also doesn’t allow me to set two color values at once (in this case “rgb_color” and “color_temp”). This makes sence, but wasn’t that clear to me.

I also tried the same using Node-Red, with the same result:

[{"id":"518a1116.6ce4c","type":"inject","z":"e49e9950.dac038","name":"manual trigger","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"true","payloadType":"bool","x":430,"y":200,"wires":[["eff859b3.ed1bd8"]]},{"id":"eff859b3.ed1bd8","type":"api-call-service","z":"e49e9950.dac038","name":"","server":"76cc2af.067bad4","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.hallway_h6163_7a1c","data":"{    rgb_color: (255,0,0),     brightness: 255,     color_temp: 255}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":660,"y":200,"wires":[[]]},{"id":"76cc2af.067bad4","type":"server","name":"Home Assistant","addon":true}]

image
image

These are my findings so far, hope that helps to optimize your automations.

This might be a basic question, maybe even answered here, but the few search strings I tried didn’t pull anything.

I have 3 of these light strips in a room. I have everything brought into HA without issues. I am able to manual set colors both through the lovelace picker and through scripts. However, what I’d like to do is create a script/automation so that if someone using the color picker sets one strip/brightness that HA can see the change, capture the brightness level and rgb value and then automatically forward that to the other 2 strips in the room. Moreso, it’d be nice just to be able to capture the RGB value so that other RGB lights can match.

I know I can do these with pre-choosen colors (i.e., all strips set to blue) where I hardcode the value but that eliminates all of the in-the-moment RGB possibilities.

1 Like

I had the same request, I already thought about writing a custom component for a dummy light entity, but than I found an easy solution.

You could define a ‘light group’, by defining in /config/configuration.yaml:

light:
  - platform: group
    name: Living Lights
    entities:
      - light.desk
      - light.hallway
      - light.living

I think there is no UI for this, you need to do that in the yaml.
This light group will than be available as any other lights, and will forward your inputs to any light in the group, you can also mix Govee and Hue lights if you like.

Thanks. The defined group looks like it’ll handle this well. I’m still fairly new to HA, but not new in general to aspects of programming and it’s easy to limit your thought process to what the UI places in front of you.

1 Like

Yes, more or less. I found for some colors my Hue do a much better job, e.g. if I select organge, the Hue is orange, the Govee light is somewhat yellowish. Some sort of color correction would be great, but I know too less about color theory nor found the time for it :slight_smile:

Yes, I think any option in the yaml should be moved to UI someday. And I am sure this will happen in HASS more and more, for components there is a document showing this move:

I may have missed it, but are there any examples of automations for these Govees?
The integration went in really nice, but how to I trigger specific colors? Do I have to specify RGB? Also can we call some of their pre-loaced scenes? Can we switch to the audio/music mode?

2 Likes