Here we have a simple script that plays a sound
beep_beep:
sequence:
- service: media_player.play_media
target:
entity_id: media_player.bedroom_speaker
data:
media_content_id: https://homeassistant.example.com/local/Bleep-SoundBible.com-1927126940.mp3 #media-source://media_source/local/Early-morning-sounds-in-a-village.mp3
media_content_type: audio/mpeg
If I call it, it plays the sound. If I call it again, nothing. If I wait a sufficient (undetermined) amount of time, it will play the sound one more time and then not again until I wait.