OpenHAB connected doorbell

I wish to connect my doorbell to my OpenHAB server, without interfering with the current installation. I will be using an optocoupler for this purpose.

What I have: