X10 Community Forum

🖥️ActiveHome Pro => Smart Macros => Plug-ins => User-Designed Working Macros => Topic started by: cantbreak80 on January 07, 2010, 04:02:52 PM

Title: Occupancy sensing...a new and better way
Post by: cantbreak80 on January 07, 2010, 04:02:52 PM
Now that I have Occupancy Sensing working flawlessly via  Tuicemenís BlueWatch (http://forums.x10.com/index.php?topic=19346.0)
add-on for AHP, Iíve revised my lighting schemes, simplified several macros and removed my garage door sensing as the basis of occupancy controls.

I've also modified all of my Rooms, HouseCodes and Unit numbers...I think it works better, helps me remember addresses and allows better control with
 hand held remotes and Stick Up Switches.

HC
B = Bed/Bath
D = Den
G = Garage
H = Handheld remotes
I = Inactive (Devices and Macros that I don't want to discard, yet)
K = Kitchen
L = Living Room
M = Macros
O = Outdoors

The Garage Door system worked fineÖunless I needed to take out the trash or go to the mailbox thru the opened garage door.
Then, it threw the sequence off, darkening my entry path and Den lighting...in other words, I couldn't open the garage unless I
was leaving.  So much for logical thinking. ::)

With Tuicemen's BlueWatch (http://www.angelfire.com/in2/ontkoi/X10AHP/BlueWatch.html) running on my HA PC and a BT device permanently installed and constantly
powered by the carís battery, Iíve got the new macros running.

Requirements:
o   I want the garage lights to turn on every time the overhead door is opened.
o   I want the garage lights to remain on for 2 minutes after the door is closed when I come home after dark.
o   I want the garage lights to turn off immediately when Iím departing.
o   I want the Den lights to come on when I arrive home after dark
o   I want all house lighting to turn off when I depart during daytime hours
o   I want specific lighting to turn off when I depart during night hours

I use appliance modules assigned to F1 and F2 to provide manual control and monitoring on AHP.

F1 on sets Flag 1 (night)
F1 off clears Flag 1 (day)
dusk to dawn timer controls F1

F2 on sets Flag 2 (occupied)
F2 off clears Flag 2 (away)
Tuicemenís BlueWatch controls F2

I use a Powerflash module (G1) with magnetic switch to sense the Garage door position


MACROS

Macro 1 (Garage Lights ON)
   Trigger G1 OFF
   Turn Garage Lights (G2) ON

Macro 2 (Garage Lights OFF)
   Trigger G1 ON
   WAIT for 2 minutes
   Turn Garage Lights (G2) OFF

Macro 3 (Away Nighttime)
   Trigger G1 ON and
   Flag Status On Ė 1 and
Flag Status Off Ė 2
End Trigger Conditions
Turn Garage Lights (G2) OFF
Turn ALL UNITS OFF (K) in the Kitchen
Turn ALL UNITS OFF (B) in the Bed&Bath Rooms
Turn Front Porch Lights (O1) OFF
Wait 5 Seconds
Turn Sensor Manual (M9) OFF
(Porch lights off and sensor manual off cause the porch lights to flash off, and return to normal nighttime operation,
providing a visual confirmation that the macro has been performed...before I drive away)

Macro 4 (Away Daytime)
   Trigger Conditions F2 Off and
   Flag Status Off Ė 1
   End Trigger Conditions
   Turn ALL Units OFF (D) in the Den
   Turn ALL UNITS OFF (K) in the Kitchen
   Turn ALL UNITS OFF (B) in the Bed&Bath Rooms

Macro 5 (Arriving at Night)
   Trigger Conditions F2 On and
   Flag Status On -1
   End Trigger Conditions
   Turn Den Table (D1) ON

That's it.  Much simplier and it works like a champ.
Title: Re: Occupancy sensing...a new and better way
Post by: HA Dave on January 07, 2010, 06:49:46 PM
Now that I have Occupancy Sensing working flawlessly via  Tuicemenís BlueWatch (http://forums.x10.com/index.php?topic=19346.0)
add-on for AHP, Iíve revised my lighting schemes, simplified several macros and removed my garage door sensing as the basis of occupancy controls.

Very cool!!! I really think Occupancy Sensing (http://davesdomainonline.com/os/sensing.htm) adds [or can add] a LOT to a Home Automation setup. I've added additional video recording features that only happen when no one is home. And automated interior security lighting... that makes the home look lived in.. if for some reason no one is home at night. I am sure there is plenty we can do with BlueWatch... that we just haven't thought of yet.