jrule
jrule copied to clipboard
Problem in the examples related to the import of JRuleOnOffValue
Many of the examples (e.g., the 1st one) import JRuleOnOffValue using the following instruction:
import static org.openhab.automation.jrule.rules.JRuleOnOffValue.ON;
or
import static org.openhab.automation.jrule.rules.JRuleOnOffValue.OFF;
However, JRuleOnOffValue is located within ...rules.value
The correct import instruction is
import static org.openhab.automation.jrule.rules.value.JRuleOnOffValue.ON; import static org.openhab.automation.jrule.rules.value.JRuleOnOffValue.OFF;