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
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
It seems that rr4dj needs a regular/periodic interval to work properly (everyChange is not periodic)
Note also (for restoreOnStartup from the docs)
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!
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.
<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.