{"id":53517,"date":"2021-10-03T21:17:40","date_gmt":"2021-10-03T13:17:40","guid":{"rendered":"https:\/\/www.seeedstudio.com\/blog\/?p=53517"},"modified":"2021-10-20T01:16:16","modified_gmt":"2021-10-19T17:16:16","slug":"smart-home-with-node-red-on-openwrt","status":"publish","type":"post","link":"https:\/\/www.seeedstudio.com\/blog\/2021\/10\/03\/smart-home-with-node-red-on-openwrt\/","title":{"rendered":"Smart Home with Node-RED on OpenWrt"},"content":{"rendered":"\n<figure class=\"wp-block-video\"><video controls src=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/produced-for-blog.mp4\"><\/video><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p>This blog will talk about how you can control your smart home appliances using Node-RED running on the<a href=\"https:\/\/github.com\/Seeed-Studio\/seeed-linux-openwrt\" target=\"_blank\" aria-label=\"undefined (opens in a new tab)\" rel=\"noreferrer noopener\"> OpenWrt System by Seeed<\/a>. Here I will explain how you can set up everything step-be-step. Also, I will use the <a href=\"https:\/\/www.seeedstudio.com\/ReTerminal-with-CM4-p-4904.html\" target=\"_blank\" aria-label=\"undefined (opens in a new tab)\" rel=\"noreferrer noopener\">reTerminal<\/a> LCD to view the Node-RED dashboard to visualize the connected devices.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is OpenWrt?<\/h2>\n\n\n\n<p><a aria-label=\"undefined (opens in a new tab)\" href=\"https:\/\/openwrt.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">OpenWrt<\/a> is an open-source Linux operating system that runs on embedded devices\/ routers. It offers more features, performance, and security than a traditional router. It has a filesystem that\u2019s fully writable and includes a package management system. You can make use of these packages to suit your applications in various ways.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img decoding=\"async\" src=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/logo-1030x306.png\" alt=\"\" class=\"wp-image-53518\" width=\"391\" height=\"115\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/logo-1030x306.png 1030w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/logo-300x89.png 300w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/logo-768x228.png 768w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/logo-1536x457.png 1536w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/logo-1024x305.png 1024w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/logo.png 2000w\" sizes=\"(max-width: 391px) 100vw, 391px\" \/><\/figure><\/div>\n\n\n\n<p>By using OpenWrt you can have various features such as:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Increase overall network performance when multiple devices are connected<\/li><li>Share files between devices via an external storage drive connected directly to the router<\/li><li>Increase network security<\/li><li>Run a BitTorrent client from the router<\/li><li>Connect a printer directly to the router to create a networked printer<\/li><li>Limit bandwidth usage of a particular device in the network<\/li><li>Active queue management<\/li><li>Real time network monitoring<\/li><li>Create Dynamic DNS<\/li><li>Set Up a VPN client or server<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">What is OpenWrt System by Seeed?<\/h2>\n\n\n\n<p><a aria-label=\"undefined (opens in a new tab)\" href=\"https:\/\/github.com\/Seeed-Studio\/seeed-linux-openwrt\" target=\"_blank\" rel=\"noreferrer noopener\">Openwrt System by Seeed<\/a> is a great way to add some great Luci applications to the latest version of OpenWrt. It provides a stable, flexible, and easy-to-use OpenWrt system for <a href=\"https:\/\/www.seeedstudio.com\/Dual-GbE-Carrier-Board-with-4GB-RAM-32GB-eMMC-RPi-CM-4-p-4898.html\" target=\"_blank\" aria-label=\"undefined (opens in a new tab)\" rel=\"noreferrer noopener\">CM4<\/a> and <a href=\"https:\/\/www.seeedstudio.com\/ODYSSEY-X86J4125800-p-4915.html\" target=\"_blank\" aria-label=\"undefined (opens in a new tab)\" rel=\"noreferrer noopener\">x86<\/a> based hardware devices.<\/p>\n\n\n\n<figure class=\"wp-block-gallery columns-2 is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\"><ul class=\"blocks-gallery-grid\"><li class=\"blocks-gallery-item\"><figure><img fetchpriority=\"high\" decoding=\"async\" width=\"1022\" height=\"826\" src=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/ODYSSEY-X86J4105-side.png\" alt=\"\" data-id=\"53536\" data-full-url=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/ODYSSEY-X86J4105-side.png\" data-link=\"https:\/\/www.seeedstudio.com\/blog\/?attachment_id=53536\" class=\"wp-image-53536\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/ODYSSEY-X86J4105-side.png 1022w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/ODYSSEY-X86J4105-side-300x242.png 300w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/ODYSSEY-X86J4105-side-768x621.png 768w\" sizes=\"(max-width: 1022px) 100vw, 1022px\" \/><figcaption class=\"blocks-gallery-item__caption\">ODYSSEY &#8211; X86J4125<\/figcaption><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img decoding=\"async\" width=\"1030\" height=\"773\" src=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/cm4-1030x773.png\" alt=\"\" data-id=\"53539\" data-full-url=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/cm4.png\" data-link=\"https:\/\/www.seeedstudio.com\/blog\/?attachment_id=53539\" class=\"wp-image-53539\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/cm4-1030x773.png 1030w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/cm4-300x225.png 300w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/cm4-768x576.png 768w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/cm4-1024x769.png 1024w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/cm4.png 1251w\" sizes=\"(max-width: 1030px) 100vw, 1030px\" \/><figcaption class=\"blocks-gallery-item__caption\">Dual Gigabit Ethernet Carrier Board for RPi CM4<\/figcaption><\/figure><\/li><\/ul><\/figure>\n\n\n\n<p>Seeed&#8217;s OpenWrt system provides not only basic routing functions but also platform software for HomeLab, AIoT, allowing users to quickly implement different scenarios.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is Node-RED?<\/h2>\n\n\n\n<p><a href=\"https:\/\/nodered.org\/\" target=\"_blank\" aria-label=\"undefined (opens in a new tab)\" rel=\"noreferrer noopener\">Node-RED<\/a> is a programming tool for wiring together hardware devices, APIs, and online services in new and interesting ways.<br>It provides a browser-based editor that makes it easy to wire together flows using the wide range of nodes in the palette that can be deployed to its runtime in a single click.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/Node-red-icon.png\" alt=\"\" class=\"wp-image-53520\" width=\"174\" height=\"174\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/Node-red-icon.png 512w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/Node-red-icon-300x300.png 300w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/Node-red-icon-80x80.png 80w\" sizes=\"(max-width: 174px) 100vw, 174px\" \/><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Node-RED on OpenWrt System by Seeed<\/h2>\n\n\n\n<p>Node-RED comes pre-installed on the OpenWrt System by Seeed. So, there is no setup process of Node-RED needed. You just have to open the browser, enter a specific URL in order to access the Node-RED UI!<\/p>\n\n\n\n<p>Now let\u2019s start building our Node-RED application!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Control Smart Lamp with Node-Red on OpenWrt<\/h2>\n\n\n\n<p>In this guide, I will control a Xiaomi Yeelight Smart Bulb using Node-RED. However, if you have other smart devices you can control them as well. But some steps will be different for them. First, let\u2019s look at the hardware we will be using<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Hardware Needed<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>Xiaomi Yeelight Smart Bulb<\/li><li><a href=\"https:\/\/www.seeedstudio.com\/ODYSSEY-X86J4125800-p-4915.html\" target=\"_blank\" aria-label=\"undefined (opens in a new tab)\" rel=\"noreferrer noopener\">ODYSSEY \u2013 X86J4125<\/a>\/ <a aria-label=\"undefined (opens in a new tab)\" href=\"https:\/\/www.seeedstudio.com\/Dual-GbE-Carrier-Board-with-4GB-RAM-32GB-eMMC-RPi-CM-4-p-4898.html\" target=\"_blank\" rel=\"noreferrer noopener\">CM4 Dual Gigabit Ethernet Carrier Board<\/a><\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Install Xiaomi Yeelight Node and Start Node-RED<\/h3>\n\n\n\n<p>In order to control the Xiaomi Smart Lamp using Node-RED, we need to install the Yeelight node. After that, we will start Node-RED.<\/p>\n\n\n\n<p><strong>Step 1: <\/strong>Prepare an ODYSSEY \u2013 X86 board or CM4 Dual Gigabit Ethernet Carrier Board with the OpenWrt System by Seeed. Follow <a href=\"https:\/\/wiki.seeedstudio.com\/OpenWrt-Getting-Started\/\" target=\"_blank\" aria-label=\"undefined (opens in a new tab)\" rel=\"noreferrer noopener\">this guide<\/a> for an initial getting started<\/p>\n\n\n\n<p><strong>Step 2:<\/strong> Open a web browser on your PC and type 192.168.2.1 to access the OpenWrt Luci web UI<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1030\" height=\"723\" src=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/openwrt-webui-1030x723.png\" alt=\"\" class=\"wp-image-53523\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/openwrt-webui-1030x723.png 1030w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/openwrt-webui-300x211.png 300w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/openwrt-webui-768x539.png 768w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/openwrt-webui-1024x719.png 1024w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/openwrt-webui.png 1453w\" sizes=\"(max-width: 1030px) 100vw, 1030px\" \/><\/figure><\/div>\n\n\n\n<p class=\"has-background\" style=\"background-color:#cfcfcf\"><strong>Note:<\/strong> If your OpenWrt router has a different IP address from 192.168.2.1, please replace it with that IP address<\/p>\n\n\n\n<p><strong>Step 3:<\/strong> Navigate to <em>Services &gt; Terminal<\/em> and login with your credentials<\/p>\n\n\n\n<p><strong>Step 4: <\/strong>Type the following to stop Node-RED<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>service node-red stop<\/code><\/pre>\n\n\n\n<p><strong>Step 5:<\/strong> Enter the node-red directory<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/.node-red<\/code><\/pre>\n\n\n\n<p><strong>Step 6:<\/strong> Install the Xiaomi Yeelight Node-RED node<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>npm install node-red-contrib-yeelight<\/code><\/pre>\n\n\n\n<p><strong>Step 7: <\/strong>Once the installation is finished, start Node-RED again<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>service node-red start<\/code><\/pre>\n\n\n\n<p><strong>Step 8:<\/strong> Open a web browser and access Node-RED by typing the following<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>192.168.2.1:1880<\/code><\/pre>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1030\" height=\"554\" src=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/node-red-ui-1030x554.png\" alt=\"\" class=\"wp-image-53525\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/node-red-ui-1030x554.png 1030w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/node-red-ui-300x161.png 300w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/node-red-ui-768x413.png 768w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/node-red-ui-1536x825.png 1536w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/node-red-ui-1024x550.png 1024w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/node-red-ui.png 1898w\" sizes=\"(max-width: 1030px) 100vw, 1030px\" \/><\/figure><\/div>\n\n\n\n<p class=\"has-background\" style=\"background-color:#cfcfcf\"><strong>Note: <\/strong>If your OpenWrt router has a different IP address from 192.168.2.1, please replace it with that IP address<\/p>\n\n\n\n<p>Now we will move on to placing different blocks on Node-RED UI to create a flow to control the smart bulb<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Create Node-RED Flow \u2013 Button Node<\/h3>\n\n\n\n<p>Start by creating an ON\/OFF button for the bulb<\/p>\n\n\n\n<p><strong>Step 1:<\/strong> On the left side of Node-RED UI, under \u201cdashboard\u201d, drag-and-drop the \u201cbutton\u201d node to the workspace<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/button-node.png\" alt=\"\" class=\"wp-image-53526\" width=\"530\" height=\"357\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/button-node.png 743w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/button-node-300x202.png 300w\" sizes=\"(max-width: 530px) 100vw, 530px\" \/><\/figure><\/div>\n\n\n\n<p><strong>Step 2:<\/strong> Double click on the button node and click on the pencil icon on the right side of <strong>Group<\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/button-pencil-icon.png\" alt=\"\" class=\"wp-image-53529\" width=\"514\" height=\"265\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/button-pencil-icon.png 668w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/button-pencil-icon-300x155.png 300w\" sizes=\"(max-width: 514px) 100vw, 514px\" \/><\/figure><\/div>\n\n\n\n<p><strong>Step 3:<\/strong> Type a desired <strong>Name<\/strong> for the group<\/p>\n\n\n\n<p><strong>Step 4:<\/strong> Click on the pencil icon on the right side of <strong>Tab<\/strong><\/p>\n\n\n\n<p><strong>Step 5:<\/strong> Type a desired <strong>Name<\/strong> for the tab<\/p>\n\n\n\n<p><strong>Step 6:<\/strong> Click <strong>Add<\/strong><\/p>\n\n\n\n<p><strong>Step 7:<\/strong> Click <strong>Add <\/strong>again<\/p>\n\n\n\n<p><strong>Step 8:<\/strong> Change the other settings for the button as follows<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Label: ON\/ OFF<\/li><li>When clicked, send: Payload \u2013 Boolean<\/li><li>Name \u2013 ON\/ OFF<\/li><\/ul>\n\n\n\n<p><strong>Step 9: <\/strong>On the left side of Node-RED UI, under <strong>MiHome<\/strong>, drag-and-drop the <strong>yeelight<\/strong> node to the workspace<\/p>\n\n\n\n<p><strong>Step 10:<\/strong> Double click on the <strong>yeelight <\/strong>node and click on the pencil icon on the right side of <strong>Yeelight config<\/strong><\/p>\n\n\n\n<p><strong>Step 11: <\/strong>Enter the IP address of Yeelight<\/p>\n\n\n\n<p class=\"has-background\" style=\"background-color:#cfcfcf\"><strong>Note:<\/strong> You can check this by logging into your router and listing the connected devices<\/p>\n\n\n\n<p><strong>Step 12: <\/strong>Enter <strong>55443<\/strong> for the Port Number<\/p>\n\n\n\n<p><strong>Step 13:<\/strong> Click <strong>Add<\/strong><\/p>\n\n\n\n<p><strong>Step 14:<\/strong> Under <strong>Command<\/strong>, select <strong>Toggle<\/strong><\/p>\n\n\n\n<p><strong>Step 15:<\/strong> Click <strong>Done<\/strong><\/p>\n\n\n\n<p><strong>Step 16: <\/strong>Connect the button node to the yeelight toggle node by clicking on the small point to the right side of the button node, drag to draw a line, and connect the line to the small point on the left side of yeelight toggle node<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/button-flow.png\" alt=\"\" class=\"wp-image-53530\" width=\"604\" height=\"223\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/button-flow.png 722w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/button-flow-300x111.png 300w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/button-flow-720x266.png 720w\" sizes=\"(max-width: 604px) 100vw, 604px\" \/><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Create Node-RED Flow \u2013 Select Color Node<\/h3>\n\n\n\n<p>Now let\u2019s create a drop-down menu to select different colors<\/p>\n\n\n\n<p><strong>Step 1:<\/strong> On the left side of Node-RED UI, under <strong>dashboard<\/strong>, drag-and-drop the <strong>dropdown <\/strong>node to the workspace<\/p>\n\n\n\n<p><strong>Step 2:<\/strong> Double click on the button node and select the Group that we created before<\/p>\n\n\n\n<p><strong>Step 3:<\/strong> Change the other settings as follows<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Label: COLOR<\/li><li>Placeholder: CHOOSE<\/li><li>Options:<\/li><li>String: 0xFF0000 : RED<\/li><li>String: 0x00FF00 : GREEN<\/li><li>String: 0x0000FF : BLUE<\/li><li>String: 0xFFFFFF : WHITE<\/li><li>String: 0x00FFFF : CYAN<\/li><li>String: 0xFF00FF : PURPLE<\/li><li>String: 0xFFFF00 : YELLOW<\/li><li>Name: Select Color<\/li><\/ul>\n\n\n\n<p><strong>Step 4:<\/strong> On the left side of Node-RED UI, under <strong>MiHome<\/strong>, drag-and-drop the <strong>yeelight<\/strong> node to the workspace<\/p>\n\n\n\n<p><strong>Step 5:<\/strong> Double click on the <strong>yeelight <\/strong>node and select the Yeelight config that we created before<\/p>\n\n\n\n<p><strong>Step 6:<\/strong> Under <strong>Command<\/strong>, select <strong>Set RGB<\/strong><\/p>\n\n\n\n<p><strong>Step 7:<\/strong> Click<strong> Done<\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/color-select-node.png\" alt=\"\" class=\"wp-image-53531\" width=\"569\" height=\"228\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/color-select-node.png 645w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/color-select-node-300x120.png 300w\" sizes=\"(max-width: 569px) 100vw, 569px\" \/><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Create Node-RED Flow \u2013 Set Color Temperature Node<\/h3>\n\n\n\n<p>Next, let\u2019s create a slider to change the color temperature<\/p>\n\n\n\n<p><strong>Step 1: <\/strong>On the left side of Node-RED UI, under <strong>dashboard<\/strong>, drag-and-drop the <strong>slider <\/strong>node to the workspace<\/p>\n\n\n\n<p><strong>Step 2:<\/strong> Double click on the \u201cslider\u201d node and select the Group that we created before<\/p>\n\n\n\n<p><strong>Step 3:<\/strong> Change the other settings as follows<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Label: TEMPERATURE<\/li><li>Range: min:1700 max:6500 step:10<\/li><li>Name: Set Temperature<\/li><\/ul>\n\n\n\n<p><strong>Step 4:<\/strong> On the left side of Node-RED UI, under <strong>MiHome<\/strong>, drag-and-drop the <strong>yeelight<\/strong> node to the workspace<\/p>\n\n\n\n<p><strong>Step 5:<\/strong> Double click on the <strong>yeelight <\/strong>node and select the Yeelight config that we created before<\/p>\n\n\n\n<p><strong>Step 6:<\/strong> Under <strong>Command<\/strong>, select <strong>Set Temperature<\/strong><\/p>\n\n\n\n<p><strong>Step 7:<\/strong> Click <strong>Done<\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/set-temp.png\" alt=\"\" class=\"wp-image-53547\" width=\"563\" height=\"258\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/set-temp.png 676w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/set-temp-300x138.png 300w\" sizes=\"(max-width: 563px) 100vw, 563px\" \/><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Create Node-RED Flow \u2013 Set Brightness Node<\/h3>\n\n\n\n<p>Next let\u2019s create a slider to change the brightness<\/p>\n\n\n\n<p><strong>Step 1:<\/strong> On the left side of Node-RED UI, under <strong>dashboard<\/strong>, drag-and-drop the <strong>slider <\/strong>node to the workspace<\/p>\n\n\n\n<p><strong>Step 2:<\/strong> Double click on the <strong>slider <\/strong>node and select the Group that we created before<\/p>\n\n\n\n<p><strong>Step 3:<\/strong> Change the other settings as follows<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Label: BRIGHTNESS<\/li><li>Range: min:1 max:100 step:1<\/li><li>Name: Set Brightness<\/li><\/ul>\n\n\n\n<p><strong>Step 4:<\/strong> On the left side of Node-RED UI, under <strong>MiHome<\/strong>, drag-and-drop the <strong>yeelight<\/strong> node to the workspace<\/p>\n\n\n\n<p><strong>Step 5: <\/strong>Double click on the <strong>yeelight<\/strong> node and select the Yeelight config that we created before<\/p>\n\n\n\n<p><strong>Step 6:<\/strong> Under <strong>Command<\/strong>, select Set <strong>brightness<\/strong><\/p>\n\n\n\n<p><strong>Step 7:<\/strong> Click <strong>Done<\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/brightness-node.png\" alt=\"\" class=\"wp-image-53532\" width=\"574\" height=\"344\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/brightness-node.png 716w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/brightness-node-300x180.png 300w\" sizes=\"(max-width: 574px) 100vw, 574px\" \/><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Create Node-RED Flow \u2013 Color Picker<\/h3>\n\n\n\n<p>Next let\u2019s create a color palette to choose different colors<\/p>\n\n\n\n<p><strong>Step 1:<\/strong> On the left side of Node-RED UI, under <strong>dashboard<\/strong>, drag-and-drop the <strong>colour picker<\/strong> node to the workspace<\/p>\n\n\n\n<p><strong>Step 2:<\/strong> Double click on the<strong> colour picker<\/strong> node and select the Group that we created before<\/p>\n\n\n\n<p><strong>Step 3:<\/strong> Change the other settings as follows<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Label: COLOR PALETTE<\/li><li>If width is 4 or greater:<\/li><li>Always show picker: ticked<\/li><li>Always show value field: ticked<\/li><li>Name: Color Palette<\/li><\/ul>\n\n\n\n<p><strong>Step 4: <\/strong>On the left side of Node-RED UI, under <strong>function<\/strong>, drag-and-drop the <strong>function <\/strong>node to the workspace<\/p>\n\n\n\n<p><strong>Step 5:<\/strong> Double click on the \u201cfunction\u201d node and under \u201cOn Message\u201d, Add the following lines<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>msg.payload = msg.payload.replace(\/&#91;#]\/g,\"0x\");\nreturn msg;\n<\/code><\/pre>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/function-node.png\" alt=\"\" class=\"wp-image-53533\" width=\"664\" height=\"321\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/function-node.png 814w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/function-node-300x145.png 300w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/function-node-768x372.png 768w\" sizes=\"(max-width: 664px) 100vw, 664px\" \/><\/figure><\/div>\n\n\n\n<p><strong>Step 6:<\/strong> Click <strong>Done<\/strong><\/p>\n\n\n\n<p><strong>Step 7:<\/strong> On the left side of Node-RED UI, under <strong>MiHome<\/strong>, drag-and-drop the <strong>yeelight <\/strong>node to the workspace<\/p>\n\n\n\n<p><strong>Step 8:<\/strong> Double click on the <strong>yeelight<\/strong> node and select the Yeelight config that we created before<\/p>\n\n\n\n<p><strong>Step 9:<\/strong> Under <strong>Command<\/strong>, select <strong>Set RGB<\/strong><\/p>\n\n\n\n<p><strong>Step 10:<\/strong> Click <strong>Done<\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/complete-nodes.png\" alt=\"\" class=\"wp-image-53534\" width=\"571\" height=\"382\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/complete-nodes.png 788w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/complete-nodes-300x201.png 300w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/complete-nodes-768x514.png 768w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/complete-nodes-675x450.png 675w\" sizes=\"(max-width: 571px) 100vw, 571px\" \/><\/figure><\/div>\n\n\n\n<p>Now we have successfully created the complete diagram.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Node-RED UI Dashboard on PC<\/h2>\n\n\n\n<p>Let&#8217;s move ahead to display the Node-RED dashboard<\/p>\n\n\n\n<p><strong>Step 1:<\/strong> Inside the Node-RED interface, click on <strong>Dashboard<\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/Change-dashboard.png\" alt=\"\" class=\"wp-image-53550\" width=\"435\" height=\"267\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/Change-dashboard.png 547w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/Change-dashboard-300x184.png 300w\" sizes=\"(max-width: 435px) 100vw, 435px\" \/><\/figure><\/div>\n\n\n\n<p class=\"has-background\" style=\"background-color:#cfcfcf\"><strong>Note:<\/strong> Change the settings according to your preferene<\/p>\n\n\n\n<p><strong>Step 2:<\/strong> Type the following <strong>on any web browser<\/strong> to open the Node-RED dashboard with smart bulb demo<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>192.168.2.1:1880\/ui<\/code><\/pre>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/node-red-dashboard-1.png\" alt=\"\" class=\"wp-image-53554\" width=\"350\" height=\"454\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/node-red-dashboard-1.png 559w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/node-red-dashboard-1-231x300.png 231w\" sizes=\"(max-width: 350px) 100vw, 350px\" \/><\/figure><\/div>\n\n\n\n<p>Now you can control the Smart Bulb using these controls!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Node-RED UI Dashboard on reTerminal<\/h2>\n\n\n\n<p>You can also display the above dashboard on the <a aria-label=\"undefined (opens in a new tab)\" href=\"https:\/\/www.seeedstudio.com\/ReTerminal-with-CM4-p-4904.html\" target=\"_blank\" rel=\"noreferrer noopener\">reTerminal<\/a> LCD. Let&#8217;s walk through the process<\/p>\n\n\n\n<p><strong>Step 1:<\/strong> Follow <a aria-label=\"undefined (opens in a new tab)\" href=\"https:\/\/wiki.seeedstudio.com\/reTerminal\/\" target=\"_blank\" rel=\"noreferrer noopener\">this guide<\/a> to get started with the reTerminal for the first time<\/p>\n\n\n\n<p><strong>Step 2:<\/strong> Type the following inside a terminal window of reTerminal<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>chromium-browser --start-fullscreen http:\/\/192.168.2.1:1880\/ui<\/code><\/pre>\n\n\n\n<p class=\"has-background\" style=\"background-color:#cfcfcf\"><strong>Note:<\/strong> Make sure the reTerminal is connected to the OpenWrt router<\/p>\n\n\n\n<p>Now you will be able to control the Smart Bulb using reTerminal as well!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Demo Showcase<\/h2>\n\n\n\n<figure class=\"wp-block-video\"><video controls src=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/produced-for-blog.mp4\"><\/video><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>I hope this blog was helpful to everyone to understand the basic usage of Node-RED and how it can be used to control a smart bulb. However, it can be extended to control many other smart appliances as well right from Node-RED dashboard!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction This blog will talk about how you can control your smart home appliances using<\/p>\n","protected":false},"author":141,"featured_media":53567,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","_price":"","_stock":"","_tribe_ticket_header":"","_tribe_default_ticket_provider":"","_tribe_ticket_capacity":"0","_ticket_start_date":"","_ticket_end_date":"","_tribe_ticket_show_description":"","_tribe_ticket_show_not_going":false,"_tribe_ticket_use_global_stock":"","_tribe_ticket_global_stock_level":"","_global_stock_mode":"","_global_stock_cap":"","_tribe_rsvp_for_event":"","_tribe_ticket_going_count":"","_tribe_ticket_not_going_count":"","_tribe_tickets_list":"[]","_tribe_ticket_has_attendee_info_fields":false,"iawp_total_views":0,"footnotes":""},"categories":[1],"tags":[3495,4065,142,75,445,3820,1198],"class_list":["post-53517","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news","tag-cm4","tag-nodered","tag-open-hardware","tag-open-source-hardware","tag-openwrt","tag-reterminal","tag-smart-home"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Smart Home with Node-RED on OpenWrt - Latest News from Seeed Studio<\/title>\n<meta name=\"description\" content=\"This blog will talk about how you can control your smart home appliances using Node-RED running on the OpenWrt System by Seeed.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.seeedstudio.com\/blog\/2021\/10\/03\/smart-home-with-node-red-on-openwrt\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Smart Home with Node-RED on OpenWrt - Latest News from Seeed Studio\" \/>\n<meta property=\"og:description\" content=\"This blog will talk about how you can control your smart home appliances using Node-RED running on the OpenWrt System by Seeed.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.seeedstudio.com\/blog\/2021\/10\/03\/smart-home-with-node-red-on-openwrt\/\" \/>\n<meta property=\"og:site_name\" content=\"Latest News from Seeed Studio\" \/>\n<meta property=\"article:published_time\" content=\"2021-10-03T13:17:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-10-19T17:16:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/thumb-new.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"1080\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Lakshan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Lakshan\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2021\/10\/03\/smart-home-with-node-red-on-openwrt\/\",\"url\":\"https:\/\/www.seeedstudio.com\/blog\/2021\/10\/03\/smart-home-with-node-red-on-openwrt\/\",\"name\":\"Smart Home with Node-RED on OpenWrt - Latest News from Seeed Studio\",\"isPartOf\":{\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2021\/10\/03\/smart-home-with-node-red-on-openwrt\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2021\/10\/03\/smart-home-with-node-red-on-openwrt\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/thumb-new.jpg\",\"datePublished\":\"2021-10-03T13:17:40+00:00\",\"dateModified\":\"2021-10-19T17:16:16+00:00\",\"author\":{\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/75eb10f611f7c10a195a98452628bba5\"},\"description\":\"This blog will talk about how you can control your smart home appliances using Node-RED running on the OpenWrt System by Seeed.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2021\/10\/03\/smart-home-with-node-red-on-openwrt\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.seeedstudio.com\/blog\/2021\/10\/03\/smart-home-with-node-red-on-openwrt\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2021\/10\/03\/smart-home-with-node-red-on-openwrt\/#primaryimage\",\"url\":\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/thumb-new.jpg\",\"contentUrl\":\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/thumb-new.jpg\",\"width\":1920,\"height\":1080},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2021\/10\/03\/smart-home-with-node-red-on-openwrt\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.seeedstudio.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Smart Home with Node-RED on OpenWrt\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/#website\",\"url\":\"https:\/\/www.seeedstudio.com\/blog\/\",\"name\":\"Latest News from Seeed Studio\",\"description\":\"Emerging IoT, AI and Autonomous Applications on the Edge\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.seeedstudio.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/75eb10f611f7c10a195a98452628bba5\",\"name\":\"Lakshan\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c1688294d55a746c8c80f4b85eb94989?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c1688294d55a746c8c80f4b85eb94989?s=96&r=g\",\"caption\":\"Lakshan\"},\"url\":\"https:\/\/www.seeedstudio.com\/blog\/author\/lakshan\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Smart Home with Node-RED on OpenWrt - Latest News from Seeed Studio","description":"This blog will talk about how you can control your smart home appliances using Node-RED running on the OpenWrt System by Seeed.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.seeedstudio.com\/blog\/2021\/10\/03\/smart-home-with-node-red-on-openwrt\/","og_locale":"en_US","og_type":"article","og_title":"Smart Home with Node-RED on OpenWrt - Latest News from Seeed Studio","og_description":"This blog will talk about how you can control your smart home appliances using Node-RED running on the OpenWrt System by Seeed.","og_url":"https:\/\/www.seeedstudio.com\/blog\/2021\/10\/03\/smart-home-with-node-red-on-openwrt\/","og_site_name":"Latest News from Seeed Studio","article_published_time":"2021-10-03T13:17:40+00:00","article_modified_time":"2021-10-19T17:16:16+00:00","og_image":[{"width":1920,"height":1080,"url":"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/thumb-new.jpg","type":"image\/jpeg"}],"author":"Lakshan","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Lakshan","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.seeedstudio.com\/blog\/2021\/10\/03\/smart-home-with-node-red-on-openwrt\/","url":"https:\/\/www.seeedstudio.com\/blog\/2021\/10\/03\/smart-home-with-node-red-on-openwrt\/","name":"Smart Home with Node-RED on OpenWrt - Latest News from Seeed Studio","isPartOf":{"@id":"https:\/\/www.seeedstudio.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.seeedstudio.com\/blog\/2021\/10\/03\/smart-home-with-node-red-on-openwrt\/#primaryimage"},"image":{"@id":"https:\/\/www.seeedstudio.com\/blog\/2021\/10\/03\/smart-home-with-node-red-on-openwrt\/#primaryimage"},"thumbnailUrl":"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/thumb-new.jpg","datePublished":"2021-10-03T13:17:40+00:00","dateModified":"2021-10-19T17:16:16+00:00","author":{"@id":"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/75eb10f611f7c10a195a98452628bba5"},"description":"This blog will talk about how you can control your smart home appliances using Node-RED running on the OpenWrt System by Seeed.","breadcrumb":{"@id":"https:\/\/www.seeedstudio.com\/blog\/2021\/10\/03\/smart-home-with-node-red-on-openwrt\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.seeedstudio.com\/blog\/2021\/10\/03\/smart-home-with-node-red-on-openwrt\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.seeedstudio.com\/blog\/2021\/10\/03\/smart-home-with-node-red-on-openwrt\/#primaryimage","url":"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/thumb-new.jpg","contentUrl":"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/thumb-new.jpg","width":1920,"height":1080},{"@type":"BreadcrumbList","@id":"https:\/\/www.seeedstudio.com\/blog\/2021\/10\/03\/smart-home-with-node-red-on-openwrt\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.seeedstudio.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Smart Home with Node-RED on OpenWrt"}]},{"@type":"WebSite","@id":"https:\/\/www.seeedstudio.com\/blog\/#website","url":"https:\/\/www.seeedstudio.com\/blog\/","name":"Latest News from Seeed Studio","description":"Emerging IoT, AI and Autonomous Applications on the Edge","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.seeedstudio.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/75eb10f611f7c10a195a98452628bba5","name":"Lakshan","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c1688294d55a746c8c80f4b85eb94989?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c1688294d55a746c8c80f4b85eb94989?s=96&r=g","caption":"Lakshan"},"url":"https:\/\/www.seeedstudio.com\/blog\/author\/lakshan\/"}]}},"modified_by":"Lakshan","views":12957,"featured_image_urls":{"full":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/thumb-new.jpg",1920,1080,false],"thumbnail":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/thumb-new-80x80.jpg",80,80,true],"medium":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/thumb-new-300x169.jpg",300,169,true],"medium_large":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/thumb-new-768x432.jpg",640,360,true],"large":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/thumb-new-1030x579.jpg",640,360,true],"1536x1536":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/thumb-new-1536x864.jpg",1536,864,true],"2048x2048":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/thumb-new.jpg",1920,1080,false],"visody_icon":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/thumb-new.jpg",32,18,false],"magazine-7-slider-full":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/thumb-new-1536x1020.jpg",1536,1020,true],"magazine-7-slider-center":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/thumb-new-936x897.jpg",936,897,true],"magazine-7-featured":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/thumb-new-1024x576.jpg",1024,576,true],"magazine-7-medium":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/thumb-new-720x380.jpg",720,380,true],"magazine-7-medium-square":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2021\/10\/thumb-new-675x450.jpg",675,450,true]},"author_info":{"display_name":"Lakshan","author_link":"https:\/\/www.seeedstudio.com\/blog\/author\/lakshan\/"},"category_info":"<a href=\"https:\/\/www.seeedstudio.com\/blog\/category\/news\/\" rel=\"category tag\">News<\/a>","tag_info":"News","comment_count":"0","_links":{"self":[{"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/posts\/53517","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/users\/141"}],"replies":[{"embeddable":true,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/comments?post=53517"}],"version-history":[{"count":29,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/posts\/53517\/revisions"}],"predecessor-version":[{"id":53569,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/posts\/53517\/revisions\/53569"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/media\/53567"}],"wp:attachment":[{"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/media?parent=53517"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/categories?post=53517"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/tags?post=53517"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}