Is it possible to assign area and create areas during integration initialisation?

I am the creator of the IHC integration, and IHC has a “group” concept, that would be nice to have syncrhonized with HA areas. So the first time you setup the IHC integration the group names from IHC are created as areas in HA. And when a device is setup from IHC it should be automatically assigned the associated area.

Is this possible? - any other integrations that do this - so I can take a look how it is done.