Where you already able to connect it? Otherwise you can connect the cables according to how they are connected to your transformer. See this post 34 for more details. You should be able to use the way Rubueno describes the wiring.
Make a dumb doorbell smart with Shelly 1 - #100 by arganto - Share
Making a doorbell smart using a Shelly 1 and Home Assistant
Easiest way to make a dumb doorbell smart (no programming, no
Tatham Oddie – Tatham Oddie
Make dumb doorbell smart - Hardware - Home Assistant Community
Sonoff Doorbell 2024
DIY Garage Door Opener w/ Security+ 2.0 GDOs - HomeTechHacker
31 DIY Alexa Connected Smart Doorbell
Make a dumb doorbell smart with Shelly 1 - #102 by arganto - Share
Make a dumb doorbell smart with Shelly 1 - Share your Projects
31 DIY Alexa Connected Smart Doorbell
FAQ: List of devices with dry contact input from external sources