I created a LightState for a single lamp using an invalid id (for example 0 instead of 1). The error message is a bit missleading, here's the stack trace:
"error":"Cannot call method 'hasRGB' of undefined",
"stack":"TypeError: Cannot call method 'hasRGB' of undefined\n at HueApi._getLightStateOptions (
/a-project/node_modules/node-hue-api/hue-api/index.js:996:15)\n at HueApi.setLightState (
/a-project/node_modules/node-hue-api/hue-api/index.js:322:24)\n at Object.exports.lampDim (
I created a
LightState
for a single lamp using an invalid id (for example 0 instead of 1). The error message is a bit missleading, here's the stack trace: