NAD
The nad
integration集成将 Home Assistant 与您的设备、服务等连接和集成。 [Learn more] allows you to control an NAD receiver
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
configuration.yaml 文件是 Home Assistant 的主要配置文件。它列出了要加载的集成及其特定配置。在某些情况下,需要直接在 configuration.yaml 文件中手动编辑配置。大多数集成可以在 UI 中配置。 [Learn more] file.
在更改了configuration.yaml
configuration.yaml 文件是 Home Assistant 的主要配置文件。它列出了要加载的集成及其特定配置。在某些情况下,需要直接在 configuration.yaml 文件中手动编辑配置。大多数集成可以在 UI 中配置。 [Learn more] 文件后,重启 Home Assistant 以应用更改。 该集成现在显示在集成页面的 设置 > 设备与服务 下。其实体在集成卡片上以及实体标签上列出。
# Example configuration.yaml entry for RS232 configuration
media_player:
- platform: nad
serial_port: /dev/ttyUSB0
# Example configuration.yaml entry for Telnet configuration
media_player:
- platform: nad
type: Telnet
host: "IP_ADDRESS"
# Example configuration.yaml entry for TCP configuration
media_player:
- platform: nad
type: TCP
host: "IP_ADDRESS"
Configuration Variables
A list of mappings from source to source name. Valid sources are 1 to 12
. (for RS232
and Telnet
types)
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.
On Linux the user running Home Assistant needs dialout
permissions to access the serial port.
This can be added to the user by doing sudo usermod -a -G dialout <username>
.
Be aware that the user might need to logout and logon again to activate these permissions.
An example of a full configuration:
# Example configuration.yaml entry
media_player:
- platform: nad
serial_port: /dev/ttyUSB0
name: "NAD Receiver"
min_volume: -60
max_volume: -20
sources:
1: "Kodi"
2: "TV"