forked from openhab/openhab-addons
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hue emulation: User creation fix, storage service fix, turn white fix…
…, group items (openhab#4339) Fixes: * Fix user creation without a proposed username in the request. Incl. test * Fix: The hue value was wrongly applied to the saturation field. Incl. test * Fix usage of StorageService: Set the classloader * Set the saturation to 0 if a ct (color temperature) value is set. This is because Alexa only sets "ct" if you command her to turn the light white. * Only call writeToFile in LightItems once, after all items have been loaded up from the registry. * Don't load items twice from the registry. * Reload items whenever the tags configuration has changed. * Allow group items Features: * Add troubleshoot section to readme. Allow a pretty printed output for /api/{username}/lights?debug=true. * Add REST API POST support on /api/{username}/groups. Tests: * Add LightItems class unit tests for adding/updating items and group items by category and tags. * Add tests for setting the hue and saturation and turn a light from color to white Refactor: * Move UserAuth class out of DataStore into own HueUserAuth class Fixes openhab#4293 Fixes openhab#4307 Signed-off-by: David Graeff <david.graeff@web.de> Signed-off-by: Pascal Larin <plarin@gmail.com>
- Loading branch information
Showing
16 changed files
with
776 additions
and
219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.