Hi there,
I’m having a weird error that I don’t know how to interpret.
This is my rule:
rule "Washingmachine Consumption State Machine"
when
Item homematic_HG_HM_ES_PMSw1_Pl_DN_R1_17b78d3e_OEQ1545405_2_POWER changed
then
logInfo("wmspwr", homematic_HG_HM_ES_PMSw1_Pl_DN_R1_17b78d3e_OEQ1545405_2_POWER.state)
logInfo("wms", "test")
And this is what I have in the output (openhab.log):
2019-06-10 21:51:42.289 [ERROR] [ntime.internal.engine.RuleEngineImpl] - Rule 'Washingmachine Consumption State Machine': An error occurred during the script execution: Could not invoke method: org.eclipse.smarthome.model.script.actions.LogAction.logInfo(java.lang.String,java.lang.String,java.lang.Object[]) on instance: null
what does this mean?
After all the rule is triggered by a change to exactly this item, so why can it be null?
The same happens with:
logInfo(“wm:avg”, homematic_HG_HM_ES_PMSw1_Pl_DN_R1_17b78d3e_OEQ1545405_2_POWER.averageSince(now.minusMinutes(2)))
I see log entries in events.log with:
homematic_HG_HM_ES_PMSw1_Pl_DN_R1_17b78d3e_OEQ1545405_2_POWER changed from 5.37 W to 116.96 W