@homenet/plugin-hue
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

homenet-plugin-hue

Philips Hue plugin for Homenet

Requires homenet-core version 4.0.0-beta.15 or above.

Installing

npm install -g homenet-hue

Usage

Once installed globally it should be automatically discovered when you run homenet4.

Configuration

In the configuration file create a hue.hubs key and register each Hue hub/controller.

Note: at present

{
  "hue": {
    "hubs": [
      { "id": "main", "name": "Main", "host": "192.168.0.123", "key": "valid_hue_api_key" }
    ]
  }
}

Classes

Only the light class for Homenet is implemented.

To add an instance use the type hue.

For options specify the Hue groupId or lightId (should be an integer), and the ID of the hub registered above.

{
  "instances": [
    { "class": "light", "id": "lounge-room", "type": "hue", "options": { "groupId": 3, "hub": "main" } }
  ]
}

Example Config

{
  "instances": [
    { "class": "light", "id": "lounge-room", "type": "hue", "options": { "groupId": 3, "hub": "main" } }
  ],
  "hue": {
    "hubs": [
      { "id": "main", "name": "Main", "host": "192.168.0.123", "key": "valid_hue_api_key" }
    ]
  }
}

Package Sidebar

Install

npm i @homenet/plugin-hue

Weekly Downloads

0

Version

2.0.1

License

MIT

Last publish

Collaborators

  • denwilliams
  • homenet