Like the title says, I have various automations that result in an announcement of some kind. I’m looking to replace certain announcements with a simple tone that’s played from the speakers.
HI Brian,
Simply play a media file of a tone instead of a tts.
I have a blueprint that might help.
HA_Blueprints/Scripts/play_media_file_script.md at d1c15d75a7b5fa3042d60f7eee2d7633ea8a27a3 · SirGoodenough/HA_Blueprints · GitHub.
If you just want the action then the code is:
- continue_on_error: true
data:
media_content_id: >-
https://URL.nabu.casa/local/FILE.mp3
media_content_type: music
target:
entity_id: media_player.vardagsrum_mini
action: media_player.play_media