Looking for some Matter guidance

You can look at the Matter Advanced Bridge code.

SwithBot2 inbuilt temperature and humidity sensors should be working OK, but I did not succeed to make the locks working.