Controlling Matter devices connected to Apple Home

Did you connect it to Apple Home using Thread/Matter? If so, you can enable pairing mode for the device from the Apple Home app, which will give you a (new!) pairing code that you can try with Homey.