Return a number tag from a Homey script - How?

Hello,

it seems that I can return a number tag when running a Homey script from an advanced flow.

I am struggling with that. The only then-card I have is “run script with argument”. What am I missing? Does anybody has a hint or a simple example for me?

Scripts run standalone, you can’t return anything from them. For that, you need to pick one of the “Run (Code)” cards (what the linked-to page calls “Inline HomeyScript”).

You can set tags from scripts using the tag() function.

1 Like

Thank you!