I think that the link I mentioned already does it (you can start either a playlist already saved or a radio based on a playlist in Google Music) so it is only a mater of time someone with the appropriate skills manages to do it with Youtube (if not already done).
Thank you very much but your link is great for people who what to setup Google music . I am interested in youtube. I searched all over the net and could not find code for youtube. I do hope somebody with appropriate skills will make one for youtube.
My guess initially was that you wanted to send the link to Youtube video from mobile device to HA, but it would have been easier to just use the mobile device to cast to Chromecast devices.
I think that browser mod might be what you are looking for in order to be able to play on the browser running HA on tablet/pc.
Yeah you are right. I am using it and it is working fine.
I would like now to speed up the link sharing between youtube on mobile (for example) to HA so i can easilly call the service which plays youtube audio on the browser mod
how did you get the playlist and media ids?
I am trying to do something similar, but with autogenerated playlist and all I have is just informations about now playing track
EDIT: tried with regular playlists with the same result
oh! my bad! I was starting the stream from mobile app, then casting it to speaker and then looking for the data in developer options at home assistant’s dashboard while the id was totally easily to find in the URL [if only I was trying it from web browser ;)]
Can I bind the script here to a button? For example, when I click that button, can it ask me for a youtube link? or youtube ID . If so, can you describe it?