Your Universal Remote Control Center
RemoteCentral.com
Philips Pronto Professional Forum - View Post
Previous section Next section Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Topic:
Control Harmony Hub via Pronto 9400?
This thread has 9 replies. Displaying all posts.
Post 1 made on Sunday October 30, 2016 at 06:30
Punga
Long Time Member
Joined:
Posts:
July 2007
25
Hi,

unfortunately I can't find any code/implementation to use my Pronto 9400 to control the actions of a Logitech Harmony Hub.

Can anybody help me out with some working code?

Cheers,
Ralph
Post 2 made on Friday November 4, 2016 at 21:00
alpha
Long Time Member
Joined:
Posts:
September 2003
258
Logitech Harmony Hub works through an app on you phone and uses Bluetooth.

No compatibility.

Try a pronto RFX 9400.
Project Boredom 2 is here. [Link: mediafire.com]
------------------------
Check Version 1 & 2 out in the files section.
OP | Post 3 made on Wednesday November 9, 2016 at 07:19
Punga
Long Time Member
Joined:
Posts:
July 2007
25
Hi,

Harmony Hub works via HTTP/XMPP API and sends out IR an BT signals - so controlling via Pronto would be possible using prontoscript.

Due to the lack of this special script I now run a harmony-api server script on my raspberry pi and trigger all stored harmony hub activities/device keys via socket calls from prontoscript...

But a native prontoscript solution would be more nice...

Cheers,
Punga

Source:
[Link: github.com]
[Link: github.com]
Post 4 made on Saturday November 2, 2019 at 13:22
randman
Long Time Member
Joined:
Posts:
June 2003
421
On November 9, 2016 at 07:19, Punga said...
Hi,

Harmony Hub works via HTTP/XMPP API and sends out IR an BT signals - so controlling via Pronto would be possible using prontoscript.

Due to the lack of this special script I now run a harmony-api server script on my raspberry pi and trigger all stored harmony hub activities/device keys via socket calls from prontoscript...

But a native prontoscript solution would be more nice...

Cheers,
Punga

Source:
[Link: github.com]
[Link: github.com]

Reviving old question here.... I just recently got a 2019 NVIDIA Shield TV Pro, which only accepts bluetooth commands. It has no IR receiver. I got it working with a Flirc USB, but missing a command. I do have a Harmony hub, but my Pronto TSU9400 is what I use and want to continue to use.

Using the Harmony HTTP/XMPP API seems to be a way to use the Harmony hub as a "bluetooth" bridge, to go from Pronto TCP=>Harmony hub=>Bluetooth device. Getting this to work would provide more control for the Pronto.

I just started looking at the Harmony HTTP/XMPP API. Still need to do more research. Meanwhile, for anyone familiar with it, some questions:

1. I'm wondering if it's better to have the TSU9400 use Prontoscript to talk to the Harmony hub directly (I assume via com.philips.HttpLibrary??) or is it better to run a service in a Linux box that runs 24x7 which is used between the Pronto TSU9400 and the Harmony hub. Maybe running a Linux service will allow it to be connected all the time to the Harmony as opposed to having the Pronto keep reestablishing connection to the Harmony?

2. If a Linux service is the way to go, any suggestions? This was mentioned earlier: [Link: github.com] . Any other suggestions for other Linux services (node.js based service would be nice), or start with this?
Would Prontoscipt then just use socket.write, socket.read (I suppose it depends on the service).

Any other suggestions?
Post 5 made on Sunday November 3, 2019 at 09:32
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,994
Here's a suggestion but the solution will be a bit more complex.

There are likely many open source libraries with either NodeJS or Python implementations. I'd get something working quickly through a Raspberry Pi. Then, you could implement whatever transport you need (HTTP, your own TCP/IP socket design, etc.) to talk to your Harmony Proxy software from the Pronto which in turn communicates with the Harmon Hub.
Lyndel McGee
Philips Pronto Addict/Beta Tester
Post 6 made on Sunday November 3, 2019 at 12:14
randman
Long Time Member
Joined:
Posts:
June 2003
421
On November 3, 2019 at 09:32, Lyndel McGee said...
Here's a suggestion but the solution will be a bit more complex.

