Skip to content
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

[harmonyhub] Websocket implementation #4926

Merged
merged 8 commits into from
Feb 18, 2019

Conversation

digitaldan
Copy link
Contributor

@digitaldan digitaldan commented Feb 18, 2019

This PR switches from using XMPP to JSON over Websockets. This was trigger by Logitech disabling XMPP access back in December. While they have since re-enabled XMPP as an option in their mobile app, WebSockets provide many advantages:

  • Works out of the box with all HarmonyHubs, no having to install special firmware versions or enable dangerous sounding options in the mobile app (they have scary warnings if enabled)
  • Binding no longer has thread leak issues due to underlying XMPP Smack library
  • Binging is MUCH smaller, 90k from Several MB's
  • Reduced external jars from 13 to 1
  • Code complexity was greatly reduced

Initial tests with users show this is a drop in replacement and will not require any changes to items or files.

Fixes #4411
Also see https://community.openhab.org/t/logitech-harmony-hub-binding-4-15-206-firmware-broke-local-api-connection/60090

@wborn, anything to add?

Copy link
Member

@wborn wborn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for switching the binding to this small and much simpler websocket implementation! I've made a few minor comments below:

…es, updated client to version 1.0, updated notice file of change of libraries.

Signed-off-by: digitaldan <[email protected]>
@digitaldan
Copy link
Contributor Author

@wborn thanks for the review! All changes made and committed.

Copy link
Member

@wborn wborn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick updates. LGTM now! Let's bring this to a bigger audience. :-)

@wborn wborn merged commit c1f15d4 into openhab:master Feb 18, 2019
@openhab-bot
Copy link
Collaborator

This pull request has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/logitech-harmony-hub-binding-4-15-206-firmware-broke-local-api-connection/60090/186

@openhab-bot
Copy link
Collaborator

This pull request has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/harmony-hub-binding-stopped-working/65986/12

@wborn wborn added this to the 2.5 milestone Feb 28, 2019
@openhab-bot
Copy link
Collaborator

This pull request has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/icloud-binding-refresh-device-data-failed-again/69457/34

@openhab-bot
Copy link
Collaborator

This pull request has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/preparation-for-2-5m2/75738/3

@openhab-bot
Copy link
Collaborator

This pull request has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/preparation-for-2-5m2/75738/1

Pshatsillo pushed a commit to Pshatsillo/openhab-addons that referenced this pull request Jun 19, 2019
* Changed to using new websocket based library
* Updating client lib, small changes to stability and timeouts
* Update current activity when connected, update to latest client lib, fixes button press
* Adding update jar
* Update to latest client, fix merge issue
* Removed dead/commented code, reduced log level, cleanup classpath files, updated client to version 1.0, updated notice file of change of libraries.
* Remove empty line before closing brace

Signed-off-by: Dan Cunningham <[email protected]>
Signed-off-by: Pshatsillo <[email protected]>
ne0h pushed a commit to ne0h/openhab-addons that referenced this pull request Sep 15, 2019
* Changed to using new websocket based library
* Updating client lib, small changes to stability and timeouts
* Update current activity when connected, update to latest client lib, fixes button press
* Adding update jar
* Update to latest client, fix merge issue
* Removed dead/commented code, reduced log level, cleanup classpath files, updated client to version 1.0, updated notice file of change of libraries.
* Remove empty line before closing brace

Signed-off-by: Dan Cunningham <[email protected]>
Signed-off-by: Maximilian Hess <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[harmonyhub] "Failed communicating with Harmony Hub" with firmware 4.15.206
3 participants