Which could maybe be adapted. You will no doubt be sensing how many full revolutions it makes in either direction. I’d probably also add a “Home switch” that the unit presses against when it’s fully retracted, allowing you to calibrate the rotary encoded position every time someone fully closes the awning. (Other wise it’s possible it will get out of phase/sync).