1) Give a description of the problem
Is it possible to detect if a simple switch turns ON twice?
I have a light which I want to turn on, wait for 15 minutes and then turn off,
BUT if another piston has also turned this light on during those 15 minutes of wait, then I want the 15 minutes will start again from the 2nd event.
(In short, i want the light to turn off after 15 minutes from the last action of “Turn On”)
I couldn’t find any event that is triggered when turning a light on while the light is already on.
Any idea on how can i achieve that?