I want to share my sensor template that implements an event driven persistent key-value storage system using sensor attributes. It allows to store and manage hierarchical data with up to 3 levels of value nesting.
Check it out on my github repository:
https://github.com/Dehil/ha-data-storage
The repository contains the sensor template itself (templates.yaml), an example automation with the events to add, remove and clear data (automation-data-storage-testing.yaml) and a example file where you can see the stored example data (sensor.example.attributes.yaml).
Detailed informations, installation instructions and other informations can be found in the README.md.
Feedback or suggestions for improvements are welcome!