arsaboo/homeassistant-config

play mp3 file

leonka93 opened this issue · 1 comments

HI,
can you tell me how to play an mp3 file?
I installed hassio su rpi 3
the file is in the / config / www directory
I tried these 2 scripts without success:
alias: audio test
sequence:

  • service: media_player.play_media
    date:
    entity_id: media_player.primo
    media_content_id: /local/song.mp3
    media_content_type: 'music'
    And
    alias: audio test
    sequence:
  • service: media_player.play_media
    date:
    entity_id: media_player.primo
    media_content_id: /config/www/song.mp3
    media_content_type: 'music'
    can you help me?

You will need the complete file path. See here.