# Can NR determine what is playing on my Google Home?

**URL:** <https://discourse.nodered.org/t/can-nr-determine-what-is-playing-on-my-google-home/16971>\
**Category:** General\
**Created:** [21 October 2019 17:58 UTC](https://discourse.nodered.org/t/can-nr-determine-what-is-playing-on-my-google-home/16971 "2019-10-21T17:58:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steverino](https://avatars.discourse-cdn.com/v4/letter/s/e79b87/32.png) [@Steverino](https://discourse.nodered.org/u/Steverino)\
**Post date:** [21 October 2019 17:58 UTC](https://discourse.nodered.org/t/can-nr-determine-what-is-playing-on-my-google-home/16971/1 "2019-10-21T17:58:22Z")

</div>

When my garage door opens NR casts a '_door opening_' message to my Google Home Mini's.  
This works fine, however if one of my GHM is playing music (started independently from NR) the music stops and won't restart on completion of the flow.

Is it possible to somehow check what is currently playing (e.g. internet radio station) and then restart after the 'door opening' message is complete?

thanks

---

<div class="post-metadata">

**Author:** ![djMvT](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/djmvt/32/47329_2.png) [@djMvT](https://discourse.nodered.org/u/djMvT)\
**Post date:** [8 February 2020 08:53 UTC](https://discourse.nodered.org/t/can-nr-determine-what-is-playing-on-my-google-home/16971/2 "2020-02-08T08:53:29Z")

</div>

Was about to ask the exact same question!  
Did you manage to solve this?

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [8 February 2020 09:37 UTC](https://discourse.nodered.org/t/can-nr-determine-what-is-playing-on-my-google-home/16971/3 "2020-02-08T09:37:32Z")

</div>

Instead of "casting" (which I suspect is just changing the stream from music to your message), in theory, you could use the "announce" command.

E.g., as an example,

- "Hey Google, play rock music"
- Enjoy what plays for a minute
- "Hey Google, announce door opening"

I'm certain after the announcement, music resumes.

Perhaps if you can automate the "announce" this would be a solution?

UPDATE...

seems you can broadcast an announcement via node-red....

> **[node-red-contrib-google-home-notify](https://www.npmjs.com/package/node-red-contrib-google-home-notify)**
>
> Node-Red nodes for google-home-notify library. With this node you can cast any String (up to 200 chars) to any google cast device.

> **[node-red-contrib-google-home-notify-volume-adjustable](https://www.npmjs.com/package/node-red-contrib-google-home-notify-volume-adjustable)**
>
> Node-Red nodes for google-home-notify library. With this node you can cast any String (up to 200 chars) to any google cast device.

---

<div class="post-metadata">

**Author:** ![JackDynamite](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jackdynamite/32/21741_2.png) [@JackDynamite](https://discourse.nodered.org/u/JackDynamite)\
**Post date:** [6 June 2021 06:54 UTC](https://discourse.nodered.org/t/can-nr-determine-what-is-playing-on-my-google-home/16971/4 "2021-06-06T06:54:19Z")

</div>

I just setup the node-red-contrib-google-home-notify-volume-adjustable in my installation.

It is broken with error message in the debug window "TypeError: Googletts is not a function" when I googled this seems that the node is [broken](https://discourse.nodered.org/t/node-red-contrib-google-home-notify-no-longer-working/38233/3) and no longer being updated by the contributor.

I do like however how you have mentioned the use of using the announce instead of cast which I am currently using for my doorbell which currently annoyingly stops the music from playing as I shake my fist at the person at the door for interrupting my beats.
