![]() The nice thing about this script is that it's not tied to Plex it just commands the Chromecast audio to stop playing whatever it might be playing. script:Īlias: "Stop Playback on Bedroom Chromecast Audio" So create another script to trigger the media_dia_stop service. Since Home Assistant isn't performing the playback, there's no way to stop the playback with Alexa if I needed to between that two-hour delay. if I'm still awake, I'll ask Alexa to run the script again. Its role is over after this script executes.įor me, I put in a delay of 2 hours where I tell the Chromecast audio to stop playing. What's nice about this is that Home Assistant is just directing the media player to reach out to Plex directly for the content. The script calls the `media_player` service called `play_media` and points the source directly to Plex with some JSON to identify the playlist. script:Įntity_id: media_player.master_bedroom_speaker You can also see the Google Cast Integration for more information here. Here's an example of how you can have Home Assistant start playing one of these playlists from Plex Media Server directly to a supported media player like a Chromecast device. and I have a few playlists set up there which are useful to throw on and set the sleep timer for bedtime. ![]() I use Plex to house all of my media, this includes everything from movies, TV shows, music, podcasts, audiobooks, etc. ![]() ![]() Like everything else, Home Assistant usually has a way to solve these problems. There's no doubt that this seems like a first-world issue, but too many times my phone's display has blinded my eyes or I wasn't able to get the phone lined back up on the wireless charger correctly, etc. I sometimes enjoy playing podcasts or an audiobook at bedtime and it became very tedious to open my phone and get something playing on the Chromecast Audio that lives in my bedroom. ![]() I enjoy the freedom of just shouting Alexa and asking her to do things and Home Assistant allows you to do so much more than what is available just from the Amazon Alexa smart home features. One of my favorite Home Assistant use cases is to control as much as possible using voice assistants. ![]()
0 Comments
Leave a Reply. |