Hi, my project would be that if I scan an NFC tag an automation starts that turns on my sony bravia android TV, opens spotify and starts an album or playlist
alias: L'etichetta Motley Crue album Too Fast for Love è scansionata
description: ''
trigger:
- platform: tag
tag_id: ***-***-***-****-****
condition: []
action:
- service: remote.send_command
data:
command: WakeUp
target:
entity_id: remote.sony_bravia_tv
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- service: media_player.select_source
data:
source: Spotify
target:
entity_id: media_player.sony_bravia_tv
- delay:
hours: 0
minutes: 0
seconds: 4
milliseconds: 0
- service: media_player.play_media
data:
media_content_id: >-
https://open.spotify.com/playlist/7FP8loUtwRd65X3znTQjzc?si=340d0c2a8d6847e6
media_content_type: playlist
enqueue: play
target:
entity_id:
- media_player.sony_bravia_tv
mode: single
The last part is not good, I would like it to work as “custom: spotify-card”
I would like it to execute the same command that is executed when you select the output device and the playlist.
In short, I want the Home Assistant to tell the TV to open spotify and play the playlist: Spotify
can anyone help me?
for the more curious my idea is to put NFC tags behind the vinyls, so when I pass over them with my mobile phone the songs will start on the device of my choice.