Introduction
Read moreThis is a quick hack because I have built these two project earlier:
Step 1. Setup the Raspberry Pi, Node-RED and Arduino UnoTo complete this step, follow steps 1 to 4 of the first project (Alexa Controlled LEDs Through Raspberry Pi).
Step 2. Add relay to the power extensionHack the power extension by adding a relay to it (see section Finishing touch of Turn a Livingroom Table Lamp on and off with Echo).
Step 3. Import the Node-RED FlowImport the Node-RED Flow from the code section below. Note that there is a 'transform' function added which change "on" to "off" and vise versa. The reason is the relay is wired according to the Normally Closed (NC) configuration.
Testing Time.
Comments