Hey guys! Today I would like to release my implementation of controlling my desktop status with SmartThings. This is entirely achieved with software and no extra hardware or servers are required. Hope this helps you guys out! If you need any help at all, feel free to PM me or post on this thread. I made a short video as a demo and I also made a basic tutorial.
Videos
Notes
-
Although “IFTTT” is used often in this guide, no interaction is made with the IFTTT service. This is just the friendly name for webhooks.
-
Make sure to install webCoRE/Send Events to EventGhost and EventGhost/cURL before starting!
-
I am affiliated with webCoRE in that I am a wiki editor, though I am simply using it because it has all of the tools neccesary to complete this project.
-
FIX: If you have issues starting the webserver, try this fix.
Requirements
- WebCoRE: This is what handles the logic and SmartThings side of this integration. Installation tutorials are available at wiki.webcore.co
- Send Events To EventGhost (SmartApp)
- A PC on your local network compatible with WoL (Wake-on-LAN)
Resources
- Software: EventGhost, cURL
- Files: EventGhost Tree Template
Tutorial
-
Open EventGhost and enable File -> Options -> “AutoStart EventGhost on System Startup” and “Minimize to system tray on close.”
-
Move the EventGhost Tree to a safe location such as Documents, and open it.
-
Log in to the SmartThings Developer Console and create a new device with the following attributes.
-
On your smartphone, set up “Send Events to EventGhost.” Enter your PCs IP and make sure that Port = 80 and Command Prefix = ST. Then, check the PC switch.
-
Open WebCoRE and create a new piston. Copy over the contents of the piston below, and replace “YOUR_MACADDRESS_HERE” with your PCs MAC Address. Also, when you create the IFTTT triggers, copy down the URLs in the parameters box to a text file.
For example, in the “IFTTT executes ‘pc_started’” menu, there will be a URL at the bottom. (Like this) Copy this URL to a text file.
NOTE: “Switch 2” is actually the PC switch from Step 3 -
In EventGhost, copy each URL by it’s respective command from the table below. Replace URL ______ with your URL.
This is what it should look like:
Great! Now just start the webCoRE Piston, make sure EventGhost is running, and your PC is controllable by SmartThings!
Troubleshooting
Some very helpful tips from 949BFN mostly relating to multiple PC setups
Make sure that the “HTTP.ST.PC.switch.off”-command contains the exact same reference/name as what you had named your Virtual Switch, i.e. the part in bold is a reference to you Virtual Device name. I.e. if the Virtual Switch created for your PC is called “Media Server PC”, the command would look like this: "HTTP.ST.Media Server PC.switch.off.
Wait until you have created the Virtual Switch and installed Event Ghost on the PC before creating the Event Ghost Smart app in the Mobile App. (I installed this on 5 PC’s and with 3 of them, it only started working after deleting and re-creating the Mobile app. With the last PC, I created the Mobile App last and it immediately worked.
Restart the PC after installing Event Ghost.
Create separate instances of the Event Ghost Smart app for each PC’s.