Problem with Zemismart Zigbee Curtain Switch in Lovelace

I connected my curtain switch with zigbee2mqtt. Using the zigbee2mqtt interface works just fine, but in Lovelace it shows the wrong state for Open/Close position and the right function to trigger is greyed out. The position of the curtain in percent is advertised correctly.

Tuya Smart Switch

You have found a solution?