SwitchBot Contact sensor with official integration

I am thinking about purchasing a SwitchBot Contact sensor (WoContact), and I wanted to know if it works well with the official SwitchBot integration in Home Assistant. Also if it does, how do I configure it to work with the motion sensor knowing if you’ve left or entered the room? Thanks!

(edit: I’m using a raspberry pi 4b to run Home Assistant)