Unfortunately the term “Script” has many meanings in OH depending on the context (see the links below). In this case though, the script being referenced means “any rule that doesn’t have any triggers or conditions and tagged with the ‘script’ tag”. However, even that is a bit misleading because, as the values for the action indicate, any rule can be called from a widget with that action.
What you are trying to use is a Rules DSL Script which is kind of like the appendix in the human anatomy. It might have some obscure uses still today but overall it’s not useful and a vestige of the openHAB of yesteryear. In Rules DSL you can write some Rules DSL code in .script files in the $OH_CONF/scripts which can be called using the callScript Action. You can’t pass arguments to these. You can’t get a result from these. And they cannot be called directly from MainUI as an action. They really are not useful and almost no one uses them (one of the best uses for scripts has been superseded by Scenes now).
In this context, a Script is just a rule without any triggers or conditions. But, like I said above, the action on the widget is not limited to calling just those rules, it can call any rule (note, a Scene is a rule too which makes a really nice feature).
Yes, that’s what it’s for. But how you access it depends on the rules language chosen for the rule that gets called.
It’s not clear but your sendmqttcommand looks like it might be Rules DSL. I’m guessing that either it’s not available or if it is you’d just use param1, maybe context.param1.
Assuming Nashorn JS you’d access “param1” using context.param1 I think IIRC.
This was something i did already understand and was working for me
I fully agree that this is a awasome feature
Thats the info i was looking for but i could not find anything specific about it
So my current guess is that its not possible using RulesDSL, which you guessed right → Im using for these (my very first) scripts
So i think i have to write multiple scripts (one for each value) and call these individually (what works for me right now)