Play mp3 from HA to GH script help

hi guys,

could someone please help with the below script. the first part works but playing music doesnt

workout:
   sequence:
    - service: remote.turn_on
      data:
       entity_id: remote.living_room
       activity: 26938779
    - service: media_player.volume_set
      entity_id: media_player.main_gh
      data:
         volume_level: 0.5
    - service: tts.google_say
      entity_id: media_player.main_gh
      data:
        media_content_id: /local/sounds/workout.mp3
        media_content_type: 'music'

You have the last service as tts.google_say. It needs to be media_player.play_media.

1 Like

Doh!
Of course I copied from one of my other scripts

Thank you

Your indents are up the creek as well everything needs 2 spaces, not sometimes 1 sometimes 2 sometimes 3 :stuck_out_tongue:

That’s odd
It must be the way I posted it. I changed the TTS.google.say and changed the content I’d to my full web address and it works