This SmartApp turns on and off a light when something opens and closes. It shows how to subscribe to events and execute device commands.
- smartapp.js — the SmartApp implementation
- server.js — the Express server that hosts the SmartApp as a web-hook
- locales/en.json — English version of the app configuration page text