seaside1 / jrule

openHAB Java Rules Engine
Eclipse Public License 2.0
26 stars 15 forks source link

Incorrect parameters used for the @JRuleWhenItemChange trigger in the examples #191

Open nelsonaponte opened 7 months ago

nelsonaponte commented 7 months ago

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