Retrieve Entity ID from msg. or flow. #1573
DerOetzi
started this conversation in
Feature Request
Replies: 1 comment 9 replies
-
In a subflow, you can pass any property from the incoming message ( For example, if the incoming {
"id": "xxxx",
"room": "office"
} Inside the subflow, you can reference properties like Example: msg.sensor1 = "sensor.hvac_" + msg.room + "_temperature";
return msg; In this case, the |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Would be nice if the Entity id can be Retrieved from msg or flow parts. I want to make reusable subflows which can be configured from outside by example with the room name a function node can then build all needed Entity id's for example bedroom sensors Entity ids Can be set inside the subflow like this:
At the moment I can only to hand all needed sensors as separated env variables .
Beta Was this translation helpful? Give feedback.
All reactions