Local server to test DreamHouse Application driving Hue Lights
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


DreamHouse Connected Lights Server

This is a development-time HTTPS proxy server for the Philips Hue Bridge. The Hue Bridge doesn't currently support HTTPS access. As a workaround, you can send HTTPS requests to this server which will then send your requests to the Hue Bridge using HTTP. This allows you to send requests to the Bridge from pages loaded using HTTPS (like Visualforce pages). This server allows you to test your application locally but is not suitable for a real-life deployment. For a real-life deployment, you'd need the Hue Remote API that is currently in beta.


To run this sample application, you need a Philips Hue Bridge and at least one bulb connected to the bridge. Follow the instructions in the Philips Hue Getting Started to create a bridge user.

Installation Steps

  1. Clone this repository:

    git clone https://github.com/dreamhouseapp/dreamhouse-iot-lights
  2. Navigate to the dreamhouse-lights directory:

    cd dreamhouse-iot-lights
  3. Install the project dependencies:

    npm install
  4. Generate self-signed certificates to run the HTTPS server. For example, on a Mac, type the following command:

    openssl req -nodes -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 365
  5. Open a browser and access the following URL to get the IP address of the Hue bridge on your network: https://www.meethue.com/api/nupnp

  6. On the command line, type the following commands to define the environment variables used by the Node server. Replace the URL and user with your own values. If you haven't already done so, refer to the Getting Started to create a bridge user.

    export HUE_BRIDGE_URL=
    export HUE_BRIDGE_USER=1028d66426293e821ecfd9ef1a0731df
  7. Start the server:

    node server
  8. Open a browser, and access the following URL to test your local environment: https://localhost:55555.

  9. You can now control the lights using the SmartHome component in the Salesforce1 mobile app or in Salesforce in the browser.