Flow to dim lights depending on Netflix or Spotify

Hi,

I need your help here guys, i want to trigger lights and a switch when i press play casting from Netflix, and i want to go increase the brightness when pressing pause or stop.

I thought i had a solution when i used triggers like playing and pause but they are the same for both Netflix and Spotify and i don´t want my lights to change if i play Spotify, so i need your help to separate Netflix and Spotify.

I have found this value data.new_state.attributes.friendly_name if i use a debug node after an “event state node” listening to my chromecast, but i dont know how to how to make one output for Netflix and the other for Spotify. And from each output i want to be able to trigger ether playing och pause.

thanks