Tuya Convert 2.3 Update | Flash Tuya Smartlife Devices | No Soldering! | Remove the cloud | Custom Firmware



The 2.3 refresh of the Tuya Convert process with a few additional features such as the Tuya Donor, custom bin file menu, start with ESPHome, update Tasmota, etc.  Flash all your devices without any soldering or opening of devices!  This process allows you to flash your previously locked out devices that wouldn't flash before on the original version of Tuya Convert.  TC will convert both older and newer firmware devices automatically.  Use your Raspberry Pi, Linux PC, Proxmox, etc to unlock all the amazing features of open source firmware.  Protect your privacy and data and keep it in your home.

Parts List
Raspberry Pi 4 or Pi 3
32gb Micro SD Card
Fliirc Case (optional: great RPi heat sink case)
Wemos D1 Mini (optional)

Tuya based favorites
Aoycocr Plugs in Video
Martin Jerry Dimmer
Martin Jerry Switch
4 pack Smart Plugs
Aoycocr Switch 3 LED
Lohas Smart Light 4 pack
and many more

Zemismart downlights
Zemismart downlight (Amazon)

Links
Raspbian Buster Lite - https://downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2019-09-30/2019-09-26-raspbian-buster-lite.zip
Etcher Link - https://www.balena.io/etcher/
Putty Link - https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
Tuya Donor Files - https://github.com/digiblur/Tuya-Convert-Donor

Set your WiFi Country Code!! https://www.raspberrypi.org/documentation/configuration/wireless/wireless-cli.md

Steps for SSH/Putty Terminal
sudo apt update
sudo apt install git
git clone https://github.com/ct-Open-Source/tuya-convert
cd tuya-convert
./install_prereq.sh
./start_flash.sh

NOTE: If you have an issue with a device not working and it is an ESP82xx based device, you can try the older 2.3 branch; delete your old tuya-convert folder, run the git command below then run install_prereq.sh again.

git clone https://github.com/digiblur/tuya-convert -b development

Others

Tasmota - https://github.com/arendst/Tasmota
EspHome - https://esphome.io/
Tasmota MQTT Configuration How-to - https://youtu.be/KOg5qwO3Rh4
ct-Tuya-Convert Github - https://github.com/ct-Open-Source/tuya-convert

Products We Use/Recommend

Amazon US - https://amzn.to/2YZNDeO
Amazon UK - https://amzn.to/2TnG2R4
Amazon CA - https://amzn.to/2HchPZe

Come chat with us!
Discord - https://discord.gg/bNtTF2v
Patreon - https://www.patreon.com/digiblurDIY

Links to products provided through the Amazon Affiliate program.

