Create txt File

o.k., from my setup, for InfluxDB based persistence, but you can adapt this to JDBC based persistence very easily:

in items/sensebox-terasse.items:

Group gInflux
Number  Terasse_Sensebox_Luminance        "Terasse Light Level [%.1f lx]"      <light>         (Weather, gInflux)

the important part is the “(gInflux)” group membership in the item.

Then, in persistence/influxdb.persist:

Items {
        gInflux* : strategy = everyChange, everyHour
        gInfluxDaily* : strategy = everyChange, everyDay
}

Here, the important part is the “*” after the group name. I missed it in my first configurations, and it took me ages to find the simple syntax error.

Then, in services/influxdb.cfg,

url=http://my-influxdb-host:8086
user=my-secret-username
password=nope-i-won't-tell-you :slight_smile: 
db=openhab_db
retentionPolicy=autogen

See also the threads: