Skip to content

Using two Hue Play Lightbars to spice up my fireplace 🔥

License

Notifications You must be signed in to change notification settings

thijsputman/hue-fireplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hue-fireplace

Using two Hue Play Lightbar to spice up my fireplace 🔥

Usage

  1. npm install
  2. Create a .fireplace.json configuration file
  3. npm run start
  4. To stop, press CTRL+C

📄 .fireplace.json

{
  "bridge": "<bridge IP / hostname>",
  "userName": "<Hue API username>",
  "clientKey": "<Hue API key>",
  "lightGroup": 1, // ID of light group to address
  "lights": [1, 2] // IDs of light(s) to address
}

Usage Without a Hue Bridge

Instead of running npm run start, run npm run start:local.

This will open a new browser window and animate a coloured square using WebSocket as-if it were a Hue lamp. If it doesn't start automatically, you might need to press F5 to reload the browser window.

Use CTRL+C (on the console) to stop.

Findings Thus Far

Contrary to what the API indicates, RGB-values appear to be 8-bit, not 16-bit (makes sense, but still: "Every individual color component has a 16 bit resolution on the API" – no, they do not). The second octet of each RGB- component is ignored. Attempting to pass a full 16-bit colour value causes the lights to go bonkers...

References

About

Using two Hue Play Lightbars to spice up my fireplace 🔥

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published