Trigger My Lights is a smart app that allows you to set parameters for switches, dimmers, smart color lights, smart white lights based on events from 1 to n motion sensors, 1 to n accelerometers, 1 to n contact sensors, mode changes, & when a routine is executed.
If you have several scenarios you would like to control, just install the app from "My Apps" multiple times.
- Turn the garage lights on (switch) when the inside garage door is opened (contact sensor), the garage door is opened (accelerometer), or the one of the garage windows are opened (contact sensor).
- Turn the hallway lights on, level to 5% and temperature to 2750K (smart white light) if motion is detected in the hallway and it is after sundown. FYI - Sunrise / Sundown feature coming soon.
- Turn the Family Room Lamps on, level to 20% and color to green if the routine "watch TV" is executed. FYI - Color lights coming soon.
- Open SmartThings IDE in your web browser and log into your account.
- Click on the "My SmartApps" section in the navigation bar.
- Click on "Settings".
- Click "Add New Repository".
- Enter "ericvitale" as the namespace.
- Enter "ST-Trigger-My-Lights" as the repository.
- Hit "Save".
- Select "Update from Repo" and select "ST-Trigger-My-Lights".
- Select "trigger-my-lights.groovy".
- Check "Publish" and hit "Execute".
- Open SmartThings IDE in your web browser and log into your account.
- Click on the "My SmartApps" section in the navigation bar.
- Click the blue "+ New SmartApp" button at the bottom of the page.
- Click "From Code".
- Paste in the code from "trigger-my-lights.groovy" and hit "Create". (https://github.com/ericvitale/ST-Trigger-My-Lights/blob/master/smartapps/ericvitale/trigger-my-lights.src/trigger-my-lights.groovy)
- Click the "Publish" --> "For Me".
- The app will appear on your app under "Marketplace" --> "My Apps"