{"id":399,"date":"2020-12-26T21:36:12","date_gmt":"2020-12-26T19:36:12","guid":{"rendered":"https:\/\/dev.drun.net\/?p=399"},"modified":"2020-12-26T21:36:12","modified_gmt":"2020-12-26T19:36:12","slug":"flash-blitzwolf-or-any-other-tuya-based-esp-device-without-soldering","status":"publish","type":"post","link":"https:\/\/dev.krasi.net\/?p=399","title":{"rendered":"Flash Blitzwolf or any other tuya- based esp device without soldering"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">Tuya-convert utility<\/h3>\n\n\n\n<p>I would usually do soldering and flashing via serial-to-usb connection, but lately I&#8217;ve got some devices that are either hard to open physically or too new and no information was found on the internet.<\/p>\n\n\n\n<p>That&#8217;s why I tried (successfully) to use <a href=\"https:\/\/github.com\/ct-Open-Source\/tuya-convert\">Tuya convert<\/a> utility to flash my last several devices.<\/p>\n\n\n\n<p>I will describe the steps here, along with some extra information about firmwares included.<\/p>\n\n\n\n<p>First, the installation is pretty straightforward on Linux. I had no success running it on Mac OS X or Docker. That&#8217;s why I used my Ubuntu laptop and there it worked perfectly, so I simply use that when needed.<\/p>\n\n\n\n<p>You might, however, succeed with Docker. Just follow their tutorial on installation.<\/p>\n\n\n\n<p>What I did to install, was already on their site:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># git clone https:\/\/github.com\/ct-Open-Source\/tuya-convert\n# cd tuya-convert\n# .\/install_prereq.sh<\/code><\/pre>\n\n\n\n<p>Then, in order to start it every time, you just execute <code>.\/start_flash.sh<\/code> and follow the instructions on the screen.<\/p>\n\n\n\n<p>The script might ask you to stop several services, which requires root access on linux.<\/p>\n\n\n\n<p>Then it creates an access point, and tells you to connect with a device to it. I just use my phone to connect, while flashing.<\/p>\n\n\n\n<p>The device should be flashing rapidly in order to be in &#8220;pairing&#8221; mode. That&#8217;s usually when you first start it or when you press the button and hold it for more than 10 seconds.<\/p>\n\n\n\n<p>I&#8217;ve tried it with:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Sonoff 4CH<\/li><li>Blitzwolf SH6<\/li><li>Blitzwolf SHP7<\/li><li>Blitzwolf SHP8<\/li><li>Blitzwolf SHP10<\/li><\/ul>\n\n\n\n<p>and it works always.<\/p>\n\n\n\n<p>The script will ask you which firmware you want to install &#8211; Espurna or Tasmota.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Espurna or Tasmota?<\/h3>\n\n\n\n<p>My recommendation? If your device is fully supported by Espurna, go for it. If not &#8211; Tasmota is your best bet, as it&#8217;s really customizable.<\/p>\n\n\n\n<p>For example, I could not successfully use Espurna for SHP7 and SHP10. I&#8217;ve flashed the basic espurna binary and upgraded via the interface to <strong>espurna-1.14.1-blitzwolf-bwshpx.bin<\/strong> as this would be the logical choice. However, this didn&#8217;t work. Flashing <strong>espurna-1.14.1-blitzwolf-bwshpx-v23.bin<\/strong> did not work, either.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">If you&#8217;ve tried Espurna but want to go to Tasmota<\/h3>\n\n\n\n<p>Go to Admin -&gt; Upgrade.<\/p>\n\n\n\n<p>Download <strong>tasmota-lite.bin<\/strong> and upgrade with that. You most probably won&#8217;t be able to upgrade directly with <strong>tasmota.bin<\/strong>, as it&#8217;s too big. <span style=\"text-decoration: underline;\">DO NOT USE tasmota-minimal.bin<\/span>, as this will brick the device and you will need to open it ( happened to one of my SHP7s ).<\/p>\n\n\n\n<p>Once you uploaded, the device restarts. Then you connect to the Access Point and configure Wi-Fi, then reconnect.<\/p>\n\n\n\n<p>This is how it looks ( obviously, after configuration):<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/dev.krasi.net\/wp-content\/uploads\/2020\/12\/Screenshot-2020-12-26-at-21.27.49.png\" alt=\"\" class=\"wp-image-402\"\/><\/figure>\n\n\n\n<p>Go to &#8220;Firmware Upgrade&#8221; and follow the on-screen instructions and upgrade to full Tasmota, if you&#8217;re using the Lite version.<\/p>\n\n\n\n<p>Then press &#8220;Configuration&#8221;.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/dev.krasi.net\/wp-content\/uploads\/2020\/12\/Screenshot-2020-12-26-at-21.26.27.png\" alt=\"\" class=\"wp-image-401\"\/><\/figure>\n\n\n\n<p>If you flashed Tasmota with unsupported device, you can use <a href=\"https:\/\/templates.blakadder.com\/search.html\">one of these templates<\/a> (with search) to find the best that suits you ( I found both SHP7 and SHP10 templates here ).<\/p>\n\n\n\n<p>If you have unsupported device and found a template, go to &#8220;Configure Other&#8221;:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/dev.krasi.net\/wp-content\/uploads\/2020\/12\/Screenshot-2020-12-26-at-21.29.25.png\" alt=\"\" class=\"wp-image-403\"\/><\/figure>\n\n\n\n<p>Paste your template in &#8220;Template&#8221; field and check &#8220;Activate&#8221;. Then click &#8220;Save&#8221; and restart the device.<\/p>\n\n\n\n<p>Now you should be able to successfully operate it.<\/p>\n\n\n\n<p>MQTT for Home Assistant<\/p>\n\n\n\n<p>I suggest you configure MQTT so that you can manage the device from HASS.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/dev.krasi.net\/wp-content\/uploads\/2020\/12\/Screenshot-2020-12-26-at-21.32.44.png\" alt=\"\" class=\"wp-image-404\"\/><\/figure>\n\n\n\n<p>Then the device restarts after Save. <\/p>\n\n\n\n<p>Now you should be able to see and configure the device from HASS &#8211; Configuration -&gt; Integrations<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/dev.krasi.net\/wp-content\/uploads\/2020\/12\/Screenshot-2020-12-26-at-21.34.08.png\" alt=\"\" class=\"wp-image-405\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/dev.krasi.net\/wp-content\/uploads\/2020\/12\/Screenshot-2020-12-26-at-21.34.56.png\" alt=\"\" class=\"wp-image-406\"\/><\/figure>\n\n\n\n<p>After that, the device is fully visible and manageable through Home Asistant.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Tuya-convert utility I would usually do soldering and flashing via serial-to-usb connection, but lately I&#8217;ve got some devices that are either hard to open physically or too new and no information was found on the internet. That&#8217;s why I tried (successfully) to use Tuya convert utility to flash my last several devices. I will describe the steps here, along with some extra information about firmwares included. First, the installation is pretty straightforward on Linux. I had no success running it on Mac OS X or Docker. That&#8217;s why I used my Ubuntu laptop and there it worked perfectly, so I simply use that when needed. You might, however, succeed with Docker. Just follow their tutorial on installation. What I did to install, was already on their site: Then, in order to start it every time, you just execute .\/start_flash.sh and follow the instructions on the screen. The script might ask you to stop several services, which requires root access on linux. Then it creates an access point, and tells you to connect with a device to it. I just use my phone to connect, while flashing. The device should be flashing rapidly in order to be in &#8220;pairing&#8221; mode. That&#8217;s [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,4,5],"tags":[14,15,25,27,28],"class_list":["post-399","post","type-post","status-publish","format-standard","hentry","category-hardware","category-home-assistant","category-software","tag-espurna","tag-hass","tag-tasmota","tag-tuya","tag-tuya-convert"],"_links":{"self":[{"href":"https:\/\/dev.krasi.net\/index.php?rest_route=\/wp\/v2\/posts\/399","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dev.krasi.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dev.krasi.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dev.krasi.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dev.krasi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=399"}],"version-history":[{"count":0,"href":"https:\/\/dev.krasi.net\/index.php?rest_route=\/wp\/v2\/posts\/399\/revisions"}],"wp:attachment":[{"href":"https:\/\/dev.krasi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=399"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dev.krasi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=399"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dev.krasi.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=399"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}