Using two Hue Play Lightbar to spice up my fireplace 🔥
npm install- Create a
.fireplace.jsonconfiguration file npm run start- To stop, press
CTRL+C
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.
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...
{ "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 }