A search of the forum posts reveal that a few others are getting this error, but there is little in the way of solutions.
I am now getting this notification with every restart of Home Assistant. All I did was to add the following to my configuration.yaml to use Duckdns to access my Home Assistant remotely.
Is there any way to determine why this is failing?
(Duckdns access is working now, by the way).
Here is the log file at the first mention of “ssdp”
2023-03-13 11:03:58.701 ERROR (MainThread) [homeassistant.setup] Error during setup of component ssdp
Traceback (most recent call last):
File “/usr/local/lib/python3.10/site-packages/yarl/_url.py”, line 166, in new
port = val.port
File “/usr/local/lib/python3.10/urllib/parse.py”, line 177, in port
raise ValueError(f"Port could not be cast to integer value as {port!r}")
ValueError: Port could not be cast to integer value as ‘:8123’
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/setup.py”, line 256, in _async_setup_component
result = await task
File “/usr/src/homeassistant/homeassistant/components/ssdp/init.py”, line 225, in async_setup
await server.async_start()
File “/usr/src/homeassistant/homeassistant/components/ssdp/init.py”, line 751, in async_start
await self._async_start_upnp_servers()
File “/usr/src/homeassistant/homeassistant/components/ssdp/init.py”, line 765, in _async_start_upnp_servers
presentation_url = get_url(self.hass, allow_ip=True, prefer_external=False)
File “/usr/src/homeassistant/homeassistant/helpers/network.py”, line 155, in get_url
return _get_external_url(
File “/usr/src/homeassistant/homeassistant/helpers/network.py”, line 265, in _get_external_url
external_url = yarl.URL(hass.config.external_url)
File “/usr/local/lib/python3.10/site-packages/yarl/_url.py”, line 168, in new
raise ValueError(
ValueError: Invalid URL: port can’t be converted to integer