Hello all, new to ST. I just got a new v2 hub and the latest app. Replacing my bankrupt Wink hub. On the Wink hub, I had an action where, when the door is unlocked, turn on the light and another that turned the light off after 5 minutes. On this ST platform, how do I do that is something I would have to write code for?
Also, I would like notification when the door is unlocked. Any guidance would be greatly appreciated.
You can use the Smart Lights app, which you can find in the Marketplace (right bottom tab), under SmartApps, SmartThings recommends. That will give you the functionality of turning on a light when a lock is unlocked, and then turning if off after 5 minutes.
Unfortunately, I think ST has screwed up Lock notifications, for now. I still have it, but the app has been removed from V2, and I don’t think it’s available for you. Perhaps someone can chime in if they know how to do lock notifications with V2.
I setup a routine to run when something opens or closes. The idea being if the door unlocks then the door would be opening. Technically its triggering off of the door opening, but it’s sort of the same. Unless you are using the light to remind you the door was unlocked. In which case, this doesn’t really help.
Otherwise if you’re running on iOS, then you can buy an app called SmartRules. I have worked around some of the missing items using that app as well.
EDITED: I should have read all of the previous posts before I posted. It sounds like you’ve already gotten an answer.
I managed to use Smart Lighting to turn the light on when the door is unlocked but can’t make it turn the light off 5 minutes later. Tried creating a new Lighting Automation to turn the light off after xx time but option does not seem to be there.
I don’t have to worry about the lock re-locking the door because that is set on the lock itself.
Well, given that ST sort of blew off many of the necessary options in Smart Lights, that should be there but aren’t, you are going to need a something to make this work right. What you need is an app that will turn it off xx after it opens. Given that the light is going to be turned ON when you unlock the lock, you could use “Power Allowance” in Smart Lights. What this would do is turn it off xx minutes after it turns on (for any reason). This isn’t precisely what you want, but it would probably work. “Power Allowance” (Turn off after xx minutes) is a choice for a trigger in Smart Lighting. Your automation would be Turn Off, trigger, Power Allowance, xx minutes after.
That might work for you, except for the fact that every time you turn that light on, it’s going to turn off xx minutes later. That may very well be not what you want. If that isn’t what you want, then you would need a custom smartapp (easy), or to wait for ST to fix it (which is indefinite at best).