-
-
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
[ecovacs] Initial contribution #12231
Conversation
@Flowdalic l would appreciate some help regarding the integration of Smack here. My problem is the following:
I now need some suggestions how to proceed from here. Could I somehow disable the extended features just for a single connection (I tried, but didn't find a way)? Can the error message on roster reload failure be toned down in case the server doesn't support it? (I would have submitted a PR for that, but I seemingly can't build Smack on my machine; probably due to wrong Gradle version?) Is there another way to split the use cases of the XMPP and Ecovacs bindings? |
The |
Have you tried
IIRC the XMPP roster is a non discoverable feature. But the IQ request that yield an IQ error response that indicates that the service does not support the roster, which we may could use to change the logging behavior.
Smack currently needs Gradle 6.8.3 to build.
Ideally, and if I understood your issue(s) correctly, we wouldn't need 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.
I had a quick look at your implementation and left some comments on things that looked strange to me. I hope you do not mind, especially since I may not fully understood what's done here.
...g.ecovacs/src/main/java/org/openhab/binding/ecovacs/internal/api/impl/EcovacsXmppDevice.java
Outdated
Show resolved
Hide resolved
...g.ecovacs/src/main/java/org/openhab/binding/ecovacs/internal/api/impl/EcovacsXmppDevice.java
Show resolved
Hide resolved
...g.ecovacs/src/main/java/org/openhab/binding/ecovacs/internal/api/impl/EcovacsXmppDevice.java
Outdated
Show resolved
Hide resolved
...g.ecovacs/src/main/java/org/openhab/binding/ecovacs/internal/api/impl/EcovacsXmppDevice.java
Show resolved
Hide resolved
...g.ecovacs/src/main/java/org/openhab/binding/ecovacs/internal/api/impl/EcovacsXmppDevice.java
Show resolved
Hide resolved
I can not find that method in Smack's sources?
It does:
... and that was my idea for the logging change: reduce the logging level if the error indicates the feature is not supported.
That one works, thank you. I'll submit a PR for the logging change. (Edit: PR done) And thank you for the prompt and detailed responses 👍 |
Sorry it is |
That one works and fixes the log spam, thanks! |
05e2e68
to
b3136e7
Compare
...ecovacs/src/main/java/org/openhab/binding/ecovacs/internal/handler/EcovacsVacuumHandler.java
Show resolved
Hide resolved
7e645d0
to
a8c5377
Compare
1201f66
to
8172c44
Compare
bundles/org.openhab.binding.ecovacs/src/main/feature/feature.xml
Outdated
Show resolved
Hide resolved
fe75e17
to
5121f2b
Compare
@openhab/add-ons-maintainers May I ask for a review and/or help with the OSGi question, please? Thanks. |
75a5e5a
to
775ab52
Compare
b3f48be
to
0e438d0
Compare
Device name is not necessarily unique. Signed-off-by: Danny Baumann <[email protected]>
Signed-off-by: Danny Baumann <[email protected]>
Signed-off-by: Danny Baumann <[email protected]>
Signed-off-by: Danny Baumann <[email protected]>
Signed-off-by: Danny Baumann <[email protected]>
Signed-off-by: Danny Baumann <[email protected]>
...ecovacs/src/main/java/org/openhab/binding/ecovacs/internal/handler/EcovacsVacuumHandler.java
Outdated
Show resolved
Hide resolved
I lost track. I still see the "help wanted" label. Besides the comments from my side, is this PR still blocked because of dependency issues? |
Signed-off-by: Danny Baumann <[email protected]>
AFAICT only open question that's remaining should be the channel naming discussion 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.
Another serialNumber round. 🙂
...ecovacs/src/main/java/org/openhab/binding/ecovacs/internal/handler/EcovacsVacuumHandler.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Danny Baumann <[email protected]>
Signed-off-by: Danny Baumann <[email protected]>
Signed-off-by: Danny Baumann <[email protected]>
@maniac103 - there are some checkstyle warnings left. You could take a look at target/code-analysis/report.html. |
Signed-off-by: Danny Baumann <[email protected]>
Signed-off-by: Danny Baumann <[email protected]>
Fixed, thanks for the heads-up. |
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 for your contribution!
Now, you could add your binding's logo to the openHAB website. See https://www.openhab.org/docs/developer/bindings/#add-your-binding-s-logo-to-the-openhab-website
Done: openhab/openhab-docs#2035 |
Happy to see how much you invested into this after the initial poc we built together 😍 |
* [ecovacs] Initial contribution Add initial version of a binding for vacuum cleaners made by Ecovacs. Signed-off-by: Danny Baumann <[email protected]>
* [ecovacs] Initial contribution Add initial version of a binding for vacuum cleaners made by Ecovacs. Signed-off-by: Danny Baumann <[email protected]>
Add initial version of a binding for vacuum cleaners made by Ecovacs. It should work for all devices made in the last 3 years, but
only a limited subset of those have been tested actively (the README spells out the respective devices).
Release for testing in the marketplace: here