- Install Node Red and configure it to work with your HS4 system. Please refer to this document for details: Setting up Node-Red for use with HS4.
- Launch Node Red, open the hamburger menu, select manage palette, click the Install tab and search for Alexa. From the module list, locate and install the node-red-contrib-alexa-remote2 module. This will install these nodes into Node Red:
- Drag the Alexa Routine node into a Node Red flow and double-click on the node. Now click the pencil icon in the Account row to open the account settings. This module provides 3 methods to authenticate your Alexa account. The preferred method is Proxy authentication and that is detailed below.
Note: If you have difficulty getting the Proxy method to work or if the proxy method doesn't work reliably, try using Cookie authentication instead.
- Name the account (any name you want) and change the Auth method to Proxy. Then, enter the IP address where Node Red is installed, a port number your choice (any number), the File Path where the authentication file will be saved. Then enter the appropriate Service host, Page and Language. It should now look something like this:
- Click the Add button at the top to save your settings. This will close the account screen and display the Alexa Routine screen. Click the Done button (for now) to close this screen. Then click the Deploy button above the flow window. The Alexa Routine node should now display this:
- Enter the this address into your browser. That will open your Alexa account login screen. Enter your Alexa credentials and submit them. If successful, your browser will now display this:
- Open your Node Red tab and you should now see this:
- Double-click on this node, select your newly authenticated account and type "Hello World" into the text field. It should look something like this:
- Click the Done button to close the screen. To test your system, drag an Inject node into your flow and then connect it to your Alexa Routine node. Then click the Deploy button again. You should now see this:
- Now, just click the button on the left side of the Inject node. Your Alexa device should now speak "Hello World".
- At this point, we can configure a sequence that will speak the status of a HomeSeer system device through any of your Alexa devices. Start from scratch and drag an HS Device node, a Change node and an Alexa Routine node to the flow. Connect the 3 nodes so your new sequence looks like this:
- Double-click the HS Device node, select your HomeSeer server and choose any device that easy to test (like a door sensor). By default, the node Name will include the HomeSeer location attributes. Adjust the node Name to simplify the announcement (if desired). When done, it should looks something like this:
- Double-click the Change node and configure it like this:
- Double-click the Alexa Routine node and configure it like this:
- When done, your sequence should look something like this:
- Open and Close your Kitchen Door (or control your device) and you should now hear "The Kitchen Door is Closed" and "The Kitchen Door is Open" (or your own custom text)!
- At this point, you can link additional HS Device nodes to your change node and your Alexa devices will speak whenever your devices change.