Open nelsonaponte opened 10 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
The compiler finds and reports the error:
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
The compiler finds and reports the error: