Assuming you get the equivalent off command, something is sending MQTT messages. Do you have any automations running on HA (or any other machine for that matter)?
You need to establish where these messages are coming from. If you stop HA, does it continue to change state? If so, then something in HA is sending the message. If not, it is something else on your network.
If it is something in HA, then increasing the logging level should show what is being triggered to send the message.
One more thing i observed is when i type ButtonRetain Off
In tasmoto console. Nothing happens. Which means the command is not executed?
Is that a issue?
I figured out something insane.
i have configured the RF ON/OFF using standard sonoff RF Remote for my 3Gang Sonoff T1
i also have a RF motion sensor in the same room. Loooks like the motion sensor sends the singnal wen motion is detected is grabbed by this switch1.