Google mini to play music automation not working

Anyone able to help explain why the automation below doesn’t work? I have saved an mp3 file in the www folder called ‘test’ and have simply copied what other people have said they have done. Config validates and google home plays a tone at the trigger time but not the song.

  • id: ‘1549218278302’
    alias: New Automation
    trigger:
    • at: ‘21:35’
      platform: time
      condition: []
      action:
    • data:
      entity_id: media_player.google_home
      media_content_id: /local/test.mp3
      media_content_type: audio/mp3
      service: media_player.play_media

Cheers.

Hi,

You should post your YAML formatted correctly, using the correct tags. From what I can tell, the structure of your automation is completely wrong.

You should be using

trigger:
  platform: time
  at: '21:35'
action:
  service: media_player.play_media
  data:
    entity_id: media_player.google_home
    etc