Hi, i get this error message, but i do´t know why? It is only visible, when the rule will be triggered, if the states of the parameters are to high, there is no error message. Only when the 2nd or 3rd if-part is matched, the error is visible.
I think it has to do something with && - do i have to make some () somewhere in this row?
[ERROR] [o.o.c.s.ScriptExecutionThread ] - Error during the execution of rule 'Soll-Temp-Heizung d?mpfen - wenn Unterschied 1h und 24h Aussentemp zu gro?': Could not invoke method: org.eclipse.xtext.xbase.lib.BooleanExtensions.operator_and(boolean,boolean) on instance: null
Here is the rule:
rule "Soll-Temp-Heizung dämpfen - wenn Unterschied 1h und 24h Aussentemp zu groß" when Item HeatPump_Temperature_4 received update then if (HeatPump_Temperature_4.state as DecimalType - HeatPump_Temperature_5.state as DecimalType > -2.5) { if (HeatPump_adapt_heating.state as DecimalType != 0) { sendCommand(HeatPump_adapt_heating, 0) } } if (HeatPump_Temperature_4.state as DecimalType - HeatPump_Temperature_5.state as DecimalType <= -3 && HeatPump_Temperature_4.state as DecimalType - HeatPump_Temperature_5.state as DecimalType < -5.8) { if (HeatPump_adapt_heating.state as DecimalType != -0.5) { sendCommand(HeatPump_adapt_heating, -0.5) } } if (HeatPump_Temperature_4.state as DecimalType - HeatPump_Temperature_5.state as DecimalType <= -6 && HeatPump_Temperature_4.state as DecimalType - HeatPump_Temperature_5.state as DecimalType < -8.8) { if (HeatPump_adapt_heating.state as DecimalType != -1.0) { sendCommand(HeatPump_adapt_heating, -1.0) } } end
What´s wrong?