Hello,
How can I set item data as DateTimeType - 10 minutes?
I’m using now the item.postUpdate(new DateTimeType) but I need to set the time -10 mintues (I’m using it to know when I’m living home - no ping for 10 minutes, I want to update the item to -10 minutes)
Oh, sorry. I didn’t note that the types are differen. The following article shows some possibilities to convert Joda DateTime to DateTimeType. Maybe it helps:
[ERROR] [.model.rule.runtime.internal.engine.RuleEngineImpl] - Error during the execution of startup rule ‘Initialize variables’: Could not invoke method: org.eclipse.smarthome.model.script.actions.BusEvent.postUpdate(org.eclipse.smarthome.core.items.Item,org.eclipse.smarthome.core.types.State) on instance: null
pretty old discussion, but currently I’m doing something similar with same error.
So what’s proper way how to store now plus xy minutes to an DateTime item?
[ERROR] [ntime.internal.engine.RuleEngineImpl] - Rule 'auto/manual override': An error occurred during the script execution: Could not invoke method: org.eclipse.smarthome.model.script.actions.BusEvent.postUpdate(org.eclipse.smarthome.core.items.Item,org.eclipse.smarthome.core.types.State) on instance: null