Here’s the problem I need to solve.
I’m wanting to generate a ‘playlist’ of music played by Alexa. I have the custom Alexa Media Player integration installed and I can see what music is played so I thought I’d general a input select list
when the state of the media player changes and use the input_select_option
service to amend the list to general a playlist of the last songs played but I couldn’t format the automation correctly using a template.
My attention then turned to the History component as this does seem to hold entity attributes and if I can query that I can generate the playlist for say the last 10 songs played for example.
I can see there is a RestAPI I could utilise but not sure if I’m on the right track here or if there is an easy way to do what I want. Any help would be grateful.
Thanks