I got similar door bell with 230v AC which triggers the electro magnetic field and the bell rings. I have posted similar requirement. Check Here for the proposed solution. If you got same model of Shelly you may try that approach.
Edit: I don’t have any Shelly device so I could not confirm but as per the laws of electrical it should work.