New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hue emulation: Fixes (user creation, storage service, turn light white) #4339
Conversation
626cbac
to
1de88a8
Compare
This pull request has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/new-binding-hue-emulator-amazon-echo-integration/7944/210 |
bec775a
to
4e841c2
Compare
This pull request has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/hue-emulation-items-with-switchable-tag-are-not-discovered/58250/12 |
…, group items 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>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hope this is gettting stable now, the 2.4 release is near!
That's why I keep extending the test suits and have covered almost everything by now. I'm using I was just going to force push a change. I'll do another short PR then. |
…, 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>
…, 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>
…, 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>
…, 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: Maximilian Hess <mail@ne0h.de>
Fixes:
This is because Alexa only sets "ct" if you command her to turn the light white.
loaded up from the registry.
Features:
Allow a pretty printed output for /api/{username}/lights?debug=true.
Tests:
by category and tags.
Refactor:
Fixes #4293
Fixes #4307
Signed-off-by: David Graeff david.graeff@web.de