Able to control switch through automation but not manual

I am new with HA and I need your help to figure out an issue:
I have a Tuya switch which is detected by HA. I used to control this switch manually from HA and also by voice through google home, however, since I started to test automations, the switch doesn’t respond to manual switching (in HA). I can fully control it through Automation but not manually. Any idea what is going on?

BTW, I can physically turn on or off the switch and the state will be updated in HA, however, if I click on the switch to change its state in HA, it goes back after a couple of seconds to the previous state.

I deleted all the automations and restarted HA few times, with no success

Also, Google home doesn’t recognize the switch anymore.