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 ISSUE COMMAND from Activity and/or Macro
This thread has 2 replies. Displaying all posts.
Post 1 made on Saturday September 25, 2010 at 15:13
rap
Long Time Member
Joined:
Posts:
September 2006
59
I've read every thread that mentions HAI and...

Goal: Everytime the TV is turned on set a flag in the Omni Controller to set a light scene. Everytime the TV is turned off, clear the flag in the Omni and set up lights accordingly.

Method: Create one macro that powers the TV on and sets the flag, create a second macro that turns the TV off and clears the flag. Only use these macros for power on/off.

HAI ACTIVITY: I have created two ISSUE COMMAND PAGES. One to set the flag and one to clear the flag.

Testing: I have created two buttons, one each for On/Off. Each one does a Jump to the ISSUE COMMAND page. I can put these buttons in any activity and it works. I can watch the flag change state in the controller.

Problem: When I put the Jump to ISSUE COMMAND in an Activity or in a macro that's called from an Activity, I can see the jump take place but the command is not issued.

What I am I missing?

Update: Putting the Jump to ISSUE COMMAND in any activity list works OK but, calling a macro from an activity list that issues the Jump does not.

Thanks!

Last edited by rap on September 25, 2010 15:43.
OP | Post 2 made on Sunday September 26, 2010 at 12:08
rap
Long Time Member
Joined:
Posts:
September 2006
59

This thread talks about the essence of what I'm trying to do but, alas, the solution was never posted. I've been playing around with this but no joy.

HAI provides complete scripting in the HAI Controller activity. Works fine. It's easy to create command pages and jump to them from a button on any page and any other activity and it executes fine.

I would like to execute an HAI command from within other activities. To accomplish this one the Home page/activity I have:
- copied over the HAI Activity script to the new activity
- copied over the parameter pages
- copied over the Issue Command pages (there a specific command page and a generic page that is called to issue the command)
- I found all reference to "HAI Controller" activity and replaced it with "Home"

I can see the jump to the issue command page (screen changes) the the HAI command is not issued.

My button has two lines:
Jump to issue command page
Execute/jump to the desire activity

Issue command page code:

System.setGlobal("OmniIssueCmds",
                 "(12,1,109)"     // set counter flag to 1
                 );

/*****  DO NOT ALTER THE FOLLOWING LINES OF CODE   *****/
w = CF.widget("IssueOmniCmd", "OMNI_CMD_ISSUE",  "Home");
if (w) eval(w.label);

OP | Post 3 made on Tuesday September 28, 2010 at 17:25
rap
Long Time Member
Joined:
Posts:
September 2006
59
Thanks to HAI Support...this issue is resolved with a rediculously simply solution.

Each time an HAI command is issued a TCP/IP connection is made to the panel and then closed. A delay (3 seconds) is required after the Jump to the command page to allow time for the panel to log in/out.

Not sure why the Pronto just marches on if the Jump has not done a call back yet but...it does now work. So simple.

Do this
Do that
Jump HAI ISSUE COMMAND
Delay 3.00 seconds
...carry on


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