I came across the smart app that @bflorian posted into the SmartThings Github Repo. It looks like it was created by: andersheie@gmail.com and listpope@cox.net
What I’m trying to do is update this smart app so that it can also turn up the brightness of the bulb to a set level, and change the colour to white. I have some RGBW bulbs that need to be told more than just on-off.
Thanks for any help!
/**
* Smart Timer
* Loosely based on "Light Follows Me"
*
* This prevent them from turning off when the timer expires, if they were already turned on
*
* If the switch is already on, if won't be affected by the timer (Must be turned of manually)
* If the switch is toggled while in timeout-mode, it will remain on and ignore the timer (Must be turned of manually)
*
* The timeout period begins when the contact is closed, or motion stops, so leaving a door open won't start the timer until it's closed.
*
* Author: andersheie@gmail.com
* Date: 2014-08-31
*/
definition(
name: "Smart Light Timer, X minutes unless already on",
namespace: "Pope",
author: "listpope@cox.net",
description: "Turns on a switch for X minutes, then turns it off. Unless, the switch is already on, in which case it stays on. If the switch is toggled while the timer is running, the timer is canceled.",
This file has been truncated. show original