Skip to content

Latest commit

 

History

History
 
 

node-express-open-close-lighting

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Open/Close Lighting Control

This SmartApp turns on and off a light when something opens and closes. It shows how to subscribe to events and execute device commands.

File Structure

  • 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