Hallo zusammen,
folgende Rule versuche ich aktuell zum laufen zu bekommen.
Ist diese Rule aktiv, erhalte ich im Log folgender Fehler:
Hat jemand eine Idee was ich hier falsch mache?
Ich nutze aktuell openHAB 2.1...
Vielen Dank.
crax
folgende Rule versuche ich aktuell zum laufen zu bekommen.
Code:
import org.joda.time.* rule "Aquarium-Wof_Update Temperature Min- and Max values" when Item Temperatur_AQ_Wof_Value received update then // logInfo("Aquarium-Wof_Update_Rule:", "postUpdate MinTemp to value: " + Temperatur_AQ_Wof_Value.minimumSince(now.toDateMidnight).state) postUpdate(Temperatur_AQ_Wof_Min_Formatted, Temperatur_AQ_Wof_Value.minimumSince(now.withTimeAtStartOfDay).state) // logInfo("Aquarium-Wof_Update_Rule:", "postUpdate MinTemp new value: " + Temperatur_AQ_Wof_Min_Formatted.state) postUpdate(Temperatur_AQ_Wof_Max_Formatted, Temperatur_AQ_Wof_Value.maximumSince(now.withTimeAtStartOfDay).state) // logInfo("Aquarium-Wof_Update_Rule:", "postUpdate MaxTemp: " + Temperatur_AQ_Wof_Value.maximumSince(now.toDateMidnight).state) end
Ist diese Rule aktiv, erhalte ich im Log folgender Fehler:
Code:
2017-07-21 13:08:09.849 [COLOR=red][ERROR][/COLOR] [.script.engine.ScriptExecutionThread] - Rule 'Aquarium-Wof_Update Temperature Min- and Max values': cannot invoke method public abstract org.eclipse.smarthome.core.types.State org.eclipse.smarthome.core.persistence.HistoricItem.getState() on null
Hat jemand eine Idee was ich hier falsch mache?
Ich nutze aktuell openHAB 2.1...
Vielen Dank.
crax
Kommentar