Minor NAD integration improvements (#22804)

This commit is contained in:
Adam James 2022-05-19 10:56:31 +01:00 committed by GitHub
parent 766bf538fd
commit ed6cb5b012
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,12 +13,12 @@ ha_integration_type: integration
The `nad` platform allows you to control a [NAD receiver](https://nadelectronics.com/) through RS232, TCP and Telnet from Home Assistant.
Please note that the RS232 interface is only tested with the NAD T748v2, but is should work with more NAD receivers.
The Telnet interface is only tested with the NAD T787.
Please note that the RS232 interface is only tested with the NAD T748v2, but it should work with other NAD receivers.
The Telnet interface has been tested with the NAD T787 and the NAD C658.
## Configuration
To add an NAD receiver to your installation, add the following to your `configuration.yaml` file:
To add a NAD receiver to your installation, add the following to your `configuration.yaml` file:
```yaml
# Example configuration.yaml entry for RS232 configuration
@ -27,6 +27,14 @@ media_player:
serial_port: /dev/ttyUSB0
```
```yaml
# Example configuration.yaml entry for Telnet configuration
media_player:
- platform: nad
type: Telnet
host: "IP_ADDRESS"
```
```yaml
# Example configuration.yaml entry for TCP configuration
media_player:
@ -71,7 +79,7 @@ max_volume:
default: -20
type: integer
sources:
description: A list of mappings from source to source name. Valid sources are `1 to 10`. (for `RS232` and `Telnet` types)
description: A list of mappings from source to source name. Valid sources are `1 to 12`. (for `RS232` and `Telnet` types)
required: false
type: [list, string]
volume_step:
@ -81,7 +89,7 @@ volume_step:
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.
The `min_volume` and `max_volume` options 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 higher or lower volumes than the values set by using the plus and minus buttons.
<div class='note warning'>
@ -91,7 +99,7 @@ Be aware that the user might need to logout and logon again to activate these pe
</div>
A full configuration example could look like this:
An example of a full configuration:
```yaml
# Example configuration.yaml entry