Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Govee lights local fails to initialize #109941

Closed
drxenonbloom opened this issue Feb 8, 2024 · 8 comments
Closed

Govee lights local fails to initialize #109941

drxenonbloom opened this issue Feb 8, 2024 · 8 comments

Comments

@drxenonbloom
Copy link

The problem

I'm unable to add the govee lights local integration. I updated to 2024.2.0 and attempted to add it. When I do, I get an error of unknown error has occurred.

What version of Home Assistant Core has the issue?

core-2024.2.0

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Govee lights local

Link to integration documentation on our website

https://www.home-assistant.io/integrations/govee_light_local

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 452, in _handle_request
resp = await request_handler(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/web_app.py", line 543, in _handle
resp = await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/web_middlewares.py", line 114, in impl
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 91, in security_filter_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 80, in ban_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 235, in auth_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/headers.py", line 31, in headers_middleware
response = await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 149, in handle
result = await handler(request, **request.match_info)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/decorators.py", line 72, in with_admin
return await func(self, request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 185, in post
return await super().post(request, flow_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 72, in wrapper
result = await method(view, request, data, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 110, in post
result = await self._flow_mgr.async_configure(flow_id, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 358, in async_configure
result = await self._async_configure(flow_id, user_input)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 404, in _async_configure
result = await self._async_handle_step(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 501, in _async_handle_step
result: FlowResult = await getattr(flow, method)(user_input)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/config_entry_flow.py", line 71, in async_step_confirm
has_devices = await cast(
^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/govee_light_local/config_flow.py", line 41, in _async_has_devices
await controller.start()
File "/usr/local/lib/python3.12/site-packages/govee_local_api/controller.py", line 98, in start
self._transport, self._protocol = await self._loop.create_datagram_endpoint(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1420, in create_datagram_endpoint
raise exceptions[0]
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1404, in create_datagram_endpoint
sock.bind(local_address)
OSError: [Errno 98] Address in use

Additional information

No response

@home-assistant
Copy link

home-assistant bot commented Feb 8, 2024

Hey there @Galorhallen, mind taking a look at this issue as it has been labeled with an integration (govee_light_local) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of govee_light_local can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign govee_light_local Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


govee_light_local documentation
govee_light_local source
(message by IssueLinks)

@RikiTheHeropon
Copy link

Were you using the unofficial HACS integration? I had the same issue and uninstalling that fixed it.

@KentLorenscheit
Copy link

Thanks Worked for me as well, uninstalled the Govee HACS integrations, restarted HA, and the Official Govee integration became visible, and could be installed, seems to be working fine.

@Galorhallen
Copy link
Contributor

@home-assistant close

@home-assistant home-assistant bot closed this as completed Feb 8, 2024
@idodov
Copy link

idodov commented Feb 8, 2024

Hi there @Galorhallen
I own multiple Govee lights, but not all of them support LAN control, such as the H605C model. Currently, I'm using the HACS integration to manage all the lights in Home Assistant, but I encountered an initialization error. After reading through this thread, I assume I need to uninstall the HACS solution. My concern is whether there's a possibility for the official integration to work alongside the HACS integration, as that's the only way I can control all my Govee lights.

@KyleStilkey
Copy link

Just wanted to add here that for me it was the Govee2Mqtt that was causing this issue. Sadly it has much better support than any official ones we have here so for now I'll just not use this until resolved by one of the devs.

@Galorhallen
Copy link
Contributor

Hi @idodov,
as of now I'm pretty sure that they cannot be used at the same time, unless the HACS one allows to disable the binding to porto 4002, the one used for discovery, since this is not possible in this integration.
I'll further investigate the possibility to disable the discovery while taking care of this #109993

@idodov
Copy link

idodov commented Feb 8, 2024

@Galorhallen, thank you for your response regarding the workaround.

@KyleStilkey, as I was investigating my issue, I came across the MQTT solution and installed it. It functions well with both LAN and cloud control, offering more options to explore compared to the HACS solution. Like you, I'll have to wait patiently for an official solution.

Thanks to both of you!

@github-actions github-actions bot locked and limited conversation to collaborators Mar 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants