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.
31 DIY Alexa Connected Smart Doorbell, Add Dumb Doorbell to Home Assistant
Cutting out MyQ cloud from Garage Door control - 💬 Lounge - Hubitat
Shelly One WIFI Switch - Scargill's Tech Blog
Make a dumb wired doorbell smart for less than $6
Sea slug Spooky Lamb diy smart doorbell home assistant social Penmanship Detailed
Why I Fully Automated My Net Zero Smart Home - Undecided with Matt Ferrell
Shelly 1 - Shelly USA
Automating My Apartment Door Buzzer, by Anthony David Adams
Cutting out MyQ cloud from Garage Door control - 💬 Lounge - Hubitat
Shelly support group (English Version) Does anyone know if I can use a Shelly 1 or 1PM to control an electric door lock (the brand is Viro) like shown in the
Make a dumb doorbell smart with Shelly 1 - #143 by jobganzevoort - Share your Projects! - Home Assistant Community
Home Assistant, Hi team