Issue:
When trying to query from a rule with something like:
changedSince(now.minusMinutes(3)
I get the following errors:
16:18:00.047 [WARN ] [nce.extensions.PersistenceExtensions] - There is no default persistence service configured!
16:18:00.048 [WARN ] [nce.extensions.PersistenceExtensions] - There is no queryable persistence service registered with the id ‘null’
I have tried setting it to mysql in openhab.cfg as follows:
org.eclipse.smarthome.persistence:default=mysql
persistence:default=mysql
and in the Paper UI under configuration.
Note: The data is in the mysql database so that part is not the issue
openHAB2 has no such file as openhab.cfg
Instead of this, use conf/services/addons.cfg to set persistence (first in list will be default persistence) or use the karaf command line to set default persistence.