Logging temperature using persistence [Solved]

I am unable to log temperatures in my temperature log file. I started with the demo site setup and it is only working for the demo items. My goal is to log temperatures every 1 minute. Any ideas on what I am doing wrong here?

Number Temperature_Test “office - Multi Temperature [%.1f °F]” (multi,multiGraph) {zwave=“2:command=SENSOR_MULTILEVEL,sensor_type=1”}


Strategies {

everyMinute : "0 * * * * ?"
default = everyChange


Items {
// log all temperatures on every change
Temperature* -> “temperatures” : strategy = everyMinute

The Temperature* specification instructs openHAB to persist all items in the Temperature group, if any. It’s not a wildcard match on the name. Try specifying the actual item name.

1 Like

The syntax is a little confusing.

When you use Temperature* what you are actually telling persistence is to use that strategy for all the members of the Temperature group, not all the items that start with “Temperature”.

So you either need to create a group called “Temperature” and add Temperature_Test to it or list your Temperature Items individually.

1 Like

Ah, thanks guys! Adding to group worked.