-
-
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
[deconz] Add Pairing/Scene actions, new devices and improve code #14622
Conversation
Signed-off-by: Jan N. Klug <[email protected]>
Signed-off-by: Jan N. Klug <[email protected]>
Signed-off-by: Jan N. Klug <[email protected]>
Signed-off-by: Jan N. Klug <[email protected]>
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.
Thanks a lot for this massive collection of refactoring and other improvements. I have provided some initial comments after glancing over first half of the changed files.
bundles/org.openhab.binding.deconz/src/main/java/org/openhab/binding/deconz/internal/Util.java
Outdated
Show resolved
Hide resolved
...b.binding.deconz/src/main/java/org/openhab/binding/deconz/internal/dto/NewSceneResponse.java
Outdated
Show resolved
Hide resolved
...ng.deconz/src/main/java/org/openhab/binding/deconz/internal/handler/DeconzBridgeHandler.java
Outdated
Show resolved
Hide resolved
...ding.deconz/src/main/java/org/openhab/binding/deconz/internal/handler/LightThingHandler.java
Outdated
Show resolved
Hide resolved
...deconz/src/main/java/org/openhab/binding/deconz/internal/handler/SensorBaseThingHandler.java
Outdated
Show resolved
Hide resolved
...deconz/src/main/java/org/openhab/binding/deconz/internal/handler/SensorBaseThingHandler.java
Outdated
Show resolved
Hide resolved
This is NOT ready for review. I know that there are still reverts that need to be checked but it's much easier for me to self-review on GitHub. |
Signed-off-by: Jan N. Klug <[email protected]>
Signed-off-by: Jan N. Klug <[email protected]>
Signed-off-by: Jan N. Klug <[email protected]>
There is one thing that I could either include here or in a later PR: the absolute color temperature channel is plain |
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.
A few additional comments.
...ding.deconz/src/main/java/org/openhab/binding/deconz/internal/handler/LightThingHandler.java
Outdated
Show resolved
Hide resolved
...deconz/src/main/java/org/openhab/binding/deconz/internal/handler/SensorBaseThingHandler.java
Outdated
Show resolved
Hide resolved
...g.deconz/src/main/java/org/openhab/binding/deconz/internal/netutils/WebSocketConnection.java
Outdated
Show resolved
Hide resolved
@@ -28,19 +32,28 @@ | |||
<item-type>Switch</item-type> | |||
<label>All On</label> | |||
<description>"On" if all lights in this group are "On", otherwise "Off".</description> | |||
<tags> | |||
<tag>Lighting</tag> |
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.
bundles/org.openhab.binding.deconz/src/main/resources/OH-INF/thing/sensor-thing-types.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.deconz/src/main/resources/OH-INF/thing/sensor-thing-types.xml
Show resolved
Hide resolved
I agree. Up to you if you want to include it in this PR - it would certainly fit in. 🙂 |
After thinking about it I prefer another PR for that. The reason is that all of the changes here are "safe", while changing the channel type might cause issues and it's easier to debug if these changes are separated. |
Signed-off-by: Jan N. Klug <[email protected]>
...g.deconz/src/main/java/org/openhab/binding/deconz/internal/netutils/WebSocketConnection.java
Show resolved
Hide resolved
|
||
<representation-property>uid</representation-property> | ||
|
||
<config-description-ref uri="thing-type:deconz:sensor"/> |
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.
Can we add this new thing to the textual configuration example? This would particularly useful since it has channel configuration for which the syntax might be unfamiliar or hard to remember.
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.
"Someone" can sure do it. Whoever wants to use figure out how to do it can do so, but I won't waste my time to make it easier for people who deliberately chose the hard way. Use discovery and managed things and you'll have no issues.
bundles/org.openhab.binding.deconz/src/main/resources/OH-INF/thing/sensor-thing-types.xml
Outdated
Show resolved
Hide resolved
Signed-off-by: Jan N. Klug <[email protected]>
I'm not sure about #12228, that should be checked. |
I have just tested it, it's fixed also. 👍 I have added it to the list in the PR description. |
I guess that makes deconz drop out of the "top 10 bindings with open issues" list :-) |
Signed-off-by: Jan N. Klug <[email protected]>
Certainly! 😄 Thanks for all the work done over the years and now in this backport. |
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
I haven't tested it yet but this may also close #13740. |
<thing-type id="airqualitysensor"> | ||
<supported-bridge-type-refs> | ||
<bridge-type-ref id="deconz"/> | ||
</supported-bridge-type-refs> | ||
<label>Air quality Sensor</label> | ||
<description>An air quality sensor</description> | ||
<label>Carbon-monoxide Sensor</label> |
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.
@J-N-K - late finding: Was this change intended? This is the same label as for thing type carbonmonoxidesensor
.
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.
Yes, when the description does not provide additional information it can be omitted. I also remove the article because it is not needed.
Edit: Uh. I See what you mean. I'll fix that.
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.
Fixed in #14636
…nhab#14622) * port changes * update instructions * Incorporate review comments from openhab#14134 * new improvements (mostly Java 17 changes) * further improvements Signed-off-by: Jan N. Klug <[email protected]>
…nhab#14622) * port changes * update instructions * Incorporate review comments from openhab#14134 * new improvements (mostly Java 17 changes) * further improvements Signed-off-by: Jan N. Klug <[email protected]>
Closes #14124
Fixes #13368
Fixes #13132
Fixes #12703
Fixes #12082
Fixes #11031
Closes #10997
Fixes #10858
Fixes #8260
Fixes #12228
This includes all changes from the SmartHome/J version of the binding and some more improvements.