2016-10-05 15:44:06 -07:00

1.1 KiB

layout, title, description, date, sidebar, comments, sharing, footer, logo, ha_category, ha_release
layout title description date sidebar comments sharing footer logo ha_category ha_release
page UPnP Automatically creates port mappings on your router for Home Assistant. 2016-04-10 19:16 true false true true upnp.png Other 0.18

The upnp component automatically creates port forwarding mappings on your router for Home Assistant. UPnP or NAT-PMP needs to be enabled on your router for this component to work.

You need to install miniupnpc before using the UPnP component:

$ git clone https://github.com/miniupnp/miniupnp.git
$ cd miniupnp/miniupnpc
$ make
$ make pythonmodule3
$ sudo make installpythonmodule3

To integrate this into Home Assistant, add the following section to your configuration.yaml file:

# Example configuration.yaml entry
upnp:

A port mapping will be created using the IP address and port that Home Assistant is running on. The mapping will never automatically expire. Upon stopping Home Assistant, the mapping will be removed from your router.