{"id":558,"date":"2019-02-20T17:27:50","date_gmt":"2019-02-20T22:27:50","guid":{"rendered":"http:\/\/www.thesmarthomehookup.com\/test_install\/?p=558"},"modified":"2023-04-24T15:43:13","modified_gmt":"2023-04-24T19:43:13","slug":"tuya-convert-walk-through-february-2019","status":"publish","type":"post","link":"https:\/\/www.thesmarthomehookup.com\/test_install\/tuya-convert-walk-through-february-2019\/","title":{"rendered":"Tuya Convert Walk Through &#8211; February 2019"},"content":{"rendered":"<h4>1. Before you begin you&#8217;ll need:<\/h4>\n<ol>\n<li>One of the Linux machines listed below:\n<ol>\n<li>A <a href=\"https:\/\/amzn.to\/2UZ8OqK\">raspberry pi model B<\/a> with the latest version of <a href=\"https:\/\/www.raspberrypi.org\/downloads\/raspbian\/\">Raspbian Stretch Lite (Recommended Method).<\/a><\/li>\n<li>A <a href=\"https:\/\/amzn.to\/2TWXAD0\">raspberry pi model B+<\/a> with a USB wifi dongle and <a href=\"https:\/\/images.offensive-security.com\/arm-images\/kali-linux-2018.4a-rpi3-nexmon-64.img.xz\">Kali Linux.<\/a><\/li>\n<\/ol>\n<\/li>\n<li>A micro SD Card for your raspberry pi (at least 2gb, 8+ recommended).<\/li>\n<li>A wifi device that can connect to the SSID that will be generated by the raspberry pi and eventually the flashed tuya device.&nbsp; <strong>This cannot be an iOS device,<\/strong> android devices will work.<\/li>\n<\/ol>\n<h4>2, Installing the OS on raspberry pi:<\/h4>\n<ol>\n<li>Download and install&nbsp;<a href=\"https:\/\/www.balena.io\/etcher\/\">Etcher<\/a><\/li>\n<li>Plug your microSD card into your PC using a microSD adapter<\/li>\n<li>Start Etcher.<\/li>\n<li>Select the disk image you downloaded and your microSD card from the etcher interface.<\/li>\n<li>Press Flash and wait.<\/li>\n<li>Add a blank file called &#8220;ssh&#8221; to the root of the raspberry pi to enable the SSH service on raspbian.<\/li>\n<li>Plug the SD card into your raspberry pi, connect power and ethernet and boot it up.<\/li>\n<\/ol>\n<h4>3. Connecting to your raspberry pi via SSH:<\/h4>\n<ol>\n<li>Download and install&nbsp;<a href=\"https:\/\/www.putty.org\/\">Putty<\/a><\/li>\n<li>Start Putty.<\/li>\n<li>Enter the IP address of your raspberry pi in the box that says &#8220;Host Name&#8221;.&nbsp; I recommend using an app like Fing to find the IP address of your raspberry pi.<\/li>\n<li>In the &#8220;Saved Sessions&#8221; input box, name your raspberry pi connection and then press &#8220;save&#8221;.<\/li>\n<li>Select your new saved session.<\/li>\n<li>Press &#8220;Open&#8221;<\/li>\n<\/ol>\n<h4>4. Setting up your Pi and updating the OS<\/h4>\n<ol>\n<li>In the putty window login with user &#8220;pi&#8221; and password &#8220;raspberry&#8221;<\/li>\n<li>Expand the file system by typing &#8220;sudo raspi-config&#8221; then selecting &#8220;Advanced Options&#8221; and then &#8220;Expand Filesystem&#8221;, select &#8220;Finish&#8221; and then select &#8220;Yes&#8221; when it asks to reboot.<\/li>\n<li>Reconnect via putty using your saved session and login with username &#8220;pi&#8221; and password &#8220;raspberry&#8221; again.<\/li>\n<li>Type &#8220;sudo apt-get update&#8221; and wait for the updates to install<\/li>\n<li>Type &#8220;sudo apt-get dist-upgrade&#8221; and wait for the upgrades to install\n<ol>\n<li>You may get a prompt for permission, just type &#8220;y&#8221; and press enter.<\/li>\n<\/ol>\n<\/li>\n<li>Type &#8220;sudo apt-get install network-manager&#8221; and wait for it to install.<\/li>\n<li>Type &#8220;sudo apt install git&#8221; and wait for it to install.<\/li>\n<\/ol>\n<h4>5. Setup and Install Tuya-Convert<\/h4>\n<ol>\n<li>In the putty window type &#8220;git clone https:\/\/github.com\/ct-Open-Source\/tuya-convert&#8221; press enter and wait.<\/li>\n<li>Type &#8220;cd tuya-convert&#8221; and press enter.<\/li>\n<li>Type &#8220;.\/install_prereq.sh&#8221; and wait.<\/li>\n<\/ol>\n<h4>6. Use Tuya-Convert to install Tasmota<\/h4>\n<ol>\n<li>Type &#8220;cd tuya-convert&#8221; and press enter.<\/li>\n<li>Type &#8220;.\/start_flash.sh&#8221;.<\/li>\n<li>Types &#8220;yes&#8221; and press enter.<\/li>\n<li>Connect your separate WiFi device to the&nbsp;&#8220;vtrust-flash&#8221; SSID that is being broadcast by your Raspberry Pi. The Password is &#8220;flashmeifyoucan&#8221;.<\/li>\n<li>Plug in your Tuya plug, switch, dimmer, or bulb and put into pairing mode.\n<ol>\n<li>Different models are put into pairing mode via different methods, check the curated product pages for information for putting your device in pairing mode.&nbsp; The LED should flash rapidly if done successfully.<\/li>\n<\/ol>\n<\/li>\n<li>Press enter on your putty window to start the flash process and wait.<\/li>\n<li>Once the process completes you can type &#8221; curl http:\/\/10.42.42.42\/flash3&#8243; to install tasmota, or look at the other options available.<\/li>\n<\/ol>\n<h4>7. Setup Tasmota<\/h4>\n<ol>\n<li>On your secondary device, disconnect from vtrust-flash and connect to the new SSID called &#8220;sonoff-XXXX&#8221;<\/li>\n<li>Open 192.168.4.1 in your browser and enter your WiFi&#8217;s SSID and password.<\/li>\n<li>Use Fing to find your new device on your WiFi network, it should be called &#8220;Sonoff-XXXX&#8221;<\/li>\n<li>Open the IP address of your new device in a browser.<\/li>\n<li>If using MQTT:\n<ol>\n<li>Click &#8220;configuration&#8221;<\/li>\n<li>Click &#8220;configure MQTT&#8221;<\/li>\n<li>Enter your MQTT information<\/li>\n<\/ol>\n<\/li>\n<li>If not using MQTT:\n<ol>\n<li>Click &#8220;Console&#8221;<\/li>\n<li>Type &#8220;setoption3 0&#8221;<\/li>\n<\/ol>\n<\/li>\n<li>To get the best compatability with Tuya products you should update to the most recent version of Tasmota.\n<ol>\n<li>From the main tasmota screen click &#8220;Firmware Upgrade&#8221;<\/li>\n<li>In the top box change the URL to &#8220;http:\/\/thehackbox.org\/tasmota\/sonoff.bin&#8221;<\/li>\n<li>Press &#8220;Start Upgrade&#8221;<\/li>\n<\/ol>\n<\/li>\n<li>Update the name of your device under &#8220;Configure Other&#8221; and then &#8220;Friendly Name&#8221;<\/li>\n<\/ol>\n<h4>7. Configure your specific device<\/h4>\n<ol>\n<li>On the main tasmota screen click &#8220;Configuration&#8221;.<\/li>\n<li>Click &#8220;Configure Module&#8221;<\/li>\n<li><a href=\"https:\/\/blakadder.github.io\/templates\/\">Consult the list of known devices to input the correct GPIO pins and chips for your device.<\/a><\/li>\n<li>Press &#8220;Save&#8221; and enjoy!<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>1. Before you begin you&#8217;ll need: One of the Linux machines listed below: A raspberry pi model B with the latest version of Raspbian Stretch Lite (Recommended Method). A raspberry pi model B+ with a USB wifi dongle and Kali Linux. A micro SD Card for your raspberry pi (at least 2gb, 8+ recommended). A [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":2328,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[5],"tags":[],"class_list":["post-558","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials"],"acf":[],"mb":[],"mfb_rest_fields":["title","gutenberg_elementor_mode"],"_links":{"self":[{"href":"https:\/\/www.thesmarthomehookup.com\/test_install\/wp-json\/wp\/v2\/posts\/558","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.thesmarthomehookup.com\/test_install\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.thesmarthomehookup.com\/test_install\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.thesmarthomehookup.com\/test_install\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thesmarthomehookup.com\/test_install\/wp-json\/wp\/v2\/comments?post=558"}],"version-history":[{"count":5,"href":"https:\/\/www.thesmarthomehookup.com\/test_install\/wp-json\/wp\/v2\/posts\/558\/revisions"}],"predecessor-version":[{"id":2329,"href":"https:\/\/www.thesmarthomehookup.com\/test_install\/wp-json\/wp\/v2\/posts\/558\/revisions\/2329"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.thesmarthomehookup.com\/test_install\/wp-json\/wp\/v2\/media\/2328"}],"wp:attachment":[{"href":"https:\/\/www.thesmarthomehookup.com\/test_install\/wp-json\/wp\/v2\/media?parent=558"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thesmarthomehookup.com\/test_install\/wp-json\/wp\/v2\/categories?post=558"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thesmarthomehookup.com\/test_install\/wp-json\/wp\/v2\/tags?post=558"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}