Pass message based on other entity state

Hello
Does a node exist which allows making decision whether to pass message (from input to output) or not based on state of some other entity? Initially I though I can use State Node but I its behaviour is still not clear to me and it seems it is not best tool to achieve what I need.

Of course I can write a function easily. but I would like to use the node if possible.

thanx

Use the current state node. Set the Entity ID field to the device you want to check and set the State Location field to None. It will pass thru whatever it receives.

2 Likes

Yes, this is it. Thank you @SigP
Is there any deeper documentation which covers such details?

regards

Glad I could help.

I have not found a lot of documentation but donā€™t get discouraged. The longer you work with Node Red, the more sense the existing documentation makes.

@SigP what is the ā€œState Location fieldā€ in the current state node?

That reply was three years ago. The ā€˜State Location fieldā€™ no longer exists. The functionality is now handled through output properties.