Fix liquid syntax error

This commit is contained in:
Fabian Affolter 2016-04-06 09:24:43 +02:00 committed by Paulus Schoutsen
parent 99de6098c6
commit f34957cd08

View File

@ -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
```