# Node to stop Google Home playing music

**URL:** https://discourse.nodered.org/t/node-to-stop-google-home-playing-music/28455
**Category:** General
**Created:** [17 June 2020 07:15 UTC](https://discourse.nodered.org/t/node-to-stop-google-home-playing-music/28455 "2020-06-17T07:15:45Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Roaders](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/roaders/32/11282_2.png) [@Roaders](https://discourse.nodered.org/u/Roaders)
#### Post date: [17 June 2020 07:15 UTC](https://discourse.nodered.org/t/node-to-stop-google-home-playing-music/28455/1 "2020-06-17T07:15:45Z")

</div>

Hi All

I have hue lights, a hue dimmer switch and a google home in pretty much every room in my house. When I leave the room I turn the lights off with the dimmer switch (which is hooked up to node red) but I have to ask google to stop playing the music.

Can I stop the music with node red?

I did find some google home related nodes but they only seemed to be for playing a url and seemed config heavy (looks like you need a static IP on each google home). Is there an easier way?

Thanks

---

<div class="post-metadata">

### Author: ![michaelblight](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/michaelblight/32/445_2.png) [@michaelblight](https://discourse.nodered.org/u/michaelblight)
#### Post date: [18 June 2020 02:37 UTC](https://discourse.nodered.org/t/node-to-stop-google-home-playing-music/28455/2 "2020-06-18T02:37:16Z")

</div>

I'm doing that with Node Red, but I also use Home Assistant, so NR is just sending a `media_stop` to HA. Assuming you're not using HA, there appear to be some nodes that you could add to the palette to do that (eg. `node-red-contrib-cast`), although I have not used them.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [17 August 2020 02:37 UTC](https://discourse.nodered.org/t/node-to-stop-google-home-playing-music/28455/3 "2020-08-17T02:37:20Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
