Im using node red to create my automations for Home Assistant and i need help to solve my problem in my latest flow.
Im trying to build a flow that listens to the status of my chromecast (playing,pause and stop) and triggers a group of lamps (i have accomplished this part), but i dont want my group of lamps to be triggered if its spotify that are playing or stopping. I only want them to be triggered if its Netflix.
In msg.payload there's a value under data.new_state.attributes.friendly_name telling me what application that are playing but i dont have the knowledge how to use that.
I have used a switch node but it dont seem to pass the whole message so i wont be able to trigger on playing or pause in the next step. Or should it pass the whole message, maybe i done something wrong?