I have a motion sensor that I would like to use during nights in order to turn on a hallway lamp if my daughter wakes up and needs go to the bathroom. I want the automation to trigger if the lightning conditions are dark (what lx that would be?). What is the best way of controlling the time it triggers? Do I have time as a condition in the automation or do I have an automation that turn on and off the automation for the motion sensor?