Script parameters

Based on a post on this forum I've created a script that turns off lights a few minutes after the last movement. This script could be reusable if it supported parameters. Now I've created 4 versions of this script, each calling a different scenario after the timeout. Wouldn't it be nice if you could call the same script and pass the scenario as a parameter to the script?

I.e. in the action editor, when selecting a script, add an additional UI to select a parameter and pass this parameter to the script, so you could do something like this:

WAIT 3 MIN
CALL SCENARIO ($scenario)

Reacties