Skip to content

unfoldedcircle/integration-philipshue

Philips Hue integration for Remote Two/3

Unfolded Circle Remote integration driver for Philips Hue lights.

This integration driver is included in the Unfolded Circle Remote firmware and does not need to be run as an external integration to control Hue lights. A standalone driver can be used for development or custom functionality.

The integration implements the UC Remote Integration-API which communicates with JSON messages over WebSocket.

Important

This driver is currently being rewritten using the Hue API v2 with event streaming.

  • v1 Hue hubs are no longer supported.
  • Compatibility with the new Hue Bridge Pro has not yet been tested.

Standalone usage

Setup

Requirements:

  • Remote Two/3 firmware 1.9.3 or newer with support for custom integrations.
  • Install nvm (Node.js version manager) for local development.
  • Node.js v22.13 or newer (older versions are not tested).
  • Install required libraries:

npm install

Run

Build JavaScript from TypeScript:

npm run build

Run as an external integration driver:

UC_CONFIG_HOME=. UC_INTEGRATION_HTTP_PORT=8097 npm run start

The configuration files are loaded and saved from the path specified in the environment variable UC_CONFIG_HOME.

Logging

Logging any kind of output is directed to the debug module. To let the integration driver output anything, run the driver with the DEBUG environment variable set like:

DEBUG=uc_hue:* npm run start

The driver exposes the following log-levels:

Log namespaces:

  • uc_hue:msg: Philips Hue API messages
  • uc_hue:debug: debugging messages
  • uc_hue:info: informational messages
  • uc_hue:warn: warnings
  • uc_hue:error: errors

If you only want to get errors and warnings reported:

DEBUG=uc_hue:warn,uc_hue:error npm run start

The Unfolded Circle Integration-API library is also using the debug module for logging:

  • Enable WebSocket message trace: ucapi:msg

Versioning

We use SemVer for versioning. For the versions available, see the tags and releases on this repository.

Changelog

The major changes found in each new release are listed in the changelog and under the GitHub releases.

Contributions

Please read our contribution guidelines before opening a pull request.

License

This project is licensed under the Mozilla Public License 2.0. See the LICENSE file for details.

About

Philips Hue integration for Remote Two

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors