When you’ve found the Tuya Cloud app topic, look for “RAW commands” in post #1
It’s all explained there.
That’s called toggle.
You can imitate this with a flow like this:
When…
-button is pressed
And…
-lampX is on
Then…
-turn off lampX
Else…
-turn on lampX