I am trying to use NFC Tags to play full albums from my Sonos Speakers, in a way that would be easier for my Wife to use and I thought it may be an interesting thing to try to do. Unfortunately, I have been unable to get it play from the Local Source. I run my Home Assistant in a Docker on Unraid that I have plex on, so I have the media folder pointed to the Music Folder that I hold all my music on. I don’t get an error when I scan the tag, it just doesn’t do anything.
id: '1619314071905'
alias: Play Illuminations
description: ''
trigger:
- platform: tag
tag_id: c1447f90-f0b6-4bd2-a5c4-fae8b11971f3
condition: []
action:
- service: media_player.play_media
data:
media_content_id: /local/music/Josh Groban/Illuminations/
media_content_type: music
target:
area_id: 8c70124a582d42d5b9c2f77e057fe69e
device_id: 972c11b83ef24fcdbc679e07c1ae5522
entity_id: media_player.living_room
mode: single
Posted is my current configuration. I am not sure what I am missing, or where my problem lies.
I also have the same target to use NFC cards to playback some albums. Unfortunately media player itself cannot play a folder, so sad.
I have now done a workaround to save the albums as sonos favourite, so I can access them easily via the home assistant.