Is it possible to specify both the time and the value when calling postUpdate? Normally when calling postUpdate I specify the item and the value and the time that’s persisted on the DB is the time at which the postUpdate mathod was called. I’m working on rules to calculate and store the amount of electricity used every day, I have an item which is updated at 23:59:00 every night with the amount of electricity that was used that day. This allows me to graph the daily usage in Grafana. However, the issue I have is that because the postUpdate method is called at the end of the day then it appears in Grafana charts that the daily usage is 1 day behind reality because the data is persisted with a timestamp of the end of the day.
If I could have the rule that stores the daily history at the end of the day post data with a timestamp of the start of that day then the chart in Grafana would look correct. Is that possible?