Home Automation using Node-RED
Node-RED can be used for simulating a home automation system online. In this case, I am considering three appliances connected to the home automation system - fan, light and power. For fan, I have used a function named fan controller that gets the user input from the inject node, processes the data and displays the output as a gauge (similar to a pie chart) in the output screen. For light, I have added switch and button nodes in addition to the function node named Lights, which is used to provide the output as an audio message. For Power, I have added a button and a function node to get input and process the data. I have used two methods to provide the output, one being the audio message and the other one being a pop up notification. Make the required connections between the nodes and the flow diagram will look like this Now we can deploy the flow and navigate to the output screen to see the output of the system. First we can see a gauge that shows the value of the fan. The value disp