Static YouTube url Alarm on Chromecast?

I’m trying to find some documentation/direction on how to create an alarm with Home Assistant that is able to stream a static YouTUBE url, like the Lion King intro (, through my Chromecast. My chain of operation would be to use a Wifi IR device to turn on my TV, and then start streaming the video through the Chromecast. If there’s an easier way to do this using the RPI that’d be great too. I plan on having the RPI running a webpage calendar most of the time. I was curious if it may be easier to string together opening the youtube video on a new window in the morning, and then having some alarm off command to send it back to the calendar (Magic Mirror). Thanks!

You can use the media_extractor component in your script / automation.

Setup in your configuration.yaml is one line


Then as a part of your script / automation, you can call

- service: media_extractor.play_media
  entity_id: media_player.name_of_your_chromecast
    media_content_id: ""
    media_content_type: video/youtube

More info here