Hello everyone. I’ve been using SmartThings for a few months and finally got into developing some SmartApps for my own use. After using those apps for a few weeks, i decided to post them up for anyone else that might can benefit from them or modify to suit your own needs.
I have 2 apps - “Switchy Motions” and “Switchy Scenes”
The purpose of this app is 2-fold:
- Turn on one or more lights when a motion sensor detects motion, and then turn the lights off when motion stops, either immediately or after a set time period. You can also set a schedule to only turn the lights on during a certain time period
- Set a switch, or light, as an override so if that switch (light) is already on when motion starts, the lights will NOT be turned off when motion stops. This allows to you override the motion sensor if you want to manually turn your lights on and back off.
The purpose of this app to automatically set a lighting scene when a switch (light) is turned on. You can control the brightness and/or color temp of a group of lights so that when the switch is first turned on, the scene will be set right after the lights come on. You can also setup schedules so that certain scenes are only activated during certain times of the day or night.
Note that the Use same lights as Level option as shown below will set the Temperature for the same list of lights you selected to control Level for. Otherwise you can set each list of lights independently.
Both of these apps are Parent SmartApps that each have their own Child SmartApps that have to be installed in order to work. So you will need to install both the Parent and Child app and then publish the Parent app so you can add it to your mobile app.
The source is in github if you want to setup your GitHub Repository Integration:
Or grab the code directly from here: https://github.com/jlukerdev/Switchy/tree/master/smartapps/jlukerdev