Turn off lights after 10 minutes

I have that setup with core

Found this Wiki and was able to get this working for my front porch lights. Took a few minutes to setup but works great.
http://thingsthataresmart.wiki/index.php?title=How_to_create_a_virtual_timer_for_a_light

1 Like

This is easily accomplished via CoRE

If:
presence changes to “PRESENT” (make sure you select any if you have more then one)
Then:
Using light
turn on
wait 10 minutes
turn off

I have this exact one…

Curious, is there an advantage to using webCoRE vs. the Smart Lighting app?

WebCore allows for much more complex rules, such as “if A and B, do C unless D.”

The official smart lighting feature only supports very simple rules. But it can run locally, which webcore cannot.

On the other hand, I believe webcore allows you to back up and restore rules that you’ve already built, while smartlighting does not.

So if you have a particular use case that can be accomplished with smartlighting, it’s up to you whether you choose to use that or to use webcore (since webcore can do everything that smartlighting can do except run locally).

Some people use smartlighting for the simpler stuff, some people only use webcore. It’s just a matter of personal preference.

1 Like

Forgive my newness, but when you say “run locally”, you mean it can run without an internet connection as long as the internal LAN is up?

For simple ‘rules’ like the above one, they can run locally. i.e. do not need to talk to the ST server to run, PROVIDING your device can run locally and so does your smartapp.
You can search here. (These url’s are for the EU shard. I’ve highlighted what will be different for the shard you could be on.
https://graph-eu01-euwest1.api.smartthings.com/localDevice/list
https://graph-eu01-euwest1.api.smartthings.com/localInstalledSmartApp/list

-eu01-euwest1

1 Like

It’s not the LAN, it only applies to zigbee or Z wave devices. For example, the SmartThings/hue bridge integration cannot “run locally” in this context, even though it is a LAN integration.

On this forum and in SmartThings support materials, “run locally” means " run without access to the SmartThings cloud account." But it’s only some devices, and only The official smartlighting feature and a little bit of Smart Home Monitor.

For example, routines cannot run locally. Nor can your phone communicate with the hub without the SmartThings cloud even if both are on the same Wi-Fi network. ( technically they could, but the SmartThings architecture does not allow it.)

https://support.smartthings.com/hc/en-us/articles/209979766-Local-processing

1 Like

So, was there a way to do this with Smart Lighting? If so, and using “power allowance” what actually triggers that timer function, or is it in play every time the specified light comes on?

Thanks

If you just set it up in smart lights, then it will happen every single time you turn the light on. So it will always turn itself off after 10 minutes.

If instead, you want it set up so that you can sometimes have it sometimes turn off after 10 minutes but other times, such as when you just toggle the light in the mobile app, it stays on longer, there’s a how to article in the community – created wiki on creating a virtual timer that will let you do that. :sunglasses:

http://thingsthataresmart.wiki/index.php?title=How_to_create_a_virtual_timer_for_a_light

1 Like

Thanks JD, that’s pretty much what I had figured on.

TG

1 Like

Okay, so I set a power allowance trigger for my light to turn off after 5 minutes. Problem now, is I can’t turn the light back on, once I turn it on, it immediately goes back off. I’ve deleted the automation and this is still happening! Any ideas?

Awesome! Thx u. Just what I needed.