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 ?
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
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