mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 17:27:19 +00:00
Add UPnP port mapping docs (#387)
This commit is contained in:
parent
812b5ada5a
commit
caf0a89139
33
source/_components/upnp.markdown
Normal file
33
source/_components/upnp.markdown
Normal file
@ -0,0 +1,33 @@
|
||||
---
|
||||
layout: page
|
||||
title: "UPnP"
|
||||
description: "Automatically creates port mappings on your router for Home Assistant."
|
||||
date: 2016-04-10 19:16
|
||||
sidebar: true
|
||||
comments: false
|
||||
sharing: true
|
||||
footer: true
|
||||
ha_category: "Other"
|
||||
---
|
||||
|
||||
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.
|
||||
|
||||
# Installation
|
||||
You need to install [miniupnpc](https://github.com/miniupnp/miniupnp/tree/master/miniupnpc) before using the UPnP component:
|
||||
|
||||
```bash
|
||||
$ git clone https://github.com/miniupnp/miniupnp.git
|
||||
$ cd miniupnp/miniupnpc
|
||||
$ make
|
||||
$ make pythonmodule3
|
||||
$ sudo make installpythonmodule3
|
||||
```
|
||||
|
||||
# Configuration
|
||||
|
||||
```yaml
|
||||
# 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.
|
Loading…
x
Reference in New Issue
Block a user