diff --git a/source/_components/media_player.onkyo.markdown b/source/_components/media_player.onkyo.markdown index 04473cb94de..c7c0f913c1e 100644 --- a/source/_components/media_player.onkyo.markdown +++ b/source/_components/media_player.onkyo.markdown @@ -23,38 +23,39 @@ media_player: ``` A few notes: -- Source selection has no front-end UI, but can be controlled by way of service calls. Select the source string from the following list: -``` - video1 - video2 - video3 - video4 - video5 - video6 - video7 - dvd - bd-dvd - tape1 - tv-tape - tape2 - phono - cd - tv-cd - fm - am - tuner - dlna - internet-radio - usb - network - universal-port - multi-ch - xm - sirius - ``` -- Sample automation and input select -``` +Source selection has no front-end UI, but can be controlled by way of service calls. Select the source string from the following list: + +- video1 +- video2 +- video3 +- video4 +- video5 +- video6 +- video7 +- dvd +- bd-dvd +- tape1 +- tv-tape +- tape2 +- phono +- cd +- tv-cd +- fm +- am +- tuner +- dlna +- internet-radio +- usb +- network +- universal-port +- multi-ch +- xm +- sirius + +Sample automation and input select + +```yaml automation: alias: Receiver Source trigger: @@ -65,7 +66,7 @@ automation: data_template: entity_id: media_player.txnr535_000000000000 source: > - {% if is_state('input_select.receiver_source', 'HTPC') %} + {% raw %}{% if is_state('input_select.receiver_source', 'HTPC') %} pc {% elif is_state('input_select.receiver_source', 'Chromecast') %} aux1 @@ -75,7 +76,7 @@ automation: bd {% elif is_state('input_select.receiver_source', 'Raspberry Pi') %} tv - {% endif %} + {% endif %}{% endraw %} input_select: receiver_source: @@ -87,6 +88,5 @@ input_select: - Bluray - Raspberry Pi initial: None - ```