You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a PowerView G3 hub. When I go to add the integration, the config flow asks for the host. I cannot specify the local DNS name powerview-g3.local, only the IP.
I've traced the code path to the following config flow:
aiohttp.client_exceptions.ClientConnectorDNSError: Cannot connect to host powerview-g3.local:80 ssl:default [Domain name not found]
DEBUG:aiopvapi.hub:Gen 3 connection failed Failed to communicate with PowerView Hub
$ sudo docker exec homeassistant curl -vs http://powerview-g3.local/gateway/info
* Could not resolve host: powerview-g3.local
* shutting down connection #0
However, executing curl outside the docker container works
$ curl -si http://powerview-g3.local/gateway/info
HTTP/1.1 200 OK
Workarounds:
leveraging a static IP
leverageing zeroconf config flow similar to this comment (although my hub doesn't seem to show up in Discovered, while Google cast and others do)
But I think this is a bigger issue than just PowerView. I guess this comes down to should folks expect to be able to leverage local DNS names in their integration setup or should integrations lean on zeroconf or other mechanisms?
What version of Home Assistant Core has the issue?
core-2024.12.3
What was the last working version of Home Assistant Core?
Hey there @bdraco, @kingy444, @trullock, mind taking a look at this issue as it has been labeled with an integration (hunterdouglas_powerview) you are listed as a code owner for? Thanks!
Code owner commands
Code owners of hunterdouglas_powerview 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 hunterdouglas_powerview 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.
The problem
I have a PowerView G3 hub. When I go to add the integration, the config flow asks for the host. I cannot specify the local DNS name
powerview-g3.local
, only the IP.I've traced the code path to the following config flow:
core/homeassistant/components/hunterdouglas_powerview/config_flow.py
Line 31 in bc76dc3
Subsequent util call:
core/homeassistant/components/hunterdouglas_powerview/util.py
Line 28 in bc76dc3
which gets the HTTP client and TCP connector from homeassistant:
core/homeassistant/helpers/aiohttp_client.py
Line 340 in bc76dc3
Running
sudo docker exec -it homeassistant python
with the following reproduces the error:I am not sure if this is related to aio-libs/aiohttp#10186
I cannot curl inside the container either via:
However, executing curl outside the docker container works
Workarounds:
But I think this is a bigger issue than just PowerView. I guess this comes down to should folks expect to be able to leverage local DNS names in their integration setup or should integrations lean on zeroconf or other mechanisms?
What version of Home Assistant Core has the issue?
core-2024.12.3
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Container
Integration causing the issue
Hunter Douglas PowerView
Link to integration documentation on our website
https://www.home-assistant.io/integrations/hunterdouglas_powerview
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: