john2exonets / AlexaController

Publish MQTT packets using Alexa voice commands

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AlexaController

Publish MQTT packets using Alexa voice commands

This uses the fauxWeMo Node.JS module to interface with Amazon's Alexa and get sent voice commands. We then just attach some Node.JS code to send out MQTT packets for both "On" and "Off".

So, in the Example code, I have defined "Emergency Plan Alpha", so to trigger this I tell Alexa: "Alexa...Turn on Emergency Plan Alpha". This triggers the program to send out 'plan/alpha: {"cmd": "Execute"}'.

I have added files needed to create a Docker Contaier to the repo. Keep in mind that you will need to have an Alexa device in the same subnet as your Docker server in order for the Alexa device to "find" your psuedo-devices.

I wrote about this on my blog: https://diysmarthome.io/2020/02/publish-mqtt-messages-via-alexa/

About

Publish MQTT packets using Alexa voice commands

License:MIT License


Languages

Language:JavaScript 75.3%Language:Dockerfile 14.6%Language:Shell 10.1%