mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-17 22:36:51 +00:00
Minimize configuration sample
This commit is contained in:
parent
6d9d8fdfbf
commit
b6ccb87185
@ -23,12 +23,6 @@ To add an NAD receiver to your installation, add the following to your `configur
|
|||||||
media_player:
|
media_player:
|
||||||
- platform: nad
|
- platform: nad
|
||||||
serial_port: /dev/ttyUSB0
|
serial_port: /dev/ttyUSB0
|
||||||
name: NAD Receiver
|
|
||||||
min_volume: -60
|
|
||||||
max_volume: -20
|
|
||||||
sources:
|
|
||||||
1: 'Kodi'
|
|
||||||
2: 'TV'
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Configuration variables:
|
Configuration variables:
|
||||||
@ -39,8 +33,7 @@ Configuration variables:
|
|||||||
- **max_volume** (*optional*): Maximum volume in dB to use with the slider. Default is `-20`
|
- **max_volume** (*optional*): Maximum volume in dB to use with the slider. Default is `-20`
|
||||||
- **sources** (*Optional*): A list of mappings from source to source name. Valid sources are `1 to 10`.
|
- **sources** (*Optional*): A list of mappings from source to source name. Valid sources are `1 to 10`.
|
||||||
|
|
||||||
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.
|
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.
|
||||||
You can still force it to go higher or lower than the values set with the plus and minus buttons.
|
|
||||||
|
|
||||||
<p class='note warning'>
|
<p class='note warning'>
|
||||||
On linux the user running home-assistant needs `dialout` permissions to access the serial port.
|
On linux the user running home-assistant needs `dialout` permissions to access the serial port.
|
||||||
@ -48,3 +41,17 @@ 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.
|
Be aware that the user might need to logout and logon again to activate these permissions.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
A full configuration example could look like this:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
# 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'
|
||||||
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user