I've barely started on this, so it's not a scenario I've fully developed and have issues with...but I figured I would describe what I aim to do and see what methods different folks with previous experience using Indigo would do to solve for it.
What I want to achieve is to have a motion sensor in the bathroom detect motion and turn the lights on, then after I leave it would turn them off.
But it will have some other conditions.
Depending on the time of day I want the brightness level to vary. Mid-day it should be fairly bright. After 10pm it would be lower lighting, with dependency on if I've gone to bed or not.
If my bedroom lamps are still on, then a normal brightness of say 30% since those lamps will determine that I'm still basically "awake" at the time. If the lamps are off, I'd go for like 5% so if I go in there it's probably half-asleep and don't want bright lights blasting me.
Now, this I've been able to achieve without issue since it's pretty basic logic.
What adds complications are this...if I set the off time for a short delay (desirable for the 2am "gotta pee" scenario) then it turns off the lights too fast if I'm in the closet, tub, etc and outside the range of the sensor. I don't want to turn the sensitivity up a lot because the cat would then trigger when she goes in to get food/water from her bowls.
I kind of want it to be configured where the motion sensor only turns the lights off if it was the one that actually switched them on. Meaning if I turn them on via switch or Indigo Touch, the motion sensor logic will leave them alone...unless there has been no motion detected for say 30 minutes (i.e. I forgot to turn them off and left.)
I'm just curious how others have set up assorted motion-triggered event handling...maybe learn about some of the "gotcha" points from their experiences.
Thoughts?