Skip to content

Commit

Permalink
Update script_radio.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Bastiencc authored Apr 24, 2020
1 parent 5371920 commit 41b5c42
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions config/scripts/script_radio.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@ start_radio:
# entity_id: >
# media_player.{{ media }}
# volume_level: '0.20'
- service: media_player.media_stop
data_template:
entity_id: >
media_player.{{ media }}
- service: media_player.play_media
data_template:
entity_id: >
Expand All @@ -71,4 +67,14 @@ start_radio:
{% elif(radio == "Hitsradio") %} https://playerservices.streamtheworld.com/api/livestream-redirect/977_JAMZ.mp3
{% endif %}
media_content_type: 'audio/mp4'
- service: media_player.media_pause
data_template:
entity_id: >
media_player.{{ media }}
- delay:
milliseconds: 800
- service: media_player.media_play
data_template:
entity_id: >
media_player.{{ media }}

0 comments on commit 41b5c42

Please sign in to comment.