swissmanu / harmonyhubjs-client

A Node.JS library which allows you to interact with your Logitech Harmony Hub.
https://github.com/swissmanu/harmonyhubjs-client
MIT License
155 stars 42 forks source link

Implement inofficial Websocket API #46

Open thexperiments opened 5 years ago

thexperiments commented 5 years ago

Due to latest events it would be great if this library could support the websocket api. https://www.home-assistant.io/blog/2018/12/17/logitech-harmony-removes-local-api/

Homeassistant already moved to websocket implementation. This might help: https://github.com/home-assistant/home-assistant/commit/23a579421ded86da432949ff8e571432aa04b6aa

bradwbradw commented 5 years ago

I think the developer community should continue to maintain XMPP instead of jumping onto websockets, since that's been enabled as an easily accessible opt-in switch from the Harmony App. I'm worried the unofficial websocket api will see a similar fate as the events the OP is referring to. Using websockets against their recommendations, and particularly spoofing the myharmony.com domain is biting the hand that feeds, so to speak.

Image of IanHarmony forum post

To be clear, I'm not against writing code that uses websockets, but I just wish that more support went into XMPP libs like this one (instead of deprecation)