TV on then Mediaplayer on Pause, TV off start playing again

Hi,

Taking my fist steps in Node-Red :wink: and want to make my second automation.

Should be simple but Iā€™m not seeing it.

What I would like:

When my TV turns ON [media_player.samsung_tv_remote] I want my Harman Kardon Citation One [media_player.woonkamer] to go in PAUSE if playing.

When my TV turns OFF I want the HKC One to start PLAY again.

If someone could be so nice to help :wink: