mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-12 20:06:52 +00:00
Fix liquid syntax error
This commit is contained in:
parent
99de6098c6
commit
f34957cd08
@ -23,38 +23,39 @@ media_player:
|
|||||||
```
|
```
|
||||||
|
|
||||||
A few notes:
|
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:
|
|
||||||
|
|
||||||
```
|
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
|
- video1
|
||||||
video3
|
- video2
|
||||||
video4
|
- video3
|
||||||
video5
|
- video4
|
||||||
video6
|
- video5
|
||||||
video7
|
- video6
|
||||||
dvd
|
- video7
|
||||||
bd-dvd
|
- dvd
|
||||||
tape1
|
- bd-dvd
|
||||||
tv-tape
|
- tape1
|
||||||
tape2
|
- tv-tape
|
||||||
phono
|
- tape2
|
||||||
cd
|
- phono
|
||||||
tv-cd
|
- cd
|
||||||
fm
|
- tv-cd
|
||||||
am
|
- fm
|
||||||
tuner
|
- am
|
||||||
dlna
|
- tuner
|
||||||
internet-radio
|
- dlna
|
||||||
usb
|
- internet-radio
|
||||||
network
|
- usb
|
||||||
universal-port
|
- network
|
||||||
multi-ch
|
- universal-port
|
||||||
xm
|
- multi-ch
|
||||||
sirius
|
- xm
|
||||||
```
|
- sirius
|
||||||
- Sample automation and input select
|
|
||||||
```
|
Sample automation and input select
|
||||||
|
|
||||||
|
```yaml
|
||||||
automation:
|
automation:
|
||||||
alias: Receiver Source
|
alias: Receiver Source
|
||||||
trigger:
|
trigger:
|
||||||
@ -65,7 +66,7 @@ automation:
|
|||||||
data_template:
|
data_template:
|
||||||
entity_id: media_player.txnr535_000000000000
|
entity_id: media_player.txnr535_000000000000
|
||||||
source: >
|
source: >
|
||||||
{% if is_state('input_select.receiver_source', 'HTPC') %}
|
{% raw %}{% if is_state('input_select.receiver_source', 'HTPC') %}
|
||||||
pc
|
pc
|
||||||
{% elif is_state('input_select.receiver_source', 'Chromecast') %}
|
{% elif is_state('input_select.receiver_source', 'Chromecast') %}
|
||||||
aux1
|
aux1
|
||||||
@ -75,7 +76,7 @@ automation:
|
|||||||
bd
|
bd
|
||||||
{% elif is_state('input_select.receiver_source', 'Raspberry Pi') %}
|
{% elif is_state('input_select.receiver_source', 'Raspberry Pi') %}
|
||||||
tv
|
tv
|
||||||
{% endif %}
|
{% endif %}{% endraw %}
|
||||||
|
|
||||||
input_select:
|
input_select:
|
||||||
receiver_source:
|
receiver_source:
|
||||||
@ -87,6 +88,5 @@ input_select:
|
|||||||
- Bluray
|
- Bluray
|
||||||
- Raspberry Pi
|
- Raspberry Pi
|
||||||
initial: None
|
initial: None
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user