Switch based on Entity in Nod-RED

Hello,

I’m trying to crate a flow in Nod-RED that the lighting in the room is based on if “Cinema mode” is on or off. The “Cinema mode” is an entity triggered from the UI.
The light is triggered by motion detection, and it should set the light in different modes depending on if the Cinema mode is triggered or not. But I have no make a switch to set this up.
have tried to to make a switch for this but I can’t set up it based on entity status.
Any suggestion?

Post what you have, preferably a export of your flow/sequence.
It’s hard to understand what you are saying without seeing the sequence.

Also expand your post with what the entities are called and what the different states are, “Cinema mode” isn’t clear to us, at least not for me.

Why do you have to make a switch?
You can just check if the entity for Cinema mode is set.