I have been trying to get this to work the TTS works but the MP3 does not
But if i use the service mode in HA this works.
’
{
“entity_id”:“media_player.google_home”,
“media_content_id”:
“https://xxxxx.ddns.net/local/sounds/two-tone.mp3”,
“media_content_type”:“music”
}
script:
notify_upstairs_windows_open:
alias: 'Upstairs Windows Open Notify'
sequence:
- service: media_player.volume_set
data:
entity_id: media_player.google_kitchen
volume_level: 0.7
- service: media_player.play_media
data:
entity_id: media_player.google_kitchen
media_content_id: https://xxxxx.ddns.net/local/sounds/two-tone.mp3
media_content_type: music
- delay:
seconds: 1
- service: tts.google_say
entity_id: media_player.google_kitchen
data_template:
message: >-
{% if states.sensor.open_windows.state | int == 1 %}
There is a window open.
{% elif states.sensor.open_windows.state | int > 1 %}
There are {{states.sensor.open_windows.state}} windows open.
{% endif %}
cache: false
Any help please…