Storing dashboard states on-device

I’m in the process of creating an interactive 3D floorplan of a multi-story building with the picture elements card.

I added buttons to switch the levels and filter for entity types (lights, shutters, hvac, etc.) to avoid a bloated UI.

The button states are stored in input helpers (select for floor level, booleans for the filters). Conditionals are then used to display the correct view.

As a result, a change from first to second floor by user 1 is also displayed to user 2. My goal is that the settings are user-specific or even device specific. I don’t want to create the full set of helpers and card variants per user. Therefore, my question is if I can store and access these variables for example in cookies or local storage instead of helpers and also use them in the conditionals.

Thank you very much in advance!