Local Alexa Control With Simplified Logical Flow

I’ve had this running for some time now, and it’s been really stable. It provides local Alexa control through node-red, of the following domains: light, climate, fan, cover, and switch. It also supports data entry using percentage values for lights (dimmers), fans (speed), climate (temperature), and covers (position).

Download the JSON file for the flow

Import the flow.json file to get the base logic flow setup. In each of the two blue “service nodes” change the home assistant server to your own instance.

It leverages the following palette: node-red-contrib-amazon-echo-oztourer

Once the palette is installed, add one (AND ONLY ONE) “amazon-echo-hub” node to the flow. Double click on the node, set it to port 80, set to “Process and Output on State Change”, and enable “Device Discovery”.

Then add at least one “amazon-echo-device” node. Set the name of the node to how you want to call the device verbally via Alexa, and set the topic to the entity of the device you want to control, including the domain. e.g. light.grow_light, fan.ceiling_fan, cover.garage_door

Connect the right side of the “hub” node to the left side of the “device” node(s), and the right side of the device node(s) to the left side of the function node in the logic flow.

Deploy the flow.

Say “Alexa, discover devices” and it should pick up your newly added device.

Test functionality through Alexa commands and utilize the debug as needed.

Repeat adding “amazon-echo-device” nodes, entering their entities, and connecting them to the “hub node” and the logic flow, for all the remaining devices you want to control. Limit new device adds to around 5 at a time, otherwise Alexa tends to have issues.

Can do, Alexa…

set living room lights to 50 percent

set ceiling fan to 66 percent

set garage door to 25%

“turn on” or “turn off” of any of the above

set first floor thermostat to 72 degrees