Consider the following scenario:
A South plugin receives a message containing an event's start time. After some time, it receives another message containing the corresponding end time. The goal is to calculate the duration between the start time (t_start) and the stop time (t_stop).
- What is the recommended approach to store t_start in a way that persists even after a plugin or Fledge restart?
- Is it possible to directly access assets or the storage database from a South plugin?
Would using a built-in storage service be preferable, or is there a better pattern for persisting and retrieving stateful data across reboots?