My brother and I share a piece of land where each one have its own house but we share the entrance gate, so I made a smart doorbell with a Wyze V3 camera and a Shelly 2.5.
The idea is that there are 2 switches connected to the SW terminals of the Shelly that when pressed trigger an automation for the corresponding house.
The automation sends a photo through a telegram message that notifies the members of that family that someone is at the door, the message also includes options such as: open the gate, turn on the light or take a new photo if the previous one is not clear.
Here is the connection diagram and a sample image