Alexa Voice Command to start the flow?

Hello,

I found ways to get stuff to turn on lights or turn them off based on door sensor state.

I finally integrated my harmony and Alexa into the node - red. However, I do not know how to take advantage of it. For example, currently in my harmony hub, I have created an activity for movie watching. I also want the lights to turn off, and very specific commands sent to my AVR receiver (turn off dynamic volume and turn on dynamic EQ). So, I want all of this to start with a simple command like "Alexa, start movie night". How do I do this?

I don't think Alexa would understand that command.

I think you could use... "Alexa, turn ON movie night" or "Alexa, turn movie night ON" - then use one of the Alexa nodes to process the received command-string.

Would you by any chance know which Alexa node I can use to process the received command string?

I use node-red-contrib-alexa-home-skill as that's the only one I've found that works for my particular Echo version

Its convoluted to setup (as all the alexa stuff is in different ways) but it works for me

Requires setting up account on 3rd party site

I've used nearly all of them include the offering Simon mentioned.

I'm currently using this node...

On my Echo Dot I had to run the following as I didn't want to start Node-RED as root.
It routes port 8980 to port 80.
You need to enter 8980 as the port number in the amazon-alexa-hub

You need to run these commands on your Pi if your using a WiFi connection.

sudo apt-get install iptables-persistent
sudo iptables -I INPUT 1 -p tcp --dport 80 -j ACCEPT
sudo iptables -A PREROUTING -t nat -i wlan0 -p tcp --dport 80 -j REDIRECT --to-port 8980
sudo netfilter-persistent save
sudo netfilter-persistent reload

Or these commands if you're using Ethernet CAT cable

sudo apt-get install iptables-persistent
sudo iptables -I INPUT 1 -p tcp --dport 80 -j ACCEPT
sudo iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8980
sudo netfilter-persistent save
sudo netfilter-persistent reload

I've just given this a go on my Win 10 machine
Equivalent command to port forward (running in cmd Admin window) is

netsh interface portproxy add v4tov4 listenport=80 listenaddress=192.168.0.23 connectport=8980 connectaddress=192.168.0.23

where ....23 is IP of your machine

It "works" but the issue I'm having is that no messages are coming out from the device nodes - just the master Amazon Echo Hub one

These messages don't identify which device is receiving them so its not of practical use :frowning:

Hi Simon,
On my set-up the msg.topic holds the name of the node that produced the message.

Not on mine :frowning:

image

Sorted - PEBKAC - I hadn't connected the Hub to the device nodes
image

The other one I've been using does it a different way!

Glad you got it working.

PS:
I think there is a problem with some of the other Node-RED Alexa nodes since Amazon did an update!!!

Are your lights paired directly to your echo, or is the echo controlling something like a hue hub?