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.
Making a doorbell smart using a Shelly 1 and Home Assistant
Make a dumb doorbell smart with Shelly 1 - #82 by pabu - Share your Projects! - Home Assistant Community
Make a dumb doorbell smart with Shelly 1 - #125 by capsel22 - Share your Projects! - Home Assistant Community
Sonoff Doorbell 2024
Help making wired dumb doorbell smart with Shelly 1 : r/homeautomation
Shelly One WIFI Switch - Scargill's Tech Blog
Adding Video to Audio Intercom. : r/HomeKit
Make a dumb doorbell smart with Shelly 1 - #82 by pabu - Share your Projects! - Home Assistant Community
Help making wired dumb doorbell smart with Shelly 1 : r/homeautomation
Sonoff Doorbell 2024
Motion Sensor Door Chime for Business, Outdoor Doorbell Kit Wireless Driveway Alert: Infrared Motion Sensor Chime with 1 Plug-in Receiver and 1 PIR Motion Sensor Detector Alert - LED Indicators
Make a dumb wired doorbell smart for less than $6
Home Assistant, Hi team
Make a dumb wired doorbell smart for less than $6
Make a dumb doorbell smart with Shelly 1 - Share your Projects! - Home Assistant Community