Reply
Logi Nu
jpier
Posts: 2
Registered: ‎05-18-2012

How to log in via XMPP to Harmony Link

[ Edited ]

Dear Logitech, I'm appealing to you to unveil some of the mysteries regarding communicating with the Harmony Link. I'm sure I don't need to convince you of the benefits of a userbase creating more content for the Harmony Link, since opening the Squeezebox has proven that already. :smileyhappy:

 

I'm liking the Harmony Link a lot so far. I'm currently working on a Squeezebox plugin which would turn my amp on and set it to the right source when I play a song.

 

So far I've figured out that the protocol is XMPP, and I need to login via SASL with the auth type PLAIN. I feel like I'm very close. I'm experimenting using the PHP library jaxl as it has excellent debug capabilities. I'm setting the following values to log in:

 

user: my@email.adress

pass: my_harmony_pass

host: 192.168.1.187

domain: connect.logitech.com

authType: PLAIN

 

 

The XMPP log looks like this:

 

[1:26058:0] 2012-05-19 00:34:03 - [[XMPP]]
Socket opened to the jabber host 192.168.1.181:5222 ...

[1:26058:0] 2012-05-19 00:34:03 - [[XMPPSend]] 180
<stream:stream xmlns:stream="http://etherx.jabber.org/streams" version="1.0" xmlns="jabber:client" to="logitech.com" xml:lang="en" xmlns:xml="http://www.w3.org/XML/1998/namespace">

[1:26058:1] 2012-05-19 00:34:03 - [[XMPPGet]] 4096
<?xml version='1.0'?><stream:stream from='logitech.com' id='4d03eb6f' version='1.0' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'><stream:features><mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><mechanism>PLAIN</mechanism></mechanisms></stream:features>

[1:26058:1] 2012-05-19 00:34:03 - [[XMPPSend]] Performing Auth type: PLAIN

[1:26058:1] 2012-05-19 00:34:03 - [[XMPPSend]] 112
<auth xmlns="urn:ietf:params:xml:ns:xmpp-sasl" mechanism="PLAIN">AGphYXBAcGl2cm9lbi5ubBBjcExDQnVmMjQoKQ==</auth>

[1:26058:1] 2012-05-19 00:34:03 - [[XMPPGet]] 4096
<failure xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><not-authorized/></failure>

[1:26058:1] 2012-05-19 00:34:03 - [[XMPPGet]] Unable to complete SASL Auth, see logs for detail...

 Basically the authorization is rejected. Are there additional steps involved in creating the AUTH digest? Am I doing something wrong?

 

Thanks in advance!

 

-Jaap

 

 

Edit: In the meanwhile I have discovered that you'll have to get an auth token from a logitech WCF service using your regulare e-mail and password. With this auth token you can start a pairing process over XMPP, which results in an identity you can use to log in and start sending remote commands.

So, as always, it wasn't as straight forward as I first thought.

Logi Legend II
rhachey
Posts: 12,298
Registered: ‎05-04-2007
0

Re: How to log in via XMPP to Harmony Link

This is a User Peer to Peer forum, you will not get an answer from Logitech Harmony

Logi Nu
jpier
Posts: 2
Registered: ‎05-18-2012
0

Re: How to log in via XMPP to Harmony Link

[ Edited ]

Since there is no better alternative, and this forum is visited by Logitech employees it seemed worth the shot. And who knows, maybe another user has the answer I seek.

Logi Nu
Cabeljunky
Posts: 1
Registered: ‎07-06-2012
0

Re: How to log in via XMPP to Harmony Link

Hello jpier,

 

Is there a way that you can share your code so that other pepole can use this? 

 

Because I want to create my own costum application that can talk to the harmony link.

 

Many thanks,

 

Cabeljunky

Logi Nu
hm_aapje
Posts: 3
Registered: ‎09-18-2012
0

Re: How to log in via XMPP to Harmony Link

I am very interested in your methods. I've decompiled the app which you can find here: http://www.datafilehost.com/download-9bb129ce.html

 

Maybe this will help you setting up the protocol as I am also very interested in creating some kind of webservice to it for a computer app or something. Not satisfied with the app that's for sure.

Logi Nu
chrihuc
Posts: 1
Registered: ‎10-17-2012
0

Re: How to log in via XMPP to Harmony Link

Hi jpier,

 

could you please explain the login process a bit more? I really would like to dig in there, but I need a bit more info to get started.

 

Thanks and best regards,

Christoph

Logi Nu
davenlei1
Posts: 4
Registered: ‎08-27-2012
0

Re: How to log in via XMPP to Harmony Link

If you guys can figure out  a way to bypass the Harmony's need to 'phone home' every time you use it and createsome type of executable code that can import that change to the unit, that would be a huge help for everyone that uses the Link.

Logi Nu
aholen
Posts: 2
Registered: ‎11-22-2012
0

Re: How to log in via XMPP to Harmony Link

Very interesting, I'm working on the same. Found out anything more about the login-process?

Logi Nu
btesser
Posts: 1
Registered: ‎12-12-2012
0

Re: How to log in via XMPP to Harmony Link

Hey.  I'm trying to accomplish a similar task as you with the xmpp.  Can you send me the info you've been able to come up with?

Logi Nu
atebit
Posts: 2
Registered: ‎09-25-2006
0

Re: How to log in via XMPP to Harmony Link

+1

 

Anyone still actively working on this?  Would love to figure out a way to be able to control the Link outside of the app...