Flashing Tuya Smart Plugs with Tuya Convert

Sdílet
Vložit
  • čas přidán 9. 07. 2024
  • Thank you for watching. This video walks you through the process of flashing Smart Plugs and other devices using Tuya-Convert. This tool is used to flash alternative firmware on ESP-based devices from companies that use the Tuya Cloud and apps (Tuya Smart, Smart Life etc.).
    Plugs featured are the Gosund UP111 Smart Plugs, which have been found to work. These are sold on Amazon by OHMAXX.
    4 Pack - amzn.to/3FLoerj
    2 Pack - amzn.to/3wuzuUH
    1 Pack - amzn.to/3wO5fsf
    Pi 4 Kit - amzn.to/3lb54l5
    Pi 400 Kit - amzn.to/3yEawVK
    Command-line commands within the video
    ======================================
    Initial set up:
    sudo apt-get update
    sudo apt-get upgrade
    sudo raspi-config
    sudo apt-get install git
    git clone github.com/ct-Open-Source/tuy...
    cd tuya-convert
    sudo ./install_prereq.sh
    Flashing process:
    cd tuya-convert
    sudo ./start_flash.sh
    Configure - Other configuation string:
    {"NAME":"Gosund UP111","GPIO":[0,320,0,32,2720,2656,0,0,2624,576,224,0,0,0],"FLAG":0,"BASE":18}
    Switch MQTT data on:
    SetOption19 on
    Please like and subscribe, and click on the notification bell so you can be alerted to new videos.
    If you would like us to create videos on a particular topic, technology or product, please leave a comment below.
    When browsing to your Home Assistant instance, this is usually - homeassistant.local:8123. If this does not work, try homeassistant:8123. If all else fails, check your router's device listing for the IP address.
    Chapter links:
    00:00 Start
    00:10 Introduction
    01:12 Raspberry Pi Flash Raspbian
    02:16 Initial Pi Setup
    05:48 Install tuya-convert
    07:55 Flashing process
    10:31 Configure smart plug
    14:25 MQTT Setup
    17:47 Add to Dashboard
    The below is completely optional but this will help us to purchase kit for review, and to keep up with channel expenses (studio kit, etc).
    Amazon link (no cost to you but buying through the link helps my channel) - amzn.to/3fj2S8a
    Ko-Fi - ko-fi.com/smarthomeaddict
    Buymeacoffee - www.buymeacoffee.com/smarthom...
    Patreon - / smarthomeaddict
    Finally, please visit our website at smarthomeaddict.co.uk
  • Jak na to + styl

