Hi community,
i can’t seem to get my persistence going (again) as it already has been working.
But from the start: I’m using openhab2 (build 720), JDBC Persistence MariaDB (installed via PaperUI) against a MariaDB Server on the network (ver. 5.5.51-MariaDB).
On startup of OH2, the log shows 2 peculiar entries:
2017-01-15 14:48:03.797 [WARN ] [nce.extensions.PersistenceExtensions] - There is no queryable persistence service registered with the id 'jdbc'
...
2017-01-15 14:48:04.008 [INFO ] [persistence.jdbc.internal.JdbcMapper] - JDBC::openConnection: Driver is available::Yank setupDataSource
Albeit the first log entry might be related to a rule trying to fetch historic data before the DB connection is initialized.
Anyways, no other log entries (and i must admit, i have no clue how to set just the JDBC persistence to DEBUG or TRACE) hint me: The DB is there, the tables are all there, but nothing gets inserted…
Here’s the jdbc.persist:
Strategies {
// if no strategy is specified for an item entry below, the default list will be used
everyMinute : "0 * * * * ?"
every5Minutes : "0 */5 * * * ?"
everyHour : "0 0 * * * ?"
everyDay : "0 0 0 * * ?"
default = everyChange
}
And some items using these strategies:
Switch Heizung_Anf_WPBoiler "Anforderung Wärmepumpe: Boiler [MAP(heizung.map):%s]" <light> (gHeizung,gPersistEvery5Minutes) { mqtt="<[broker:agb9/heizung/wp/boiler/status:state:MAP(heizunganf.map)]" }
Switch Heizung_Anf_PassiveKuehlung "Anforderung Passive Kühlung [MAP(heizung.map):%s]" <light> (gHeizung,gPersistEvery5Minutes) { mqtt="<[broker:agb9/heizung/wp/passivekuehlung/status:state:MAP(heizunganf.map)]" }
Switch Heizung_Anf_Frostschutz "Anforderung Frostschutz [MAP(heizung.map):%s]" <light> (gHeizung,gPersistEvery5Minutes) { mqtt="<[broker:agb9/heizung/wp/frostschutz/status:state:MAP(heizunganf.map)]" }
Switch Heizung_Anf_Sole_Aussenlufterwaermung "Anforderung Sole Aussenlufterwärmung [MAP(heizung.map):%s]" <light> (gHeizung,gPersistEvery5Minutes) { mqtt="<[broker:agb9/heizung/wp/sole/aussenlufterwaermung/status:state:MAP(heizunganf.map)]" }
Switch Heizung_Anf_WPNTHeizkreis "Anforderung Wärmepumpe: NT-Heizkreis [MAP(heizung.map):%s]" <light> (gHeizung,gPersistEvery5Minutes) { mqtt="<[broker:agb9/heizung/wp/nt-heizkreis/status:state:MAP(heizunganf.map)]" }
Number Heizung_Raumtemperatur "Raumtemperatur [%.1f °C]" <heating> (gHeizung,gPersistEvery5Minutes) { mqtt="<[broker:agb9/heizung/wp/raumtemperatur/ist/temperatur:state:default]" }
Number Heizung_Raumtemperatur_Soll "Raumtemperatur Soll [%.1f °C]" <heating> (gHeizung,gPersistDaily) { mqtt="<[broker:agb9/heizung/wp/raumtemperatur/soll/temperatur:state:default]" }
Number Heizung_WP_Starts "Wärmepumpe Starts heute [%s]" <heating> (gHeizung,gPersistEveryHour)
The values come in through MQTT fine, i can see the commands in events.log, but the values don’t appear in the DB. Yesterday i even set up a new openhabianpi because i wanted to rule out, that i’ve tinkered around with it enough to brake OH2, but after copying over my items and rules and persistence and service config, still no entries in the DB…
Can anyone hint me where to start?
Best regards,
Alex