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.
Home Assistant EDIT: I THINK I've solved the problem by doing as
Make a dumb doorbell smart with Shelly 1 - #102 by arganto - Share
Made an up-to-date diagram of my smarthome and media management
Home Assistant Shelly i3 on the default integration does not
Make your doorbell smart by using esp8266 with HOME ASSISTANT
Make dumb doorbell smart - Hardware - Home Assistant Community
Make a dumb doorbell smart with Shelly 1 - Share your Projects
31 DIY Alexa Connected Smart Doorbell
Doorbell button > Shelly Uni config - Configuration - Home
Anyone else having trouble with the MyQ integration? : r/homeassistant
Getting tired of my 8 year old smart home. : r/homeautomation
Make a dumb doorbell smart with Shelly 1 - #120 by jmnrutten
Home Assistant Does anyone know how i can pick up a stream from
Making a doorbell smart using a Shelly 1 and Home Assistant
Shelly support group (English Version)