An item is not recorded

Hello,
I made the following:
Item:
Number Gmc_holz_verbrauch "Holz Verbrauch [%.3f rm]"

rrd4j.cfg

ctr5min.def=COUNTER,900,0,U,300
ctr5min.archives=AVERAGE,0.5,1,365:AVERAGE,0.5,7,300
ctr5min.items=Gmc_holz_verbrauch,

rrd4j.persist

Strategies {
    everyMinute : "0 * * * * ?"
    every5Minuten : "0/5 * * * * ?"
    every10Minuten : "0/10 * * * * ?"
    everyHour : "0 0 * * * ?"
    everyDay : "0 0 0 * * ?"
    default = everyChange
}

Items {
    KWL* : strategy = every5Minuten, restoreOnStartup
    Gmc_holz_verbrauch : strategy = everyChange, restoreOnStartup
	Gmc* : strategy = every5Minuten, restoreOnStartup
}

rules

rule "Auffüllen"
when
    Item Gmc_calc changed to ON
then
    if(Gmc_holz_verbrauch.state==NULL)Gmc_holz_verbrauch.postUpdate(4.750)
    //if(Gmc_holz_verbrauch.state==4650.1)Gmc_holz_verbrauch.postUpdate(4.650)
    sendLogNotification("Kessel: wurde befüllt")
    var Number verbrauch = Gmc_holz_verbrauch.state as Number
    var Number holz      = Gmc_menge.state as Number
    var Number ergebnis  = verbrauch + holz

    postUpdate(Gmc_holz_verbrauch,ergebnis)
    postUpdate(Gmc_calc, OFF)
end

Sitemap

Text item=Gmc_holz_verbrauch
{
Text item=Gmc_holz_verbrauch
Switch item=Gmc_menge mappings=[0.1=“Voll”, 0.05=“halb Voll”, 0.025=“viertel Voll”]
Switch item=Gmc_calc label=“Kessel wurde” mappings=[ON=“befüllt”, OFF=""]
Chart item=Gmc_holz_verbrauch period=D refresh=3600
}

I want to add a number after a selection. That works as well.
My problem is that the value Gmc_holz_verbrauch is not saved or displayed. See my picture.
I have other items because the values are recorded and displayed. Unfortunately not the value of being changed sometimes. I hope you can understand and help me.

I am also grateful for other suggestions for my meter.
Greetings from Germany

try to add also

Gmc_holz_verbrauch : strategy = everyChange, everyMinute, restoreOnStartup

According to: https://www.openhab.org/addons/persistence/rrd4j/

I am not 100% sure if the above statement is true… I don’t use rrd4j

Maybe adding a every5Minuten would work also…

Gmc_holz_verbrauch : strategy = everyChange, every5Minuten, restoreOnStartup

It seems that rr4dj needs a regular/periodic interval to work properly (everyChange is not periodic)

Note also (for restoreOnStartup from the docs)

  1. Please note that the persistence extensions will return difference instead of the actual values if you use this type; this especially leads to wrong values if you try to restoreOnStartup!
  2. rrd4j is for storing numerical data only. Attempting to use rrd4j to store complex datatypes (e.g. for restore-on-startup) will not work.

Use mapDB for restoreOnStartup in parallel to rrd4j.

Thanks for the quick response but unfortunately did not work. it only has the item the problem. with the other works that. I do not wait, I can not understand it.

From the docs:

  • <groupName>* - all members of this group will be persisted, but not the group itself. If no strategies are provided, the default strategies that are declared in the first section are applied. Optionally, an alias may be provided if the persistence service requires special names (e.g. a table to be used in a database, a feed id for an IoT service, etc.)
  • is NOT a wild card. Unless you have a Gmc Group and your Items are a member of the Gmc group, Gmc* wont store anything.

This is true. You have to change the default configuration of rrd4j to support anything other than every minute. If you don’t have everyMinute defined, no charts can be generated from the data.