Hmm...media players. How do we choose a device?

So, each physical device that is inherently a media player, like the Google Home and Google Mini, also shows up as a media player in HA.

In HA, Spotify also becomes a media player.

If I say “Hey Google, play xyz song,” it uses Spotify to stream that song based upon the integration of Spotify with Google Home, not with HA.

However, since HA is also connected to Spotify, the Spotify media player state is updated with the song that’s playing, etc.

Now, I’m confused about two things.

  1. From HA, through NodeRED, using the media_player.play_media service call, how do I choose another physical media player on which to actually deliver that audio? It seems that if I invoke a playlist with the Spotify media player in HA, it starts playing on the most recently used device (ipad, iphone, etc.)

  2. From Google, is it possible to say “Hey Google, play xyz song on xyz device?”