Create SmartThings Device Handler
Create SmartThings Device Handler

Here is the template I modified to create a virtual switch which triggers the PHP script.
jryanishere/GM-Car-Automation,jryanishere/GM-Car-Automation