Store configuration data for custom card?

Hi,

probably extremely easy (and I am kind of blind not finding it), or not possible at all…
Is there a simple way for a lovelace custom card that deals with some dynamic runtime configuration to store it (basically a json file) and load it again on next run? Just found workarounds through setting up notification platform…but I basically just need a read and write file fct. – does it exist?

Thanks, Hans-Juergen

1 Like

If it were me, I would set up a simple custom component that loads/stores a json file and exposes WebSocket APIs to the card.

My example - GitHub - pathofleastresistor/activity-manager: A Home Assistant custom component to manage recurring activities. and GitHub - pathofleastresistor/activity-manager-card: A companion Lovelace card for the Activity Manager custom component designed for Home Assistant..