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.
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.