{"id":54032,"date":"2018-03-15T10:23:14","date_gmt":"2018-03-15T10:23:14","guid":{"rendered":"http:\/\/randomnerdtutorials.com\/?p=54032"},"modified":"2020-07-30T14:19:01","modified_gmt":"2020-07-30T14:19:01","slug":"sonoff-basic-switch-esp-easy-firmware-node-red","status":"publish","type":"post","link":"https:\/\/randomnerdtutorials.com\/sonoff-basic-switch-esp-easy-firmware-node-red\/","title":{"rendered":"Control Sonoff Basic Switch with ESP Easy Firmware and Node-RED"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">In this project you&#8217;ll learn how to use the ESP Easy firmware on a Sonoff basic smart switch and control it with Node-RED using Node-RED dashboard. The Node-RED software is running on a Raspberry Pi. The ESP Easy firmware can also be integrated with other home automation platforms like Home Assistant, Domoticz, openHAB, etc&#8230;<\/span><!--more--><\/p>\n<h2>Watch the Project Video Demonstration<\/h2>\n<p style=\"text-align:center\"><iframe width=\"720\" height=\"405\" src=\"https:\/\/www.youtube.com\/embed\/f9LGd_rb92I?rel=0\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n<p>We recommend using the following tutorials as a reference:<\/p>\n<ul>\n<li><a href=\"https:\/\/randomnerdtutorials.com\/sonoff-5-wifi-wireless-smart-switch-introduction\/\">Sonoff \u2013 $5 WiFi Wireless Smart Switch Introduction<\/a><\/li>\n<li><a href=\"https:\/\/randomnerdtutorials.com\/reprogram-sonoff-smart-switch-with-web-server\/\">Reprogram Sonoff Smart Switch with Web Server<\/a><\/li>\n<li><a href=\"https:\/\/randomnerdtutorials.com\/how-to-flash-a-custom-firmware-to-sonoff\/\">How to Flash a Custom Firmware to Sonoff<\/a><\/li>\n<\/ul>\n<h2>Project Overview<\/h2>\n<p>By the end of this project you\u2019ll have a Sonoff running the ESP Easy firmware that can be controlled with HTTP GET requests using a web browser or another Wi-Fi enabled device.&nbsp;&nbsp;<span style=\"font-weight: 400;\">After completing the configuration on the ESPEasy web interface, you can integrate it with most home automation platforms. For this example, I\u2019ll be using Node-RED that is running on a Raspberry Pi. After connecting a couple of nodes, you can control the Sonoff using a button in your Node-RED dashboard.<\/span><\/p>\n<p>The figure below shows a high-level overview on how the project works:<\/p>\n<p><img data-recalc-dims=\"1\" fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter size-full wp-image-54142\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/ESPEasy_Sonoff_project_overview.png?resize=750%2C728&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"\" width=\"750\" height=\"728\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/ESPEasy_Sonoff_project_overview.png?w=750&amp;quality=100&amp;strip=all&amp;ssl=1 750w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/ESPEasy_Sonoff_project_overview.png?resize=300%2C291&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/p>\n<h2>Prerequisites:<\/h2>\n<ul>\n<li>You should be familiar with the Raspberry Pi \u2013&nbsp;<a href=\"https:\/\/randomnerdtutorials.com\/getting-started-with-raspberry-pi\/\" target=\"_blank\" rel=\"noopener noreferrer\">read Getting Started with Raspberry Pi<\/a>;<\/li>\n<li>You should have the Raspbian operating system installed in your Raspberry Pi \u2013&nbsp;<a href=\"https:\/\/randomnerdtutorials.com\/installing-raspbian-lite-enabling-and-connecting-with-ssh\/\">read Installing Raspbian Lite, Enabling and Connecting with SSH<\/a>;<\/li>\n<li>You also need <a href=\"https:\/\/randomnerdtutorials.com\/getting-started-with-node-red-on-raspberry-pi\/\">Node-RED<\/a> and <a href=\"https:\/\/randomnerdtutorials.com\/getting-started-with-node-red-dashboard\/\">Node-RED Dashboard<\/a> installed in your Raspberry Pi.<\/li>\n<\/ul>\n<p>If you like home automation and you want to learn more about Node-RED, Raspberry Pi, ESP8266 and Arduino. I recommend that you download my course:&nbsp;<a href=\"https:\/\/randomnerdtutorials.com\/build-a-home-automation-system-for-100\/\" target=\"_blank\" rel=\"noopener noreferrer\">Build a Home Automation System for $100<\/a>.<\/p>\n<h2>Parts Required<\/h2>\n<p>Here\u2019s a complete list of the parts required for this project:<\/p>\n<ul>\n<li><a href=\"https:\/\/makeradvisor.com\/tools\/sonoff-wi-fi-smart-switch\/\" target=\"_blank\" rel=\"noopener noreferrer\">Sonoff Wi-Fi Smart Switch<\/a><\/li>\n<li><a href=\"https:\/\/makeradvisor.com\/tools\/ftdi-programmer-board\/\" target=\"_blank\" rel=\"noopener noreferrer\">FTDI Programmer<\/a><\/li>\n<li><a href=\"https:\/\/makeradvisor.com\/tools\/raspberry-pi-board\/\" target=\"_blank\" rel=\"noopener noreferrer\">Raspberry Pi Board<\/a>&nbsp;&nbsp;\u2013 read&nbsp;<a href=\"https:\/\/makeradvisor.com\/best-raspberry-pi-3-starter-kits\/\" target=\"_blank\" rel=\"noopener noreferrer\">Best Raspberry Pi Starter Kits<\/a><\/li>\n<li><a href=\"https:\/\/makeradvisor.com\/tools\/microsd-card-raspberry-pi-16gb-class-10\/\" target=\"_blank\" rel=\"noopener noreferrer\">MicroSD Card \u2013 at least 8GB Class10<\/a><\/li>\n<li><a href=\"https:\/\/makeradvisor.com\/tools\/raspberry-pi-power-supply\/\" target=\"_blank\" rel=\"noopener noreferrer\">Raspberry Pi Power Supply (5V 2.5A)<\/a><\/li>\n<\/ul>\n<div class=\"code-block code-block-10\">\n<div class=\"clear\"><p>You can use the preceding links or go directly to <a href=\"https:\/\/makeradvisor.com\/tools\/?utm_source=rnt&utm_medium=post&utm_campaign=post\" target=\"_blank\">MakerAdvisor.com\/tools<\/a> to find all the parts for your projects at the best price!<\/p><p style=\"text-align:center;\"><a href=\"https:\/\/makeradvisor.com\/tools\/?utm_source=rnt&utm_medium=post&utm_campaign=post\" target=\"_blank\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/10\/header-200.png?w=1200&#038;quality=100&#038;strip=all&#038;ssl=1\"><\/a><\/p><\/div>\n<\/div>\n<h2>About the Sonoff<\/h2>\n<p>The <a href=\"https:\/\/makeradvisor.com\/tools\/sonoff-wi-fi-smart-switch\/\" target=\"_blank\" rel=\"noopener noreferrer\">Sonoff<\/a> is a device that you put in series with your power lines allowing you to remotely turn any device on and off.<\/p>\n<p>In simple terms, a Sonoff device contains an ESP8266 chip connected to a relay. This way you can connect to the Sonoff via Wi-Fi to control the relay.&nbsp; The sonoff comes with a firmware that allows you to control it using the eWeLink app. However, most people prefer to flash the Sonoff device with custom firmware as we\u2019ll do in this project.<\/p>\n<p><img data-recalc-dims=\"1\" decoding=\"async\" class=\"aligncenter size-full wp-image-54150\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/sonoff-basic-smart-wifi-switch.jpg?resize=750%2C354&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"\" width=\"750\" height=\"354\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/sonoff-basic-smart-wifi-switch.jpg?w=750&amp;quality=100&amp;strip=all&amp;ssl=1 750w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/sonoff-basic-smart-wifi-switch.jpg?resize=300%2C142&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/p>\n<h2>Safety Warning<\/h2>\n<p>Make sure your Sonoff is disconnected from mains voltage while you are uploading a new firmware. Never touch any Sonoff component while it&#8217;s connected to mains voltage. After everything is disconnected and unplugged, open the Sonoff&#8217;s plastic box enclosure.<\/p>\n<p><img data-recalc-dims=\"1\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2016\/11\/warning-m-1.png?resize=700%2C200&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"warning-m\" width=\"700\" height=\"200\"><\/p>\n<h2>Sonoff Pinout<\/h2>\n<p>The Sonoff is meant to be hacked, and you can see clearly that some connections were left out, so that you can solder some pins and upload a custom firmware. The figure below shown the pinout.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2016\/11\/sonoff_gpio-r.jpg?resize=750%2C424&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"sonoff_gpio-r\" width=\"750\" height=\"424\"><\/p>\n<p>The Sonoff comes with an ESP8266 Wi-Fi chip&nbsp;built-in that we can re-program with a custom firmware.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-54151\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/esp8266-sonoff.jpg?resize=750%2C443&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"\" width=\"750\" height=\"443\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/esp8266-sonoff.jpg?w=750&amp;quality=100&amp;strip=all&amp;ssl=1 750w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/esp8266-sonoff.jpg?resize=300%2C177&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/p>\n<p>I&#8217;ve soldered 4 header pins, so that I can easily connect and disconnect wire cables to my Sonoff device.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2016\/11\/pins-soldered.jpg?resize=622%2C369&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"pins-soldered\" width=\"622\" height=\"369\"><\/p>\n<h3>Preparing 3.3V FTDI Programmer<\/h3>\n<p>You need an <a href=\"https:\/\/makeradvisor.com\/tools\/ftdi-programmer-board\/\" target=\"_blank\" rel=\"noopener noreferrer\">FTDI programmer<\/a> to upload a new firmware to your Sonoff. Use the schematics provided as a reference.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-54097\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2016\/11\/sonoffo-ftdi.jpg?resize=867%2C263&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"\" width=\"867\" height=\"263\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2016\/11\/sonoffo-ftdi.jpg?w=867&amp;quality=100&amp;strip=all&amp;ssl=1 867w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2016\/11\/sonoffo-ftdi.jpg?resize=300%2C91&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2016\/11\/sonoffo-ftdi.jpg?resize=768%2C233&amp;quality=100&amp;strip=all&amp;ssl=1 768w\" sizes=\"(max-width: 867px) 100vw, 867px\" \/><\/p>\n<p><span style=\"font-weight: 400; color: #ff0000;\"><strong>Warning: <\/strong>uploading a custom firmware is irreversible and you\u2019ll no longer be able to use the app eWeLink.<\/span><\/p>\n<p>I\u2019ve added a toggle switch in the power line, so that I can easily turn the Sonoff on and off to flash a new firmware without having to unplug the FTDI programmer.<\/p>\n<p>I used hot glue to glue the ends of the wires together. This prevents you from making wrong connections between the FTDI programmer and the Sonoff in the future.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2016\/11\/hot-glue-ftdi.jpg?resize=750%2C369&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"hot-glue-ftdi\" width=\"750\" height=\"369\"><\/p>\n<h3>Boot your Sonoff in Flashing Mode<\/h3>\n<p>To flash a new firmware to your Sonoff, you have to boot your Sonoff in flashing mode. To do that, follow these next 4 steps:<\/p>\n<p><strong>1<\/strong>. Connect your 3.3V FTDI programmer to your computer<\/p>\n<p><strong>2.<\/strong> Hold down the Sonoff button<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2016\/11\/hold-down-sonoff-button.jpg?resize=300%2C273&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"hold-down-sonoff-button\" width=\"300\" height=\"273\"><\/p>\n<p><strong>3.<\/strong> Toggle the switch to apply power to the Sonoff circuit<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2016\/11\/apply-power-to-sonoff.png?resize=600%2C287&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"apply-power-to-sonoff\" width=\"600\" height=\"287\"><\/p>\n<p><strong>4.<\/strong> Then, you can release the Sonoff button<\/p>\n<p>Now, your Sonoff should be in flashing mode and you can upload a new firmware.<\/p>\n<h2>ESP Easy Firmware<\/h2>\n<p>The <a href=\"https:\/\/github.com\/letscontrolit\/ESPEasy\" target=\"_blank\" rel=\"noopener noreferrer\">ESP Easy<\/a> is a firmware that can be used in any ESP module, whether it is an ESP-01, ESP8266-12E, ESP32, and so on &#8211; read their <a href=\"https:\/\/www.letscontrolit.com\/wiki\/index.php\/ESPEasy#Introduction\" target=\"_blank\" rel=\"noopener noreferrer\">Wiki page<\/a>. This firmware provides an easy way to configure your ESP module &#8211; you don\u2019t have to write any code.<\/p>\n<p>After loading the firmware, all the configurations, like setting GPIOs as inputs, outputs, etc are done in your browser using a user-friendly graphical interface.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-54065\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/6-espeasy-login.png?resize=819%2C294&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"\" width=\"819\" height=\"294\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/6-espeasy-login.png?w=819&amp;quality=100&amp;strip=all&amp;ssl=1 819w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/6-espeasy-login.png?resize=300%2C108&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/6-espeasy-login.png?resize=768%2C276&amp;quality=100&amp;strip=all&amp;ssl=1 768w\" sizes=\"(max-width: 819px) 100vw, 819px\" \/><\/p>\n<h2>Flashing the Sonoff with ESP Easy Firmware on a Windows PC<\/h2>\n<p>Go to the ESP Easy firmware&nbsp;<a href=\"https:\/\/github.com\/letscontrolit\/ESPEasy\/releases\" target=\"_blank\" rel=\"noopener noreferrer\">GitHub releases page<\/a>&nbsp;and click the link&nbsp;<strong>ESPEasy_v2.0-xxxxxxxx.zip <\/strong>to download it:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-54073\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/0-download-espeasy-firmware.png?resize=633%2C254&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"\" width=\"633\" height=\"254\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/0-download-espeasy-firmware.png?w=633&amp;quality=100&amp;strip=all&amp;ssl=1 633w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/0-download-espeasy-firmware.png?resize=300%2C120&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/0-download-espeasy-firmware.png?resize=250%2C100&amp;quality=100&amp;strip=all&amp;ssl=1 250w\" sizes=\"(max-width: 633px) 100vw, 633px\" \/><\/p>\n<p>After downloading, unzip the folder and run the FlashESP8266.exe file:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-54070\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/1-flash-sonoff-with-espeasy.png?resize=786%2C492&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"\" width=\"786\" height=\"492\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/1-flash-sonoff-with-espeasy.png?w=786&amp;quality=100&amp;strip=all&amp;ssl=1 786w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/1-flash-sonoff-with-espeasy.png?resize=300%2C188&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/1-flash-sonoff-with-espeasy.png?resize=768%2C481&amp;quality=100&amp;strip=all&amp;ssl=1 768w\" sizes=\"(max-width: 786px) 100vw, 786px\" \/><\/p>\n<p>Select COM-Port (your FTDI&#8217;s programmer port) and choose the firmware that ends with 1024_DOUT.bin: ESP_Easy_v2.0-xxxxxxxx_normal_ESP8266_<strong>1024_DOUT.bin<\/strong><\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-54071\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/2-flash-sonoff-firmware.png?resize=584%2C426&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"\" width=\"584\" height=\"426\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/2-flash-sonoff-firmware.png?w=584&amp;quality=100&amp;strip=all&amp;ssl=1 584w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/2-flash-sonoff-firmware.png?resize=300%2C219&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 584px) 100vw, 584px\" \/><\/p>\n<p><strong>Note<\/strong>: to flash the firmware on other operating systems, you can use the <a href=\"https:\/\/github.com\/espressif\/esptool\" target=\"_blank\" rel=\"noopener noreferrer\">ESPTool.py<\/a> to flash the firmware to your ESP8266. You can read more information about that subject&nbsp;<a href=\"https:\/\/www.letscontrolit.com\/wiki\/index.php\/Tutorial_ESPEasy_Firmware_Upload\" target=\"_blank\" rel=\"noopener noreferrer\">here<\/a>.<\/p>\n<h2>Troubleshooting<\/h2>\n<p>If you try to upload the sketch and it fails to flash, it means that your Sonoff is not in flashing mode. You&#8217;ll need to repeat the process described in the earlier section \u201cBoot your Sonoff in flashing mode\u201d in this guide and try to flash again.<\/p>\n<h2>Final circuit<\/h2>\n<p>After uploading the code, re-assemble your Sonoff. <span style=\"color: #ff0000;\"><strong>Be very careful with the mains voltage connections.&nbsp;<\/strong><\/span>It\u2019s the exact same procedure as shown in <a href=\"https:\/\/randomnerdtutorials.com\/sonoff-5-wifi-wireless-smart-switch-introduction\/\" target=\"_blank\" rel=\"noopener noreferrer\">the introductory guide<\/a>.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-29197\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2016\/11\/SONOFF_circuit.png?resize=1169%2C299&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"sonoff_circuit\" width=\"1169\" height=\"299\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2016\/11\/SONOFF_circuit.png?w=1169&amp;quality=100&amp;strip=all&amp;ssl=1 1169w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2016\/11\/SONOFF_circuit.png?resize=150%2C38&amp;quality=100&amp;strip=all&amp;ssl=1 150w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2016\/11\/SONOFF_circuit.png?resize=300%2C77&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2016\/11\/SONOFF_circuit.png?resize=768%2C196&amp;quality=100&amp;strip=all&amp;ssl=1 768w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2016\/11\/SONOFF_circuit.png?resize=1024%2C262&amp;quality=100&amp;strip=all&amp;ssl=1 1024w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2016\/11\/SONOFF_circuit.png?resize=80%2C20&amp;quality=100&amp;strip=all&amp;ssl=1 80w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2016\/11\/SONOFF_circuit.png?resize=220%2C56&amp;quality=100&amp;strip=all&amp;ssl=1 220w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2016\/11\/SONOFF_circuit.png?resize=250%2C64&amp;quality=100&amp;strip=all&amp;ssl=1 250w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2016\/11\/SONOFF_circuit.png?resize=280%2C72&amp;quality=100&amp;strip=all&amp;ssl=1 280w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2016\/11\/SONOFF_circuit.png?resize=510%2C130&amp;quality=100&amp;strip=all&amp;ssl=1 510w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2016\/11\/SONOFF_circuit.png?resize=750%2C192&amp;quality=100&amp;strip=all&amp;ssl=1 750w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2016\/11\/SONOFF_circuit.png?resize=975%2C249&amp;quality=100&amp;strip=all&amp;ssl=1 975w\" sizes=\"(max-width: 1169px) 100vw, 1169px\" \/><\/p>\n<p>If your house has a Earth connection, you should wire your Sonoff as follows:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-54154\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/SONOFF-mains-voltage.png?resize=1142%2C263&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"\" width=\"1142\" height=\"263\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/SONOFF-mains-voltage.png?w=1142&amp;quality=100&amp;strip=all&amp;ssl=1 1142w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/SONOFF-mains-voltage.png?resize=300%2C69&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/SONOFF-mains-voltage.png?resize=768%2C177&amp;quality=100&amp;strip=all&amp;ssl=1 768w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/SONOFF-mains-voltage.png?resize=1024%2C236&amp;quality=100&amp;strip=all&amp;ssl=1 1024w\" sizes=\"(max-width: 1142px) 100vw, 1142px\" \/><\/p>\n<h2>Connecting to Your Wi-Fi Network<\/h2>\n<p>After powering your Sonoff device, you need to use your computer\/laptop to connect to the ESP_Easy_0 Access Point (AP). In this case, I&#8217;m using my smartphone, so tap to connect to the ESP_Easy_0.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-54046\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/1-ESPEasy-scan-network-f.jpg?resize=550%2C363&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"\" width=\"550\" height=\"363\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/1-ESPEasy-scan-network-f.jpg?w=550&amp;quality=100&amp;strip=all&amp;ssl=1 550w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/1-ESPEasy-scan-network-f.jpg?resize=300%2C198&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 550px) 100vw, 550px\" \/><\/p>\n<p>Type the password <strong>configesp<\/strong> and press the &#8220;<strong>CONNECT<\/strong>&#8221; button.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-54047\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/2-ESPEasy-enter-password-f.jpg?resize=550%2C445&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"\" width=\"550\" height=\"445\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/2-ESPEasy-enter-password-f.jpg?w=550&amp;quality=100&amp;strip=all&amp;ssl=1 550w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/2-ESPEasy-enter-password-f.jpg?resize=300%2C243&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 550px) 100vw, 550px\" \/><\/p>\n<p>Then, open your browser and type the following IP address:&nbsp;<strong>192.168.4.1<\/strong> or simply tap &#8220;<strong>SIGN IN<\/strong>&#8221; button.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-54048\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/3-ESPEasy-conifg-f.jpg?resize=550%2C501&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"\" width=\"550\" height=\"501\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/3-ESPEasy-conifg-f.jpg?w=550&amp;quality=100&amp;strip=all&amp;ssl=1 550w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/3-ESPEasy-conifg-f.jpg?resize=300%2C273&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 550px) 100vw, 550px\" \/><\/p>\n<h3>Configuring the WiFi page<\/h3>\n<p>You\u2019ll be redirected to a web page at&nbsp;<strong>192.168.4.1<\/strong>&nbsp;that allows you to configure your ESP\u2019s\/Sonoff&#8217;s WiFi credentials. Select your network name, type the password and press the \u201c<strong>Connect<\/strong>\u201d button.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-54049\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/4-ESPEasy-enter-ssid-password-f.jpg?resize=550%2C415&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"\" width=\"550\" height=\"415\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/4-ESPEasy-enter-ssid-password-f.jpg?w=550&amp;quality=100&amp;strip=all&amp;ssl=1 550w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/4-ESPEasy-enter-ssid-password-f.jpg?resize=300%2C226&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 550px) 100vw, 550px\" \/><\/p>\n<p>After a few seconds, it should print a message with your ESP&#8217;s IP address. In my case, it&#8217;s 192.168.1.113. Save that number, because you&#8217;ll need it in the next step.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-54050\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/5-ESPEasy-view-ip-address-f.jpg?resize=550%2C386&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"\" width=\"550\" height=\"386\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/5-ESPEasy-view-ip-address-f.jpg?w=550&amp;quality=100&amp;strip=all&amp;ssl=1 550w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/5-ESPEasy-view-ip-address-f.jpg?resize=300%2C211&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 550px) 100vw, 550px\" \/><\/p>\n<h2>Preparing the ESP Easy firmware<\/h2>\n<p>When you first access your the ESP Easy firmware web interface at your IP address (in my case:&nbsp;192.168.1.113), you&#8217;ll be asked to enter a password (the default password is <strong>configesp<\/strong>).<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-54065\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/6-espeasy-login.png?resize=819%2C294&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"\" width=\"819\" height=\"294\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/6-espeasy-login.png?w=819&amp;quality=100&amp;strip=all&amp;ssl=1 819w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/6-espeasy-login.png?resize=300%2C108&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/6-espeasy-login.png?resize=768%2C276&amp;quality=100&amp;strip=all&amp;ssl=1 768w\" sizes=\"(max-width: 819px) 100vw, 819px\" \/><\/p>\n<p>After login, you&#8217;ll be redirected to the main page that contains different details about the device, as shown below.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-54058\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/7-espeasy-after-login.png?resize=975%2C409&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"\" width=\"975\" height=\"409\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/7-espeasy-after-login.png?w=975&amp;quality=100&amp;strip=all&amp;ssl=1 975w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/7-espeasy-after-login.png?resize=300%2C126&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/7-espeasy-after-login.png?resize=768%2C322&amp;quality=100&amp;strip=all&amp;ssl=1 768w\" sizes=\"(max-width: 975px) 100vw, 975px\" \/><\/p>\n<h3>Config<\/h3>\n<p>I strongly recommend going to the Config tab and type a new admin password (this will overwrite the configesp password). So, make sure you put down the new password, otherwise you&#8217;ll no longer be able to access the ESP Easy configurations web page.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-54059\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/8-espeasy-config.png?resize=800%2C314&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"\" width=\"800\" height=\"314\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/8-espeasy-config.png?w=800&amp;quality=100&amp;strip=all&amp;ssl=1 800w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/8-espeasy-config.png?resize=300%2C118&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/8-espeasy-config.png?resize=768%2C301&amp;quality=100&amp;strip=all&amp;ssl=1 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n<h3>Controllers<\/h3>\n<p>By default, it comes with the protocol Domoticz HTTP enabled. Remove it by clicking the &#8220;<strong>Edit<\/strong>&#8221; button.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-54060\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/9-espeasy-controllers-init.png?resize=996%2C333&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"\" width=\"996\" height=\"333\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/9-espeasy-controllers-init.png?w=996&amp;quality=100&amp;strip=all&amp;ssl=1 996w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/9-espeasy-controllers-init.png?resize=300%2C100&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/9-espeasy-controllers-init.png?resize=768%2C257&amp;quality=100&amp;strip=all&amp;ssl=1 768w\" sizes=\"(max-width: 996px) 100vw, 996px\" \/><\/p>\n<p>Set the Protocol to &#8220;<strong>Standalone<\/strong>&#8221; and click the &#8220;<strong>Submit<\/strong>&#8221; button.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-54061\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/10-espeasy-edit-controllers.png?resize=900%2C281&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"\" width=\"900\" height=\"281\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/10-espeasy-edit-controllers.png?w=900&amp;quality=100&amp;strip=all&amp;ssl=1 900w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/10-espeasy-edit-controllers.png?resize=300%2C94&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/10-espeasy-edit-controllers.png?resize=768%2C240&amp;quality=100&amp;strip=all&amp;ssl=1 768w\" sizes=\"(max-width: 900px) 100vw, 900px\" \/><\/p>\n<p>The figure below shows how the Controllers tab should look like after that step.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-54062\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/11-espeasy-controllers.png?resize=975%2C323&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"\" width=\"975\" height=\"323\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/11-espeasy-controllers.png?w=975&amp;quality=100&amp;strip=all&amp;ssl=1 975w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/11-espeasy-controllers.png?resize=300%2C99&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/11-espeasy-controllers.png?resize=768%2C254&amp;quality=100&amp;strip=all&amp;ssl=1 768w\" sizes=\"(max-width: 975px) 100vw, 975px\" \/><\/p>\n<h3>Hardware<\/h3>\n<p>The ESP Easy firmware allows you to set the Sonoff&#8217;s built-in LED as a Wi-Fi status LED. To do that, in the &#8220;Hardware&#8221; tab, go to &#8220;GPIO-&gt;LED&#8221; and set it to GPIO-13 (D7), which is the Sonoff&#8217;s built-in LED.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-54063\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/12-espeasy-hardware.png?resize=975%2C624&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"\" width=\"975\" height=\"624\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/12-espeasy-hardware.png?w=975&amp;quality=100&amp;strip=all&amp;ssl=1 975w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/12-espeasy-hardware.png?resize=300%2C192&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/12-espeasy-hardware.png?resize=768%2C492&amp;quality=100&amp;strip=all&amp;ssl=1 768w\" sizes=\"(max-width: 975px) 100vw, 975px\" \/><\/p>\n<h3>Devices<\/h3>\n<p>In the Devices tab, you should create a switch button that is assigned to the GPIO 12. You use GPIO 12 because that&#8217;s the ESP8266 GPIO the relay inside the Sonoff device is connected to. Press the &#8220;<strong>Edit<\/strong>&#8221; button.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-54064\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/13-espeasy-devices-main.png?resize=974%2C546&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"\" width=\"974\" height=\"546\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/13-espeasy-devices-main.png?w=974&amp;quality=100&amp;strip=all&amp;ssl=1 974w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/13-espeasy-devices-main.png?resize=300%2C168&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/13-espeasy-devices-main.png?resize=768%2C431&amp;quality=100&amp;strip=all&amp;ssl=1 768w\" sizes=\"(max-width: 974px) 100vw, 974px\" \/><\/p>\n<p>Select as your Device &#8220;Switch input &#8211; Switch&#8221;.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-54052\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/14-espeasy-devices-select-switch.png?resize=826%2C326&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"\" width=\"826\" height=\"326\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/14-espeasy-devices-select-switch.png?w=826&amp;quality=100&amp;strip=all&amp;ssl=1 826w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/14-espeasy-devices-select-switch.png?resize=300%2C118&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/14-espeasy-devices-select-switch.png?resize=768%2C303&amp;quality=100&amp;strip=all&amp;ssl=1 768w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/14-espeasy-devices-select-switch.png?resize=250%2C100&amp;quality=100&amp;strip=all&amp;ssl=1 250w\" sizes=\"(max-width: 826px) 100vw, 826px\" \/><\/p>\n<p>Follow these configurations:<\/p>\n<ul>\n<li>Name your device<\/li>\n<li>Tick the <strong>Enabled<\/strong> box<\/li>\n<li>1st GPIO: GPIO-12 (D6)<\/li>\n<li>Switch Type: Switch<\/li>\n<li>Switch Button Type: Normal Switch<\/li>\n<\/ul>\n<p>After completing all the configurations, press the &#8220;Submit&#8221; button:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-54053\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/15-espeasy-devices-sonoff-basic.png?resize=995%2C801&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"\" width=\"995\" height=\"801\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/15-espeasy-devices-sonoff-basic.png?w=995&amp;quality=100&amp;strip=all&amp;ssl=1 995w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/15-espeasy-devices-sonoff-basic.png?resize=300%2C242&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/15-espeasy-devices-sonoff-basic.png?resize=768%2C618&amp;quality=100&amp;strip=all&amp;ssl=1 768w\" sizes=\"(max-width: 995px) 100vw, 995px\" \/><\/p>\n<p>The figure below shows how your Devices tab should look like after this previous configuration.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-54054\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/16-espeasy-devices-configured.png?resize=982%2C546&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"\" width=\"982\" height=\"546\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/16-espeasy-devices-configured.png?w=982&amp;quality=100&amp;strip=all&amp;ssl=1 982w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/16-espeasy-devices-configured.png?resize=300%2C167&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/16-espeasy-devices-configured.png?resize=768%2C427&amp;quality=100&amp;strip=all&amp;ssl=1 768w\" sizes=\"(max-width: 982px) 100vw, 982px\" \/><\/p>\n<h3>Rebooting your Sonoff<\/h3>\n<p>For all the configuration to take effect, you should reboot your Sonoff. Go to the Tools tab and press the &#8220;<strong>Reboot<\/strong>&#8221; button.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-54055\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/17-espeasy-tools.png?resize=851%2C541&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"\" width=\"851\" height=\"541\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/17-espeasy-tools.png?w=851&amp;quality=100&amp;strip=all&amp;ssl=1 851w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/17-espeasy-tools.png?resize=300%2C191&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/17-espeasy-tools.png?resize=768%2C488&amp;quality=100&amp;strip=all&amp;ssl=1 768w\" sizes=\"(max-width: 851px) 100vw, 851px\" \/><\/p>\n<h2>Testing Your Sonoff Installation<\/h2>\n<p>Follow the next steps to test your Sonoff installation.<\/p>\n<p>Open your browser and go to this URL to turn on your Sonoff: http:\/\/[your_sonoff_ip_address]<em><strong>\/control?cmd=GPIO,12,1<\/strong><\/em><\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-54056\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/18-espeasy-control-command-on.png?resize=519%2C203&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"\" width=\"519\" height=\"203\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/18-espeasy-control-command-on.png?w=519&amp;quality=100&amp;strip=all&amp;ssl=1 519w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/18-espeasy-control-command-on.png?resize=300%2C117&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 519px) 100vw, 519px\" \/><\/p>\n<p>Then, go to the next URL to turn off your Sonoff:&nbsp;http:\/\/[your_sonoff_ip_address]<em><strong>\/control?cmd=GPIO,12,0<\/strong><\/em><\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-54057\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/19-espeasy-control-command-off.png?resize=519%2C203&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"\" width=\"519\" height=\"203\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/19-espeasy-control-command-off.png?w=519&amp;quality=100&amp;strip=all&amp;ssl=1 519w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/19-espeasy-control-command-off.png?resize=300%2C117&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 519px) 100vw, 519px\" \/><\/p>\n<h2>Creating the Node-RED Flow<\/h2>\n<p>Before creating the flow, make sure you have the <a href=\"https:\/\/randomnerdtutorials.com\/getting-started-with-node-red-dashboard\/\" target=\"_blank\" rel=\"noopener noreferrer\">Dashboard&nbsp;nodes<\/a> installed. Then, you can either import the Node-RED flow or create it by yourself.<\/p>\n<h3>Importing the Node-RED flow<\/h3>\n<p>If you don&#8217;t want to create the Node-RED flow, you can import it. For that, go to the&nbsp;<a href=\"https:\/\/raw.githubusercontent.com\/RuiSantosdotme\/Random-Nerd-Tutorials\/master\/Projects\/ESPEasy\/Sonoff_and_Node_RED.txt\" target=\"_blank\" rel=\"noopener noreferrer\">GitHub repository<\/a>&nbsp;or click the figure below to see the raw file, and copy the code provided.<\/p>\n<p><a href=\"https:\/\/raw.githubusercontent.com\/RuiSantosdotme\/Random-Nerd-Tutorials\/master\/Projects\/ESPEasy\/Sonoff_and_Node_RED.txt\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-45986 size-full\" src=\"https:\/\/i2.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/11\/flow-code.png?resize=991%2C96&amp;ssl=1\" sizes=\"(max-width: 991px) 100vw, 991px\" srcset=\"https:\/\/i2.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/11\/flow-code.png?w=991&amp;ssl=1 991w, https:\/\/i2.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/11\/flow-code.png?resize=300%2C29&amp;ssl=1 300w, https:\/\/i2.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/11\/flow-code.png?resize=768%2C74&amp;ssl=1 768w\" alt=\"\" width=\"750\" height=\"73\"><\/a><\/p>\n<p>Next, in the Node-RED window, at the top right corner, select the menu, and go to&nbsp;<strong>Import&nbsp;<\/strong>&nbsp;&gt;&nbsp;<strong>Clipboard<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-45987\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/11\/import-nodes.png?resize=523%2C291&amp;ssl=1\" sizes=\"(max-width: 523px) 100vw, 523px\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/11\/import-nodes.png?w=523&amp;ssl=1 523w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/11\/import-nodes.png?resize=300%2C167&amp;ssl=1 300w\" alt=\"\" width=\"523\" height=\"291\"><\/p>\n<p>Then, paste the code provided and click&nbsp;<strong>Import<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-45988\" src=\"https:\/\/i2.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/11\/import-nodes-2.png?resize=500%2C337&amp;ssl=1\" sizes=\"(max-width: 500px) 100vw, 500px\" srcset=\"https:\/\/i2.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/11\/import-nodes-2.png?w=500&amp;ssl=1 500w, https:\/\/i2.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/11\/import-nodes-2.png?resize=300%2C202&amp;ssl=1 300w\" alt=\"\" width=\"500\" height=\"337\"><\/p>\n<p>Then, you should change the HTTP request nodes to include your Sonoff&#8217;s IP address.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-54037\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/5-node-red-flow.png?resize=506%2C395&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"\" width=\"506\" height=\"395\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/5-node-red-flow.png?w=506&amp;quality=100&amp;strip=all&amp;ssl=1 506w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/5-node-red-flow.png?resize=300%2C234&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 506px) 100vw, 506px\" \/><\/p>\n<h3>Creating the Node-RED Flow<\/h3>\n<p>If you prefer to create the Node-RED flow yourself, instead of importing the code, follow these next steps.<\/p>\n<p>Drag the following four nodes:<\/p>\n<ol>\n<li>Dashboard switch<\/li>\n<li>Function switch<\/li>\n<li>HTTP request &#8211; on command<\/li>\n<li>HTTP request &#8211; off command<\/li>\n<\/ol>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-54033\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/1-node-red-flow.png?resize=414%2C105&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"\" width=\"414\" height=\"105\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/1-node-red-flow.png?w=414&amp;quality=100&amp;strip=all&amp;ssl=1 414w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/1-node-red-flow.png?resize=300%2C76&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 414px) 100vw, 414px\" \/><\/p>\n<p>Then, edit the nodes as shown in the figures below.<\/p>\n<p><strong>1.<\/strong> Dashboard switch node:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-54034\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/2-node-red-flow.png?resize=506%2C574&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"\" width=\"506\" height=\"574\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/2-node-red-flow.png?w=506&amp;quality=100&amp;strip=all&amp;ssl=1 506w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/2-node-red-flow.png?resize=264%2C300&amp;quality=100&amp;strip=all&amp;ssl=1 264w\" sizes=\"(max-width: 506px) 100vw, 506px\" \/><\/p>\n<p><strong>2.<\/strong> Function switch node:<img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-54035\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/3-node-red-flow.png?resize=526%2C355&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"\" width=\"526\" height=\"355\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/3-node-red-flow.png?w=526&amp;quality=100&amp;strip=all&amp;ssl=1 526w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/3-node-red-flow.png?resize=300%2C202&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 526px) 100vw, 526px\" \/><\/p>\n<p><strong>3.<\/strong>&nbsp;HTTP request &#8211; on command<strong>&nbsp;(you must replace with your Sonoff&#8217;s IP address).<\/strong><\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-54036\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/4-node-red-flow.png?resize=506%2C398&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"\" width=\"506\" height=\"398\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/4-node-red-flow.png?w=506&amp;quality=100&amp;strip=all&amp;ssl=1 506w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/4-node-red-flow.png?resize=300%2C236&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 506px) 100vw, 506px\" \/><\/p>\n<p><strong>4.<\/strong>&nbsp;HTTP request &#8211; off command <strong>(you must replace with your Sonoff&#8217;s IP address).<\/strong><\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-54037\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/5-node-red-flow.png?resize=506%2C395&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"\" width=\"506\" height=\"395\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/5-node-red-flow.png?w=506&amp;quality=100&amp;strip=all&amp;ssl=1 506w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/5-node-red-flow.png?resize=300%2C234&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 506px) 100vw, 506px\" \/><\/p>\n<p>After editing all the nodes, wire your flow as shown below.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-54038\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/6-final-node-red-flow.png?resize=566%2C116&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"\" width=\"566\" height=\"116\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/6-final-node-red-flow.png?w=566&amp;quality=100&amp;strip=all&amp;ssl=1 566w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/6-final-node-red-flow.png?resize=300%2C61&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 566px) 100vw, 566px\" \/><\/p>\n<p>Finally, deploy your application<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-40013\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/06\/11_deploy_button.png?resize=138%2C40&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"\" width=\"138\" height=\"40\"><\/p>\n<p>&nbsp;<\/p>\n<h2>Demonstration<\/h2>\n<p>Congratulations! You project is now completed. Go to&nbsp;<em><strong>http:\/\/your-pi-ip-address\/ui&nbsp;<\/strong><\/em>to control the Sonoff with the Node-RED Dashboard.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-54101\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/Capture.png?resize=438%2C343&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"\" width=\"438\" height=\"343\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/Capture.png?w=438&amp;quality=100&amp;strip=all&amp;ssl=1 438w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/Capture.png?resize=300%2C235&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 438px) 100vw, 438px\" \/><\/p>\n<p>You can access your application in any browser in your local network to control your devices on and off.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-54157\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/node-red-dashboard-on.jpg?resize=750%2C393&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"\" width=\"750\" height=\"393\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/node-red-dashboard-on.jpg?w=750&amp;quality=100&amp;strip=all&amp;ssl=1 750w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/node-red-dashboard-on.jpg?resize=300%2C157&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/p>\n<h2>Wrapping Up<\/h2>\n<p>In this project we\u2019ve shown how to control your Sonoff with the ESP Easy firmware. As an example, we\u2019ve used Node-RED, but you can integrate it with most home automation platforms.<\/p>\n<p>We hope you\u2019ve found this project useful. If you liked this post, you may also like:<\/p>\n<ul>\n<li><a href=\"https:\/\/randomnerdtutorials.com\/build-a-home-automation-system-for-100\/\" target=\"_blank\" rel=\"noopener noreferrer\">Build a Home Automation System<\/a><\/li>\n<li><a href=\"https:\/\/randomnerdtutorials.com\/home-automation-using-esp8266\/\">Home Automation using ESP8266<\/a><\/li>\n<li><a href=\"https:\/\/randomnerdtutorials.com\/build-an-all-in-one-esp32-weather-station-shield\/\">Build an All-in-One ESP32 Weather Station Shield<\/a><\/li>\n<li><a href=\"https:\/\/randomnerdtutorials.com\/esp8266-wi-fi-button-diy-amazon-dash-button-clone\/\">ESP8266 Wi-Fi Button \u2013 DIY Amazon Dash Button Clone<\/a><\/li>\n<li><a href=\"https:\/\/randomnerdtutorials.com\/esp8266-daily-task-publish-temperature-readings-to-thingspeak\/\" target=\"_blank\" rel=\"noopener noreferrer\">ESP8266 Daily Task \u2013 Publish Temperature Readings to ThingSpeak<\/a><\/li>\n<\/ul>\n<p>Thanks for reading.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this project you&#8217;ll learn how to use the ESP Easy firmware on a Sonoff basic smart switch and control it with Node-RED using Node-RED dashboard. The Node-RED software is &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"Control Sonoff Basic Switch with ESP Easy Firmware and Node-RED\" class=\"read-more button\" href=\"https:\/\/randomnerdtutorials.com\/sonoff-basic-switch-esp-easy-firmware-node-red\/#more-54032\" aria-label=\"Read more about Control Sonoff Basic Switch with ESP Easy Firmware and Node-RED\">CONTINUE READING \u00bb<\/a><\/p>\n","protected":false},"author":1,"featured_media":54140,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[265,214,246,300,264,275,218],"tags":[],"class_list":["post-54032","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-esp8266-project","category-esp8266","category-esp8266-arduino-ide","category-0-esp8266","category-project","category-sonoff","category-web-server"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/03\/ESPEasy_Sonoff_thumbnail.jpg?fit=1280%2C720&quality=100&strip=all&ssl=1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts\/54032","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/comments?post=54032"}],"version-history":[{"count":0,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts\/54032\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/media\/54140"}],"wp:attachment":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/media?parent=54032"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/categories?post=54032"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/tags?post=54032"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}