Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. 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
  2. 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:



  3. 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. 
  4. 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:



  5. 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:



  6. 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:



  7. Open your Node Red tab and you should now see this:



  8. Double-click on this node, select your newly authenticated account and type "Hello World" into the text field. It should look something like this:



  9. 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:



  10. Now, just click the button on the left side of the Inject node. Your Alexa device should now speak "Hello World".
  11. 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:



  12. 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:



  13. Double-click the Change node and configure it like this:



  14. Double-click the Alexa Routine node and configure it like this:



  15. When done, your sequence should look something like this:



  16. 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)!
  17. At this point, you can link additional HS Device nodes to your change node and your Alexa devices will speak whenever your devices change.

...