I've done this for vertical blinds using this: https://github.com/kp-bit/xblinds but for my big roller blind I used a commercial solution, the motor on the DIY version wasn't strong enough even with a planetary gear box added.
Then for the automation I'm using home assistant