Would be nice to have functions for rules like setting a scene for my hue lights:

Now:

IF x THEN execute "curl -X PUT -d '\{\"scene\": \"cb1c39c07-on-0\"\}' -s http://192.168.1.204/api/1c206fbd13c228ea15b36dd66c89a1e0/groups/0/action"

If you could create a function:

IF x THEN hueScene("cb1c39c07-on-0")

A function like:

hueScene($string)[
execute "curl -X PUT -d '\{\"scene\": \"$string"\}' -s http://192.168.1.204/api/1c206fbd13c228ea15b36dd66c89a1e0/groups/0/action]"