Is there a way to turn a rule into a script

Topic says it. I have a rule which is nearly good enough but I need to add some code which is not provided by the script composer.
Is there any way to tell nymea to turn the rule into a script? Or is there a way to export the rule as a source code which I later can paste into the script editor?

Not automatically, no. You’ll have to re-do it in the script.

If you’re struggling with how to do something, feel free to ask here.

Thanks. It would have been convenient, but it is not that important. I’ll ask when I need advice. Thanks for offering.