Pass on entity-id to service call node

Hi all,

I have a question.
I have several motion sensors in and around my house. I would like to make a sequence that when there is motion a specific light turns on.
So I have state node with substring motion. What I would like is that when motion sensor X has detected movement it will turn on light X. to keep the sequence as small as possible I only like to use one “service call node”. Is there a way to pass on the entity-id from node one to the service call node?

Thanks in advance

Kind regards
Robin

Most likely you would use {{entity_id}}. When you look at a message in the debug it will show a path to the value, use that path.

https://zachowj.github.io/node-red-contrib-home-assistant-websocket/guide/call-service.html#using-mustache-templates