-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[yeelight] Add basic support for yeelight desklamp #4453
Conversation
cfe9acc
to
2b85164
Compare
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.
Thank you very much. Can you please update all headers to EPL-2.0? Thanks.
mDeviceStatus.setCt(status.get(3).getAsInt()); | ||
} | ||
} | ||
} catch (Exception e) { |
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.
Do you know if we can catch a more specific exception type?
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.
Maybe, i only copied a other light and changed the needed lines.
I will have a look into that at the weekend
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 don't know how to catch this exception more specific, normaly this exception should not be thrown. I can remove this exception but i don't know if that is a better solution
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.
Nevermind. It seems to be the way how this binding handles it. Let's do not touch it though.
@@ -0,0 +1,73 @@ | |||
/** | |||
* Copyright (c) 2010-2018 by the respective copyright holders. |
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.
Please also update all headers to EPL-2.0, see also the community topic.
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.
All headers in this binding or only at the new files?
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.
The header of this file is sufficient.
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.
Ah, sorry. Will change it at the weekend
c16c40e
to
161ddd8
Compare
Thanks for the updates. Can you have a look why Travis does not like the latest changes?
|
Issue 4452 Signed-off-by: Sebastian Rakel <[email protected]>
Signed-off-by: Sebastian Rakel <[email protected]>
161ddd8
to
4209e32
Compare
@cweitkamp thanks. is fixed now |
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.
LGTM. Thank you too.
* Add basic support for yeelight desklamp Fixes openhab#4452 Signed-off-by: Sebastian Rakel <[email protected]> Signed-off-by: Pshatsillo <[email protected]>
* Add basic support for yeelight desklamp Fixes openhab#4452 Signed-off-by: Sebastian Rakel <[email protected]> Signed-off-by: Maximilian Hess <[email protected]>
This PR should provide basic functions of the desklamp, like the ceeling light
I have a desklamp at home and want to include it into my openhab environment
Fixes #4452