Basically I want to do this upon a motion sensor being triggered:
If there is motion AND it's DAYTIME
TURN ON CAMERA
RECORD VIDEO FOR 30 SEC.
TURN OFF CAMERA
If there is motions AND it's NIGHTTIME
TURN ON CAMERA
TURN ON LIGHT
RECORD FOR 30 SEC.
TURN OFF LIGHT
TURN OFF CAMERA
So I don't need the lights coming on during the bright of day.
Now, I've tried using the DAYTIME NIGHTTIME conditionals, and I have also tried using the TIME RANGE conditions, with "BETWEEN DAWN AND DUSK" for daytime, and "BETWEEN DUSK AND DAWN" for nighttime.
The motion sensor at the front doorr is set to M4. Here are my actual macros in AHP:
The first macro associated with M4 for DAYTIME is as follows:
Trigger Conditions M4 On and
It's daytime
End Trigger Conditions
Turn Front Yard Cam On
Start Recording Video
Wait for 15 Seconds
Stop Recording Video
Turn Front Yard Cam Off
The second macro associated with M4 for NIGHTTIME is as follows:
Trigger Condition M4 On and
It's nighttime
End Trigger Conditions
Turn Front Yard Cam On
Start Recording Video
Turn Front Spot Light On
Wait 15 Seconds
Turn Front Spot Light Off
Stop Recording Video
Turn Front Yard Cam Off
Now my understanding is that when BOTH of these macros recieve M4 On, only one of them should run depending on time of day since the logical condition is an "AND" and not an "OR". When (M4 On "AND" Daytime) is met then the daytime macro should run, and the nighttime one should NOT, and vise vera.
But the spot light ALWAYS comes On !!
I have checked the clock and zone and city settings. The surise sunset times in the interface table are correct.
How can I make this smart macro smart enough that it will NOT turn on the spot light during the day, but only at night?
![Huh ???](http://forums.x10.com/Smileys/default/huh.gif)
?
Any help would be greatly appreciated.