Control driveway lights based on time and door status

Started by orcusomega, January 11, 2011, 03:15:49 PM

Previous topic - Next topic

orcusomega

Narrative:
I love my girlfriend, but she is a bit of a clutz.  When she backed out of her garage door, and into another car in our driveway the other night, I figured it was time to do something about that.

The general principal is pretty simple.  The light is on for convenience and security purposes from dusk to midnight.  After midnight, it is on a motion sensor (not listed here).  Basically what this setup does is if somsone opens the overhead garage door to back out, pull in, whatever, the driveway light will go on and stay on until it is closed.  Once the door is closed, the light stays on 15 mins, then shuts off.

Components
   I5 (XPS3 driveway light)
   DS10A on overhead garage door

Timer 1 - Driveway Light
Conditions:
   I5 on from Dusk to 11:59 PM

Macro 1 - Garage Door Opened
Trigger Conditions:
   DS10A from garage door sensor triggered
   Time: Between Dusk and Dawn
   
Actions:
   I5 ON
   
Macro 2 - Garage Door Closed
Trigger Conditions:
   DS10A from garage door sensor closed
   Time: Between 12:01 AM and 7:00 AM
   
Actions:
   Delay: 15 mins.
   I5 OFF

I hope it will help keep the costs of repairing other peoples' cars down in the future :)

Bob

troll334

Helpful from me! Bravo!
See, X10 not only can save cost on electicity, but auto repair as well  rofl
AHP 3.236. CM15A. XTB-IIR. XTBM. Hauppauge 950Q.

lviper

What happens if the garage door is closed during the time the light is normally on? Will it shut the light off after 15 minutes?

orcusomega

Quote from: lviper on January 11, 2011, 04:48:01 PM
What happens if the garage door is closed during the time the light is normally on? Will it shut the light off after 15 minutes?

Actually the Garage Close macro will only send the OFF command after the time period where the timer controls the light.  The Garage Open macro will send the I5 on anytime between dusk and dawn, so it if the light is inadvertantly turned offf, the macro will turn it back on.

Bob

lviper

Oh, my bad. I didn't notice the times for garage door close to run.  B:(

orcusomega

No worries!  I actually had to go back and look, I thought I had something screwed up!

Bob

thejackal

Thanks for another nice writeup. Once I get around to cleaning the garage out and put the car back in it  rofl I'll put this macro to use.