Connect Ring.co doorbell to Loxone controller
The best solution would be to simply connect the wires connected to the pushbutton in the left diagram across the two screw terminals on the right diagram. No diode is necessary.







simulate this circuit &ndash; Schematic created using CircuitLab

Because there is a diode across the terminals in the right diagram, it suggests this device is using a transistor internally instead of a direct connection to the mechanical button that the user pushes. Since the diode is there to protect the transistor from damage due to driving an inductive load, it will not be necessary in your application as the microcontroller is not an inductive load.