MisterHouse Echo (Alexa) Integration Continued

Опубликовано: 11 Февраль 2025
на канале: Brian Rudy
900
4

I spent a bit of time over the Xmas/New Years holiday integrating MisterHouse with our new Amazon Echo and Echo Dots. The previous integration leveraged IFTTT to interface with the Alexa Skills Kit API, but this was slow and quite inflexible. I replaced this with a direct integration using two AWS Lambda forwarders, and supporting code in MisterHouse. The first Lambda forwarder proxies the API exchanges between the Alexa Smart Home API and MisterHouse, and the second proxies the Alexa Skills Kit API exchanges with MisterHouse.

The Alexa Smart Home API allows you to ask Alexa to "turn on (light name)" or "turn (light name) to 50%" for dimmable lights. It also supports referencing a group of devices defined in the Alexa app, for example "turn kitchen lights on".

The Alexa Skills Kit API is used with a custom skill that forwards all requests to MisterHouse without attempting to parse the intent directly. In this way, you can use pre-existing voice commands by simply asking Alexa to "ask MisterHouse (voice command)"

This demo shows Alexa and Misterhouse controlling fluorescent bulbs (office) via an Insteon on/off module (2635-222), dimmable LEDs (living room) via Insteon LampLinc dimmers (2457D2) and two separate instances of FPP using both test mode and starting a looping playlist via the RESTful HTTP remote control APIs.

The code is still under development, but you can find the corresponding code modules in my Github repos here: https://github.com/rudybrian/misterho... and here: https://github.com/rudybrian/IoT-Play...