core: UPnP Integration doesn't work for Huawei HG255s

Home Assistant release with the issue:

0.81.0b1

Last working Home Assistant release (if known): NA Operating environment (Hass.io/Docker/Windows/etc.):

Raspbian Stretch

Component/platform:

Upnp

Description of problem:

My home assistant installation find my router as an upnp provider but when I add the device to via integrations panel component gives the error below doesn’t work.

I also try to add upnp line to my config and it does not change anything.

UPnP enabled in my router device and I am using a raspberry pi (pi-hole) for dhcp.

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):


Traceback (if applicable):

Error setting up entry Huawei Home Gateway for upnp
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/config_entries.py", line 241, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/upnp/__init__.py", line 128, in async_setup_entry
    await device.async_add_port_mappings(ports, local_ip=local_ip)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/upnp/device.py", line 69, in async_add_port_mappings
    internal_port)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/upnp/device.py", line 90, in _async_add_port_mapping
    lease_duration=None)
  File "/srv/homeassistant/lib/python3.5/site-packages/async_upnp_client/igd.py", line 195, in async_add_port_mapping
    await action.async_call(
AttributeError: 'NoneType' object has no attribute 'async_call'

Additional information:

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 15 (15 by maintainers)

Commits related to this issue

Most upvoted comments

So we can jump start, can you enable upnp related logging ?

To enable logging, add this to your Home Assistant configuration.yaml:

logger:
  default: warning
  logs:
    homeassistant.components.upnp: debug
    homeassistant.components.sensor.upnp: debug
    async_upnp_client: debug
    async_upnp_client.dlna: debug
    async_upnp_client.igd: debug
    async_upnp_client.traffic: info

Then share your logs in hastebin.com