SAGE Doorbell sensor

Hi! I bought the Sage Doorbell Sensor from eBay, and after doing such a few times, I realize things won’t work with Homey without a driver… :frowning:

Yet I found this piece of code, made for SmartThings, I suppose. Could anyone turn this into a useable Homey driver?