I get the following error when a rule is executed:
Error during the execution of rule Washingmachine kWh gesamt: An error occured during the script execution: Could not invoke method: org.eclipse.xtext.xbase.lib.ObjectExtensions.operator_plus(java.lang.Object,java.lang.String) on instance: null
The rule:
rule "Washingmachine kWh gesamt"
when
Item WallPlug1_SensorPower changed
//Time cron "0 0/1 * 1/1 * ? *"
then
val EnergyPlug = WallPlug1_ElectricMeterKWh.state
val EnergyAll = EnergyPlug + 324
val EnergyCostAll = EnergyAll * 0.24
postUpdate(Washingmachine_Costall, EnergyCostAll)
postUpdate(Washingmachine_kWhall, EnergyAll)
end
It seems to me, that there is an problem with the operator + and *. The strange thing is, that I have the same operators in the same rule file in other rules without any problems. And there I calculate also with values.