Using inputs in subflows

Hi. I have a problem. - I have made a subflow with one input-port called Entitet. How do i use that value in code, where i build a payload?

I have tryed this: = “${Entitet}”; - But that actualy just returns a string contaning ${Entitet} … So, there must be another way!

I assume you are talking about node red?

Holy… Yes. Sorry, i have just worked so much in Node-red theese days, that i totaly forgot that it is not Home Assistant! :slight_smile:

NP. Moved.

Looks like you’re using curly/double-quotes. That’s valid JavaScript (assuming non-curly), but just for a string, not for templating.

To do templating in JavaScript, you want to use the ticks: = `${Entitet}`;