Add port as configuration variable

This commit is contained in:
Fabian Affolter 2016-09-05 07:21:40 +02:00
parent 3430f8a239
commit 4ff0667301
No known key found for this signature in database
GPG Key ID: DDF3D6F44AAB1336

View File

@ -9,7 +9,8 @@ sharing: true
footer: true footer: true
logo: directv.png logo: directv.png
ha_category: Media Player ha_category: Media Player
ha_release: "0.25" ha_release: 0.25
ha_iot_class: "Local Polling"
--- ---
The [DirecTV](http://www.directv.com/) receivers will be automatically discovered if you enable the [discovery component](/components/discovery/). The [DirecTV](http://www.directv.com/) receivers will be automatically discovered if you enable the [discovery component](/components/discovery/).
@ -21,10 +22,13 @@ The `directv` media player platform can also be forced to load by adding the fol
media_player: media_player:
platform: directv platform: directv
host: 192.168.1.10 host: 192.168.1.10
port: 8080
name: DirecTV Living Room name: DirecTV Living Room
``` ```
Configuration variables: Configuration variables:
- **host** *Optional*: Use only if you don't want to scan for devices. - **host** (*Optional*): Use only if you don't want to scan for devices.
- **name** *Optional*: Use to give a specific name to the device. - **port** (*Optional*): The port your receiver is using. Defaults to `8080`.
- **name** (*Optional*): Use to give a specific name to the device.