Premise Premise and EventGhost?!?

Motorola Premise
Yeah, XBMC can be controlled by http, no need for EG to control it. But I plan on having Premise control XBMC on all my TV clients.
 
So I am ressurecting this thread.  I am finally setting up Premise EG and I am stuck in one spot.
 
I can get EG to send a message to Premise to, say, turn a light on using a SetValue.  Works great.  But I have not yet been able to get a SendEvent to trigger something in Premise.  My guess is that it's in the script, since I still don't know how to script.
 
What I am trying to do is to have a remote control (IR) signal that is sent to EG that brings SsgeTV up (actually the MCE Start command) to also send an event to fire off a scene in Premise.
 
Any guidance would be appreciated.
 
Sam, please feel free to email me in the future.  I don't check cocoontech very often anymore.
 
It sounds like you have this part working:
http://www.eventghost.org/docs/short_manual/index.html
 
Macros are named containers that can hold Events to trigger the Macro and Actions to execute when the Macro is triggered.
 
For others, attached is a quick example of how an EG event does something in Premise.
 
But, since you really don't want to do something in Premise, but in EG, there are three approaches, all of which will involve some scripting:
 
1. use scripting under the "Computer_Home" object, by modifying the PythonCommand property.  If I remember right, it is very easy to trigger EG events in Python.
 
2. use the Devices.CustomDevices.EventGhost.EG_Events.EG_SendEvent object via a script to send the event.
 
3. use Devices.CustomDevices.EventGhost.EG_Tasks to start the application via a script.
 
2 or 3 are the easiest since they don't involve python, but only vbscript in Premise.
 
I used option 3 to start media center for a while.  However, I switched to using Charlie's media center controller so I deleted the code or I'd post it.  The neat thing is you can even check Devices.CustomDevices.EventGhost.EG_Tasks and ensure SageTV is not open, before trying to execute SageTV (assuming it allows multiple instances, if not there's no need to do this).  You can also add in code to maximize SageTV, etc...  But it all requires vbscript.
 
 

Attachments

  • Untitled.png
    Untitled.png
    43 KB · Views: 11
Thanks etc.  No worries on timing or anything.  I've been up to my eyeballs with other stuff anyway.
 
Actually I think you have it backwards.  I am try to get a remote control press in my living room/HTPC to send an event to my Premise server to fire off a scene.  So press the "Watch DVR" button on my remote, which turns on my TV, Preamp, sets DVR (SageTV) to the main menu, etc.  But also to have that same button press send an event to premise, etc.
 
So, the remote control doesn't interface with the Premise server, but the EventGhost PC?  Does the remote control press cause an event in EventGhost?
 
If so, just use the same Premise SetValue action in EG that I outlined above and add whatever event the remote control press creates in EG under the Premise SetValue macro.  Instead of Home.ThirdBedroom.Light make point it to the scene (e.g. Scenes.YourScene), instead of PowerState put Play, and use True for the property state.  Also, you may want to use a set type scene in Premise instead of a set-restore type.
 
Back
Top