Simultanious casting too two devices (Chromecast en Google hub)

I’m trying to setup an automation using Node Red but a bit lost at some of the finer details. In basic’s we have a Chromecast connected to our TV and also a Google Hub in the Kitchen. I am trying to create an automation that if somebody is in the Kitchen the Google Hub will also start playing the same tv-show or whatever is showing on the TV. And when one leaves the Kitchen again, the Google Hub stops, but the TV continues. The idea is that while going over to the Kitchen when the TV is also on you can also watch the show that is on there. Preferably without pausing the TV.

What I am currently still looking for is:

  • How do I capture and ‘duplicate’ the movie/tv show being cast to a second device.
  • How do I stop the duplication without stopping it everywhere.

I am hoping there is something like how with Sonos you can add a room/speaker and then disconnect it. i.e. grouping and ungrouping.

I’m still stuck on this. I try and join the Chromecast and the Google Hub. Sometimes it works in terms of the flow showing everything went alright but nothing actually happens (so I assume I am still missing something), but it also often trows an ‘API error’.

Screenshot 2022-04-06 at 21.28.47

Screenshot 2022-04-06 at 21.28.00