Shutdown HTPC from Vera controller
Here's how I configured my girlfriend's Vera to shutdown her (Windows-based) HTPC when a certain scene gets triggered:
Make sure that the HTPC can always be reached from Vera, by giving it a static IP address or a DHCP reservation (using the DHCP server/router).
Install EventGhost on the HTPC.
In the Options of EventGhost, enable it to start automatically.
Create an empty folder somewhere and an empty HTML file inside (I created C:\Users\USERNAME\eventghost\eventghost.html).
Click “Add plugin” > “Webserver” (at the bottom of the list, in my case).
Configure the plugin to listen on a port (e.g. 8123) and set the document root to the folder containing the HTML file (e.g. C:\Users\USERNAME\eventghost).
Right-click the top of the “Configuration tree” in EventGhost and add a macro.
Select “Power Management” > “Turn off computer”, optionally check the box to force turning off (in case some program does not stop correctly or other users are logged on - data loss may occur though).
Right-click the macro folder and add an event. Name it “HTTP.Shutdown”. (“Shutdown” can really be anything, as long as it is the same in the luup code used in Vera.)
Find or create a suitable scene in Vera’s UI7 and in step 3, select to run some luup code. Enter the following command: