Hi,
I’m fighting with a rule that throws errors that I don’t understand:
2017-09-09 19:09:09.028 [ERROR] [.script.engine.ScriptExecutionThread] - Rule 'Command_Desired_Temperature_GF_Bath': An error occurred during the script execution: Could not invoke method: org.eclipse.smarthome.model.script.actions.BusEvent.sendCommand(org.eclipse.smarthome.core.items.Item,org.eclipse.smarthome.core.types.Command) on instance: null
2017-09-09 19:10:00.045 [ERROR] [ntime.internal.engine.ExecuteRuleJob] - Error during the execution of rule Check_GF_Bath_Temperature_For_Consistency: An error occurred during the script execution: Could not invoke method: org.eclipse.smarthome.model.script.actions.BusEvent.sendCommand(org.eclipse.smarthome.core.items.Item,org.eclipse.smarthome.core.types.Command) on instance: null
And these are the rules:
rule Command_Desired_Temperature_GF_Bath
when
Item Desired_Temperature_GF_Bath_Command received update
then
Desired_Temperature_GF_Bath.sendCommand(Desired_Temperature_GF_Bath_Command.state)
end
rule Check_GF_Bath_Temperature_For_Consistency
when
Time cron "0 /5 * * * ?"
then
if (Desired_Temperature_GF_Bath_Command.state != Desired_Temperature_GF_Bath.state) {
if (Contact_Window_GF_Bath.state == OFF) {
logInfo("GF_Bath","Desired Temperature differes from Command Temperature")
Desired_Temperature_GF_Bath.sendCommand(Desired_Temperature_GF_Bath_Command.state)
}
}
end
So as far as I can see, the rules say, that Desired_Temperature_GF_Bath
is null.
But when using the console:
openhab> smarthome:status Desired_Temperature_GF_Bath
8
So how is it possible, that the Console say, that the item is 8
and the rules say, that it is null
?
Bests
Pacsal