This object is in archive! 

Rule for turn off a lamp after 15mn

Michel shared this question 8 years ago
Need Answer

When some one turn on a lamp with a switch, I would like to turn off this lamp after for example 15mn.

It s eazy to do something like :


When lamp is on

wait 15mn

turn the lamp off

problem :

if we turn off the lamp before with for example an other switch. And if somebody else enters the room and lights(switches on) the lamp by the first switch, for example 10mn after the first "light on", the lamp is going to be off at the end of 5mn (15-10)


Michel

Replies (2)

photo
1

Use join in your rule juste before ""wait 15 mn"

photo
1

Hi, I'm not sure if Join is not for the purpose he's describing having problem with. When you use join, it should ignore any later state changes and stick to the original evoking action. So normally the original rule should work and not turn off the lamp as every time when the lamp is on, the rule should start from scratch.


Michel, give it another try. Use:

When lamp on,

if lamp turn off - stop the rule

else count 15 minutes, than turn off.

I have attached picture but it is also a trial error case as not sure it will work until tested.

You can acrially replace the part "Stop" with send email message and if you receive an email message, you know the 1st part is working.

Files: try.png
Leave a Comment
 
Attach a file