hacs-govee: Integration is broken in HA 2025.1
Version of the custom_component
2023.11.1
Configuration
Configured in UI
Describe the bug
Loading and unloading of the integration and entities fails
Debug log
2025-01-04 00:23:54.614 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'govee' calls `device_registry.async_get_or_create` referencing a non existing `via_device` ('govee', 'Govee API (cloud)'), with device info: {'identifiers': {('govee', 'govee_govee_00:AF:DA:08:64:A6:37:EA')}, 'manufacturer': 'Govee', 'model': 'H6072', 'name': 'Lyra-Floor-Lamp', 'via_device': ('govee', 'Govee API (cloud)')} at custom_components/govee/light.py, line 67: async_add_entities(. This will stop working in Home Assistant 2025.12.0, please create a bug report at https://github.com/LaggAt/hacs-govee/issues
2025-01-04 00:23:54.614 WARNING (MainThread) [homeassistant.components.light] None (<class 'custom_components.govee.light.GoveeLightEntity'>) does not set supported color modes, this will stop working in Home Assistant Core 2025.3, please create a bug report at https://github.com/LaggAt/hacs-govee/issues
2025-01-04 00:23:54.615 ERROR (MainThread) [homeassistant.components.light] Error adding entity None for domain light with platform govee
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 608, in _async_add_entities
await coro
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 825, in _async_add_entity
capabilities=entity.capability_attributes,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/light/__init__.py", line 1116, in capability_attributes
if LightEntityFeature.EFFECT in supported_features:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: argument of type 'int' is not iterable
2025-01-04 00:23:54.638 WARNING (MainThread) [homeassistant.helpers.frame] Detected code that calls async_forward_entry_setup for integration govee with title: govee and entry_id: b2052361c79c7eb6f33d30ea0de69a8b, during setup without awaiting async_forward_entry_setup, which can cause the setup lock to be released before the setup is done. This will stop working in Home Assistant 2025.1, please report this issue
Stack (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/usr/src/homeassistant/homeassistant/__main__.py", line 227, in <module>
sys.exit(main())
File "/usr/src/homeassistant/homeassistant/__main__.py", line 213, in main
exit_code = runner.run(runtime_conf)
File "/usr/src/homeassistant/homeassistant/runner.py", line 154, in run
return loop.run_until_complete(setup_and_run_hass(runtime_config))
File "/usr/local/lib/python3.13/asyncio/base_events.py", line 707, in run_until_complete
self.run_forever()
File "/usr/local/lib/python3.13/asyncio/base_events.py", line 678, in run_forever
self._run_once()
File "/usr/local/lib/python3.13/asyncio/base_events.py", line 2033, in _run_once
handle._run()
File "/usr/local/lib/python3.13/asyncio/events.py", line 89, in _run
self._context.run(self._callback, *self._args)
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2353, in async_forward_entry_setup
_report_non_awaited_platform_forwards(entry, "async_forward_entry_setup")
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1199, in _report_non_awaited_platform_forwards
report_usage(
File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 234, in report_usage
_LOGGER.warning(msg, stack_info=True)
Logger: homeassistant.config_entries
Quelle: config_entries.py:855
Erstmals aufgetreten: 10:24:31 (1 Vorkommnisse)
Zuletzt protokolliert: 10:24:31
Error unloading entry govee for govee
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 855, in async_unload
result = await component.async_unload_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/govee/__init__.py", line 83, in async_unload_entry
await asyncio.gather(
~~~~~~~~~~~~~~^
*[
^^
...<2 lines>...
]
^
)
^
File "/usr/local/lib/python3.13/asyncio/tasks.py", line 884, in gather
fut = ensure_future(arg, loop=loop)
File "/usr/local/lib/python3.13/asyncio/tasks.py", line 742, in ensure_future
raise TypeError('An asyncio.Future, a coroutine or an awaitable '
'is required')
TypeError: An asyncio.Future, a coroutine or an awaitable is required
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 27
- Comments: 57 (6 by maintainers)
Commits related to this issue
- #199 #200 bump version — committed to LaggAt/hacs-govee by LaggAt 2 years ago
I did a quick fix, just replace /config/custom_components/govee/light.py with this: https://pastebin.com/SsqHmFQe
This integration would need some refactoring, it still throws some warnings in HA log.
Hi, yea thanks to you all, I did miss this completely. If I did anything right, this should push this out: https://github.com/LaggAt/hacs-govee/releases/tag/2025.1.1
The local API ist not supported by all products. So we have to use this integration
I also tried the Govee2Mqtt but I was not happy with slow responses. I prepared PR with that fix for @LaggAt (https://github.com/LaggAt/hacs-govee/pull/200)
I moved to govee2mqtt today and it’s working well as a replacement. Can use both LAN API for those devices that support it, but also API key for lights that don’t.
https://github.com/wez/govee2mqtt
Yes @LaggAt it is out and working. Still complains in the logs for two issues. One I have prepared fix for, but it can wait. For the second one, I will try to look into it.
ok, understand. Then let’s try to get this fixed for now.
Govee2MQTT is the answer. More functionality than this integration. Easy to set up. Up in 5 minutes after a restart.
Yes it should
Thank you. That worked for me!
Time to ditch govee and switch to full WLED control, I think. This integration is really unstable.
Hey @JiriBalcar thanks for putting up a fix so fast! @LaggAt can we have a new release for this fix? What is the process of having a new release for this repo? Let me know if there’s anything I could do to help
RE The MQTT extension, my experience of it was it was unreliable, which is why I switched back to this integration. Plus the fact that you have to run two addons (Govee MQTT plus the Broker) and the integration using several hundred megabytes of memory is kind of ridiculous just to turn a couple of LEDs on and off…
Here you can find the list of Lan supported devices https://app-h5.govee.com/user-manual/wlan-guide
Same issue. TV light doesn’t work anymore 😦
I literally have the worst luck.
I finally find time yesterday to spend about 5 hours programming Home Assistant for my new home with 30 or so Inovelli Blue Switches and 50 Govee 6" ceiling lights. I had each room/zone configured, could easily turn on/off rooms, dim lights, and change lighting of the rooms.
This morning I see the update for HA, install it, and it breaks everything.
Govee has not made Lan API an option on these ceiling lights and this integration hasn’t been updated in 2 years.
I’m so screwed. My family, who was so impressed with all the features of the lighting yesterday, is back to yelling that the light switches dont work.
I’m just gonna break out some flashlights and candles and go into hiding for a while.
Edit: Restored to previous version by going to shell and inputting: ha core update --version=2024.12.5
Everything works again after downgrading but my family has lost their trust. Still considering moving into that cave.
Steps
Link Govee Devices to Google (in Govee app profile > voice assistant > follow user guide for Google assistant
Add Google SDK to home assistant
Create input Boolean for device/group of devices
Create automations A) turn on i)when entity (select created input Boolean as entity) turns from any state to on THEN DO Google SDK: Send Text Command “Turn on (device name in Google) B) turn off i)when entity (select created input Boolean as entity) turns from any state to off THEN DO Google SDK: Send Text Command “Turn Off (device name in Google)
In devices navigate to HomeKit bridge (reload)
Voila
note the input Boolean will be available as a switch in HomeKit (not a light of any other entity)
I assume that’s the end of this integration since there have been no updates in the past 2 years…