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
Home Assistant EDIT: I THINK I've solved the problem by doing as
2022.6: Gaining new insights! : r/homeassistant
Making a doorbell smart using a Shelly 1 and Home Assistant
Why I Fully Automated My Net Zero Smart Home - Undecided with Matt
Shelly One WIFI Switch - Scargill's Tech Blog
I want to make my garage door smart : r/homeassistant
Make a dumb doorbell smart with Shelly 1 - Share your Projects
Sonoff Doorbell 2024
Making a doorbell smart using a Shelly 1 and Home Assistant