What is the best way to program a "safety off" for lights that people tend to leave on? For example, if a hall light has been on 30 minutes, turn it off.
Should I use "if status xxx is responding, then wait 30 minutes and turn it off" , or a "if status xxx is not off, then wait 30 minutes and turn it off"
thanks.