Upnp / IGB Integration Freebox

Hi,

Upnp /IGD Intégration has discover my freebox server (mini 4k).The configuration is successful. I have 8 entities, but none of them is working. I have this error :

May 22 14:49:44 home hass[4813]: 2020-05-22 14:49:44 ERROR (MainThread) [homeassistant.components.upnp] Unexpected error fetching Freebox Server data: Error during async_call(), status: 500, body: <?xml version="1.0"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><s:Fault><faultcode>s:Client</faultcode><faultstring>UPnPError</faultstring><detail><UPnPError xmlns="urn:schemas-upnp-org:control-1-0"><errorCode>401</errorCode><errorDescription>Invalid Action</errorDescription></UPnPError></detail></s:Fault></s:Body></s:Envelope>
May 22 14:49:44 home hass[4813]: Traceback (most recent call last):
May 22 14:49:44 home hass[4813]:   File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/update_coordinator.py", line 136, in async_refresh
May 22 14:49:44 home hass[4813]:     self.data = await self._async_update_data()
May 22 14:49:44 home hass[4813]:   File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/update_coordinator.py", line 124, in _async_update_data
May 22 14:49:44 home hass[4813]:     return await self.update_method()
May 22 14:49:44 home hass[4813]:   File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/upnp/device.py", line 131, in async_get_traffic_data
May 22 14:49:44 home hass[4813]:     self._igd_device.async_get_total_packets_sent(),
May 22 14:49:44 home hass[4813]:   File "/srv/homeassistant/lib/python3.7/site-packages/async_upnp_client/profiles/igd.py", line 89, in async_get_total_bytes_received
May 22 14:49:44 home hass[4813]:     result = await action.async_call()
May 22 14:49:44 home hass[4813]:   File "/srv/homeassistant/lib/python3.7/site-packages/async_upnp_client/client.py", line 520, in async_call
May 22 14:49:44 home hass[4813]:     (status_code, response_body))
May 22 14:49:44 home hass[4813]: async_upnp_client.client.UpnpError: Error during async_call(), status: 500, body: <?xml version="1.0"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><s:Fault><faultcode>s:Client</faultcode><faultstring>UPnPError</faultstring><detail><UPnPError xmlns="urn:schemas-upnp-org:control-1-0"><errorCode>401</errorCode><errorDescription>Invalid Action</errorDescription></UPnPError></detail></s:Fault></s:Body></s:Envelope>

I have tried to switch from protocol version 1 to 2, but I have the same issue. Any Idea ?

Thanks.

I have the same problem since last update.
The device tracking works, but the traffic information fails…

Unfortunatly, I have also this problem. I’ve tryied to reconfigured it, without success.
If someone has a solution, (s)he’s welcome to share it :slight_smile:

What news?

Same problem switching from protocol version 1 to version 2 does not change anything
I also try to open port 1900 as shown here; ‘https://dev.freebox.fr/bugs/task/17794
it does not work

I have now a POP instead of a 4K, same issue

Same here with Server Delta. Any updates ?

Hi, I have the same type of error.

