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.
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
I want to make my garage door smart : r/homeassistant
Make a dumb doorbell smart with Shelly 1 - Share your Projects! - Home Assistant Community
Make your doorbell smart by using esp8266 with HOME ASSISTANT.
Make a dumb doorbell smart with Shelly 1 - #102 by arganto - Share your Projects! - Home Assistant Community
Make a dumb doorbell smart with Shelly 1 - #125 by capsel22 - Share your Projects! - Home Assistant Community
Help making wired dumb doorbell smart with Shelly 1 : r/homeautomation
Make a dumb doorbell smart with Shelly 1 - #82 by pabu - Share your Projects! - Home Assistant Community
Cutting out MyQ cloud from Garage Door control - 💬 Lounge - Hubitat
Cutting out MyQ cloud from Garage Door control - 💬 Lounge - Hubitat
Shelly One WIFI Switch - Scargill's Tech Blog
Sonoff Doorbell 2024