Switch UI toggle has a mind of its own

Hi all, I have a few Tuya wifi switches (using the Tuya component integration with Hass.io) and for the most part they work ok. However I find often when I toggle the switch UI in the Overview panel, the toggle will revert back after a quick second or less. The physical switch/light state doesn’t revert however, but it does create a disconnect between itself and the UI.

Any ideas why this is happening, or how I could go about debugging, logs and such?

Thanks.