jrule icon indicating copy to clipboard operation
jrule copied to clipboard

Incorrect parameters used for the @JRuleWhenItemChange trigger in the examples

Open nelsonaponte opened this issue 1 year ago • 0 comments

Many of the examples use the @JRuleWhenItemChange but mention that a JRuleOnOffValue type should be passed as arguments to the 'to' and 'from' parameters:

`import static org.openhab.automation.jrule.rules.JRuleOnOffValue.ON; import static org.openhab.automation.jrule.rules.JRuleOnOffValue.OFF;

... @JRuleWhenItemChange(item = MyTestSwitch2, from = OFF, to = ON)`

Yet, the variables are of type String image

The compiler finds and reports the error:

image

nelsonaponte avatar Jan 26 '24 16:01 nelsonaponte