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

Provide a way to get light state of all lights (and groups) in one request #82

Closed markbergsma closed 8 years ago

markbergsma commented 8 years ago

It would be great if there was a way to get the (full) light state of all lights (and groups) in one Hue API request, i.e. not having to request the state of each light or group individually or (expensively) request the entire configuration of the bridge. If there are many lights/groups, individually polling the state for all of them is unnecessary overhead. Also see markbergsma/pimatic-hue-zll#2

The lights() and groups() methods receive the state of all lights/groups, and not-ancient versions of the Hue API also include the state object in the response, but currently node-hue-api filters it out.