I have a problem with a few of my items. I use two persistence services:
- rrd4j -> default persistence
- mapdb -> only used for restoreOnStartup
Now I have an item with an rrd4j strategy of “everyMinute”.
The item is a group item (Group1), I add it as an individual item (so without the *) as I am interested in the overall value (its a group of type Group:Number:MAX)
The individual members of the group also belong to a second group Group 2. For “Group2” there is a second rrd4j strategy, this time for the individual members, so for “Group2*”
So I think I should have a history of Group1 as I have a specific rule for this Item. And I should have history for the individual items as they belong to Group2 as well and I have a rule for that.
Now when I have a chart where I add Group1 I see the members of Group1 with a valid history.
Is there a possibility to show the actual value of the group item itself?
When I use Group1 now in my rules with something like that:
var Number maximum = Group1.maximumSince(now.minusMinutes(60), “rrd4j”).state as DecimalType
I would expect to get the maximum for this group item of the last 60min. Sometimes this works as expected. But sometimes it just provides the current state.
When it doesn’t work I tried touching my rule file (to force a reload), I tried to touch my persistence file. This does not help.
The only thing that helps is to stop OpenHab and start it again. I might have luck and it works this time… or not…
Does anyone have an idea what the problem could be?
I am using OpenHAB 2.5. I think it occurred also before on 2.4 but my rules are stricter now (I check plausibility of the historic values by comparing them to the current value), so the problem is now more obvious to me.
Thanks for your help!