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.
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.
ReplyDeleteYep, then look in my videos and there's one on setting it up with Home Assistant. https://youtu.be/_3WW4NVYHrU
ReplyDeletethank you much!
DeleteHello 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!
ReplyDeleteAs an update, I followed your video and found the template on the Tasmota Device Template Repository!
DeleteThanks!!! This finally got me sorted
DeleteCan you provide an update using the proxmox you link to in the new link. Thanks
ReplyDeleteHi,
ReplyDeleteI 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.
Yes, they require the country code to be set now. The link to set it is in the video desc.
DeleteI would suggest you adding more detailed instructions also for this step!
DeleteAfter 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?
ReplyDeletedid you configure it for AP fallback?
DeleteSure I did, as I do with my all ESPhome devices.
DeleteBut AP is not created.
My whole code is on https://pastebin.com/DGUskZbv
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.
DeleteAmazing, thank you for the amazing explanation. Love your videos.
ReplyDeleteI just build my smart home and all your videos helped me a lot.
This comment has been removed by the author.
ReplyDeleteFirst THANK YOU for this. I have been wanting to do this for a long time.
ReplyDeleteSo 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?
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.
DeleteI'm having an issue with seeing the AP from my phone, as in, there isn't one.
ReplyDeleteusing '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?
Any idea how to flash a Tuya IP Camera?
ReplyDeleteHi,
ReplyDeleteI'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 ?
same issue here. any solution ?
DeleteWill this work with the Sonoff RF?
ReplyDeleteSorry, to clarify actual details: can I use convert 2.3 to flash Sonoff RF without soldering? I know the RF is flashable in general:
Deletehttps://templates.blakadder.com/sonoff_RF_bridge.html
No soldering needed on the Sonoff RF. It has an open pin header, just put the for wires in there.
Deletejust 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.
ReplyDeleteI have the same issue. Anyone figure this out?
DeleteI have the same problem with the same switch SS01 it just keeps retrying
Delete................
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
................
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"
DeleteThe smarthack-psk.log has the "DECRYPTION_FAILED_OR_BAD_RECORD_MAC" message. What does that mean?
Deletehttps://github.com/ct-Open-Source/tuya-convert/issues/483
DeleteHad 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!
ReplyDeleteI'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.
DeleteAny ideas?
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.
DeleteCan 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).
ReplyDeleteCould 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).
ReplyDeleteHi,
ReplyDeleteThanks 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!
Try this one to finish setup. https://youtu.be/_3WW4NVYHrU
DeleteHey,
ReplyDeleteI'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
You need a wifi adapter that supports AP mode.
DeleteThis is true, or you would have to update the driver for your USB wifi dongle.
DeleteI 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.
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.
ReplyDeleteAny ideas?
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.
DeleteNo 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.
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
DeleteHi, 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.
ReplyDeletesmarthack-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!
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!
ReplyDeleteSaw your reply earlier and ended up at the PSK 2 wiki. Looks like its still an issue... I will wait to see what happens
DeleteAre there any outlets on the market currently OTA flashable? Bought some BNlinks last week and the first pack was. Second pack won't.
ReplyDeleteHi, 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 ???
ReplyDeleteWhen 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?
I have the same problem - new Smartplugs with factory firmware version 1.1.7.
DeleteThere 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
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).
ReplyDeleteCollaboration effort on working with new Tuya firmware:
ReplyDeletehttps://github.com/ct-Open-Source/tuya-convert/wiki/Collaboration-document-for-PSK-Identity-02
I have 3 tuya based heaters integrated with home assistant but they are hit and miss when it comes to stable operation. Does anyone know if tuya-convert would work for a heater? All the info I've found is for bulbs, switches and dimmers only.
ReplyDeletehttps://www.kogan.com/au/buy/kogan-smarterhome-2000w-smart-glass-panel-heater/
Hi, I keep getting AP not supported message and I cant figure out why.
ReplyDeleteMy computer supports AP mode in windows an I also bought another external wifi card to try adn work around it but still no dice.
Any one has any ideas?
I used this.
Deletehttps://www.amazon.com/dp/B019XUDHFC/ref=cm_sw_r_cp_apa_fabc_U6ORFbB1SZFD4?_encoding=UTF8&psc=1
Can this method be used to flash the Sonoff Bridge, non Zigbee version?
ReplyDeleteHey Travis, how's things? I recently purchased Acyocr plugs and tried this process and failed. So I thought because of the newer version of this plugs, so I changed it to avatar switches (based on the compatible list in tasmota device) and process is failing too. I'm scratching my head....if anyone can help that'd be much appreciated. Cheers
ReplyDeleteFlashed 6 of these
ReplyDeletehttps://www.amazon.com/dp/B07313TH7B/ref=cm_sw_r_cp_api_glc_fabc_Kco7FbJ065ZMA?_encoding=UTF8&psc=1
And 2 of these
https://www.amazon.com/dp/B07G2WXK3N/ref=cm_sw_r_cp_api_glc_fabc_Ndo7FbHVY3H3J?_encoding=UTF8&psc=1
Using Tuya Convert OTA Last night, no problems.
All devices purchase in Dec2020
Thanks for all the info
Does anyone know of a smart plug that still works with TuyaConvert? I've always had good luck with Gosund plugs, but not anymore. I bought 4 from Amazon last week. All of them had the "psk ID 2" problem.
ReplyDeleteCome over to the sure thing side of these smart plugs, https://youtu.be/q6aCfDDEkwE
Deletei dont know y but wen i get to this step
ReplyDeletegit clone https://github.com/ct-Open-Source/tuya-convert
i get this error
Cloning into 'tuya-convert'...
fatal: unable to access 'https://github.com/ct-Open-Source/tuya-convert/': Could not resolve host: github.com
can some one hellp me