I am trying to figure out a way to string media streams to play back to back. Problem is right now, i set a delay after each item but since the item’s lengths arent consistent it leads to dead space or playback getting cut.
Current actions:
- service: tts.google_say
entity_id: media_player.audiogroup
data_template:
message: >
Good Morning! The weather is {{states.sensor.pws_weather.state}} with a current temperature of {{states.sensor.pws_temp_f.state | round(0)}} degrees with a high of {{ states.sensor.dark_sky_daily_high_apparent_temperature.state | float | round(0) }} degrees and a low of {{states.sensor.dark_sky_daily_low_apparent_temperature.state | round(0)}} degrees.
- delay: 00:00:30
- service: media_player.play_media
data:
entity_id: media_player.audiogroup
media_content_type: "audio/mp3"
data_template:
media_content_id: >
{{ "http://myurl/audio/1.mp3"}}
- delay: 00:05:00
- service: media_player.play_media
data:
entity_id: media_player.audiogroup
media_content_type: "audio/mp3"
data_template:
media_content_id: >
{{ "http://myurl/audio/2.mp3"}}
- delay: 00:01:10
- service: media_player.play_media
data:
entity_id: media_player.audiogroup
media_content_type: "audio/mp3"
data_template:
media_content_id: >
{{ "http://17473.live.streamtheworld.com:3690/WQHTAAC_SC"}}