I ruined a Gosund plug by attempting to solder connections to it. Plonker 😪... I wish I had taken more time to find this excellent clear explanation of what I should have done! I have 4 more waiting to be converted, thank you so much.
30/09/2022 I happened to find the 4 pack of these and then found this video. Still works. Very well and logically presented thanks. I had a slight different experience at the end as the devices appeared under a Tasmota integration rather then under the Mosquitto broker but was all still pretty much the same. Now to work out how to switch on a heater when my battery is full and solar is producing 1kw+ excess :)
Follow up>. Bought a second 4-pack. This one didn't flash. If there is a manufacture date of 01-2021 at the bottom-right of the plugs then you're in luck and they will flash with Tuya-convert. If there is a serial number at this position instead then they are the updated version, which will not flash.
This is such a great video. Have flashed three Tuya Smart Plugs (Neo Coolcam NAS-WR01W with Power monitoring) to Tasmoda V12.1.1. Very nice. SOLVED: Entering "TelePeriod 10" (10s) in the console of each smartplug changes the default update interval of 300s.👍👍👍👍 But I have one problem.. The smartplugs doesn't seem to send data out to the MQTT. It only sends the data when I activate the "reload" option in the HA Tasmoda "integrations" window. When doing this, I can see in timestamp in the console is being updated and the data is sent out. I can then see it being updated once at the sensor cards in HA. When I monitor the smartplugs in the web ui, the sensor data is updated frequently as it should. How often is the data to be sent normally ? Edit: I can see from the console in the Tasmoda web ui, that data is sent every 5mins (unless I activate the Tasmoda "reload" in HA as described above..
Flashing Tasmota worked. Many thanks for a clear and detailed video on how to do this. The problem I have now is integrating it into HA. I think since you made the video, HA has changed. There is no longer an 'Add-ons' option but instead you can install MQTT directly from the list of integrations. Unlike your example, it is asking for the 'broker'. I'm guessing this is something else that needs to be installed (and hopefully not extra hw). The forums have lots of questions about the missing 'Add-ons' button so I'm not sure if this a bug or something to do with permissions (I'm using advanced mode) or whether it's been superceeded by something else. Any advice?
Just tried this with some Yuin 16A Smart Plugs (that look identical) that I bought in April 2022. Failed message "Tuya patched the PSK vulnerability that we use to establish a connection" ... this must be the first time that we need to complain about an IoT company actually patching issues.
Only 3 out of my 6 Gosund EP2 plugs have flashed properly after doing this with the 1.06 firmware. There were no errors from tuya-convert so everything looked ok. Two of the plugs stay green one of the plugs just quickly flashes green and then no light. There are no access points to connect to to finish the job.
A lot of newer devices have a different chipset no longer compatible with this firmware. They unfortunately want to lock you into the Tuya/Smartlife Ecosystem due to the data they're able to get hold of.
@smart home addict Thanks for the instructions, i managed to flash all four plug with no errors did everything else but when i use the Consule and SetOption19 on i do not get any info come up as per your video and also mqtt does not see them, any ideas please?
Thanks for the tutorial. The vtrust-flash network does not appear on my smartphone or tablet. What could I have done wrong? Thanks in advance for the help
Are you connected to your Home Assistant instance via wi-fi or Ethernet from the device you're starting the process from? If you're connected via wi-fi, it overrides the temporary vtrust-flash network. Connect an Ethernet cable and try again.
06/12/2022 Thanks for this! After following the instructions, nothing appeared - I looked at the Information page on the plug, it showed Program Version 9.2.0(lite). Running the firmware upgrade a second time cured this with the Tasmota integration immediately appearing on HA (2022.11.5) and the plugs' pages displaying the logo on the browser tab and Program Version 12.2.0(tasmota).
I've managed to flash 12 devices now. But one has decided it will simply not connect to my WiFi. How do I go about re-flashing once already on Tasmota firmware... I can't seem to get it back into EZ pairing mode with 6 clicks, and so can't detect it with the flashing tool? Am I missing something obvious?
I have had the same issue with 1 plug, which I've put to one side. I suspect faulty memory on this plug but haven't yet had time to have a proper look.
Sensors are normally a low energy communication protocol such as Zigbee or ZWave. That said, Tuya/Smartlife do have some Wifi sensors available. The best source of information for if something will or won't work is Blakadder's excellent resource here - templates.blakadder.com/
Sometimes this happens, usually with new plugs. Did you do the SetOption19 on command? This will force the plug to send an MQTT command with all of the data.
In case it helps anyone else. tuya-convert was detecting other devices on my LAN and kept saying the device wasn't ESP32. I was hopeful it would work as the socket was rebooting itself and turning red and I once saw a new Access Point created ESP40xxxx I was using a fresh Raspberry PI to do this, so I disconnect it from the LAN and used keyboard/screen. Wish I'd thought of it 2 hours earlier lol.. Flashed 1 in 2 hours and 3 more in about 20 minutes. If you hit problems it's worth either unplugging other tuya based smart devices or do as I did.
Thank you, I've just tried what you've suggested and it's worked a lot better (I did have one or two I had trouble flashing but your suggestion sorted these out!).
Great tutorial and 3 plugs flashed. Everything working on the tasmota webpage. But I can’t get it to show in MQTT. I know my user nam;e and password are correct as I already use mqtt. Any ideas. Thanks
I believe it's not showing in MQTT as the Tasmota integration has picked it up. Try removing this integration from HA, this may force it to work. Also check the MQTT connection information is correct on the device.
I have had this issue previously. In some cases the switch needed to be power cycled before SetOption19 worked. In another case, I realised I'd missed a step - it may be worth going through the config section again.
Hi - ordered using the link but received UP111' (a 4 pack) is there a fix for the newer firmware? i get the error message "your device's firmware is too new" - great video (if it worked for me!!) many thanks.
Was it with the same model? Sometimes the data can take time to come through, if MQTT is set up properly you may need to access the console in the plug's web page and do a SetOption19 on to trigger an MQTT conversation.
@@SmartHomeAddict Thanks for replying. I've just worked it out, I had to set the "configure>module" to generic, it was set as Sonoff basic. Once I rebooted, it was showing the power info.
It worked with that specific type of smart plug, but compatible devices are getting more difficult to get hold of. Unfortunately it's unlikely your devices can be flashed. However, there is a local Tuya integration that doesn't use the cloud. I'll look into creating a video about this.
I cant get passed the git clone. It asks for user name and password. I use my github credentials and it fails stating that password authentication was removed on August 13, 2121 :(
@@stuartgray5877 Hi, thanks for answer but before I go ahead can you confirm that after converting over to Tasmota can I still access/use the energy monitoring capabilities of the plug ?
@@stuartgray5877 Hi, how do you know that it cant be flashed. I have got the vtrust-flash network working and my mobile connects to it OK but the tuya convert program keeps looping smartConfig complete resending smartconfig packets and then times out after about 8 attempts ??
I appear to flashed two of these gosund sockets from Amazon and got the wifi hotspot, told it to join my 2.4Ghz wifi and lost lost the tassmota AP but it will not join my home network, the led just flashes on red and blinks blue occasionally
Same here. Seems that they've updated the firmware. In the app says they are at v1.0.5. Tried to open one of them but it is quite hard... I'll keep looking.
Is anyone getting the hang on "Starting AP in a screen". Looks like you can't do this while connecting via SSH according to some interwebz searching. Anyone had any joy recently?
Using a keyboard and monitor connected to the pi solved this..... it's only then you wished you hadn't picked such a complicated password for the pi admin 😂😂
In order for the command to work, you need to be in the directory where that file exists - check that the previous steps suceeded, in particular, after cloving the git repository, you need to 'cd tuya-convert'. If that suceeds, if you 'ls' then you should see that script and if that is the case 'sudo ./start_flash.sh'should then suceed.
Worked perfectly with the same Gosund UP111 model. Now I have 4 MQTT based plugs and have deleted my Gosund account. Huge thanks!
I ruined a Gosund plug by attempting to solder connections to it. Plonker 😪... I wish I had taken more time to find this excellent clear explanation of what I should have done! I have 4 more waiting to be converted, thank you so much.
30/09/2022 I happened to find the 4 pack of these and then found this video. Still works. Very well and logically presented thanks. I had a slight different experience at the end as the devices appeared under a Tasmota integration rather then under the Mosquitto broker but was all still pretty much the same. Now to work out how to switch on a heater when my battery is full and solar is producing 1kw+ excess :)
Hi, did you figure out how to do that? As want to do the same, but switch on a crypto mining rig whe batts full and excess solar..
Many thanks. Just bought and flashed a 4 pack. All works fine.
Follow up>. Bought a second 4-pack. This one didn't flash. If there is a manufacture date of 01-2021 at the bottom-right of the plugs then you're in luck and they will flash with Tuya-convert. If there is a serial number at this position instead then they are the updated version, which will not flash.
This is such a great video. Have flashed three Tuya Smart Plugs (Neo Coolcam NAS-WR01W with Power monitoring) to Tasmoda V12.1.1. Very nice.
SOLVED: Entering "TelePeriod 10" (10s) in the console of each smartplug changes the default update interval of 300s.👍👍👍👍
But I have one problem..
The smartplugs doesn't seem to send data out to the MQTT.
It only sends the data when I activate the "reload" option in the HA Tasmoda "integrations" window.
When doing this, I can see in timestamp in the console is being updated and the data is sent out. I can then see it being updated once at the sensor cards in HA.
When I monitor the smartplugs in the web ui, the sensor data is updated frequently as it should.
How often is the data to be sent normally ?
Edit: I can see from the console in the Tasmoda web ui, that data is sent every 5mins (unless I activate the Tasmoda "reload" in HA as described above..
thank you so much for the walk through tutorial, great job.
Thank you - made it all so easy
Thanks for this. Near impossible to source Tasmota flashable smart plugs in the UK now. Would prefer 16A, but will buy some and report back.
Are the ones on amazon not flashable any more?
Great find, great video explainer. just flashed a few!
Flashing Tasmota worked. Many thanks for a clear and detailed video on how to do this.
The problem I have now is integrating it into HA. I think since you made the video, HA has changed. There is no longer an 'Add-ons' option but instead you can install MQTT directly from the list of integrations. Unlike your example, it is asking for the 'broker'. I'm guessing this is something else that needs to be installed (and hopefully not extra hw).
The forums have lots of questions about the missing 'Add-ons' button so I'm not sure if this a bug or something to do with permissions (I'm using advanced mode) or whether it's been superceeded by something else. Any advice?
thanks for the detailed guide, where is "Fetching firmware backup" stored? how to retrieve it?
Thanks for the video, very interesting over the air, but I don't have a Raspberry Pi, so can I use Linux Mint to flash a socket?
Just tried this with some Yuin 16A Smart Plugs (that look identical) that I bought in April 2022.
Failed message "Tuya patched the PSK vulnerability that we use to establish a connection" ... this must be the first time that we need to complain about an IoT company actually patching issues.
Only 3 out of my 6 Gosund EP2 plugs have flashed properly after doing this with the 1.06 firmware. There were no errors from tuya-convert so everything looked ok. Two of the plugs stay green one of the plugs just quickly flashes green and then no light. There are no access points to connect to to finish the job.
Do you know whether the plugs available at the Amazon links you gave can still be flashed with Tasmota in Dec 2023?
A lot of newer devices have a different chipset no longer compatible with this firmware. They unfortunately want to lock you into the Tuya/Smartlife Ecosystem due to the data they're able to get hold of.
@smart home addict Thanks for the instructions, i managed to flash all four plug with no errors did everything else but when i use the Consule and SetOption19 on i do not get any info come up as per your video and also mqtt does not see them, any ideas please?
Thanks for the tutorial.
The vtrust-flash network does not appear on my smartphone or tablet.
What could I have done wrong?
Thanks in advance for the help
Are you connected to your Home Assistant instance via wi-fi or Ethernet from the device you're starting the process from? If you're connected via wi-fi, it overrides the temporary vtrust-flash network. Connect an Ethernet cable and try again.
Thank you!
06/12/2022 Thanks for this! After following the instructions, nothing appeared - I looked at the Information page on the plug, it showed Program Version 9.2.0(lite). Running the firmware upgrade a second time cured this with the Tasmota integration immediately appearing on HA (2022.11.5) and the plugs' pages displaying the logo on the browser tab and Program Version 12.2.0(tasmota).
Thanks for sharing!
I've managed to flash 12 devices now. But one has decided it will simply not connect to my WiFi. How do I go about re-flashing once already on Tasmota firmware... I can't seem to get it back into EZ pairing mode with 6 clicks, and so can't detect it with the flashing tool? Am I missing something obvious?
I have had the same issue with 1 plug, which I've put to one side. I suspect faulty memory on this plug but haven't yet had time to have a proper look.
Please, does It work with smartlife sensors ( pir, Door, etc.) Thank you
Sensors are normally a low energy communication protocol such as Zigbee or ZWave. That said, Tuya/Smartlife do have some Wifi sensors available. The best source of information for if something will or won't work is Blakadder's excellent resource here - templates.blakadder.com/
thanks a lot !
Hi, any of my plugs will display 0 on all sensor reading please help. ( I got it working with hone assistant I'm sble to click it On Off )
Sometimes this happens, usually with new plugs. Did you do the SetOption19 on command? This will force the plug to send an MQTT command with all of the data.
Thanks
In case it helps anyone else.
tuya-convert was detecting other devices on my LAN and kept saying the device wasn't ESP32. I was hopeful it would work as the socket was rebooting itself and turning red and I once saw a new Access Point created ESP40xxxx
I was using a fresh Raspberry PI to do this, so I disconnect it from the LAN and used keyboard/screen. Wish I'd thought of it 2 hours earlier lol.. Flashed 1 in 2 hours and 3 more in about 20 minutes. If you hit problems it's worth either unplugging other tuya based smart devices or do as I did.
Thank you, I've just tried what you've suggested and it's worked a lot better (I did have one or two I had trouble flashing but your suggestion sorted these out!).
Great tutorial and 3 plugs flashed. Everything working on the tasmota webpage. But I can’t get it to show in MQTT. I know my user nam;e and password are correct as I already use mqtt. Any ideas. Thanks
Ignore that. It’s shown up in the tasmota integration. Is this correct?
I believe it's not showing in MQTT as the Tasmota integration has picked it up. Try removing this integration from HA, this may force it to work. Also check the MQTT connection information is correct on the device.
I have a hbn smartplug. Fails on timeout when trying to connect. Says its an esp82**. No way round this i presume?
I've got everything working up to the SetOption19 on part. I don't get any extra data appearing. Anyone know why that would be?
I have had this issue previously. In some cases the switch needed to be power cycled before SetOption19 worked. In another case, I realised I'd missed a step - it may be worth going through the config section again.
Hi - ordered using the link but received UP111' (a 4 pack) is there a fix for the newer firmware? i get the error message "your device's firmware is too new" - great video (if it worked for me!!) many thanks.
I've just converted 3 of them and don't see the power monitoring, did I do something wrong?
Was it with the same model? Sometimes the data can take time to come through, if MQTT is set up properly you may need to access the console in the plug's web page and do a SetOption19 on to trigger an MQTT conversation.
@@SmartHomeAddict Thanks for replying. I've just worked it out, I had to set the "configure>module" to generic, it was set as Sonoff basic. Once I rebooted, it was showing the power info.
Does this still work? I want to get off of the tuya platform. Over 100 devices
It worked with that specific type of smart plug, but compatible devices are getting more difficult to get hold of. Unfortunately it's unlikely your devices can be flashed. However, there is a local Tuya integration that doesn't use the cloud. I'll look into creating a video about this.
I cant get passed the git clone. It asks for user name and password. I use my github credentials and it fails stating that password authentication was removed on August 13, 2121 :(
Hi, excellent tutorial and I followed it but freezes at 'Starting AP in a screen' and then losses wifi connection and I have to reboot the pi ??
you must run this process over ethernet because the process takes over your wifi at that point
@@stuartgray5877 Hi, thanks for answer but before I go ahead can you confirm that after converting over to Tasmota can I still access/use the energy monitoring capabilities of the plug ?
@@lawaver I cant tell you that. My plug ended up being the kind that cannot be flashed.
Hi Don, yes with the Tasmota (and ESP) firmware it will still support the energy monitoring capabilities.
@@stuartgray5877 Hi, how do you know that it cant be flashed. I have got the vtrust-flash network working and my mobile connects to it OK but the tuya convert program keeps looping smartConfig complete resending smartconfig packets and then times out after about 8 attempts ??
I appear to flashed two of these gosund sockets from Amazon and got the wifi hotspot, told it to join my 2.4Ghz wifi and lost lost the tassmota AP but it will not join my home network, the led just flashes on red and blinks blue occasionally
They now appear to be broken
Is there any way to reprogram tywe2s/wb2s/eps-02s wifi module if you have only Windows OS?
Has anyone found a way to do this?
Just tried flashing having bought the plugs linked in description and unfortunately getting a message about the firmware being too new. :(
Same here. Seems that they've updated the firmware. In the app says they are at v1.0.5. Tried to open one of them but it is quite hard... I'll keep looking.
It might be they've finally closed the loophole. I'm going to order some more to test and to work out if there's a way round it.
any latest updates on this
Is anyone getting the hang on "Starting AP in a screen". Looks like you can't do this while connecting via SSH according to some interwebz searching. Anyone had any joy recently?
Using a keyboard and monitor connected to the pi solved this..... it's only then you wished you hadn't picked such a complicated password for the pi admin 😂😂
This is patched now for me for plugs bought 8/2/23 :(
Which ones did you buy?
@@weltschmerz88 the ones linked by the amazon link. Replaced them with preflashed localbytes plugs.
You need to take this video down, the linked smart sockets are no longer flashable and this video is now a complete waste of everyone's time.
Hello, Trying to follow your instructions, when running 'sudo ./start_flash.sh' I get an error 'screen: command not found
Please advise
In order for the command to work, you need to be in the directory where that file exists - check that the previous steps suceeded, in particular, after cloving the git repository, you need to 'cd tuya-convert'. If that suceeds, if you 'ls' then you should see that script and if that is the case 'sudo ./start_flash.sh'should then suceed.