Welcome to our Knowledge Base
Tuya Convert
Tuya Convert Walk Through – February 2019
1. Setting up your Pi and updating the OS
- Login via ssh
- sudo raspi-config
- sudo apt-get update
- sudo apt-get dist-upgrade
- sudo apt-get install network-manager
- sudo apt install git
2. Setup and Install Tuya-Convert
- In the putty window type “git clone https://github.com/ct-Open-Source/tuya-convert” press enter and wait.
- Type “cd tuya-convert” and press enter.
- Type “./install_prereq.sh” and wait.
3. Use Tuya-Convert to install Tasmota
- Type “cd tuya-convert” and press enter.
- Type “./start_flash.sh”.
- Types “yes” and press enter.
- Connect your separate WiFi device to the “vtrust-flash” SSID that is being broadcast by your Raspberry Pi. There is no password
- Plug in your Tuya plug, switch, dimmer, or bulb and put into pairing mode.
- Press enter on your cmd window to start the flash process and wait.
- 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
- On your secondary device, disconnect from vtrust-flash and connect to the new SSID called “tasmota-XXXX”
- Open 192.168.4.1 in your browser and enter your WiFi’s SSID and password.
- Use Fing to find your new device on your WiFi network, it should be called “tasmota-XXXX”
- Open the IP address of your new device in a browser.
- If using MQTT:
- Click “configuration”
- Click “configure MQTT”
- Enter your MQTT information
- If not using MQTT:
- Click “Console”
- Type “setoption3 0”
- To get the best compatability with Tuya products you should update to the most recent version of Tasmota.
- From the main tasmota screen click “Firmware Upgrade”
- In the top box change the URL to “http://thehackbox.org/tasmota/sonoff.bin”
- Press “Start Upgrade”
- Update the name of your device under “Configure Other” and then “Friendly Name”
7. Configure your specific device
- On the main tasmota screen click “Configuration”.
- Click “Configure Module”
- Consult the list of known devices to input the correct GPIO pins and chips for your device.
- If the known devices don’t work, or there is no known device, follow this procedure to make a new template.
- 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
- Digiblur – https://www.youtube.com/watch?v=O5GYh470m5k
- Digiblur Update – https://www.youtube.com/watch?v=dyUyewiKpRA
- Digiblur HA Setup Tasmota –
https://www.youtube.com/watch?v=KOg5qwO3Rh4 - Tasmota wiki – Commands
https://github.com/arendst/Tasmota/wiki/Commands - Blakadder Tasmota Device Template Repository
https://blakadder.github.io/templates/ - Flash Tasmota firmware Over The Air on Tuya Wifi switches
- Procedure to make new templates –
https://github.com/arendst/Tasmota/wiki/Configuration-Procedure-for-New-Devices
Communities - Patreon – https://www.patreon.com/digiblurDIY
- Discord – https://discord.gg/bNtTF2v
- New Device Configuration Guide
https://github.com/arendst/Tasmota/wiki/Configuration-Procedure-for-New-Devices - Tasmota .bin downloads
http://thehackbox.org/tasmota/
Tuya based favorites
- Moes 3-Way Smart Switch – https://amzn.to/2S3sPPd
- 4 pack Smart Plugs – https://amzn.to/2G2YhXi
- Night Light – https://amzn.to/2FbuVWl or https://amzn.to/2Rxedaw
- Martin Jerry Dimmer – https://amzn.to/2Thgun0
- Oittm/Lopoo/Moes Dimmer – https://amzn.to/2CiDwEC
- SK03 Outdoor Smart Plug (w/Power Monitoring) – https://amzn.to/2RIf8kO
- KULED SmartSwitch – https://amzn.to/2JqvWd6
- Martin Jerry Switch – https://amzn.to/2qowzv3
- 2 relay plugs with power monitoring – https://amzn.to/2WmChM4 Amazon US Link: https://amzn.to/2DDNYI4