The easiest and safest way to convert a Tuya device to Tasmota is using Tuya-Convert.
This clever utility uses a security loophole to trick your Tuya device into thinking that it’s installing an updated version of itself, when in fact it’s replacing itself with Tasmota. This means you can do the conversion without any electrical connection to the device: you don’t need a serial connection, and you don’t need to open the case.
This is great because there’s no risk of electrocution and it can be safely done by anyone.
Support me on GitHub Sponsors or Patreon to receive exclusive discount codes, access to exclusive sections of the SuperHouse Discord, and early access to new episodes: https://www.superhouse.tv/support