Node Red is a flow based tool lets ypu easily build IOT and homeautomation control system using a web browser. It is written in Nodejs and can run on Windows and Linux operating System.It can run on the NodeMCU/RaspberryPi making it an ideal system for home automation project.
- Node-RED provides a browser-based flow editor that makes it easy to wire together flows using the wide range of nodes in the palette.
- The light-weight runtime is built on Node.js, taking full advantage of its event-driven, non-blocking model.
- A built-in library allows you to save useful functions, templates or flows for re-use.
###Installing Node-RED on Raspberry Pi It is pre install node-red in Latest RaspberryPi.Go to: Menu->Programming->Node-RED.
You can run it from the Menu or by the following command in terminal:
node-red -start
open the web browser and enter the address you may find as shown in following image after running Node-RED:
Open the web browser and enter the address of your Raspberry Pi, in my case it is: 192.168.1.12:1880
If everything is correct then you will find following result:
On the left side,there are multiple node,for creating this project i gonna use these node,just drag and drop and connect connection between them.
Most easiest way to add UI.Just go to left side,and click hamburger icon>manage palette>install> and search for node-red dashboard or node-red-contrib-nora andmany more and then hit install button.
Now create the dashboard for home-automtion.
Home TAB dashboard:
With the help of this Dashboard ,now User can automate the home appliances.
In this project, I added the home-automation using Google-assistance by adding the node-red-contrib-nora UI in Node-Red and created the account in NORA-home. It will generate token copy it and paste in noda-red's nora switch config properties. After that download google Home in Personal Mobile or Tablet and sign in with same Id. Linked NORA in it by searching.Choose Home and select living room> light and it show current state.
Snap-shot of Mobile:
Typically you would ask google assistance:
Turn the light ON
Turning the light ON
NORA creates virtual devices that you can link to your NodeRED connected gadgets and control via Google Home app and voice commands.Get Explained as shown in following Image.