forked from BeardedTinker/Home-Assistant_Config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathradio_stop.yaml
22 lines (21 loc) · 894 Bytes
/
radio_stop.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#####
# Radio player - script to stop playing radio .
#
#####
radio_stop:
alias: Stop Radio on Chromecast Audio
sequence:
- service: media_player.turn_off
data:
entity_id: >
{% if is_state("input_select.radio_speaker", "Living room") %} media_player.living_room_tv_2
{% elif is_state("input_select.radio_speaker", "Loft TV") %} media_player.loft_tv
{% elif is_state("input_select.radio_speaker", "Display me") %} media_player.display_me
{% elif is_state("input_select.radio_speaker", "Mini me") %} media_player.mini_me
{% elif is_state("input_select.radio_speaker", "Whatever me") %} media_player.whatever_me
{% elif is_state("input_select.radio_speaker", "Clock me") %} media_player.clock_me
{% endif %}
- service: input_select.select_option
data:
entity_id: input_select.radio_station
option: Stopped