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:
HAI Pronto Link Script Question
This thread has 11 replies. Displaying all posts.
Post 1 made on Wednesday July 2, 2008 at 11:40
mjrlocal1
Long Time Member
Joined:
Posts:
May 2008
41
Does anyone have any experience using the ISSUE Command Page in the Pronto Link Script? If so can someone give me some insight in what an accurate command string would look like? I am trying to use a button outside of the pronto link script to issue commands to the HAI to activate a button I have programmed into the HAI.
Post 2 made on Wednesday July 2, 2008 at 12:55
RHGoalie
Long Time Member
Joined:
Posts:
June 2007
52
If you are an HAI dealer you can download the Omni-Link II Protocol document from their web site. Just login and search for Omni-Link II. This document describes the commands you can send to the HAI (see pp. 36-40). Here is an example I used below to toggle the first two lights I have in my system:

System.setGlobal("OmniIssueCmds", "(99, 0, 1)"+"(99, 0, 2)");

I don't think you can issue a command to exercise the button feature. If you know what the button does, you might be able to program each function it accomplishes. The commands that can be issued are functions for units (turn on or off or dim/brighten), security and thermostat functions and some A/V functions.
Post 3 made on Wednesday July 2, 2008 at 15:48
RHGoalie
Long Time Member
Joined:
Posts:
June 2007
52
Oh, I just noticed that you can execute an HAI macro button from the command API.
Do the following (# is the HAI macro Button number):

    System.setGlobal("OmniIssueCmds", "(7, 0, #)");
Post 4 made on Friday July 4, 2008 at 02:17
702Tech
Long Time Member
Joined:
Posts:
October 2006
15
Still new with the Pronto Script format, not sure if what you are discussing is what I am would like to do. Is this correct, I can link into HAI Pronto Script to execute button or control/lighting functions without opening HAI Pronto Script? Two things I would like to do is link to commands for the Jany AquaLink RS interface and the CentraLite Elegance lighting system due to no more available serial ports for either system. I have programmed both systems to the HAI Omni Pro II controller via RS-232 with two way communication. I have all the protocol documents, but still missing something. Any help or guidance would be greatly appreciated.
Wire Works of Las Vegas
OP | Post 5 made on Monday July 7, 2008 at 10:12
mjrlocal1
Long Time Member
Joined:
Posts:
May 2008
41
702tech you can execute buttons I have now gotten that to work. What I am working on right now is being able to execute multiple HAI buttons from different buttons on the TSU remotes. I was told by one of the HAI programmers that it was originally designed to execute more then 1 command outside of the interface. I will let all of you know what I find out.
OP | Post 6 made on Monday July 7, 2008 at 16:15
mjrlocal1
Long Time Member
Joined:
Posts:
May 2008
41
I have a solution. Copy and paste the issue command page in the HAI Device pages and rename it some like Issue Command 2. Then change your command lines to make it do what you want. Then put in a jump to the second issue command page in your tsu remote. This is tested and working on the 9400 that I use.
Post 7 made on Sunday October 19, 2008 at 19:55
slbelt
Long Time Member
Joined:
Posts:
February 2003
16
On July 7, 2008 at 16:15, mjrlocal1 said...
I have a solution. Copy and paste the issue command page
in the HAI Device pages and rename it some like Issue
Command 2. Then change your command lines to make it do
what you want. Then put in a jump to the second issue
command page in your tsu remote. This is tested and working
on the 9400 that I use.

mjrlocal1 (or anyone how knows) please help...

I am trying to also execute an omni command outside of the HAI activity. I have made two different attempts at it with no success. Hopefully someone can show me what is wrong.

In both methods I am using the latest V2 HAI xcf file from their website and the HAI activity section itself works fine. So no problem connecting.

1st method -

Copied the pre-existing Issue Command Page in the HAI Activity and created one named 'Issue Command B17' with the script name of IssueCmd (same as original page).

I tried both leaving the original page and deleting it in case it didn't like having two pages with the same script name.

I modifed the code on the Issue Command B17 page with the following code:

System.setGlobal("OmniIssueCmds",
"(7, 0, 17)" // execute Button 17
);

I also added a _PS_DEBUG_ panel on the page and a line of code to print out the command string:

System.print(System.getGlobal("OmniIssueCmds");

I modifed the ISSUE CMD button on the home page to do a page jump to the new Issue Command B17 page.

When I press the button it appears to be processing it as the correct page info comes on the screen but then I am receiving an error that flashes by very quickly on the debug panel that says: Pronto Script Actionlist Error and points to the IssueCmd page.

The only code on the Issue Command B17 page is the original code with the modifications above.

Also, as expected, the button doesn't execute on the Omni.

2nd Method (which I have only tried once) -

Delete the setGlobal line in the Issue Command page.
Add the following two lines of code to the ISSUE CMD button on the home page:

System.setGlobal("OmniIssueCmds",
"(7, 0, 17)" // execute Button 17
);
scheduleAfter(100,CF.widget("JumpHere","IssueCmd","HAI Controller").executeActions());

When I press the ISSUE CMD button, it jumps to the correct page and tries to execute the Eval command but I am getting an error that there is no connection to the Omni. It appears it must not be running the page script and is only executing the code on the button, but not sure if that is the problem with this approach.

Any help would be GREATLY appreciated....
Post 8 made on Monday October 20, 2008 at 13:46
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,999
If I understood you correctly, you only copied page and button scripts between activities. Please note that I don't own HAI and have not looked at HAI scripting from Philips.

ProntoScript from one activity cannot be executed in another. In order for this to work, I believe you must duplicate the Activity, Page, and Button scripts in each activity that you would like to access the HAI system.
Lyndel McGee
Philips Pronto Addict/Beta Tester
Post 9 made on Monday October 27, 2008 at 11:37
RHGoalie
Long Time Member
Joined:
Posts:
June 2007
52
slbelt:

Are you still having problems using the HAI ISSUE COMMAND?

If so, make sure that the HAI Controller firmware is version 2.16 or later. Previous versions of the Controller firmware do not recognize Pronto-Link messages.

You should try to just modify the ISSUE COMMAND setGlobal to just perform the execute button 17 of your HAI and check if that works. If that does then try to make other Issue Command pages that will execute what you want. I have made many pages to perform buttons (much easier than doing each HAI command individually) without problems. You will need to change the ProntoScript name of each ISSUE COMMAND page, though.

BTW, the error you observe that quickly flashes on the screen is actually a "feature" of Philips ProntoScript implementation and was pointed out long ago by Barry Gordon. See:
[Link: remotecentral.com]
Post 10 made on Monday October 27, 2008 at 18:03
slbelt
Long Time Member
Joined:
Posts:
February 2003
16
First, thanks for the reply. Actually, I have made quite a bit of progress since this post. I have the HAI code all up and running. I have done quite a bit of modifying to it and added a complete macro (button) support and am currently working on a much more detailed status page for monitoring key zones in my house (eg garage doors, exterior doors, etc). There was a LOT of extraneous code in their module due to the need to support every variation of HAI, Pronto, language, and system (audio, etc) that you might have. I have been cleaning all that out to reduce file size and improve execution speed.
Post 11 made on Friday February 6, 2009 at 19:13
jumina
Lurking Member
Joined:
Posts:
April 2008
3
would you be interested in sharing your changes? I have tried everything and can't get the macro code to execute. I can get the unit codes to work, but only by hitting the execute command button. Nothing works when I do a jump to the issue command page. It is getting very frustrating and I have to demonstrate the operation at a home show in 2 weeks.
Post 12 made on Monday February 9, 2009 at 17:02
RHGoalie
Long Time Member
Joined:
Posts:
June 2007
52
It would be helpful to diagnose your problem with the following information:
Which Pronto are you using?
Which HAI Controller?
What versions do you have of HAI firmware and Pronto-Link?


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