Sharing a Matter switch

I have a Matter switch that is already paired with Home Assistant on one of my computers. I want to have the switch also paired with Home Assistant running on another of my computers, as I will be switching to the other computer in the near future. How can I do this?

Did you commission it without something other than Home Assistant to begin with? Apple? Google etc?

I only used Home Assistant, no other system.

Currently that functionality is not available for Home Assistant. If you had started with Google, Samsung, Apple, Alexa - any of those - you can then share to other ecosystems. Home Assistant has not implemented the “multi admin” part of the spec yet though.

Is it possible to contribute to the Matter server code?

What I had to do was to reset the switch to factory defaults. Then I could pair the switch with my new instance of Home Assistant.