Is there a way to change a state of a cover when a button pressed on it?

I have 6 Tuya cover switches (WIFI), which are in the “Windows” class.
Their state is always unknown, and when I open/close the window, It shows like the photo below:
image
I’ve been trying to fix it to get it show percent, or at least if it’s open or closed, but no luck.
AFAIK there is no way to fix that.

If you have any way to fix it, please share :slight_smile

If not, then I’m trying to build a template that changes the cover’s state whenever I click on the open/close button.

Any ideas?!