I wonder if there is a device that just taps into the open/close wires, with a sensor that will optically detect the distance along the track of the highest roller of the door, and attaches magnetically to the track. This solution would have first-class home assistant support and work across all door openers.
ratgdo[1] is close.