support of telnet communication with NAD receivers (#8010)

* support of telnet communication with NAD receivers

* Update source/_components/media_player.nad.markdown

Co-Authored-By: rymsha <rymsha@users.noreply.github.com>

* Update source/_components/media_player.nad.markdown

Co-Authored-By: rymsha <rymsha@users.noreply.github.com>

* Update source/_components/media_player.nad.markdown

Co-Authored-By: rymsha <rymsha@users.noreply.github.com>

* merge two components into one as demanded
This commit is contained in:
Sergey Rymsha 2019-01-11 02:23:27 +01:00 committed by Paulus Schoutsen
parent 07561145be
commit 0d63a66565
2 changed files with 24 additions and 59 deletions

View File

@ -25,11 +25,25 @@ media_player:
```
{% configuration %}
serial_port:
description: The serial port.
required: true
default: "/dev/ttyUSB0"
type:
description: Type of communication. Valid types are `RS232`, `Telnet` or `TCP`
required: false
default: RS232
type: string
serial_port:
description: The serial port. (for `RS232` type only)
required: false
default: /dev/ttyUSB0
type: string
host:
description: The IP address of your amplifier. (for `TCP` and `Telnet` types)
required: false
type: string
port:
description: The port number of the device. (for `Telnet` type only)
required: false
default: 53
type: integer
name:
description: Name of the device.
required: false
@ -46,9 +60,14 @@ max_volume:
default: -20
type: integer
sources:
description: A list of mappings from source to source name. Valid sources are `1 to 10`.
description: A list of mappings from source to source name. Valid sources are `1 to 10`. (for `RS232` and `Telnet` types)
required: false
type: [list, string]
volume_step:
description: The amount in dB you want to increase the volume with when pressing volume up/down. (for `TCP` type only)
required: false
default: 4
type: integer
{% endconfiguration %}
The min_volume and max_volume are there to protect you against misclicks on the slider so you will not blow up your speakers when you go from -92dB to +20dB. You can still force it to go higher or lower than the values set with the plus and minus buttons.

View File

@ -1,54 +0,0 @@
---
layout: page
title: "NAD tcp"
description: "Instructions on how to integrate the NAD D 7050 or C338 digital amplifiers into Home Assistant."
date: 2017-06-07 20:00
sidebar: true
comments: false
sharing: true
footer: true
logo: nad.png
ha_category: Media Player
ha_release: 0.47
ha_iot_class: "Local Polling"
---
The `nadtcp` platform allows you to control the D7050 and C338 from Home Assistant via WiFi. Note that it has only been tested with the D 7050.
To add a NAD amplifier to your installation, add the following to your `configuration.yaml` file:
```yaml
# Example configuration.yaml entry
media_player:
- platform: nadtcp
host: 192.168.0.112
```
{% configuration %}
host:
description: The IP address of your amplifier.
required: true
type: string
name:
description: Name of the device.
required: false
default: NAD amplifier
type: string
min_volume:
description: Minimum volume in dB to use with the slider.
required: false
default: -60
type: integer
max_volume:
description: Maximum volume in dB to use with the slider.
required: false
default: -10
type: integer
volume_step:
description: The amount in dB you want to increase the volume with when pressing volume up/down.
required: false
default: 4
type: integer
{% endconfiguration %}
The maximum volume level of the D 7050 amplifier is +10 db, minimum is -90.