Hello,
I am new to coding and have a question that I am hoping someone can help with.
I have some code that will take a url from a scanned nfc tagand play it to a media player:
- service: media_player.play_media
data:
media_content_type: music
media_content_id: "{{trigger.event.data.url}}"
enqueue: replace
trigger.event.data.url contains the url of the stream I want to play
this coe works great for any url palced in trigger.event.data.url.
however, I also have scraping sensors mhat will return the latest url for a podcast in the form:
{{states.pocast_sensor_name.state}}
however, if I put “states.pocast_sensor_name.state” in trigger.event.dat.url it does not play the podcast. {{states.pocast_sensor_name.state}} in trigger.event.data.url also does not work.
How do I code this to play the podcast sensor?
.