Saving data somewhere from a lovelace custom card

Hi

I am developing a lovelace custom card which displays a list of switch entities. For each entity, the user can define a ‘switch on delay’, a ‘switch off delay’ and a ‘min. running time’. So I need to store the time, when the switch on condition went true, the time when the switch went on and the time when the switch off condition went true. Also i need to store some more variables, which must survive a restart of home assistant.

So is there a possibility to store data permanently and easyily out of a custom card?

I managed to create an text_input helper programmatically, but it can store max. 255 chars, which at the end is not enough.

Also, I tried to create attributes programmatically on my helper, but this does not seem to be sopported.

Localstorage is not an option, because it depends on the browser session.

Setting up my own database would be overkill.

Does anyone have an idea, how I can save this data permanently somewhere using typescript?

Many thanks.