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

Welcome to the forum @rkluijt

Unfortunately your question is about Home Assistant specific nodes. Few here use HA so you might be better asking your question on a HA forum.

You should be able to pass a value as msg.entity_id or msg.payload.entity_id to the call service node.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.