hallo,
weiß hier jemand was da falsch dran ist? Openhab 1.8.3
// 2017-02-09 22:12:27.872 [ERROR] [o.o.c.s.ScriptExecutionThread ] -
// Error during the execution of rule 'rule_ardu02_out_20_13_P_06_07_receive_update_UP':
// The name '<XFeatureCallImplCustom>.state' cannot be resolved to an item or type.
danke
weiß hier jemand was da falsch dran ist? Openhab 1.8.3
// 2017-02-09 22:12:27.872 [ERROR] [o.o.c.s.ScriptExecutionThread ] -
// Error during the execution of rule 'rule_ardu02_out_20_13_P_06_07_receive_update_UP':
// The name '<XFeatureCallImplCustom>.state' cannot be resolved to an item or type.
Code:
import org.openhab.core.library.types.* import org.openhab.core.types.* val org.eclipse.xtext.xbase.lib.Functions$Function1 rollo_lambda = [ org.eclipse.smarthome.core.library.items.RollershutterItem rsi | if (rsi.state == UP) // UP { postUpdate(ardu02_inp_20_11_06_stat, "XX UP XX") } else if (rsi.state == DOWN) // DOWN { postUpdate(ardu02_inp_20_11_06_stat, "XX DOWN XX") } else // STOP { postUpdate(ardu02_inp_20_11_06_stat, "XX STOP XX") } ] rule "rule_ardu02_out_20_13_P_06_07_receive_update_UP" when Item ardu02_out_20_13_P_06_07 received command then rollo_lambda.apply(ardu02_out_20_13_P_06_07) end