-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscripts.yaml
More file actions
141 lines (137 loc) · 11.3 KB
/
scripts.yaml
File metadata and controls
141 lines (137 loc) · 11.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
'1649311655629':
alias: Play Radio on Chromecast Audio
sequence:
- service: media_player.volume_set
data_template:
entity_id: '{% if is_state("input_select.chromecast_radio_speakers", "Livingroom")
%} media_player.vardagsrum {% elif is_state("input_select.chromecast_radio_speakers",
"Office") %} media_player.googlehome4544 {% elif is_state("input_select.chromecast_radio_speakers",
"Bedroom") %} media_player.googlehome0719 {% elif is_state("input_select.chromecast_radio_speakers",
"Kitchen") %} media_player.kitchen_speaker {% elif is_state("input_select.chromecast_radio_speakers",
"Everywhere") %} media_player.all_rooms {% endif %}
'
volume_level: '{{ states.input_number.volume_radio.state }}'
- service: media_player.play_media
data_template:
entity_id: '{% if is_state("input_select.chromecast_radio_speakers", "Livingroom")
%} media_player.vardagsrum {% elif is_state("input_select.chromecast_radio_speakers",
"Office") %} media_player.googlehome4544 {% elif is_state("input_select.chromecast_radio_speakers",
"Bedroom") %} media_player.googlehome0719 {% elif is_state("input_select.chromecast_radio_speakers",
"Kitchen") %} media_player.kitchen_speaker {% elif is_state("input_select.chromecast_radio_speakers",
"Everywhere") %} media_player.all_rooms {% endif %}
'
media_content_id: '{% if is_state("input_select.radio_station", "Radio 538")
%} http://vip-icecast.538.lw.triple-it.nl:80/RADIO538_MP3 {% elif is_state("input_select.radio_station",
"Q-Music") %} http://icecast-qmusic.cdp.triple-it.nl/Qmusic_nl_live_96.mp3
{% elif is_state("input_select.radio_station", "3FM") %} http://icecast.omroep.nl/3fm-bb-mp3
{% elif is_state("input_select.radio_station", "100% NL") %} http://stream.100p.nl/100pctnl.mp3
{% elif is_state("input_select.radio_station", "Veronica") %} http://8543.live.streamtheworld.com/VERONICACMP3
{% elif is_state("input_select.radio_station", "Sky Radio") %} http://8623.live.streamtheworld.com:80/SKYRADIOAAC_SC
{% elif is_state("input_select.radio_station", "Arrow Classic Rock") %} http://91.221.151.155/listen.mp3
{% elif is_state("input_select.radio_station", "Classic FM") %} http://19143.live.streamtheworld.com/CLASSICFM_SC
{% elif is_state("input_select.radio_station", "BNR Nieuwsradio") %} http://icecast-bnr.cdp.triple-it.nl/bnr_mp3_96_03
{% elif is_state("input_select.radio_station", "SLAM! Hardstyle") %} http://vip-icecast.538.lw.triple-it.nl/WEB17_MP3
{% elif is_state("input_select.radio_station", "Sleep Radio") %} http://37.59.28.208:8722/stream
{% elif is_state("input_select.radio_station", "Ambient Sleeping Pill") %}
http://perseus.shoutca.st:8447/h {% elif is_state("input_select.radio_station",
"Radio Art - Sleep") %} http://live.radioart.com/fSleep.mp3 {% elif is_state("input_select.radio_station",
"Ambi Nature Radio") %} http://94.23.252.14:8067/stream {% elif is_state("input_select.radio_station",
"Calm Radio - Sleep") %} http://streams.calmradio.com/api/39/128/stream #----Svenska
komersiella kanaler----# {% elif is_state("input_select.radio_station", "Mix
Megapol") %} http://tx-bauerse.sharp-stream.com/http_live.php?i=mixmegapolgbg_se_mp3
{% elif is_state("input_select.radio_station", "NRJ") %} http://tx-bauerse.sharp-stream.com/http_live.php?i=nrj_instreamtest_se_mp3
{% elif is_state("input_select.radio_station", "Rockklassiker") %} http://tx-bauerse.sharp-stream.com/http_live.php?i=rockklassiker_instream_se_mp3
{% elif is_state("input_select.radio_station", "Svensk Pop") %} http://tx-bauerse.sharp-stream.com/http_live.php?i=svenskpop_se_mp3
{% elif is_state("input_select.radio_station", "Vinyl FM") %} http://tx-bauerse.sharp-stream.com/http_live.php?i=vinylfm_instream_se_mp3
{% elif is_state("input_select.radio_station", "Lugna Favoriter") %} http://stream-ice.mtgradio.com:8080/stat_lugna_favoriter
{% elif is_state("input_select.radio_station", "Rix FM") %} http://stream-ice.mtgradio.com:8080/stat_rix_fm
{% elif is_state("input_select.radio_station", "The Voice") %} http://194.16.21.227:8000/voice_se_mp3
{% elif is_state("input_select.radio_station", "Bandit Rock") %} http://stream-ice.mtgradio.com:8080/stat_bandit
{% elif is_state("input_select.radio_station", "Dansbandskanalen") %} http://stream.dbmedia.se/dbkMP3
{% elif is_state("input_select.radio_station", "East FM") %} http://stream.dbmedia.se/eastfm96
{% elif is_state("input_select.radio_station", "Gold 102.4") %} http://gold24.xnk.nu:8080
{% elif is_state("input_select.radio_station", "102.6 Guldkanalen") %} http://stream.dbmedia.se/gkMP3
{% elif is_state("input_select.radio_station", "Guldkanalen 60-tal") %} http://stream.dbmedia.se/gk60talMP3
{% elif is_state("input_select.radio_station", "Guldkanalen 70-tal") %} http://stream.dbmedia.se/gk70talMP3
{% elif is_state("input_select.radio_station", "Guldkanalen 80-tal") %} http://stream.dbmedia.se/gk80talMP3
{% elif is_state("input_select.radio_station", "Guldkanalen 90-tal") %} http://stream.dbmedia.se/gk90talMP3
{% elif is_state("input_select.radio_station", "Hitcity 94.5") %} http://89.160.63.63:80/live
{% elif is_state("input_select.radio_station", "Lite FM") %} http://live.litefm.se:8000/stream_mp3
{% elif is_state("input_select.radio_station", "MRS") %} http://radiostreamone.mine.nu:19050/
##----Sveriges Radio kanaler----## ##----P1----## {% elif is_state("input_select.radio_station",
"SR P1") %} http://http-live.sr.se/p1-mp3-192 ##----P2----## {% elif is_state("input_select.radio_station",
"SR P2") %} http://http-live.sr.se/p2musik-mp3-192 {% elif is_state("input_select.radio_station",
"SR P2 Världen") %} http://http-live.sr.se/srvarlden-mp3-192 {% elif is_state("input_select.radio_station",
"SR P2 Musik") %} http://http-live.sr.se/p2musik-mp3-192 ##----P3----## {%
elif is_state("input_select.radio_station", "SR P3") %} http://http-live.sr.se/p3-mp3-192
##----P4----## {% elif is_state("input_select.radio_station", "SR P4 Plus")
%} http://sverigesradio.se/topsy/direkt/4951-hi-mp3.m3u {% elif is_state("input_select.radio_station",
"SR P4 Blekinge") %} http://sverigesradio.se/topsy/direkt/213-hi-mp3.m3u {%
elif is_state("input_select.radio_station", "SR P4 Dalarna") %} http://sverigesradio.se/topsy/direkt/223-hi-mp3.m3u
{% elif is_state("input_select.radio_station", "SR P4 Gotland") %} http://sverigesradio.se/topsy/direkt/205-hi-mp3.m3u
{% elif is_state("input_select.radio_station", "SR P4 Gävleborg") %} http://sverigesradio.se/topsy/direkt/210-hi-mp3.m3u
{% elif is_state("input_select.radio_station", "SR P4 Göteborg") %} http://sverigesradio.se/topsy/direkt/212-hi-mp3.m3u
{% elif is_state("input_select.radio_station", "SR P4 Halland") %} http://sverigesradio.se/topsy/direkt/220-hi-mp3.m3u
{% elif is_state("input_select.radio_station", "SR P4 Jämtland") %} http://sverigesradio.se/topsy/direkt/200-hi-mp3.m3u
{% elif is_state("input_select.radio_station", "SR P4 Jönköping") %} http://sverigesradio.se/topsy/direkt/203-hi-mp3.m3u
{% elif is_state("input_select.radio_station", "SR P4 Kalmar") %} http://sverigesradio.se/topsy/direkt/201-hi-mp3.m3u
{% elif is_state("input_select.radio_station", "SR P4 Kristianstad") %} http://sverigesradio.se/topsy/direkt/211-hi-mp3.m3u
{% elif is_state("input_select.radio_station", "SR P4 Kronoberg") %} http://sverigesradio.se/topsy/direkt/214-hi-mp3.m3u
{% elif is_state("input_select.radio_station", "SR P4 Malmöhus") %} http://sverigesradio.se/topsy/direkt/207-hi-mp3.m3u
{% elif is_state("input_select.radio_station", "SR P4 Norrbotten") %} http://sverigesradio.se/topsy/direkt/209-hi-mp3.m3u
{% elif is_state("input_select.radio_station", "SR P4 Sjuhärad") %} http://sverigesradio.se/topsy/direkt/206-hi-mp3.m3u
{% elif is_state("input_select.radio_station", "SR P4 Skaraborg") %} http://sverigesradio.se/topsy/direkt/208-hi-mp3.m3u
{% elif is_state("input_select.radio_station", "SR P4 Stockholm") %} http://sverigesradio.se/topsy/direkt/701-hi-mp3.m3u
{% elif is_state("input_select.radio_station", "SR P4 Sörmland") %} http://sverigesradio.se/topsy/direkt/202-hi-mp3.m3u
{% elif is_state("input_select.radio_station", "SR P4 Uppland") %} http://sverigesradio.se/topsy/direkt/218-hi-mp3.m3u
{% elif is_state("input_select.radio_station", "SR P4 Värmland") %} http://sverigesradio.se/topsy/direkt/204-hi-mp3.m3u
{% elif is_state("input_select.radio_station", "SR P4 Väst") %} http://sverigesradio.se/topsy/direkt/219-hi-mp3.m3u
{% elif is_state("input_select.radio_station", "SR P4 Västerbotten") %} http://sverigesradio.se/topsy/direkt/215-hi-mp3.m3u
{% elif is_state("input_select.radio_station", "SR P4 Västernorrland") %}
http://sverigesradio.se/topsy/direkt/216-hi-mp3.m3u {% elif is_state("input_select.radio_station",
"SR P4 Västmanland") %} http://sverigesradio.se/topsy/direkt/217-hi-mp3.m3u
{% elif is_state("input_select.radio_station", "SR P4 Örebro") %} http://sverigesradio.se/topsy/direkt/221-hi-mp3.m3u
{% elif is_state("input_select.radio_station", "SR P4 ÖStergötland") %} http://sverigesradio.se/topsy/direkt/222-hi-mp3.m3u
##----Övriga SR----## {% elif is_state("input_select.radio_station", "SR Sisuradio")
%} http://sverigesradio.se/topsy/direkt/226-hi-mp3.pls {% elif is_state("input_select.radio_station",
"SR Klassiskt") %} http://sverigesradio.se/topsy/direkt/1603-hi-mp3.pls {%
elif is_state("input_select.radio_station", "SR Din gata") %} http://sverigesradio.se/topsy/direkt/2576-hi-mp3.pls
{% elif is_state("input_select.radio_station", "SR Metropol") %} http://sverigesradio.se/topsy/direkt/2842-hi-mp3.pls
{% endif %}
'
media_content_type: audio/mp4
'1649311737276':
alias: Stop Playing Radio on ChromeCast
sequence:
- service: media_player.turn_off
data_template:
entity_id: '{% if is_state("input_select.chromecast_radio_speakers", "Livingroom")
%} media_player.vardagsrum {% elif is_state("input_select.chromecast_radio_speakers",
"Office") %} media_player.googlehome4544 {% elif is_state("input_select.chromecast_radio_speakers",
"Bedroom") %} media_player.googlehome0719 {% elif is_state("input_select.chromecast_radio_speakers",
"Kitchen") %} media_player.kitchen_speaker {% elif is_state("input_select.chromecast_radio_speakers",
"Everywhere") %} media_player.all_rooms {% endif %}
'
'1649311892064':
alias: Water Greenhouse
sequence:
- service: switch.turn_on
entity_id: switch.waterbed_1
- delay: 00:60:00
- service: switch.turn_off
entity_id: switch.waterbed_1
- service: switch.turn_on
entity_id: switch.waterbed_2
- delay: 00:60:00
- service: switch.turn_off
entity_id: switch.waterbed_2
- service: switch.turn_on
entity_id: switch.waterbed_3
- delay: 00:60:00
- service: switch.turn_off
entity_id: switch.waterbed_3
- service: switch.turn_on
entity_id: switch.waterbed_4
- delay: 00:60:00
- service: switch.turn_off
entity_id: switch.waterbed_4