Match curtain motor Target lift position to curtain switch

Hi

I have a Zemismart BCM500DS-TYZ working via ZAH quirks. I can open, close and stop it and get a correctly auto calibration value for Target lift position attribute.

And I have Tuya QS-Zigbee-CP03 also via ZAH quirks, controlled via a physical curtain switch. I can open, close and stop it and do a manual calibration of the Target lift position attribute value.

I would like to control the curtain motor with the physical switch, but when I press it the status (opening, closing, stoped) is not updated in HA, only the Target lift position changes.

How can I match the curtain motor Target lift position to the switch?