This is not so simple. We don't want to turn on the light if someone is sitting at the desk working. We don't want to turn off the light if someone has manually turned it on, except when away.
Turn on rules:
If away and then motion is detected (as in entering the room)
Logic to turn on and off light based upon motion.
This is not so simple. We don't want to turn on the light if someone is sitting at the desk working. We don't want to turn off the light if someone has manually turned it on, except when away.
Turn on rules:
Turn off rules: