How to add devices to areas via yaml or similar?

Hello everyone,
I am trying to find a clean approach to archiving and organizing my setup.
If I install freshly, I want to copy my config files and basically be done with it.

But what I cannot quite figure out is how I can add my devices to areas via e.g. yaml files so Lovelace can group them.
I know about the grouping, but I don’t think Lovelace can use those groups to automatically group my devices.
Plus, groups only supports entities and not devices, so it is too much work.

Is there a way to do this using config files or automations or something?

Thank you for your suggestions

No. It is available only to integrations set up through the UI.