Well, binding already utilise restoreOnStartup strategy feature.

1) binding receive message e.g. ones per every second from measuring sensor. From received data, binding calculate energy consumption during this short 1 second period and add this instant consumption to cumulative energy consumption (cumulative value is cached on binding internal ram store) and post update to OH bus.
2) persistence store take snapshot e.g every minute or hour from this cumulative value.
3) after OH restart, binding synchronise cumulative energy consumption value from item registry where restoreOnStartup strategy has restored the value.
4) binding receive messages from sensor and add instant consumption to cumulative value …