# Req: notify if light left on for more than x seconds

**URL:** <https://community.smartthings.com/t/req-notify-if-light-left-on-for-more-than-x-seconds/56629>\
**Category:** Automation Ideas\
**Created:** [September 5, 2016, 4:38pm UTC](https://community.smartthings.com/t/req-notify-if-light-left-on-for-more-than-x-seconds/56629 "2016-09-05T16:38:35Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![professordave](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/professordave/32/102521_2.png) [@professordave](https://community.smartthings.com/u/professordave)\
**Post date:** [September 5, 2016, 4:38pm UTC](https://community.smartthings.com/t/req-notify-if-light-left-on-for-more-than-x-seconds/56629/1 "2016-09-05T16:38:35Z")

</div>

Req: notify if light left on for more than x seconds

Hello,

It seems that using built in smart lighting and shm I can setup notification for doors left open; but I do not know how to setup notification for lights left on.

Anyone know how to do this?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![femwitjava](https://avatars.discourse-cdn.com/v4/letter/f/b5a626/32.png) [@femwitjava](https://community.smartthings.com/u/femwitjava)\
**Post date:** [September 5, 2016, 5:07pm UTC](https://community.smartthings.com/t/req-notify-if-light-left-on-for-more-than-x-seconds/56629/2 "2016-09-05T17:07:06Z")

</div>

Not sure what kind of “lights” you are using (probably sockets ? ))… there is a generic ST App - Energy management for POWER meter if you are using those? Quick easy if you are.

---

<div class="post-metadata">

**Author:** ![professordave](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/professordave/32/102521_2.png) [@professordave](https://community.smartthings.com/u/professordave)\
**Post date:** [September 5, 2016, 5:26pm UTC](https://community.smartthings.com/t/req-notify-if-light-left-on-for-more-than-x-seconds/56629/3 "2016-09-05T17:26:12Z")

</div>

Not energy meter sockets.

Regular zwave wired light switches, like a GE zwave light switch.

Example, if a light was left on for 2 hours, send notification.

I have this setup for the garage door, left open for more than 1/2 hour, send notification.

---

<div class="post-metadata">

**Author:** ![mcvoss](https://avatars.discourse-cdn.com/v4/letter/m/a9a28c/32.png) [@mcvoss](https://community.smartthings.com/u/mcvoss)\
**Post date:** [September 5, 2016, 6:26pm UTC](https://community.smartthings.com/t/req-notify-if-light-left-on-for-more-than-x-seconds/56629/4 "2016-09-05T18:26:26Z")

</div>

That is a great idea. I have 2 switches that get left on all of the time.

---

<div class="post-metadata">

**Author:** ![Jim\_Newman](https://avatars.discourse-cdn.com/v4/letter/j/8797f3/32.png) [@Jim\_Newman](https://community.smartthings.com/u/Jim_Newman)\
**Post date:** [September 5, 2016, 6:43pm UTC](https://community.smartthings.com/t/req-notify-if-light-left-on-for-more-than-x-seconds/56629/5 "2016-09-05T18:43:45Z")

</div>

If you use CoRE you can write a piston that will do anything you want if Light “X” stays on for a specified length of time - send a notification, automatically turn it off, whatever. I have a hallway light that turns on automatically with a motion sensor and then turns off automatically after 10 minutes. Similarly, a closet light that turns on automatically when the door opens and off automatically after 5 minutes even if the door hasn’t closed.

---

<div class="post-metadata">

**Author:** ![professordave](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/professordave/32/102521_2.png) [@professordave](https://community.smartthings.com/u/professordave)\
**Post date:** [September 5, 2016, 7:11pm UTC](https://community.smartthings.com/t/req-notify-if-light-left-on-for-more-than-x-seconds/56629/6 "2016-09-05T19:11:50Z")

</div>

Can someone help with an example with core?

I am looking at a then action and see control actions, but I am not seeing notification options

Thanks

---

<div class="post-metadata">

**Author:** ![Ac7ss](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/ac7ss/32/38325_2.png) [@Ac7ss](https://community.smartthings.com/u/Ac7ss)\
**Post date:** [September 6, 2016, 12:21am UTC](https://community.smartthings.com/t/req-notify-if-light-left-on-for-more-than-x-seconds/56629/7 "2016-09-06T00:21:00Z")

</div>

I think you need to enable advanced options for that.

---

<div class="post-metadata">

**Author:** ![JDRoberts](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/jdroberts/32/56577_2.png) [@JDRoberts](https://community.smartthings.com/u/JDRoberts)\
**Post date:** [September 6, 2016, 12:30am UTC](https://community.smartthings.com/t/req-notify-if-light-left-on-for-more-than-x-seconds/56629/8 "2016-09-06T00:30:34Z")

</div>

> [@professordave](#):
>
> Can someone help with an example with core?

CORE has its own peer assistance thread. If you ask there, I’m sure someone will help you. 🕶

> [@CoRE - Get peer assistance here with setting up Pistons](https://community.smartthings.com/t/core-get-peer-assistance-here-with-setting-up-pistons/50187):
>
> Welcome to the CoRE Logic Thread. Here you will find many community members that are more than willing to help you with the Logic and Programming of your Pistons. \*\*There will be another thread for “How are you using CoRE?” and “How are you using the CoRE/AskAlexa integration?”. So, this is the place to ask your questions and the place to get the answers.
