Hi Phil,
Thanks for your reply and useful pointers.
I think I am on the right track as I have produced something similar during testing (if you forgive me for the print statements). See the picture below
I am curious- what is the purpose of the 'return UNCHANGED;' ?
If I need to return the daily value do I just use CRON '0 0 23 * * ?' and use 'return p48.past(15, HOURS).integral;' instead of 'return UNCHANGED;'?
Also the data being collected is already a kWh value, therefore I guess I just need to change the rollup to Integral as suggested.
Further question-
I may need to produce a daily value using something like CRON '0 30 23 * * ?' to run daily at 23:30. My reason to run at 23:30 is that the data been collected may get delayed through sigfox transmission and processing so in order to retrieve last reading I may need the delay (which is unpredictable). This would raise the question that need to change the >=23 to something like >23:15. This is another complication to resolve. Maybe a trigger event might work here. Any suggestions?
Appreciate your support,
Paul