Hi,
I try to use some persistence features with OH2 (something after build 462) and MySQL/JDBC, but its a bit tricky. OH2 persists all changes to the database and I can retrieve data by sitemap charts.
But it does not work if I use persistence functions within rules.
sendCommand(THERMOSTAT_SET_TEMP, THERMOSTAT_SET_TEMP.previousState(true).state as Number);
throws
2016-09-04 16:04:24.753 [WARN ] [nce.extensions.PersistenceExtensions] - There is no queryable persistence service registered with the id 'rrd4j'
And thats true. I have no rrd4j persistence service but a mysql service. In OH1 there was a default setting, but this was removed from OH2 !?
I only use mysql as persistence backend (and my.openhab). So how can I setup mysql as my default persistence service on OH2?
Thanks!
P.S.: If I add ‘mysql’ to previousState(true, 'mysql')
it works as expected.