Stop flow based on entity state

Hi!

I have an MQTT-in node detecting camera motion which then sends alert. I want to check if a person entity is not=“home” and if true (i.e. they are anywhere other than home), the node proceeds with original mqtt node msg. for next steps in processing. If false then want flow to stop. I am trying a ‘wait’ for state node, is this the best way? Thanks

Remove the wait node and replace with current state node. You want to check the current state, a wait node waits for a state to change. You would connect the rest of the flow to the top output.

Thanks. How do I send through the original msg.payload and data not the entity state?

You can delete the output properties.

1 Like