Media Player return to playing state

Hi @techtim,

This proves that the scene snapshot doesn’t work!

I’d suggest that you use my script her:

and modify it to play a stream url instead of sending a TTS. that is you replace

service: tts.google_translate_say
    data:
      entity_id: '{{ tts_entity }}'
      language: da
      message: '{{ msg }}'

By

- service: media_player.play_media
    data:
      media_content_id: media-source://media_source/local/Music/sfx01.mp3
      media_content_type: music
    target:
      entity_id: media_player.office

It you only have one specific media player you want to do this on, then you can hard code the media_player entity (tts_entity) instead of passing it as a variable, on the other hand if the stream you want to play is always the same, then keep it as is, otherwise consider passing it as a parameter to the script.

Please let me known if you need further help to do this.

Kind regards,
Ghassan