At each reboot
“Unexpected error fetching Freebox Server data: Error during async_call(), status: 500”

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 144, in async_refresh
    self.data = await self._async_update_data()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 132, in _async_update_data
    return await self.update_method()
  File "/usr/src/homeassistant/homeassistant/components/upnp/device.py", line 128, in async_get_traffic_data
    values = await asyncio.gather(
  File "/usr/local/lib/python3.8/site-packages/async_upnp_client/profiles/igd.py", line 89, in async_get_total_bytes_received
    result = await action.async_call()
  File "/usr/local/lib/python3.8/site-packages/async_upnp_client/client.py", line 519, in async_call
    raise UpnpError('Error during async_call(), status: %s, body: %s' %
async_upnp_client.client.UpnpError: Error during async_call(), status: 500, body: <?xml version="1.0"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><s:Fault><faultcode>s:Client</faultcode><faultstring>UPnPError</faultstring><detail><UPnPError xmlns="urn:schemas-upnp-org:control-1-0"><errorCode>401</errorCode><errorDescription>Invalid Action</errorDescription></UPnPError></detail></s:Fault></s:Body></s:Envelope>

Apart from this error, things seem to work, although I haven’t tested every entity. Any idea how to solve it ?
Thanks

Same problem for me.

Unexpected error fetching Freebox Server data: Error during async_call(), status: 500, body: <?xml version="1.0"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><s:Fault><faultcode>s:Client</faultcode><faultstring>UPnPError</faultstring><detail><UPnPError xmlns="urn:schemas-upnp-org:control-1-0"><errorCode>401</errorCode><errorDescription>Invalid Action</errorDescription></UPnPError></detail></s:Fault></s:Body></s:Envelope>

I tried add this in configuration.yaml, the local IP address of the computer running Home Assistant (my rasbpi) :

#UPNP for freebox
upnp:
  local_ip: 192.168.1.45

This change error in logger into :

Logger: homeassistant.config_entries
Source: components/upnp/device.py:54
First occurred: 12:20:41 (1 occurrences)
Last logged: 12:20:41

Error setting up entry Freebox Server for upnp
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 248, in async_setup
    result = await component.async_setup_entry(hass, self)  # type: ignore
  File "/usr/src/homeassistant/homeassistant/components/upnp/__init__.py", line 102, in async_setup_entry
    device = await async_construct_device(hass, udn, st)
  File "/usr/src/homeassistant/homeassistant/components/upnp/__init__.py", line 53, in async_construct_device
    for discovery in await Device.async_discover(hass)
  File "/usr/src/homeassistant/homeassistant/components/upnp/device.py", line 54, in async_discover
    discoveries = await IgdDevice.async_search(source_ip=local_ip, timeout=10)
  File "/usr/local/lib/python3.8/site-packages/async_upnp_client/profiles/profile.py", 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/search.py", line 32, in async_search
    sock.bind((source_ip.compressed, 0))
OSError: [Errno 99] Address not available

Same problem with our new Freebox mini

Same problème with Pop.

Same problem, TP-Link AX20:

2021-09-27 22:25:16 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2021-09-27 22:25:16 ERROR (SyncWorker_0) [homeassistant.loader] Error parsing manifest.json file at /config/custom_components/webostv/manifest.json: Expecting value: line 7 column 1 (char 6)
2021-09-27 22:25:21 ERROR (MainThread) [homeassistant.components.upnp] Unexpected error fetching Archer AX20 data: Error during async_call(), status: 500, body: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><s:Fault><faultcode>s:Client</faultcode><faultstring>UPnPError</faultstring><detail><UPnPError xmlns="urn:schemas-upnp-org:control-1-0"><errorCode>401</errorCode><errorDescription>Invalid Action</errorDescription></UPnPError></detail></s:Fault></s:Body></s:Envelope>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 187, in _async_refresh
self.data = await self._async_update_data()
File "/usr/src/homeassistant/homeassistant/components/upnp/__init__.py", line 209, in _async_update_data
update_values = await asyncio.gather(
File "/usr/src/homeassistant/homeassistant/components/upnp/device.py", line 165, in async_get_status
values = await asyncio.gather(
File "/usr/local/lib/python3.9/site-packages/async_upnp_client/profiles/igd.py", line 406, in async_get_status_info
result = await action.async_call()
File "/usr/local/lib/python3.9/site-packages/async_upnp_client/client.py", line 541, in async_call
raise UpnpError(
async_upnp_client.exceptions.UpnpError: Error during async_call(), status: 500, body: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><s:Fault><faultcode>s:Client</faultcode><faultstring>UPnPError</faultstring><detail><UPnPError xmlns="urn:schemas-upnp-org:control-1-0"><errorCode>401</errorCode><errorDescription>Invalid Action</errorDescription></UPnPError></detail></s:Fault></s:Body></s:Envelope>
2021-09-27 22:25:21 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Archer AX20' for upnp integration not ready yet: Error during async_call(), status: 500, body: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><s:Fault><faultcode>s:Client</faultcode><faultstring>UPnPError</faultstring><detail><UPnPError xmlns="urn:schemas-upnp-org:control-1-0"><errorCode>401</errorCode><errorDescription>Invalid Action</errorDescription></UPnPError></detail></s:Fault></s:Body></s:Envelope>; Retrying in background
2021-09-27 22:26:21 ERROR (MainThread) [homeassistant.components.upnp] Unexpected error fetching Archer AX20 data: Error during async_call(), status: 500, body: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><s:Fault><faultcode>s:Client</faultcode><faultstring>UPnPError</faultstring><detail><UPnPError xmlns="urn:schemas-upnp-org:control-1-0"><errorCode>401</errorCode><errorDescription>Invalid Action</errorDescription></UPnPError></detail></s:Fault></s:Body></s:Envelope>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 187, in _async_refresh
self.data = await self._async_update_data()
File "/usr/src/homeassistant/homeassistant/components/upnp/__init__.py", line 209, in _async_update_data
update_values = await asyncio.gather(
File "/usr/src/homeassistant/homeassistant/components/upnp/device.py", line 165, in async_get_status
values = await asyncio.gather(
File "/usr/local/lib/python3.9/site-packages/async_upnp_client/profiles/igd.py", line 406, in async_get_status_info
result = await action.async_call()
File "/usr/local/lib/python3.9/site-packages/async_upnp_client/client.py", line 541, in async_call
raise UpnpError(
async_upnp_client.exceptions.UpnpError: Error during async_call(), status: 500, body: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><s:Fault><faultcode>s:Client</faultcode><faultstring>UPnPError</faultstring><detail><UPnPError xmlns="urn:schemas-upnp-org:control-1-0"><errorCode>401</errorCode><errorDescription>Invalid Action</errorDescription></UPnPError></detail></s:Fault></s:Body></s:Envelope>