Tuesday, March 3, 2009

House rules...

rule "Close Garage Door"

when

event : TimeEvent()

garageDoor : GarageDoor(doorOpen == true)

jabber : JabberAlarm()

then

garageDoor.closeDoor();

log.info("Closed garage door by rule on " + new Date());

jabber.sendNotification("Closed garage door by rule on " + new Date());

end


It keeps me from letting all the riffraff in when I leave the door open at night. Thanks drools!

No comments: