ZeroOne3010 / yetanotherhueapi

A Java library for controlling Philips Hue lights. Available from the Maven Central.
MIT License
68 stars 21 forks source link

Caching of states #10

Closed ZeroOne3010 closed 5 years ago

ZeroOne3010 commented 5 years ago

The library should be able to cache the states of lights and sensors. Let's say you have 20 lights in your setup. Currently, if you want to know the states of all of those lights, the library will do 20 queries to the Bridge, which may take a couple of seconds or more. The API has a method of returning the states of all objects at once, so there should be a way to cache that result and to query the states of the lights and sensors from the cached result.

ZeroOne3010 commented 5 years ago

Room states ("all on", "any on") should also be cached.