Hi Dave,
Thanks for your reply. I am familiar with the dusk / dawn settings that are available in the timer programming. My situation is different however. I want the light to come on at 5:30 ONLY if is prior to that 30 minute period AFTER sunrise. Likewise, I have outdoor lights that I want to have on at 5 PM until 7 PM every day if it is after that 30 minute period BEFORE sunset. In summer, the period of 30 minutes prior to sunset occurs much later than 7 PM, so turning the lights on then wastes energy. As the days become shorter, and sunset comes earlier having the lights on would be helpful.
I do like the cloudy skies variable option you mentioned though. I have the motion detectors you mention, too. Maybe setting one of those to work instead of using the 30 minute timer & dusk / dawn setting is a better way to go. Again, a way to incorporate the sensor with the switch so that BOTH must be on (or satisfied as in the case of the sensor) to allow the light to come on and if I'm not looking for too much, have them work together to shut the light off when it gets brighter.
Ideally I'd use the sensor to turn on a phantom module (I suppose setting a flag would do, but I'm even more unfamiliar with those than the macro writing). That way, any light I wish to control when both time AND light level could use a macro (condition?) that looks at the state of the phantom module to see if it should enable a command to the light to come on at the proper time. It would also issue a command (rather than merely enable it) the light when EITHER time or light level is appropriate.
Thanks!