hue-scenes

0.1.0 • Public • Published

hueScenes

manage scenes for philips hue api.

Definition: scene

A scene is represented by a json object like the following

{
  "lights": {
    "1": {
      "on": false
    },
    "2": {
      "on": true,
      "bri": 230
    }
  },
  "groups": {
    "0": {
      "effect": "colorloop"
    }
  }
}

The object after the light ID oder group ID is a light state object, see API specifications. There are some default scenes in the scenes directory.

Define your own scenes

So let's say you want to create a scene named relax. Simply put a file named relax.json with the scene specification in the folder ~/.hueScenes in your home directory.

Readme

Keywords

Package Sidebar

Install

npm i hue-scenes

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • riecker