This tutorial worked really well for me on an SM-S0301 power strip. The one thing that wasn’t clear to me before starting is how the Raspberry Pi would connect to the power strip, as that wasn’t specifically stated anywhere. It’s obvious now, but I’ll add some detail for the benefit of others.
- When you run
start_flash.sh, Tuya-convert changes the RPi into a WiFi access point calledvtrust-flash. You then need to connect a device to it (I used a Chromebook), but you don’t have to do anything with the connected device. - Put the Tuya-based device into recovery mode by holding its button, and then press “Enter” on your RPi to proceed. Your RPi wll then go looking for nearby Tuya-based devices (in my case it was very quick). It will then backup the firmware and ask you to install Tasmota, Espurna, or the original firmware.
- Once you’ve installed Tasmota, the Tuya-based device will reboot and appear as a WiFi called
tasmota-xxxx. Connect to with a device and then go to192.168.4.1in a web browser to input your WiFi SSID and password. When you save, the device will reboot and connect to your WiFi network. - Once the device is on your network, you can connect to it via its hostname (
tasmota-xxxx) or its IP address. You can then upgrade the Tasmota firmware and configure it from a template using these instructions. You can also get all of the information you’ll need to set it up in openHAB.
Thanks for your efforts, @CDriver! Now to figure out how MQTT works…