Could not invoke method: org.eclipse.smarthome.model.persistence.extensions.PersistenceExtensions.changedSince(org.eclipse.smarthome.core.items.Item,org.joda.time.base.AbstractInstant) on instance: null
Errors like this usually point to a type error, but I don’t see how that can be the case here, unless it’s trying to convert everything to a String too early. It should return a boolean but I don’t know if it returns a Boolean (primitive versus class with a .toString method). What happens if you add .toString to the call?
An error occurred during the script execution: Could not invoke method: org.eclipse.smarthome.model.persistence.extensions.PersistenceExtensions.changedSince(org.eclipse.smarthome.core.items.Item,org.joda.time.base.AbstractInstant,java.lang.String) on instance: null
and it doesn’t work in an if clause, that’s why I put it in a LogInfo to see more…
Unfortunately it throws the same error on instance:null. That if (true) check was my first intention only to find the root course I wanted to show it in the logs using toString. I use influxDB and mapdb for persistence.