Since I have different dimmers i would like to define a function (eg with phython) by providing in a signature item-name, min/max value dim-step.
As a result I could implement in the rules file with a 1-liner call complex operations.
A how-to-tutorial would be great. I (newbie) didn’t find something.
Thanks
Vik
Depending on the nature of the Rule, you might be able to centralize all your Dimmers or whatever into one single Rule. See Design Pattern: Associated Items.
What became of good ol’ OOP? I made the jump from the DSL to Jython mainly because of that reason, so i could practically reuse packaged functionality.
Because a majority of OH users are not programmers. Forcing them to lean OOP principals to write Rules adds that much more that non programmers bed to learn in order to write anything but the simplest if rules. If you know what OOP is, Rules DSL wasn’t made for you in the first place.