Comments

  1. Hello! I have a few Treatlife regular and dimmer smart switch which I would like to perform the tasmota flash so I could have them added to my Home Assistant. I'm really new to all this and I'm trying to figure the way of doing it. Should I follow the steps in this video to get them flashed? Thanks in advance.

    ReplyDelete
  2. Yep, then look in my videos and there's one on setting it up with Home Assistant. https://youtu.be/_3WW4NVYHrU

    ReplyDelete
  3. Hello again. I did finally convert my single switch (no dimmer) to tasmota and I was able to configure the wifi on it. Problem is that I now don't seem to be able to use it by pushing the button. I can toggle on and off using the webpage. I did search trough your videos and I failed in finding what to do. I believe it has something to do with the "Configure Module" but I'm not sure. Appreciate any assistance you could offer. Thanks again!

    ReplyDelete
    Replies
    1. As an update, I followed your video and found the template on the Tasmota Device Template Repository!

      Delete
  4. Can you provide an update using the proxmox you link to in the new link. Thanks

    ReplyDelete
  5. Hi,

    I found problem with this tool, it doesn't work with Raspbian Buster Lite version with relese date 2020-02-13.
    I rolled back to version from 2019-09-26.
    it doesn't open AP to connect to.

    ReplyDelete
    Replies
    1. Yes, they require the country code to be set now. The link to set it is in the video desc.

      Delete
    2. I would suggest you adding more detailed instructions also for this step!

      Delete
  6. After flashing Gosund SP1 with ESPhome (code from https://esphome.io/cookbook/brilliant-mirabella-genio-smart-plugs.html#gosund-sp1, I just added AP) I se only blue led when socket is off and none, when socket is on. It is not visible on ESPhome neither on my router and AP was also not created. What should I do?

    ReplyDelete
    Replies
    1. did you configure it for AP fallback?

      Delete
    2. Sure I did, as I do with my all ESPhome devices.
      But AP is not created.

      My whole code is on https://pastebin.com/DGUskZbv

      Delete
    3. I flashed the same way also Gosund SP111 (same as Blitzwlf BW-SHP6) but I have choosen Tasmota and it works normally. I do not dare to try ESPhome anymore so I just wonder how to at least get tasmota also to SP1.

      Delete
  7. Amazing, thank you for the amazing explanation. Love your videos.
    I just build my smart home and all your videos helped me a lot.

    ReplyDelete
  8. This comment has been removed by the author.

    ReplyDelete
  9. First THANK YOU for this. I have been wanting to do this for a long time.
    So I flashed 1 of the Tuya 4 pack plugs found here (https://amzn.to/2G2YhXi) with with the Tasmota wifi.bin, connected it to my wifi and i believe set it up properly. I chose Tuya MCU (54) in the module section and gave it the name floor lamp in MQTT. I also set up Wemo emulation just as I did my Sonoff (That works). However, I can't get it to toggle either through the web interface or with the button. i have also used the command line to sent the toggle command to the plug with the results being as expected. On and off according to the command returns. Alexa (I know, still in the cloud for now) detected and added it to my list of plugs and also cannot toggle the light. what might I have done wrong?

    ReplyDelete
    Replies
    1. So those aren't using the TuyaMCU. TuyaMCU is for a secondary chip on some devices like dimmers, plugs are simple and don't need that secondary processor. Plugs just need a simple template on them, jump into the discord chat if you need help with setting up Tasmota on them with the right template.

      Delete
  10. I'm having an issue with seeing the AP from my phone, as in, there isn't one.

    using 'sudo raspi-config' I set up my Country code, keyed in an SSID, left the passphrase empty, and did a reboot, and I don't see an AP from my phone.

    the contents of wpa_supplicant.conf is:


    ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
    update_config=1
    country=US

    network={
    ssid="V-Trust"
    key_mgmt=NONE
    }

    and rfkill list shows:

    0: phy0: Wireless LAN
    Soft blocked: no
    Hard blocked: no
    1: hci0: Bluetooth
    Soft blocked: no
    Hard blocked: no

    any thoughts?

    ReplyDelete
  11. Any idea how to flash a Tuya IP Camera?

    ReplyDelete
  12. Hi,

    I've recently used your Tuya Convert to successfully flash tasmota onto some Zemismart Downlights, and thought i'd try the same process on a generic smart bulb that i purchased on amazon.
    The light fast blinks - however teh the putty windows just cycles through the below -

    SmartConfig complete.
    Resending SmartConfig Packets
    ................
    SmartConfig complete.
    Resending SmartConfig Packets
    ..............
    Device did not appear with the intermediate firmware
    Check the *.log files in the scripts folder
    Do you want to try flashing another device? [y/N]

    Is there something else that i need to do ?

    ReplyDelete
    Replies
    1. same issue here. any solution ?

      Delete
    2. https://github.com/ct-Open-Source/tuya-convert/issues/483

      Delete
  13. Will this work with the Sonoff RF?

    ReplyDelete
    Replies
    1. Sorry, to clarify actual details: can I use convert 2.3 to flash Sonoff RF without soldering? I know the RF is flashable in general:
      https://templates.blakadder.com/sonoff_RF_bridge.html

      Delete
    2. No soldering needed on the Sonoff RF. It has an open pin header, just put the for wires in there.

      Delete
  14. just got a treat life 3 way switch the SS01 version and it is not allowing me to flash. After putting the device in fast paring mode and enabling the tuya convert script. I can flash other treat life devices and dimmers but not this one. The light blinks fast then cuts off when it sees the wifi i believe. I have a feeling its a issue with the current firmware that is installed on it.

    ReplyDelete
    Replies
    1. I have the same issue. Anyone figure this out?

      Delete
    2. I have the same problem with the same switch SS01 it just keeps retrying

      ................
      SmartConfig complete.
      Resending SmartConfig Packets
      ................
      SmartConfig complete.
      Resending SmartConfig Packets
      ................
      SmartConfig complete.
      Resending SmartConfig Packets
      ................
      SmartConfig complete.
      Resending SmartConfig Packets
      ................
      SmartConfig complete.
      Resending SmartConfig Packets
      ................
      SmartConfig complete.
      Resending SmartConfig Packets
      .................
      SmartConfig complete.
      Resending SmartConfig Packets
      ................
      SmartConfig complete.
      Resending SmartConfig Packets
      ................
      SmartConfig complete.
      Resending SmartConfig Packets
      ................

      Delete
    3. TuyaConvert not working? Check the log files in the scripts folder: smarthack-web.log for any warnings of a non-ESP82xx device. smarthack-psk.log for "DECRYPTION_FAILED_OR_BAD_RECORD_MAC"

      Delete
    4. The smarthack-psk.log has the "DECRYPTION_FAILED_OR_BAD_RECORD_MAC" message. What does that mean?

      Delete
    5. https://github.com/ct-Open-Source/tuya-convert/issues/483

      Delete
  15. Had a busy day of flashing (not THAT kind of flashing...) with 16 M&J switches, 4 dimmers and 3 3way switches all flashed successfully which is great. One of the 3way switches though started to flash and then failed. No matter what I try (reset, restart, both buttons at the same time, etc) I cannot get it into pairing/flashing mode. Is this bricked or is there a process by which I can revive this guy? Thanks, great videos!

    ReplyDelete
    Replies
    1. I'm in the same boat, I was working on flashing a smart outlet, I had it connected and it started the process, it was attempting to fetch the firmware backup and timed out. I believe the device with tuya-convert on it was to far from either the device or the phone and wasn't able to download in the right amount of time. now the smart outlet just has a blue light lit up and will not enter pairing mode, or anything.

      Any ideas?

      Delete
    2. I also got stuck on the "Fetching firmware backup". After going back through the blog I realized I copied the "digiblur" git hub and not the github "ct-opensource/tuya" (the actual one we are supposed to use) I am not sure if this is the problem or not. My switch was in fetching mode for at least 10 min. I was finally able to flash tasmota, but now it is bricked. Switch is a treatlife / basic single pole model.

      Delete
  16. Can a tuya-convert-donor nodemcu be run off a wall usb outlet or does it need to be plugged into the pi? I'm using a pi zero with the ethernet adapter plugged into the other usb slot, so I don't have anavailable one (or a powered usb hub).

    ReplyDelete
  17. Could not flash Globe Electric Wi-Fi Smart 5"/6" Dimmable LED Retrofit Recessed Light, even though the my router shows them locally as ESPXXX. I think this one has a new firmware. It seems that these are build in Canada (Montreal).

    ReplyDelete
  18. Hi,

    Thanks for the video, my Treatlife Smart Dimmer Switch DS02S wasn't working with the normal app (setup process impossible to finish no matter what) and this simply resurrect it :-)

    I was able to follow your other youtube video and it's a very good content!

    I only can't used the dimmer function from tasmota (but buttons works) but at least I could turn on and off the light!

    ReplyDelete
    Replies
    1. Try this one to finish setup. https://youtu.be/_3WW4NVYHrU

      Delete
  19. Hey,

    I'm having a lot of trouble trying to initiate the flash process. I always get the same error (AP Mode not supported). I have tried the following scenarios

    1. Linux VM on MAC OS with Parallels
    2. Raspberry Pi 1 with USB Wi-Fi dongle
    3. Multiple linux VM's on Unraid with passed through USB Wi-Fi Card
    4. Old Thinkpad with Linux

    I am all out of options, any help would be greatly appreciated. Thanks

    ReplyDelete
    Replies
    1. You need a wifi adapter that supports AP mode.

      Delete
    2. This is true, or you would have to update the driver for your USB wifi dongle.

      I fired up an ubuntu 20.04 box with my usb wifi (D-Link DWA-131, which has a rtl8192eu chip), and got the same AP mode not supported.

      So I went to the support page of the usb wifi and downloaded the linux driver, which requires kernal version up to 4.17, which means ubuntu 18.04.1.

      I then started from the top with ubuntu 18.04.1, and followed the instructions in the driver download zip file. And yes I can get pass the "AP mode not supported" in the end, with all the same hardware.

      Hope this helps.

      Delete
  20. I was working on flashing a smart outlet, I had it connected and it started the process, it was attempting to fetch the firmware backup and timed out. I believe the device with tuya-convert on it was to far from either the device or the phone and wasn't able to download in the right amount of time. Now the smart outlet just has a blue light lit up(solid, no flashing) and will not enter pairing mode, or anything.

    Any ideas?

    ReplyDelete
    Replies
    1. If you got to the fetch firmware part then the exploit stub is on there. You need to make sure everything is close to each other.

      No worries. Shut down Tuya Convert. Unplug the smart outlet. Bring Tuya Convert back up, let it pull up the AP. Fire up the smart outlet again. No need to press any buttons. Hit enter and it will take off and finish.

      Delete
    2. Ive tried loading this on an rpi zero w running kali but it still says ap mode not supported. Only command that I could find that got it into monitor mode was iwconfig wlan0 mode monitor

      Delete
  21. Hi, I'm new to tuya convert. Is tuya convert still working? I have try to flashed a tuya curtain motor but the smartconfig packet fail to send and keep looping in the same step.

    smarthack-psk.log written as below:

    new client on port 443 from 10.42.42.22:65379
    could not establish sslpsk socket: [SSL: NO_SHARED_CIPHER] no shared cipher (_ssl.c:1056)
    don't panic this is probably just your phone!
    new client on port 443 from 10.42.42.22:65380
    could not establish sslpsk socket: [SSL: NO_SHARED_CIPHER] no shared cipher (_ssl.c:1056)
    don't panic this is probably just your phone!
    new client on port 443 from 10.42.42.22:65381
    could not establish sslpsk socket: [SSL: WRONG_SSL_VERSION] wrong ssl version (_ssl.c:1056)
    don't panic this is probably just your phone!
    new client on port 443 from 10.42.42.22:65386
    could not establish sslpsk socket: [SSL: NO_SHARED_CIPHER] no shared cipher (_ssl.c:1056)
    don't panic this is probably just your phone!
    new client on port 443 from 10.42.42.22:65387
    could not establish sslpsk socket: [SSL: NO_SHARED_CIPHER] no shared cipher (_ssl.c:1056)
    don't panic this is probably just your phone!
    new client on port 443 from 10.42.42.22:65388
    could not establish sslpsk socket: [SSL: NO_SHARED_CIPHER] no shared cipher (_ssl.c:1056)
    don't panic this is probably just your phone!
    new client on port 443 from 10.42.42.22:65389
    could not establish sslpsk socket: [SSL: NO_SHARED_CIPHER] no shared cipher (_ssl.c:1056)
    don't panic this is probably just your phone!
    new client on port 443 from 10.42.42.22:65391
    could not establish sslpsk socket: [SSL: WRONG_SSL_VERSION] wrong ssl version (_ssl.c:1056)
    don't panic this is probably just your phone!
    new client on port 443 from 10.42.42.22:65392
    could not establish sslpsk socket: [SSL: WRONG_SSL_VERSION] wrong ssl version (_ssl.c:1056)
    don't panic this is probably just your phone!

    ReplyDelete
  22. Hello, Thank you for the great content! I was able to flash an old treatlife dimmer that had been laying around. I bought a new one a few days ago and I am getting an error: "Device did not appear with the intermediate firmware." Is newer firmware on it and it is not able to flash? Will I need to solder and do that method, or has someone figured it out? Thanks again!

    ReplyDelete
    Replies
    1. Saw your reply earlier and ended up at the PSK 2 wiki. Looks like its still an issue... I will wait to see what happens

      Delete
  23. Are there any outlets on the market currently OTA flashable? Bought some BNlinks last week and the first pack was. Second pack won't.

    ReplyDelete
  24. Hi, I bought 6 NEO Coolcam Smart Power Plug 3680W sockets and each socket has MCU version 1.1.7 unfortunately Tuya-Convert does not work with this version I think. If I am not mistaken it is related to PSK ???
    When trying to upload TASMOT, the sockets switched on to the pairing mode (5 seconds and the diode flashes quickly) after about 3-7 seconds the led stops flashing and tuya convert tries to send the program all the time but does not establish a connection with the socket.
    i use RPI3 for connection.
    Any idea? Anyone working on it? has tuya-convert been discontinued?

    ReplyDelete
    Replies
    1. I have the same problem - new Smartplugs with factory firmware version 1.1.7.
      There is a new wiki to try to get new keys
      Collaboration effort:
      https://github.com/ct-Open-Source/tuya-convert/wiki/Collaboration-document-for-PSK-Identity-02

      Delete
  25. Has anyone done the Sonoff S31. I was able to use this method for my AWP04L power monitor plugs but can't seem to get the S31 to connect with my Pi (using the D1 mini).

    ReplyDelete
  26. Collaboration effort on working with new Tuya firmware:

    https://github.com/ct-Open-Source/tuya-convert/wiki/Collaboration-document-for-PSK-Identity-02

    ReplyDelete

Post a Comment

Popular posts from this blog

How to use the Sonoff Zigbee Bridge with Home Assistant

Tuya Convert 2 - Flash Tuya Smartlife Devices - No Soldering - Remove the cloud with Tasmota ESPHome