Integrate "old fashioned" doorbell into HA with Xiaomi

Hi everyone,
I saw this post, and wanted to do the same (starting to do some home automation at my new place…)
Got a Xiaomi door and window sensor but I don’t have a clue (tried to place it inside but didn’t work) where to place it in my doorbell…
Can anybody help me ?