Skip to main content
Skip table of contents

Setting up Node-Red for use with HS4

This document outlines the steps needed to use HS4 with the popular Node-Red programming tool. With the HS4 node you can connect HomeSeer with over 2700 other applications.

Known issues with Node-Red release 1.0.2

  • Currently, Node-Red is not passing a user/pass to HomeSeer when it issues a request for data. This will result in the inability to get device information (the device list will be empty or some devices will be missing). The solution is to make sure the option "No password required for local subnet" is checked in Setup and do not assign any users to your devices.

Step-by-step guide

Setting up Node-Red

If you are new  to Node-Red, please visit the Node-Red site for help installing Node-Red on a Windows system, Linux, or Raspberry PI.

Added HomeSeer support to Node-Red

Visit the Node-Red flows site for instructions on how to add HomeSeer HS4 support to your Node-Red installation:

Setup HomeSeer

  1. HS4 version or later is required
  2. In HS4 select Setup then the Custom tab
  3. On that tab look for the Web Hooks section
  4. From there, add the following URL to the Web Hooks list:
  5. The "NODE-RED-IP" is the IP address of the system running Node-Red
  6. Save the page

Testing the Installation

  1. On your Node-Red system refresh the page and look for the HomeSeer flows in the palette on the left:
  2. Drag the "HS Device" to the page and double click on it.
  3. You will need to add the HS4 server as server, click the pencil icon to edit the server list. Add the IP address of your HS4 system. If HS4 is running on your Node-Red system, you can enter localhost and port 80.
  4. Select a device that you can easily control from the "Device" drop list. Select the feature if available.

  5. Select "Deploy" at the top of the page to save and activate your changes.
  6. Now from the HS4 interface turn your device ON and OFF. You should see an indicator change on the device you just added.
  7. If the indicator changes, you are all set!

What you can do with HomeSeer

  1. Create logic based on the status of a device
  2. Control a device
  3. Trigger an event

Here is a simple flow setup that shows how to control a device and an event:

To control a device, set the payload to the value you want to set. You can get the supported device values from the Status/Graphics tab in the device properties. In this sample, the value 255 turns the device ON.

To control an events, select the event from the drop list:

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.