See this thread where a switch can be switched based on another condition How do I only pass a motion sensor change between dusk and dawn?
See this thread where a switch can be switched based on another condition How do I only pass a motion sensor change between dusk and dawn?