Update UPNP configuration (#7022)

Fix config tags
Add missing variable
This commit is contained in:
Jorim Tielemans 2018-10-23 11:10:43 +02:00 committed by Fabian Affolter
parent ac4baf0a8d
commit 21bc58ade5

View File

@ -33,20 +33,25 @@ upnp:
With the default settings only the sensors are added for statistics. If you wish to have port mapping done through IGD, add the option **port_mapping** and **ports**. With the default settings only the sensors are added for statistics. If you wish to have port mapping done through IGD, add the option **port_mapping** and **ports**.
{% configuration binary_sensor.template %} {% configuration %}
ports: port_mapping:
description: Map of ports to map from internal to external. Pass 'hass' as internal port to use the port Home Assistant runs on. Note that you have to enable port_mapping if you wish to map ports. description: If the component should try to map ports.
required: false required: false
type: map type: boolean
default: open same port on external router as that HASS runs locally and forwards it. default: false
port_mapping: sensors:
description: If the component should try to map ports. description: If the component should enable the UPNP sensors.
required: false required: false
type: boolean type: boolean
default: false default: true
local_ip: local_ip:
description: The local IP address of the computer running Home Assistant. description: The local IP address of the computer running Home Assistant.
required: false required: false
type: string type: string
default: Try to auto-detect IP of host. default: Try to auto-detect IP of host.
ports:
description: Map of ports to map from internal to external. Pass 'hass' as internal port to use the port Home Assistant runs on. Note that you have to enable port_mapping if you wish to map ports.
required: false
type: map
default: Open same port on external router as that HASS runs locally and forwards it.
{% endconfiguration %} {% endconfiguration %}