I have persisted the item “LG_Resus_Charge_Tot” which shows the total amount of charged battery energy.
Now I would like to know only the todays value. Something like this:
Actual Value - Value at midnight
I already tried if something like this is working, but without success:
rule "Test" when Item LG_Resus_Charge_Tot changed then var Number today = LG_Resus_Charge_Tot.changeSince(now.minusMinutes(30), "rrd4j").state as DecimalType postUpdate(LG_Resus_Charge_Day, today) end
Any ideas how I can get this value? Is another persistance service needed than rrd4j? The persistance itself is working (everyMinute)