Netgear router: Error setting up entry R6400v2 (Gateway) for upnp

my configuration for Netgear router (R6400v2) doesn’t work.
On startup I am getting this in the HASS log:

2021-01-30 14:42:25 DEBUG (MainThread) [homeassistant.components.upnp] Setting up config entry: uuid:xx::urn:schemas-upnp-org:device:InternetGatewayDevice:1
2021-01-30 14:42:25 DEBUG (MainThread) [homeassistant.components.upnp] Constructing device: uuid:xx::urn:schemas-upnp-org:device:InternetGatewayDevice:1
2021-01-30 14:42:25 DEBUG (MainThread) [homeassistant.components.upnp] Discovering UPnP/IGD devices
2021-01-30 14:42:25 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry R6400v2 (Gateway) for upnp
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/", line 236, in async_setup
    result = await component.async_setup_entry(hass, self)  # type: ignore
  File "/usr/src/homeassistant/homeassistant/components/upnp/", line 116, in async_setup_entry
    device = await async_discover_and_construct(hass, udn, st)
  File "/usr/src/homeassistant/homeassistant/components/upnp/", line 48, in async_discover_and_construct
    discovery_infos = await Device.async_discover(hass)
  File "/usr/src/homeassistant/homeassistant/components/upnp/", line 49, in async_discover
    discovery_infos = await IgdDevice.async_search(source_ip=local_ip, timeout=10)
  File "/usr/local/lib/python3.8/site-packages/async_upnp_client/profiles/", line 55, in async_search
    await async_search(async_callback=on_response, source_ip=source_ip, timeout=timeout)
  File "/usr/local/lib/python3.8/site-packages/async_upnp_client/", line 32, in async_search
    sock.bind((source_ip.compressed, 0))
OSError: [Errno 99] Address not available
2021-01-30 14:43:34 DEBUG (MainThread) [homeassistant.components.upnp] async_step_ssdp: discovery_info: {'ssdp_location': '', 'ssdp_st': 'urn:schemas-upnp-org:device:InternetGatewayDevice:1', 'ssdp_usn': 'uuid:xx::urn:schemas-upnp-org:device:InternetGatewayDevice:1', 'ssdp_ext': '', 'ssdp_server': 'Linux/2.6.12, UPnP/1.0, NETGEAR-UPNP/1.0'}
2021-01-30 14:43:34 DEBUG (MainThread) [homeassistant.components.upnp] Incomplete discovery, ignoring

All sensors of this device are shown as unavailable:

I have configured this device via UI Configurations–>Integration–>Add integration and later added these few lines to configuration.yaml:


UPnP is ENABLED on Netgear device.

My HASS installation is:

Core Version	2021.1.5
Installation Type	Home Assistant OS

Host Operating System	Home Assistant OS 5.9


I’d appreciate if someone helped me figure this out.
Thank you.

1 Like

I have the same problem… any help?

I removed the upnp setup from the configuration.yaml:

# upnp:
#   local_ip:

and instead I setup the integration via Configuration GUI:

It does not throw errors in the log anymore and says:
DEBUG (MainThread) [homeassistant.components.upnp] Finished fetching R6400v2 (Gateway) data in 2.079 seconds

However, the sensors are still “unavailable”.
This issue will hopefully be resolved here: