peter-murray / node-hue-api

Node.js Library for interacting with the Philips Hue Bridge and Lights
Apache License 2.0
1.19k stars 145 forks source link

Expose all provided information in the lights response #39

Closed Nibbler999 closed 9 years ago

Nibbler999 commented 9 years ago

There's more information there in recent firmware.

peter-murray commented 9 years ago

There is a function getLightStatus or lightStatus that currently returns the full state of the light. It was by intent that this function lights only returned a summary of information on the lights.

I think it is valuable to add in some more details like model and software version into the response, but not to return the complete details (which include the pointsymbol (which is currently irrelevant) and the state, which we have other functions for.

Comments?

Nibbler999 commented 9 years ago

It's faster and easier to get the full light state in a single request than it is to iterate through all the bulbs requesting state individually.

peter-murray commented 9 years ago

Ok, so how about a function for getting all light states then?

I could create getAllLightStates() which will return the states of the lights by id (but will not include name and model details).