I know there are quite a few versions of my original ported code from smartthings around on this forum. Since I've newly acquired a hubitat hub I'm now transitioning over and decided to port my own devices over. Here's my version of the handler/device-code developed for my personal use but sharing it here if anyone finds it useful:
EDIT: updated to allow better integration with dashboard slider and alexa when max open level is set. Also improved the final state reporting so should always end with an open or closed state so that dashboard is able to open or close blinds with single click.