There are likely many open source libraries with either NodeJS or Python implementations. I'd get something working quickly through a Raspberry Pi. Then, you could implement whatever transport you need (HTTP, your own TCP/IP socket design, etc.) to talk to your Harmony Proxy software from the Pronto which in turn communicates with the Harmon Hub.

Thanks. I was thinking this may be the way to go. I still have to look more into how Harmony's HTTP/XMPP works. Unless it's fairly straightforward (and acquiring/maintaining session connectivity is quick & simple), a Node.js solution would provide the greatest flexibility/power/ease of debugging, and will allow the Prontoscript to be simpler.
Post 7 made on Wednesday November 6, 2019 at 18:14
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,994
Yes, I use nodejs as a proxy to my Denon/Marantz equipment to overcome the single client via TCP/IP limitation that these units mandate.

Client1 -> Proxy -> Marantz1
Client2 -> Proxy
Client3 -> Proxy

Plus, the nodejs proxy written to support 'monitor' whereas any client can request to be notified of any command sent by other clients for the purposes of seeing what caused events to be emitted from the Marantz.
Lyndel McGee
Philips Pronto Addict/Beta Tester
Post 8 made on Thursday November 7, 2019 at 16:30
randman
Long Time Member
Joined:
Posts:
June 2003
421
I’m still using my RFX9600s with a Marantz processor and a Denon receiver. Wrote the code years ago and made minor changes to maintain it with newer hardware. I’m thinking it may be time to use TCP. Not sure why I’ll have a need to support more than one client at a time though. Maybe if me and another family member want to have a battle with what show to watch...
Post 9 made on Friday November 8, 2019 at 22:55
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,994
Let's say you have more than 1 zone and you want to use 2 different Prontos.

You cannot have 2 prontos connected via TCP/IP to same Marantz/Denon. And trying to use 2 prontos with RFX9600 with single serial port only leads to issues. Especially since when you send via serial port, it clears any data that might be in the buffer. Works OK for 1-way control but not for 2-way feedback.
Lyndel McGee
Philips Pronto Addict/Beta Tester
Post 10 made on Thursday November 14, 2019 at 11:00
randman
Long Time Member
Joined:
Posts:
June 2003
421
I see. So far, I haven't had a need to use multi-zone (since secondary rooms just get "hand me down" components from my primary home theater, so everything can just run in a single zone).

Harmony opened up the XMPP API again (they closed it but after a public outcry, they opened it back up). I looked at what node.js applications are already available online, and I wound up using the aforementioned harmony-api node.js application from [Link: github.com]. Provides lots of functionality for only 500 lines of code (granted, it does a lot of reuse, but that's the beauty of node.js).

I created a VM for the node.js app and it runs fine (it also can be run in a docker). I use com.philips.HttpLibrary.HttpRequest() to send it POST requests.

I don't plan on using a Harmony as my primary remote. I'll continue to use the Pronto TSU9400. But the harmony-api node.js application gives additional flexibility/power to the Pronto.

My original motivation behind doing this is because the 2019 Nvidia Shield TV only supports Bluetooth. The node.js app and Harmony hub basically serve as a Bluetooth bridge for the Pronto.

However, I was able to use a Flirc USB to control the Nvidia Shield via IR. There is one command, sleep, that isn't available with the Flirc (although not a big deal since the Shield will go to sleep automatically after being idle for a settable amount of time). But, with the harmony bridge, I can send a sleep command from the Pronto.

Advantage of the Flirc USB/infrared approach of course, is that it can repeat commands (when long pressing a button such as cursor down, for example). Going through the Harmony approach, however, doesn't allow repetition of commands via long press.

But, I like having the harmony bridge as something to have in my Pronto's "back pocket" in case there's ever some strange Bluetooth command that I need to run in the future.


Jump to


Protected Feature Before you can reply to a message...
You must first register for a Remote Central user account - it's fast and free! Or, if you already have an account, please login now.

Please read the following: Unsolicited commercial advertisements are absolutely not permitted on this forum. Other private buy & sell messages should be posted to our Marketplace. For information on how to advertise your service or product click here. Remote Central reserves the right to remove or modify any post that is deemed inappropriate.

Hosting Services by ipHouse