Another option to catch the ring button pressed might be to integrate a Shelly1. They describe on their shelly website a use case to get notified of dumb doorbell pressed, see also Make a dumb doorbell smart with Shelly 1.
But I didn’t try it yet myself.