Do you know the values corresponding to the different actions?
In zigbee standard are cluster 0006 and attributte 0x4003:
0: “device remains switched Off”
1: “device remains switched On”
255: “device restores previous state”
In Tuya are cluster 0006 and attributte 0x8002:
0: “device remains switched Off”
1: “device remains switched On”
2: “device restores previous state”