Welcome to our Knowledge Base

Tuya Convert

You are here:
< Back

Tuya Convert Walk Through – February 2019

1. Setting up your Pi and updating the OS

  1. Login via ssh
  2. sudo raspi-config
  3. sudo apt-get update
  4. sudo apt-get dist-upgrade
  5. sudo apt-get install network-manager
  6. sudo apt install git

2. Setup and Install Tuya-Convert

  1. In the putty window type “git clone https://github.com/ct-Open-Source/tuya-convert” press enter and wait.
  2. Type “cd tuya-convert” and press enter.
  3. Type “./install_prereq.sh” and wait.

3. Use Tuya-Convert to install Tasmota

  1. Type “cd tuya-convert” and press enter.
  2. Type “./start_flash.sh”.
  3. Types “yes” and press enter.
  4. Connect your separate WiFi device to the “vtrust-flash” SSID that is being broadcast by your Raspberry Pi. There is no password
  5. Plug in your Tuya plug, switch, dimmer, or bulb and put into pairing mode.
  6. Press enter on your cmd window to start the flash process and wait.
  7. Once the process completes you can type ” curl http://10.42.42.42/flash3″ to install tasmota, or look at the other options available.

4. Setup Tasmota

  1. On your secondary device, disconnect from vtrust-flash and connect to the new SSID called “tasmota-XXXX”
  2. Open 192.168.4.1 in your browser and enter your WiFi’s SSID and password.
  3. Use Fing to find your new device on your WiFi network, it should be called “tasmota-XXXX”
  4. Open the IP address of your new device in a browser.
  5. If using MQTT:
    1. Click “configuration”
    2. Click “configure MQTT”
    3. Enter your MQTT information
  6. If not using MQTT:
    1. Click “Console”
    2. Type “setoption3 0”
  7. To get the best compatability with Tuya products you should update to the most recent version of Tasmota.
    1. From the main tasmota screen click “Firmware Upgrade”
    2. In the top box change the URL to “http://thehackbox.org/tasmota/sonoff.bin”
    3. Press “Start Upgrade”
  8. Update the name of your device under “Configure Other” and then “Friendly Name”

7. Configure your specific device

  1. On the main tasmota screen click “Configuration”.
  2. Click “Configure Module”
  3. Consult the list of known devices to input the correct GPIO pins and chips for your device.
  4. If the known devices don’t work, or there is no known device, follow this procedure to make a new template.
  5. Press “Save”
  • Tasmota Tuya Convert
  • Tuya-Convert video walkthrough
  • TuyOTA walkthrough
  • Mock Tuya Cloud – A general purpose framework for interacting with Tuya devices without the Tuya operated cloud.
  • Tuya API – A library for communicating with devices that use the Tuya cloud network.

References

Tuya based favorites

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Table of Contents