Komentáře • 73

  • @atticdrams
    @atticdrams Před rokem +1

    Worked perfectly with the same Gosund UP111 model. Now I have 4 MQTT based plugs and have deleted my Gosund account. Huge thanks!

  • @heiaheiaheiahei
    @heiaheiaheiahei Před rokem +2

    thank you so much for the walk through tutorial, great job.

  • @prometheus4130
    @prometheus4130 Před 2 lety +2

    Great find, great video explainer. just flashed a few!

  • @bevanski5367
    @bevanski5367 Před rokem +2

    Thank you - made it all so easy

  • @Coooogz
    @Coooogz Před rokem +3

    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 :)

    • @jmpcrx
      @jmpcrx Před rokem

      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..

  • @Teleport73
    @Teleport73 Před rokem +1

    Many thanks. Just bought and flashed a 4 pack. All works fine.

    • @Teleport73
      @Teleport73 Před rokem +1

      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.

  • @jtreg
    @jtreg Před 7 měsíci

    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.

  • @mbwahaha
    @mbwahaha Před 2 lety +1

    Thank you!

  • @NeutroNStrikeR
    @NeutroNStrikeR Před 6 měsíci

    Thanks for sharing!

  • @samEcharpe
    @samEcharpe Před rokem +1

    thanks a lot !

  • @mrbarrington-smythe9033

    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.

    • @weltschmerz88
      @weltschmerz88 Před rokem

      Are the ones on amazon not flashable any more?

  • @tp-project
    @tp-project Před rokem

    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.

  • @cemtex
    @cemtex Před rokem

    @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?

  • @usmangojra
    @usmangojra Před 11 měsíci

    thanks for the detailed guide, where is "Fetching firmware backup" stored? how to retrieve it?

  • @MrBobWareham
    @MrBobWareham Před 7 měsíci

    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?

  • @robertsimpson4412
    @robertsimpson4412 Před 5 měsíci

    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?

  • @sevenismy
    @sevenismy Před 6 měsíci

    Thanks

  • @texasflooddk
    @texasflooddk Před rokem +3

    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..

  • @andrewlong9388
    @andrewlong9388 Před 7 měsíci +1

    Do you know whether the plugs available at the Amazon links you gave can still be flashed with Tasmota in Dec 2023?

    • @SmartHomeAddict
      @SmartHomeAddict  Před 7 měsíci

      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.

  • @jmpcrx
    @jmpcrx Před rokem

    I have a hbn smartplug. Fails on timeout when trying to connect. Says its an esp82**. No way round this i presume?

  • @edstertech
    @edstertech Před rokem

    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).

  • @gordon861
    @gordon861 Před rokem +1

    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.

  • @StuartReidvideos
    @StuartReidvideos Před rokem +1

    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?

    • @SmartHomeAddict
      @SmartHomeAddict  Před rokem +3

      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.

  • @renebea9
    @renebea9 Před rokem

    Is there any way to reprogram tywe2s/wb2s/eps-02s wifi module if you have only Windows OS?

    • @TSAGEDAR
      @TSAGEDAR Před 10 měsíci

      Has anyone found a way to do this?

  • @carlocoin6253
    @carlocoin6253 Před rokem +1

    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

    • @SmartHomeAddict
      @SmartHomeAddict  Před rokem +1

      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.

  • @ElQuijoteXXI
    @ElQuijoteXXI Před rokem +1

    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 )

    • @SmartHomeAddict
      @SmartHomeAddict  Před rokem +1

      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.

  • @Coooogz
    @Coooogz Před rokem +1

    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?

    • @SmartHomeAddict
      @SmartHomeAddict  Před rokem +1

      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.

  • @crawcreative
    @crawcreative Před rokem

    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

  • @marconegroni5631
    @marconegroni5631 Před rokem +1

    Please, does It work with smartlife sensors ( pir, Door, etc.) Thank you

    • @SmartHomeAddict
      @SmartHomeAddict  Před rokem +2

      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/

  • @comfysofa1549
    @comfysofa1549 Před rokem

    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.

  • @sygad1
    @sygad1 Před rokem +1

    I've just converted 3 of them and don't see the power monitoring, did I do something wrong?

    • @SmartHomeAddict
      @SmartHomeAddict  Před rokem +1

      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.

    • @sygad1
      @sygad1 Před rokem

      @@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.

  • @stuartwaudby3543
    @stuartwaudby3543 Před 6 měsíci

    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 :(

  • @AFC19034life
    @AFC19034life Před 11 měsíci

    Just tried flashing having bought the plugs linked in description and unfortunately getting a message about the firmware being too new. :(

    • @gabijoe2023
      @gabijoe2023 Před 11 měsíci

      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.

    • @SmartHomeAddict
      @SmartHomeAddict  Před 10 měsíci

      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.

  • @kevinhenryviii
    @kevinhenryviii Před rokem +1

    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

    • @kevinhenryviii
      @kevinhenryviii Před rokem +1

      Ignore that. It’s shown up in the tasmota integration. Is this correct?

    • @SmartHomeAddict
      @SmartHomeAddict  Před rokem +1

      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.

  • @thefinchworkshop
    @thefinchworkshop Před rokem

    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?

    • @thefinchworkshop
      @thefinchworkshop Před rokem

      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 😂😂

  • @jongmedellin4890
    @jongmedellin4890 Před 7 měsíci

    any latest updates on this

  • @lawaver
    @lawaver Před rokem +1

    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 ??

    • @stuartgray5877
      @stuartgray5877 Před rokem +1

      you must run this process over ethernet because the process takes over your wifi at that point

    • @lawaver
      @lawaver Před rokem +1

      @@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
      @stuartgray5877 Před rokem +1

      @@lawaver I cant tell you that. My plug ended up being the kind that cannot be flashed.

    • @SmartHomeAddict
      @SmartHomeAddict  Před rokem +1

      Hi Don, yes with the Tasmota (and ESP) firmware it will still support the energy monitoring capabilities.

    • @lawaver
      @lawaver Před rokem

      @@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 ??

  • @SeanRynearson
    @SeanRynearson Před rokem +1

    Does this still work? I want to get off of the tuya platform. Over 100 devices

    • @SmartHomeAddict
      @SmartHomeAddict  Před rokem +2

      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.

  • @bighippo999
    @bighippo999 Před rokem +3

    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.

    • @SmartHomeAddict
      @SmartHomeAddict  Před rokem

      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!).

  • @LeeDavisonYo
    @LeeDavisonYo Před rokem

    This is patched now for me for plugs bought 8/2/23 :(

    • @weltschmerz88
      @weltschmerz88 Před rokem

      Which ones did you buy?

    • @LeeDavisonYo
      @LeeDavisonYo Před rokem

      @@weltschmerz88 the ones linked by the amazon link. Replaced them with preflashed localbytes plugs.

  • @schrodingerscat1863
    @schrodingerscat1863 Před 7 měsíci +1

    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.

  • @stmohir
    @stmohir Před 6 měsíci

    Hello, Trying to follow your instructions, when running 'sudo ./start_flash.sh' I get an error 'screen: command not found
    Please advise

    • @MorganTimney
      @MorganTimney Před 6 měsíci +1

      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.