Driver for Aqara Smart Curtain Motor E1?

I bought one of these, but was unable to use the driver here. Turns out the version I have is lumi.curtain.acn002 which is not directly supported by the driver.

This was then my first attempt at using AI to code for/with me and I believe I have a winner here.

Feel free to do what you please with this.

hubitat-aqara-roller-shade-e1/drivers/aqara-roller-shade-e1.groovy at main · kulfsson/hubitat-aqara-roller-shade-e1