Stargate Resources Projects Contact US Polls Forums Quiz
 


 
 
 

John Bohman - Schedule   

Schedule Name:  
 1:   SCHEDULE START   
   2:     
   3:    * Frozen * EVENT:  Phone Co to Speaker on 
   4:    * Frozen * If 
   5:    * Frozen *   XSEQ:( I-5 I-ON ) Received within 3 seconds  
   6:    * Frozen * Then 
   7:    * Frozen *   Audio:Connect CO In to Spkr 
   8:    * Frozen *   (T:Phone2spkTimer) LOAD with 0:01:00 
   9:    * Frozen * End 
  10:     
  11:    * Frozen * EVENT:  Phone Co to Speaker off 
  12:    * Frozen * If 
  13:    * Frozen *   XSEQ:( I-5 I-OFF ) Received within 3 seconds  
  14:    * Frozen *     -OR- 
  15:    * Frozen *   (T:Phone2spkTimer) is Expiring 
  16:    * Frozen * Then 
  17:    * Frozen *   Audio:Disconnect CO In to Spkr 
  18:    * Frozen *   Audio:Disconnect ICM In to Spkr 
  19:    * Frozen * End 
  20:     
  21:    * Frozen * EVENT:  Inc to Speaker 
  22:    * Frozen * If 
  23:    * Frozen *   XSEQ:( I-6 I-ON ) Received within 3 seconds  
  24:    * Frozen * Then 
  25:    * Frozen *   Audio:Connect ICM In to Spkr 
  26:    * Frozen *   (T:Phone2spkTimer) LOAD with 0:01:00 
  27:    * Frozen * End 
  28:     
  29:   EVENT:   
  30:   If 
  31:     (VMAIL:MBX-1 # New Msg)   Increases in Value 
  32:   Then 
  33:     ASCII-Out:'&&m.bat <CID>' [COM1] 
  34:   End 
  35:     
  36:   EVENT:  custom greetings 
  37:   If 
  38:     CallerID: ?????????? 
  39:   Then 
  40:     VM:Change MailBox 1 Greeting to main greeting 
  41:     |-If 
  42:     |  CallerID: 9731111111 
  43:     |Then 
  44:     |  VM:Change MailBox 1 Greeting to Barbara 
  45:     |- Nest End 
  46:     |-If 
  47:     |  CallerID: 9732222222 
  48:     |Then 
  49:     |  VM:Change MailBox 1 Greeting to Kathy 
  50:     |- Nest End 
  51:     |-If 
  52:     |  CallerID: 9733333333 
  53:     |Then 
  54:     |  VM:Change MailBox 1 Greeting to Robin 
  55:     |- Nest End 
  56:     |-If 
  57:     |  CallerID: 2014444444 
  58:     |Then 
  59:     |  VM:Change MailBox 1 Greeting to Doris & Tony 
  60:     |- Nest End 
  61:   End 
  62:     
  63:   EVENT:  ACE HVAC OFF 
  64:   If 
  65:       ASCII-In:'ACEHVAC-OFF' [COM3] 
  66:   Then 
  67:     (HVAC:main stat)  OFF Mode 
  68:   End 
  69:     
  70:   EVENT:  ACE HVAC Heat 
  71:   If 
  72:       ASCII-In:'ACEHVAC-H' [COM3] 
  73:   Then 
  74:     (HVAC:main stat)  HEAT Mode 
  75:   End 
  76:     
  77:   EVENT:  ACE HVAC Cool 
  78:   If 
  79:       ASCII-In:'ACEHVAC-C' [COM3] 
  80:   Then 
  81:     (HVAC:main stat)  COOL Mode 
  82:   End 
  83:     
  84:    * Frozen * EVENT:  ACE HVAC Auto 
  85:    * Frozen * If 
  86:    * Frozen *     ASCII-In:'ACEHVAC-A' [COM3] 
  87:    * Frozen * Then 
  88:    * Frozen *   (HVAC:main stat)  AUTO Mode 
  89:    * Frozen * End 
  90:     
  91:   EVENT:  ACE HVAC Temp +1 
  92:   If 
  93:       ASCII-In:'ACEHVAC-+1' [COM3] 
  94:   Then 
  95:     (HVAC:main stat)  Increment Setpoint 
  96:   End 
  97:     
  98:   EVENT:  ACE HVAC temp -1 
  99:   If 
 100:       ASCII-In:'ACEHVAC--1' [COM3] 
 101:   Then 
 102:     (HVAC:main stat)  Decrement Setpoint 
 103:   End 
 104:     
 105:   EVENT:  ACE HVAC Fan ON 
 106:   If 
 107:       ASCII-In:'ACEHVAC-F1' [COM3] 
 108:   Then 
 109:     (HVAC:main stat)  Fan ON 
 110:   End 
 111:     
 112:   EVENT:  ACE HVAC Fan OFF 
 113:   If 
 114:       ASCII-In:'ACEHVAC-F0' [COM3] 
 115:   Then 
 116:     (HVAC:main stat)  Fan OFF 
 117:   End 
 118:     
 119:   EVENT:  ACE HVAC temp 73 
 120:   If 
 121:       ASCII-In:'ACEHVAC-73' [COM3] 
 122:   Then 
 123:     (HVAC:main stat)  Set Temp to 73 degrees 
 124:   End 
 125:     
 126:   EVENT:  ACE HVAC temp 78 
 127:   If 
 128:       ASCII-In:'ACEHVAC-78' [COM3] 
 129:   Then 
 130:     (HVAC:main stat)  Set Temp to 78 degrees 
 131:   End 
 132:     
 133:   EVENT:  ACE HVAC temp 82 
 134:   If 
 135:       ASCII-In:'ACEHVAC-82' [COM3] 
 136:   Then 
 137:     (HVAC:main stat)  Set Temp to 82 degrees 
 138:   End 
 139:     
 140:   EVENT:  ACE HVAC 90 
 141:   If 
 142:       ASCII-In:'ACEHVAC-90' [COM3] 
 143:   Then 
 144:     (HVAC:main stat)  Set Temp to 90 degrees 
 145:   End 
 146:     
 147:   EVENT:  temp rpt 
 148:   If 
 149:       (HVAC:main stat Temperature )   Changes Value 
 150:       -OR- 
 151:       ASCII-In:'ACEtemp?' [COM3] 
 152:       -OR- 
 153:       (HVAC:main stat Setpoint )   Changes Value 
 154:   Then 
 155:     (V:temp) Load with (HVAC:main stat Temperature ) 
 156:     (V:HVACset) Load with (HVAC:main stat Setpoint ) 
 157:     (THEN MACRO:ACEtemp1) 
 158:     (THEN MACRO:ACEtemp2) 
 159:   End 
 160:     
 161:   EVENT:  thermo am 
 162:   If 
 163:     Time is 7:00 AM SMTWTFS 
 164:       -AND- 
 165:       (HVAC:main stat )   System mode is HEAT 
 166:   Then 
 167:    * Frozen *   ASCII-Out:'acec:0:btn:3,0,1,Heat Set Bak,\' [COM3] 
 168:    * Frozen *   ASCII-Out:'1,1,1,16777215,12632256,16384,1' [COM3] 
 169:     (HVAC:main stat)  Set Temp to 73 degrees 
 170:   End 
 171:     
 172:   EVENT:  thermo pm 
 173:   If 
 174:     Time is 11:00 PM SMTWTFS 
 175:     and    (HVAC:main stat )   System mode is HEAT 
 176:   Then 
 177:    * Frozen *   ASCII-Out:'acec:0:btn:3,0,1,Heat Set Bak,\' [COM3] 
 178:    * Frozen *   ASCII-Out:'1,1,1,16777215,255,16384,1' [COM3] 
 179:     (HVAC:main stat)  Set Temp to 68 degrees 
 180:     DELAY  0:00:10 
 181:   End 
 182:     
 183:   EVENT:  thermo am 
 184:   If 
 185:     Time is 7:00 AM SMTWTFS 
 186:       -AND- 
 187:       (HVAC:main stat )   System mode is COOL 
 188:   Then 
 189:    * Frozen *   ASCII-Out:'acec:0:btn:3,0,1,Cool Set Bak,\' [COM3] 
 190:    * Frozen *   ASCII-Out:'1,1,1,16777215,12632256,16384,1' [COM3] 
 191:     (HVAC:main stat)  Set Temp to 74 degrees 
 192:   End 
 193:     
 194:   EVENT:  thermo pm 
 195:   If 
 196:     Time is 11:00 PM SMTWTFS 
 197:     and    (HVAC:main stat )   System mode is COOL 
 198:   Then 
 199:    * Frozen *   ASCII-Out:'acec:0:btn:3,0,1,Cool Set Bak,\' [COM3] 
 200:    * Frozen *   ASCII-Out:'1,1,1,16777215,16711680,16384,1' [COM3] 
 201:     (HVAC:main stat)  Set Temp to 78 degrees 
 202:     DELAY  0:00:10 
 203:   End 
 204:     
 205:   EVENT:  timereset 
 206:   If 
 207:     Time is 10:00 AM SMTWTFS 
 208:   Then 
 209:     (F:after11:30)  CLEAR 
 210:   End 
 211:     
 212:   EVENT:  outside lights (front) 
 213:   If 
 214:    * Frozen *   (A/D:outlight) < 220 
 215:    * Frozen *   and  (F:after11:30) is CLEAR 
 216:    * Frozen *     -OR- 
 217:     Time is (TL:getting dark)  
 218:       -OR- 
 219:       ASCII-In:'ACED15-1' [COM3] 
 220:   Then 
 221:     ASCII-Out:'acec:0:btn:0,1,0,\' [COM3] 
 222:     ASCII-Out:'Front Walk Lights OFF,\' [COM3] 
 223:     ASCII-Out:'1,1,1,0,32896,-1,1' [COM3] 
 224:     X10:  (D-15  Outside Lights) ON 
 225:     ASCII-Out:'acec:0:btnser:0,1,0,-1,0,-1,\' [COM3] 
 226:     ASCII-Out:'-1,-1,0,0,ACED15-0' [COM3] 
 227:   End 
 228:     
 229:   EVENT:  outside lights (front) 
 230:   If 
 231:     Time is 11:30 PM SMTWTFS 
 232:       -OR- 
 233:       ASCII-In:'ACED15-0' [COM3] 
 234:   Then 
 235:     (F:after11:30)  SET 
 236:     ASCII-Out:'acec:0:btn:0,1,0,\' [COM3] 
 237:     ASCII-Out:'Front Walk Lights ON,\' [COM3] 
 238:     ASCII-Out:'1,1,1,0,32896,-1,1' [COM3] 
 239:     X10:  (D-15  Outside Lights) OFF 
 240:     ASCII-Out:'acec:0:btnser:0,1,0,-1,0,-1,\' [COM3] 
 241:     ASCII-Out:'-1,-1,0,0,ACED15-1' [COM3] 
 242:   End 
 243:     
 244:   EVENT:  outside lights back 
 245:   If 
 246:       ASCII-In:'ACED16-1' [COM3] 
 247:   Then 
 248:     ASCII-Out:'acec:0:btn:0,1,1,\' [COM3] 
 249:     ASCII-Out:'Back Walk Lights OFF,\' [COM3] 
 250:     ASCII-Out:'1,1,1,0,32896,-1,1' [COM3] 
 251:     X10:  (D-16  ) ON 
 252:     ASCII-Out:'acec:0:btnser:0,1,1,-1,0,-1,\' [COM3] 
 253:     ASCII-Out:'-1,-1,0,0,ACED16-0' [COM3] 
 254:   End 
 255:     
 256:   EVENT:  outside lights back 
 257:   If 
 258:       ASCII-In:'ACED16-0' [COM3] 
 259:   Then 
 260:     ASCII-Out:'acec:0:btn:0,1,1,\' [COM3] 
 261:     ASCII-Out:'Back Walk Lights ON,\' [COM3] 
 262:     ASCII-Out:'1,1,1,0,32896,-1,1' [COM3] 
 263:     X10:  (D-16  ) OFF 
 264:     ASCII-Out:'acec:0:btnser:0,1,1,-1,0,-1,\' [COM3] 
 265:     ASCII-Out:'-1,-1,0,0,ACED16-1' [COM3] 
 266:   End 
 267:     
 268:   EVENT:  local status 
 269:   If 
 270:     TelePhone Seq:'**1' Received within 5 seconds  
 271:   Then 
 272:     (THEN MACRO:local system sta) 
 273:   End 
 274:     
 275:   EVENT:  local controll 
 276:   If 
 277:     TelePhone Seq:'**9' Received within 5 seconds  
 278:   Then 
 279:     Go OFF Hook 
 280:     DELAY  0:02:00 
 281:     Go ON Hook 
 282:   End 
 283:     
 284:   EVENT:  ALARM ! 
 285:   If 
 286:     (DI:Alrm Violate) is ON 
 287:   Then 
 288:     (RELAY:speaker 1) ON  
 289:     (RELAY:speaker 2) ON  
 290:   Else 
 291:     (RELAY:speaker 1) OFF  
 292:     (RELAY:speaker 2) OFF  
 293:   End 
 294:     
 295:   EVENT:  Toll saver 
 296:   If 
 297:     (VMAIL:MBX-1 # New Msg) >= 1 
 298:   Then 
 299:     VM:Answer on Ring 2  
 300:   Else 
 301:     VM:Answer on Ring 4  
 302:   End 
 303:     
 304:   EVENT:  Doorbell 
 305:   If 
 306:     (DI:DoorBell) Goes ON 
 307:   Then 
 308:     (F:Doorbell)  SET 
 309:     Voice:DINGDONG  [Line] 
 310:   End 
 311:     
 312:   EVENT:  doorbell2 
 313:   If 
 314:     (F:Doorbell) is SET 
 315:   Then 
 316:     DELAY  0:01:00 
 317:     (F:Doorbell)  CLEAR 
 318:   End 
 319:     
 320:   EVENT:  message waiting 
 321:   If 
 322:     (VMAIL:MBX-1 # New Msg) > 0 
 323:   Then 
 324:     ASCII-Out:'acec:0:btnmq:0,0,22,Voice Mail\' [COM3] 
 325:     ASCII-Out:',4,75,-1,-1,255,16777215,-1,-1' [COM3] 
 326:     X10:  (I-2  ) ON 
 327:   Else 
 328:     X10:  (I-2  ) OFF 
 329:     ASCII-Out:'acec:0:btnmq:0,0,22,Voice Mail\' [COM3] 
 330:     ASCII-Out:',0,75,-1,-1,12632256,0,-1,-1' [COM3] 
 331:   End 
 332:     
 333:   EVENT:  away mode enable 
 334:   If 
 335:       ASCII-In:'ACEaway1' [COM3] 
 336:   Then 
 337:     ASCII-Out:'acec:0:btn:2,0,1,\' [COM3] 
 338:     ASCII-Out:'  Away Mode DISABLE,\' [COM3] 
 339:     ASCII-Out:'1,1,1,0,32896,-1,1' [COM3] 
 340:     (F:away mode)  SET 
 341:     ASCII-Out:'acec:0:btnser:2,0,1,-1,0,-1,\' [COM3] 
 342:     ASCII-Out:'-1,-1,0,0,ACEaway0' [COM3] 
 343:   End 
 344:     
 345:   EVENT:  away mode disable 
 346:   If 
 347:       ASCII-In:'ACEaway0' [COM3] 
 348:   Then 
 349:     ASCII-Out:'acec:0:btn:2,0,1,\' [COM3] 
 350:     ASCII-Out:'  Away Mode ENABLE,\' [COM3] 
 351:     ASCII-Out:'1,1,1,0,32896,-1,1' [COM3] 
 352:     (F:away mode)  SET 
 353:     ASCII-Out:'acec:0:btnser:2,0,1,-1,0,-1,\' [COM3] 
 354:     ASCII-Out:'-1,-1,0,0,ACEaway1' [COM3] 
 355:   End 
 356:     
 357:   EVENT:  away mode off 
 358:   If 
 359:     (F:away mode) is SET 
 360:   Then 
 361:     |-If 
 362:     |  Time is After 12:32 AM SMTWTFS   -Security Mode-  
 363:     |Then 
 364:     |  X10:  (D-1  Timer 1) OFF 
 365:     |  DELAY  0:01:00 
 366:     |  X10:  (D-2  Timer 2) OFF 
 367:     |  DELAY  0:00:45 
 368:     |  X10:  (D-3  Timer 3) OFF 
 369:     |  DELAY  0:01:00 
 370:     |  X10:  (D-4  Timer 4) OFF 
 371:     |- Nest End 
 372:   End 
 373:     
 374:   EVENT:  away mode on 
 375:   If 
 376:     (F:away mode) is SET 
 377:   Then 
 378:     |-If 
 379:     |  After Sunset SMTWTFS   -Security Mode-  
 380:     |Then 
 381:     |  X10:  (D-1  Timer 1) ON 
 382:     |  DELAY  0:01:00 
 383:     |  X10:  (D-2  Timer 2) ON 
 384:     |  DELAY  0:00:45 
 385:     |  X10:  (D-3  Timer 3) ON 
 386:     |  DELAY  0:01:00 
 387:     |  X10:  (D-4  Timer 4) ON 
 388:     |- Nest End 
 389:   End 
 390:     
 391:   EVENT:  callerid 
 392:   If 
 393:     Time is After 12:00 PM S.....S 
 394:     and  Time is Before 8:00 PM S.....S 
 395:     and  (F:announcecid) is SET 
 396:     and  CO: Ring 2 
 397:   Then 
 398:     Voice:CALL FROM <CID><hh:mm> [Line] SYNC 
 399:   End 
 400:     
 401:   EVENT:  ICM off hook 
 402:   If 
 403:     ICM: Is OFF Hook 
 404:   Then 
 405:     (F:ICM off hook)  SET 
 406:   Else 
 407:     (F:ICM off hook)  CLEAR 
 408:   End 
 409:     
 410:   EVENT:  local Voice Paging 
 411:   If 
 412:     TelePhone Seq:'*00' Received within 3 seconds  
 413:   Then 
 414:     |-If 
 415:     |  ICM: Is OFF Hook 
 416:     |Then 
 417:     |  Voice:PAGING ON FOR 15 SECONDS  [ICM] SYNC 
 418:     |  Audio:Connect ICM In to Line Level Out 
 419:     |  DELAY  0:00:15 
 420:     |  Audio:Connect ICM In to ICM Out 
 421:     |  Voice:PAGING ACCESS OFF  [ICM] SYNC 
 422:     |Else 
 423:     |  Voice:PAGING ON FOR 15 SECONDS  [CO] SYNC 
 424:     |  Audio:Connect CO In to Line Level Out 
 425:     |  DELAY  0:00:15 
 426:     |  Audio:Connect CO In to CO Out 
 427:     |  Voice:PAGING ACCESS OFF  [CO] SYNC 
 428:     |- Nest End 
 429:   End 
 430:     
 431:   EVENT:  scene e-1 ON 
 432:   If 
 433:     XSEQ:( E-1 E-ON ) Received within 2 seconds  
 434:   Then 
 435:     X10:  (C-1  basement 1) ON 
 436:     X10:  (C-3  basement 2) ON 
 437:     X10:  (C-11  sconces) PRE-Set Level  100% 
 438:     X10:  (C-12  track 1) PRE-Set Level  100% 
 439:     X10:  (C-13  track 2) PRE-Set Level  100% 
 440:     X10:  (C-14  track 3) PRE-Set Level  100% 
 441:   End 
 442:     
 443:   EVENT:  scene e-1 OFF 
 444:   If 
 445:     XSEQ:( E-1 E-OFF ) Received within 2 seconds  
 446:   Then 
 447:     X10:  (C-1  basement 1) ON 
 448:     X10:  (C-3  basement 2) OFF 
 449:     X10:  (C-11  sconces) PRE-Set Level   0 % 
 450:     X10:  (C-12  track 1) PRE-Set Level   0 % 
 451:     X10:  (C-13  track 2) PRE-Set Level   0 % 
 452:     X10:  (C-14  track 3) PRE-Set Level   0 % 
 453:   End 
 454:     
 455:   EVENT:  scene e-2 ON 
 456:   If 
 457:     XSEQ:( E-2 E-ON ) Received within 2 seconds  
 458:   Then 
 459:     X10:  (C-1  basement 1) OFF 
 460:     X10:  (C-3  basement 2) OFF 
 461:     X10:  (C-11  sconces) PRE-Set Level  32 % 
 462:     X10:  (C-12  track 1) PRE-Set Level   0 % 
 463:     X10:  (C-13  track 2) PRE-Set Level   0 % 
 464:     X10:  (C-14  track 3) PRE-Set Level  10 % 
 465:   End 
 466:     
 467:   EVENT:  scene e-3 ON 
 468:   If 
 469:     XSEQ:( E-3 E-ON ) Received within 2 seconds  
 470:   Then 
 471:     X10:  (C-1  basement 1) OFF 
 472:     X10:  (C-3  basement 2) OFF 
 473:     X10:  (C-11  sconces) PRE-Set Level  32 % 
 474:     X10:  (C-12  track 1) PRE-Set Level  23 % 
 475:     X10:  (C-13  track 2) PRE-Set Level   0 % 
 476:     X10:  (C-14  track 3) PRE-Set Level   0 % 
 477:   End 
 478:     
 479:   EVENT:  scene e-3 OFF 
 480:   If 
 481:     XSEQ:( E-3 E-OFF ) Received within 2 seconds  
 482:   Then 
 483:     X10:  (C-1  basement 1) OFF 
 484:     X10:  (C-3  basement 2) OFF 
 485:     X10:  (C-11  sconces) PRE-Set Level   0 % 
 486:     X10:  (C-12  track 1) PRE-Set Level   0 % 
 487:     X10:  (C-13  track 2) PRE-Set Level   0 % 
 488:     X10:  (C-14  track 3) PRE-Set Level   0 % 
 489:   End 
 490:     
 491:   EVENT:  loghts 
 492:   If 
 493:     (IR PwrSense:TV PWR) Goes ON 
 494:   Then 
 495:     (IR:KE ACCY 1 ) play 1 time(s) [ALL] 
 496:     (IR:TV PWR ) play 1 time(s) [ALL] 
 497:     DELAY  0:00:03 
 498:     (IR:tv ld/dvd ) play 1 time(s) [ALL] 
 499:   End 
 500:     
 501:   EVENT:  Kenwood IR accessory 1 
 502:   If 
 503:       (IR:KE ACCY 1 ) is received 
 504:       -OR- 
 505:     (IR PwrSense:TV PWR) Goes ON 
 506:   Then 
 507:     |-If 
 508:     |  (F:KEACCY1) is CLEAR 
 509:     |Then 
 510:     |  (F:KEACCY1)  SET 
 511:     |  X10:  (E-2  ) ON 
 512:     |Else 
 513:     |  X10:  (E-2  ) OFF 
 514:     |  (F:KEACCY1)  CLEAR 
 515:     |- Nest End 
 516:   End 
 517:     
 518:   EVENT:  Kenwood IR accessory 2 
 519:   If 
 520:       (IR:KE ACCY 2 ) is received 
 521:   Then 
 522:     |-If 
 523:     |  (F:KEACCY2) is CLEAR 
 524:     |Then 
 525:     |  (F:KEACCY2)  SET 
 526:     |  X10:  (E-3  ) ON 
 527:     |Else 
 528:     |  X10:  (E-3  ) OFF 
 529:     |  (F:KEACCY2)  CLEAR 
 530:     |- Nest End 
 531:   End 
 532:     
 533:   EVENT:  Kenwood IR accessory 3 
 534:   If 
 535:       (IR:KE ACCY 3 ) is received 
 536:   Then 
 537:     |-If 
 538:     |  (F:KEACCY3) is CLEAR 
 539:     |Then 
 540:     |  (F:KEACCY3)  SET 
 541:     |  X10:  (E-4  ) ON 
 542:     |Else 
 543:     |  X10:  (E-4  ) OFF 
 544:     |  (F:KEACCY3)  CLEAR 
 545:     |- Nest End 
 546:   End 
 547:     
 548:   EVENT:  Kenwood IR accessory 4 
 549:   If 
 550:       (IR:KE ACCY 4 ) is received 
 551:   Then 
 552:     |-If 
 553:     |  (F:KEACCY4) is CLEAR 
 554:     |Then 
 555:     |  (F:KEACCY4)  SET 
 556:     |  X10:  (E-1  Basement scene 1) ON 
 557:     |Else 
 558:     |  X10:  (E-1  Basement scene 1) OFF 
 559:     |  (F:KEACCY4)  CLEAR 
 560:     |- Nest End 
 561:   End 
 562:     
 563:    * Frozen * EVENT:  Kenwood IR accessory 5 
 564:    * Frozen * If 
 565:    * Frozen *  * Frozen *     (IR:KE ACCY 5 ) is received 
 566:    * Frozen * Then 
 567:    * Frozen *   (F:KEACCY5)  CLEAR 
 568:     |- * Frozen * If 
 569:     | * Frozen *   (F:KEACCY5) is CLEAR 
 570:     | * Frozen * Then 
 571:     | * Frozen *   (F:KEACCY5)  SET 
 572:     |  " add lines here " 
 573:     |- * Frozen *  Nest End 
 574:     |- * Frozen * If 
 575:     | * Frozen *   (F:KEACCY5) is CLEAR 
 576:     | * Frozen * Then 
 577:     |  " add lines here " 
 578:     | * Frozen *   (F:KEACCY5)  SET 
 579:     |- * Frozen *  Nest End 
 580:    * Frozen * End 
 581:     
 582:    * Frozen * EVENT:  Kenwood IR accessory 6 
 583:    * Frozen * If 
 584:    * Frozen *  * Frozen *     (IR:KE ACCY 6 ) is received 
 585:    * Frozen * Then 
 586:    * Frozen *   (F:KEACCY6)  CLEAR 
 587:     |- * Frozen * If 
 588:     | * Frozen *   (F:KEACCY6) is CLEAR 
 589:     | * Frozen * Then 
 590:     | * Frozen *   (F:KEACCY6)  SET 
 591:     | * Frozen *   X10:  (C-11  sconces) Set Level  80 % 
 592:     |- * Frozen *  Nest End 
 593:     |- * Frozen * If 
 594:     | * Frozen *   (F:KEACCY6) is CLEAR 
 595:     | * Frozen * Then 
 596:     | * Frozen *   X10:  (C-11  sconces) OFF 
 597:     | * Frozen *   (F:KEACCY6)  SET 
 598:     |- * Frozen *  Nest End 
 599:    * Frozen * End 
 600:     
 601:    * Frozen * EVENT:  Schedule clear !! 
 602:    * Frozen * If 
 603:    * Frozen *   First pass through schedule 
 604:    * Frozen * Then 
 605:    * Frozen *   (F:KEACCY1)  CLEAR 
 606:    * Frozen *   (F:away mode)  CLEAR 
 607:    * Frozen *   (F:KEACCY2)  CLEAR 
 608:    * Frozen *   (F:KEACCY3)  CLEAR 
 609:    * Frozen *   (F:KEACCY4)  CLEAR 
 610:    * Frozen *   (F:KEACCY5)  CLEAR 
 611:    * Frozen *   (F:KEACCY6)  CLEAR 
 612:    * Frozen *   (F:KEACCY7)  CLEAR 
 613:    * Frozen *   DELAY  0:00:05 
 614:    * Frozen * End 
 615:     
 616:   EVENT:   
 617:   If 
 618:       ASCII-In:'ACEC01-1' [COM3] 
 619:   Then 
 620:     ASCII-Out:'acec:0:btn:0,0,0,\' [COM3] 
 621:     ASCII-Out:' 1st Flourescent OFF,\' [COM3] 
 622:     ASCII-Out:'1,1,1,0,32896,-1,1' [COM3] 
 623:     X10:  (C-1  basement 1) ON 
 624:     ASCII-Out:'acec:0:btnser:0,0,0,-1,0,-1,\' [COM3] 
 625:     ASCII-Out:'-1,-1,0,0,ACEC01-0' [COM3] 
 626:   End 
 627:     
 628:   EVENT:   
 629:   If 
 630:       ASCII-In:'ACEC01-0' [COM3] 
 631:   Then 
 632:     ASCII-Out:'acec:0:btn:0,0,0,\' [COM3] 
 633:     ASCII-Out:' 1st Flourescent  ON,\' [COM3] 
 634:     ASCII-Out:'1,1,1,0,32896,-1,1' [COM3] 
 635:     X10:  (C-1  basement 1) OFF 
 636:     ASCII-Out:'acec:0:btnser:0,0,0,-1,0,-1,\' [COM3] 
 637:     ASCII-Out:'-1,-1,0,0,ACEC01-1' [COM3] 
 638:   End 
 639:     
 640:   EVENT:   
 641:   If 
 642:       ASCII-In:'ACEC02-1' [COM3] 
 643:   Then 
 644:     X10:  (C-2  ) ON 
 645:   End 
 646:     
 647:   EVENT:   
 648:   If 
 649:       ASCII-In:'ACEC02-0' [COM3] 
 650:   Then 
 651:     X10:  (C-2  ) OFF 
 652:   End 
 653:     
 654:   EVENT:   
 655:   If 
 656:       ASCII-In:'ACEC03-1' [COM3] 
 657:   Then 
 658:     ASCII-Out:'acec:0:btn:0,0,1,\' [COM3] 
 659:     ASCII-Out:'2nd Flourescent OFF,\' [COM3] 
 660:     ASCII-Out:'1,1,1,0,32896,-1,1' [COM3] 
 661:     X10:  (C-3  basement 2) ON 
 662:     ASCII-Out:'acec:0:btnser:0,0,1,-1,0,-1,\' [COM3] 
 663:     ASCII-Out:'-1,-1,0,0,ACEC03-0' [COM3] 
 664:   End 
 665:     
 666:   EVENT:   
 667:   If 
 668:       ASCII-In:'ACEC03-0' [COM3] 
 669:   Then 
 670:     ASCII-Out:'acec:0:btn:0,0,1,\' [COM3] 
 671:     ASCII-Out:'2nd Flourescent ON,\' [COM3] 
 672:     ASCII-Out:'1,1,1,0,32896,-1,1' [COM3] 
 673:     X10:  (C-3  basement 2) OFF 
 674:     ASCII-Out:'acec:0:btnser:0,0,1,-1,0,-1,\' [COM3] 
 675:     ASCII-Out:'-1,-1,0,0,ACEC03-1' [COM3] 
 676:   End 
 677:     
 678:   EVENT:   
 679:   If 
 680:       ASCII-In:'ACEC04-1' [COM3] 
 681:   Then 
 682:     X10:  (C-4  ) ON 
 683:   End 
 684:     
 685:   EVENT:   
 686:   If 
 687:       ASCII-In:'ACEC04-0' [COM3] 
 688:   Then 
 689:     X10:  (C-4  ) OFF 
 690:   End 
 691:     
 692:   EVENT:   
 693:   If 
 694:       ASCII-In:'ACEC11-0' [COM3] 
 695:   Then 
 696:     ASCII-Out:'acec:0:btn:0,0,2,\' [COM3] 
 697:     ASCII-Out:'  Wall Sconces   ON,\' [COM3] 
 698:     ASCII-Out:'1,1,1,0,32896,-1,1' [COM3] 
 699:     X10:  (C-11  sconces) OFF 
 700:     ASCII-Out:'acec:0:btnser:0,0,2,-1,0,-1,\' [COM3] 
 701:     ASCII-Out:'-1,-1,0,0,ACEC11-1' [COM3] 
 702:   End 
 703:     
 704:   EVENT:   
 705:   If 
 706:       ASCII-In:'ACEC11-1' [COM3] 
 707:   Then 
 708:     ASCII-Out:'acec:0:btn:0,0,2,\' [COM3] 
 709:     ASCII-Out:'  Wall Sconces  OFF,\' [COM3] 
 710:     ASCII-Out:'1,1,1,0,32896,-1,1' [COM3] 
 711:     X10:  (C-11  sconces) PRE-Set Level  100% 
 712:     ASCII-Out:'acec:0:btnser:0,0,2,-1,0,-1,\' [COM3] 
 713:     ASCII-Out:'-1,-1,0,0,ACEC11-0' [COM3] 
 714:   End 
 715:     
 716:   EVENT:   
 717:   If 
 718:       ASCII-In:'ACEC11-70' [COM3] 
 719:   Then 
 720:     ASCII-Out:'acec:0:btn:0,0,2,\' [COM3] 
 721:     ASCII-Out:'  Wall Sconces  OFF,\' [COM3] 
 722:     ASCII-Out:'1,1,1,0,32896,-1,1' [COM3] 
 723:     X10:  (C-11  sconces) PRE-Set Level  71 % 
 724:     ASCII-Out:'acec:0:btnser:0,0,2,-1,0,-1,\' [COM3] 
 725:     ASCII-Out:'-1,-1,0,0,ACEC11-0' [COM3] 
 726:   End 
 727:     
 728:   EVENT:   
 729:   If 
 730:       ASCII-In:'ACEC11-50' [COM3] 
 731:   Then 
 732:     ASCII-Out:'acec:0:btn:0,0,2,\' [COM3] 
 733:     ASCII-Out:'  Wall Sconces  OFF,\' [COM3] 
 734:     ASCII-Out:'1,1,1,0,32896,-1,1' [COM3] 
 735:     X10:  (C-11  sconces) PRE-Set Level  52 % 
 736:     ASCII-Out:'acec:0:btnser:0,0,2,-1,0,-1,\' [COM3] 
 737:     ASCII-Out:'-1,-1,0,0,ACEC11-0' [COM3] 
 738:   End 
 739:     
 740:   EVENT:   
 741:   If 
 742:       ASCII-In:'ACEC11-30' [COM3] 
 743:   Then 
 744:     ASCII-Out:'acec:0:btn:0,0,2,\' [COM3] 
 745:     ASCII-Out:'  Wall Sconces  OFF,\' [COM3] 
 746:     ASCII-Out:'1,1,1,0,32896,-1,1' [COM3] 
 747:     X10:  (C-11  sconces) PRE-Set Level  29 % 
 748:     ASCII-Out:'acec:0:btnser:0,0,2,-1,0,-1,\' [COM3] 
 749:     ASCII-Out:'-1,-1,0,0,ACEC11-0' [COM3] 
 750:   End 
 751:     
 752:   EVENT:   
 753:   If 
 754:       ASCII-In:'ACEC12-1' [COM3] 
 755:   Then 
 756:     X10:  (C-12  track 1) ON 
 757:   End 
 758:     
 759:   EVENT:   
 760:   If 
 761:       ASCII-In:'ACEC12-0' [COM3] 
 762:   Then 
 763:     X10:  (C-12  track 1) OFF 
 764:   End 
 765:     
 766:   EVENT:   
 767:   If 
 768:       ASCII-In:'ACEC13-1' [COM3] 
 769:   Then 
 770:     X10:  (C-13  track 2) ON 
 771:   End 
 772:     
 773:   EVENT:   
 774:   If 
 775:       ASCII-In:'ACEC13-0' [COM3] 
 776:   Then 
 777:     X10:  (C-13  track 2) OFF 
 778:   End 
 779:     
 780:   EVENT:   
 781:   If 
 782:       ASCII-In:'ACEC14-1' [COM3] 
 783:   Then 
 784:     X10:  (C-14  track 3) ON 
 785:   End 
 786:     
 787:   EVENT:   
 788:   If 
 789:       ASCII-In:'ACEC14-0' [COM3] 
 790:   Then 
 791:     X10:  (C-14  track 3) OFF 
 792:   End 
 793:     
 794:   EVENT:   
 795:   If 
 796:       ASCII-In:'ACEC-1' [COM3] 
 797:   Then 
 798:     ASCII-Out:'acec:0:btn:0,0,24,\' [COM3] 
 799:     ASCII-Out:'ALL Basement Lights OFF,\' [COM3] 
 800:     ASCII-Out:'1,1,1,0,32896,-1,1' [COM3] 
 801:     X10: C - All Lights ON 
 802:     ASCII-Out:'acec:0:btnser:0,0,24,-1,0,-1,\' [COM3] 
 803:     ASCII-Out:'-1,-1,0,0,ACEC-0' [COM3] 
 804:   End 
 805:     
 806:   EVENT:   
 807:   If 
 808:       ASCII-In:'ACEC-0' [COM3] 
 809:   Then 
 810:     ASCII-Out:'acec:0:btn:0,0,24,\' [COM3] 
 811:     ASCII-Out:'ALL Basement Lights ON,\' [COM3] 
 812:     ASCII-Out:'1,1,1,0,32896,-1,1' [COM3] 
 813:     X10: C - All Lights OFF 
 814:     ASCII-Out:'acec:0:btnser:0,0,24,-1,0,-1,\' [COM3] 
 815:     ASCII-Out:'-1,-1,0,0,ACEC-1' [COM3] 
 816:   End 
 817:     
 818:   EVENT:   
 819:   If 
 820:       ASCII-In:'ACEE01-1' [COM3] 
 821:   Then 
 822:     X10:  (E-1  Basement scene 1) ON 
 823:   End 
 824:     
 825:   EVENT:   
 826:   If 
 827:       ASCII-In:'ACEE01-0' [COM3] 
 828:   Then 
 829:     X10:  (E-1  Basement scene 1) OFF 
 830:   End 
 831:     
 832:   EVENT:   
 833:   If 
 834:       ASCII-In:'ACEE02-1' [COM3] 
 835:   Then 
 836:     X10:  (E-2  ) ON 
 837:   End 
 838:     
 839:   EVENT:   
 840:   If 
 841:       ASCII-In:'ACEE02-0' [COM3] 
 842:   Then 
 843:     X10:  (E-2  ) OFF 
 844:   End 
 845:     
 846:   EVENT:   
 847:   If 
 848:       ASCII-In:'ACEE03-1' [COM3] 
 849:   Then 
 850:     X10:  (E-3  ) ON 
 851:   End 
 852:     
 853:   EVENT:   
 854:   If 
 855:       ASCII-In:'ACEE03-0' [COM3] 
 856:   Then 
 857:     X10:  (E-3  ) OFF 
 858:   End 
 859:     
 860:   EVENT:   
 861:   If 
 862:       ASCII-In:'ACEE04-1' [COM3] 
 863:   Then 
 864:     X10:  (E-4  ) ON 
 865:   End 
 866:     
 867:   EVENT:   
 868:   If 
 869:       ASCII-In:'ACEE04-0' [COM3] 
 870:   Then 
 871:     X10:  (E-4  ) OFF 
 872:   End 
 873:     
 874:   EVENT:  ace temp 
 875:   If 
 876:       ASCII-In:'ACETEMP?' [COM3] 
 877:   Then 
 878:     (V:temp) Load with (HVAC:main stat Temperature ) 
 879:     ASCII-Out:'<temp>' [COM3] 
 880:   End 
 881:     
 882:   EVENT:  test asci in 
 883:   If 
 884:       ASCII-In:'ACEseca' [COM3] 
 885:   Then 
 886:     |-If 
 887:     |  (DI:Sec Armed) is ON 
 888:     |Then 
 889:     |  |-If 
 890:     |  |  (DI:Front Door) is ON 
 891:     |  |  and  (DI:Living room) is ON 
 892:     |  |  and  (DI:KIT & Door) is ON 
 893:     |  |  and  (DI:Back DR) is ON 
 894:     |  |  and  (DI:Bedrooms) is ON 
 895:     |  |  and  (DI:Basement) is ON 
 896:     |  |Then 
 897:     |  |  (F:Alarm Loop)  SET 
 898:     |  |Else 
 899:     |  |  (F:Alarm Loop)  CLEAR 
 900:     |  |- Nest End 
 901:     |  |-If 
 902:     |  |  (DI:Sec Armed) is ON 
 903:     |  |  and  (F:Alarm Loop) is SET 
 904:     |  |Then 
 905:     |  |  (RELAY:ARM relay) ON  
 906:     |  |  DELAY  0:00:01 
 907:     |  |  (RELAY:ARM relay) OFF  
 908:     |  |- Nest End 
 909:     |Else 
 910:     |  (RELAY:ARM relay) ON  
 911:     |  DELAY  0:00:01 
 912:     |  (RELAY:ARM relay) OFF  
 913:     |- Nest End 
 914:   End 
 915:     
 916:   SCHEDULE END   
Device DataBase Listing
IF MACROS
IF Macro: Alarm Loop ok 
  MACRO BEGIN   
  If 
    and  (DI:Front Door) is ON 
    and  (DI:Living room) is ON 
    and  (DI:KIT & Door) is ON 
    and  (DI:Back DR) is ON 
    and  (DI:Bedrooms) is ON 
    and  (DI:Basement) is ON 
  MACRO END 

THEN MACROS
THEN Macro: System Status 
  MACRO BEGIN   
    " Main Menu System Status " 
    Voice:<day hh:mm am/pm> [CO,ICM] 
    Voice:INSIDE TEMPERAT main stat Temperature DEGREES SET TO main stat Setpoint DEGREES  [CO,ICM] SYNC 
    Voice:OUT SIDE TEMPERAT <outtmp>DEGREES  [CO,ICM] SYNC 
    Voice:OUT SIDE HUMIDITY <outRH>PERCENT  [CO,ICM] SYNC 
    |-If 
    |(DI:Sec Armed) is ON 
    |Then 
    |  Voice:SECURITY SYSTEM SILENCEQ ARMED  [CO,ICM] SYNC 
    |Else 
    |  Voice:SECURITY SYSTEM SILENCEQ DISARMED  [CO,ICM] SYNC 
    |- Nest End 
    |-If 
    |(DI:Front Door) is ON 
    |(DI:Living room) is ON 
    |(DI:KIT & Door) is ON 
    |(DI:Back DR) is ON 
    |(DI:Bedrooms) is ON 
    |(DI:Basement) is ON 
    |Then 
    |  Voice:ALL DOOR AND WINDOW CLOSED  [CO,ICM] SYNC 
    |Else 
    |  Voice:A DOOR OR WINDOW IS OPEN  [CO,ICM] SYNC 
    |- Nest End 
    |-If 
    |(F:away mode) is SET 
    |Then 
    |  Voice:AWAY MODE ENABLED  [CO,ICM] SYNC 
    |Else 
    |  Voice:AWAY MODE DISABLED  [CO,ICM] SYNC 
    |- Nest End 
    |-If 
    |(F:Alarm Violation) is SET 
    |Then 
    |  Voice:ALARM HAS BEEN VIOLATED  [CO,ICM] 
    |- Nest End 
  MACRO END 
THEN Macro: HVAC Status 
  MACRO BEGIN   
    Voice:INSIDE TEMPERAT IS main stat Temperature DEGREES  [CO,ICM] 
    Voice:SET TO main stat Setpoint DEGREES  [CO,ICM] 
  MACRO END 
THEN Macro: Change Setpoint 
  MACRO BEGIN   
    Voice:SET TO main stat Setpoint DEGREES ENTER NEW TEMPERAT  [CO,ICM] 
    TouchTone to user_VAR SYNC 
    (V:HVACset)   load with user_VAR 
    |-If 
    |(V:HVACset) < 80 
    |(V:HVACset) > 60 
    |Then 
    |  (HVAC:main stat)  Load Setpoint with value in user_VAR 
    |  Voice:STTRHAIL STTRRDR1 STTRRDR1  [CO,ICM] 
    |  DELAY  0:00:04 
    |  Voice:NEW SET TEMPERAT IS main stat Setpoint DEGREES  [CO,ICM] 
    |Else 
    |  Voice:INVALID ENTRY  [CO,ICM] 
    |- Nest End 
  MACRO END 
THEN Macro: Change HVAC mode 
  MACRO BEGIN   
    (V:HVAC Mode)  INCREMENT 
    |-If 
    |(V:HVAC Mode) = 4 
    |Then 
    |  (V:HVAC Mode)  LOAD with 0 
    |- Nest End 
    |-If 
    |(V:HVAC Mode) = 1 
    |Then 
    |  (HVAC:main stat)  HEAT Mode 
    |  Voice:HEATING MODE  [CO,ICM] 
    |- Nest End 
    |-If 
    |(V:HVAC Mode) = 2 
    |Then 
    |  (HVAC:main stat)  COOL Mode 
    |  Voice:COOLING MODE  [CO,ICM] 
    |- Nest End 
    |-If 
    |(V:HVAC Mode) = 3 
    |Then 
    |  (HVAC:main stat)  AUTO Mode 
    |  Voice:AUTOMATI MODE  [CO,ICM] 
    |- Nest End 
    |-If 
    |(V:HVAC Mode) = 4 
    |Then 
    |  (HVAC:main stat)  OFF Mode 
    |  Voice:OFF MODE  [CO,ICM] 
    |- Nest End 
  MACRO END 
THEN Macro: Fan ON 
  MACRO BEGIN   
    (HVAC:main stat)  Fan ON 
    Voice:FAN ON  [CO,ICM] 
  MACRO END 
THEN Macro: Fan OFF 
  MACRO BEGIN   
    (HVAC:main stat)  Fan OFF 
    Voice:FAN OFF  [CO,ICM] 
  MACRO END 
THEN Macro: Security Status 
  MACRO BEGIN   
    |-If 
    |(DI:Alrm Violate) is ON 
    |Then 
    |  Voice:ALARM STATUS IS VIOLATED  [CO,ICM] 
    |Else 
    |  Voice:ALARM STATUS IS SECURE  [CO,ICM] 
    |- Nest End 
  MACRO END 
THEN Macro: Arm System 
  MACRO BEGIN   
    |-If 
    |(DI:Front Door) is ON 
    |(DI:Living room) is ON 
    |(DI:KIT & Door) is ON 
    |(DI:Back DR) is ON 
    |(DI:Bedrooms) is ON 
    |(DI:Basement) is ON 
    |Then 
    |  (F:Alarm Loop)  SET 
    |Else 
    |  (F:Alarm Loop)  CLEAR 
    |- Nest End 
    |-If 
    |(DI:Sec Armed) is OFF 
    |(F:Alarm Loop) is SET 
    |Then 
    |  (RELAY:ARM relay) ON  
    |  DELAY  0:00:01 
    |  (RELAY:ARM relay) OFF  
    |  Voice:SECURITY SYSTEM ACTIVATD  [Spkr,CO,ICM] SYNC 
    |- Nest End 
    DELAY  0:00:05 
    |-If 
    |CO: Is OFF Hook 
    |ICM: Is OFF Hook 
    |    -AND- 
    |(DI:Sec Armed) is ON 
    |Then 
    |  Voice:SECURITY SYSTEM ARMED  [CO,ICM] 
    |- Nest End 
    |-If 
    |CO: Is OFF Hook 
    |ICM: Is OFF Hook 
    |    -AND- 
    |(DI:Sec Armed) is OFF 
    |Then 
    |  Voice:SECURITY SYSTEM NOT ARMED  [CO,ICM] 
    |- Nest End 
  MACRO END 
THEN Macro: Garage door 
  MACRO BEGIN   
    |- * Frozen * If 
    |(DI:Grage Door) is ON 
    | * Frozen * Then 
    | * Frozen *   Voice:GARAGE DOOR IS OPEN  [CO,ICM] 
    | * Frozen *   Voice:TO CLOSE PRESS 30 3 POUND  [CO,ICM] 
    | * Frozen *   TouchTone to user_VAR SYNC 
    | * Frozen *   (V:counter1)   load with user_VAR 
    |  |- * Frozen * If 
    |  |(V:counter1) = 33 
    |  | * Frozen * Then 
    |  | * Frozen *   Voice:DOOR IN MOTION  [CO,ICM] 
    |  | * Frozen *   (RELAY:garage door) ON  
    |  | * Frozen *   DELAY  0:00:01 
    |  | * Frozen *   (RELAY:garage door) OFF  
    |  |- * Frozen *  Nest End 
    | * Frozen * Else 
    | * Frozen *   Voice:GARAGE DOOR IS CLOSED  [CO,ICM] 
    |- * Frozen *  Nest End 
  MACRO END 
THEN Macro: Auto Lighting 
  MACRO BEGIN   
    Voice:AUTOMATI LIGHTING IS  [CO,ICM] 
    |-If 
    |(F:Auto Lighting) is SET 
    |Then 
    |  Voice:ENABLED  [CO,ICM] 
    |Else 
    |  Voice:DISABLED  [CO,ICM] 
    |- Nest End 
    Voice:TO SELECT AUTOMATI LIGHTING PRESS 1 POUND  [CO,ICM] 
    Voice:TO D SELECT AUTOMATI LIGHTING PRESS 2 POUND  [CO,ICM] 
    Voice:ELSE PRESS 3 POUND  [CO,ICM] 
    TouchTone to user_VAR SYNC 
    (V:counter1)   load with user_VAR 
    |-If 
    |(V:counter1) = 1 
    |Then 
    |  (F:Auto Lighting)  SET 
    |  Voice:AUTOMATI LIGHTING ENABLED  [CO,ICM] 
    |- Nest End 
    |-If 
    |(V:counter1) = 2 
    |Then 
    |  (F:Auto Lighting)  CLEAR 
    |  Voice:AUTOMATI LIGHTING DISABLED  [CO,ICM] 
    |- Nest End 
  MACRO END 
THEN Macro: Toggle Away Mode 
  MACRO BEGIN   
    " not yet Implemented " 
    Voice:NOT ACTIVATD  [CO,ICM] 
  MACRO END 
THEN Macro: DISARM SYSTEM 
  MACRO BEGIN   
    |-If 
    |(DI:Front Door) is ON 
    |(DI:Living room) is ON 
    |(DI:KIT & Door) is ON 
    |(DI:Back DR) is ON 
    |(DI:Bedrooms) is ON 
    |(DI:Basement) is ON 
    |Then 
    |  (F:Alarm Loop)  SET 
    |Else 
    |  (F:Alarm Loop)  CLEAR 
    |- Nest End 
    |-If 
    |(DI:Sec Armed) is ON 
    |(F:Alarm Loop) is SET 
    |Then 
    |  (RELAY:ARM relay) ON  
    |  DELAY  0:00:01 
    |  (RELAY:ARM relay) OFF  
    |  Voice:SECURITY SYSTEM DE_ACTIV  [Spkr,CO,ICM] SYNC 
    |- Nest End 
    DELAY  0:00:05 
    |-If 
    |CO: Is OFF Hook 
    |ICM: Is OFF Hook 
    |    -AND- 
    |(DI:Sec Armed) is OFF 
    |Then 
    |  Voice:SECURITY SYSTEM NOT ARMED  [CO,ICM] 
    |- Nest End 
  MACRO END 
THEN Macro: q disarm system 
  MACRO BEGIN   
    |-If 
    |(DI:Front Door) is ON 
    |(DI:Living room) is ON 
    |(DI:KIT & Door) is ON 
    |(DI:Back DR) is ON 
    |(DI:Bedrooms) is ON 
    |(DI:Basement) is ON 
    |Then 
    |  (F:Alarm Loop)  SET 
    |Else 
    |  (F:Alarm Loop)  CLEAR 
    |- Nest End 
    |-If 
    |(DI:Sec Armed) is ON 
    |(F:Alarm Loop) is SET 
    |Then 
    |  (RELAY:ARM relay) ON  
    |  DELAY  0:00:01 
    |  (RELAY:ARM relay) OFF  
    |- Nest End 
  MACRO END 
THEN Macro: basement lights 
  MACRO BEGIN   
    X10:  (C-11  sconces) PRE-Set Level  77 % 
  MACRO END 
THEN Macro: basement off 
  MACRO BEGIN   
    X10:  (C-11  sconces) PRE-Set Level   0 % 
  MACRO END 
THEN Macro: local system sta 
  MACRO BEGIN   
    " Main Menu System Status " 
    Voice:<day hh:mm am/pm> [Spkr] SYNC 
    Voice:INSIDE TEMPERAT main stat Temperature DEGREES SET TO main stat Setpoint DEGREES  [Spkr] SYNC 
    Voice:OUT SIDE TEMPERAT <outtmp>DEGREES  [Spkr] SYNC 
    |-If 
    |(DI:Sec Armed) is ON 
    |Then 
    |  Voice:SECURITY SYSTEM IS ARMED  [Spkr] SYNC 
    |Else 
    |  Voice:SECURITY SYSTEM IS DISARMED  [Spkr] SYNC 
    |- Nest End 
    |-If 
    |(DI:Front Door) is ON 
    |(DI:Living room) is ON 
    |(DI:KIT & Door) is ON 
    |(DI:Back DR) is ON 
    |(DI:Bedrooms) is ON 
    |(DI:Basement) is ON 
    |Then 
    |  Voice:ALL DOOR AND WINDOW CLOSED  [Spkr] SYNC 
    |Else 
    |  Voice:A DOOR OR WINDOW IS OPEN  [Spkr] SYNC 
    |- Nest End 
    |-If 
    |(F:away mode) is SET 
    |Then 
    |  Voice:AWAY MODE ENABLED  [Spkr] SYNC 
    |Else 
    |  Voice:AWAY MODE DISABLED  [Spkr] SYNC 
    |- Nest End 
    |-If 
    |(F:Alarm Violation) is SET 
    |Then 
    |  Voice:ALARM HAS BEEN VIOLATED  [Spkr] SYNC 
    |- Nest End 
  MACRO END 
THEN Macro: macro 23 
  MACRO BEGIN   
  MACRO END 
THEN Macro: ACEtemp1 
  MACRO BEGIN   
    ASCII-Out:'acec:0:btn:3,0,1,\' [COM3] 
    ASCII-Out:'   HVAC Set to     <HVACset>,\' [COM3] 
    ASCII-Out:'1,1,1,0,32896,-1,0,1' [COM3] 
    ASCII-Out:'acec:0:BTNTRANS:3,0,1,1,1' [COM3] 
    " - " 
    ASCII-Out:'acec:0:btn:3,0,2,\' [COM3] 
    ASCII-Out:' Inside Temprature <temp>,\' [COM3] 
    ASCII-Out:'1,1,1,0,32896,-1,0,1' [COM3] 
    ASCII-Out:'acec:0:BTNTRANS:3,0,2,1,1' [COM3] 
  MACRO END 
THEN Macro: ACEtemp2 
  MACRO BEGIN   
    ASCII-Out:'acec:0:btn:3,0,7,\' [COM3] 
    ASCII-Out:'  Outside Temp      <outtmp>,\' [COM3] 
    ASCII-Out:'1,1,1,0,32896,-1,0,1' [COM3] 
    ASCII-Out:'acec:0:BTNTRANS:3,0,7,1,1' [COM3] 
    " - " 
    ASCII-Out:'acec:0:btn:3,0,8,\' [COM3] 
    ASCII-Out:' Outside Humid      <outRH>%,\' [COM3] 
    ASCII-Out:'1,1,1,0,32896,-1,0,1' [COM3] 
    ASCII-Out:'acec:0:BTNTRANS:3,0,8,1,1' [COM3] 
  MACRO END 

X10 DEVICES  (trimed)
House,Unit,Device Name,Location,Description,Inital,Type,R,P,F
C,1,basement 1,basement,basement 1st set of lights,No Change,APPLIANCE,N,N,N 
C,2,,,,No Change,LAMP,N,N,N 
C,3,basement 2,basement,basement 2nd set of lights,No Change,APPLIANCE,N,N,N 
C,4,,,,No Change,LAMP,N,N,N 
C,5,,,,No Change,LAMP,N,N,N 
C,6,,,,No Change,LAMP,N,N,N 
C,7,,,,No Change,LAMP,N,N,N 
C,8,,,,No Change,LAMP,N,N,N 
C,9,,,,No Change,LAMP,N,N,N 
C,10,,,,No Change,LAMP,N,N,N 
C,11,sconces,tv area,Basement wall sconces,No Change,LAMP,N,N,N 
C,12,track 1,tv area,Basement Track lights,No Change,LAMP,N,N,N 
C,13,track 2,tv area, Basement Track lights,No Change,LAMP,N,N,N 
C,14,track 3,pc area, Basement Track lights,No Change,LAMP,N,N,N 
C,15,,,,No Change,LAMP,N,N,N 
C,16,,,,No Change,LAMP,N,N,N 
D,1,Timer 1,,,No Change,LAMP,N,N,N 
D,2,Timer 2,,,No Change,LAMP,N,N,N 
D,3,Timer 3,,,No Change,LAMP,N,N,N 
D,4,Timer 4,,,No Change,LAMP,N,N,N 
D,15,Outside Lights,outside,Loghts on outside steps,No Change,APPLIANCE,N,N,N 
D,16,,,,No Change,LAMP,N,N,N 
E,1,Basement scene 1,,Basement scene 1,No Change,LAMP,N,N,N 
TIMERS
Name            Description 
----------------------------------------------- 
counter 1                                         
Phone2spkTimer                                    
photodark                                         
photobright                                       
Time Labels 
----------------------------------------------- 
Name: getting dark 
Description:  
Time Based on: Sunset plus(+) 0:20 

Flag Devices
Name            Description                    Inital Value 
----------------------------------------------------------- 
ifthen1                                           CLEAR 
ifthen2                                           CLEAR 
ifthen3                                           CLEAR 
ifthen4                                           CLEAR 
ifthen5                                           CLEAR 
ifthen6                                           CLEAR 
ifthen7                                           CLEAR 
ifthen8                                           CLEAR 
ifthen9                                           CLEAR 
Auto Lighting                                     CLEAR 
Vacation Mode                                     CLEAR 
Alarm Violation                                   CLEAR 
Alarm Loop                                        CLEAR 
away mode                                         CLEAR 
KEACCY1                                           CLEAR 
KEACCY2                                           CLEAR 
KEACCY3                                           CLEAR 
KEACCY4                                           CLEAR 
KEACCY5                                           CLEAR 
KEACCY6                                           CLEAR 
KEACCY7                                           CLEAR 
Doorbell                                          CLEAR 
INTERCOM                                          CLEAR 
ICM off hook                                      CLEAR 
ace1                                              CLEAR 
ace2                                              CLEAR 
ace3                                              CLEAR 
ace4                                              CLEAR 
ace5                                              CLEAR 
ace6                                              CLEAR 
ace7                                              CLEAR 
ace8                                              CLEAR 
ace9                                              CLEAR 
ace10                                             CLEAR 
ace11                                             CLEAR 
ace12                                             CLEAR 
ace13                                             CLEAR 
ace14                                             CLEAR 
ace15                                             CLEAR 
ace16                                             CLEAR 
ace17                                             CLEAR 
ace18                                             CLEAR 
ace19                                             CLEAR 
ace20                                             CLEAR 
after11:30                                        CLEAR 
announcecid                                       CLEAR 
Variables
Name            Description                    Inital Value
----------------------------------------------------------- 
HVACset                                               0 
HVAC Mode                                             0 
counter1                                              0 
mesages                                               0 
temp                                                  0 
RH                                                    0 
TCM+
----------------------------------------------------------- 
Digitial In-1: Sec Armed       Digitial In- 9:                 	   Relay-1: relay 1         
Digitial In-2: FIRE output      Digitial In-10: DoorBell          Relay-2: relay 2         
Digitial In-3: Alrm Violate     Digitial In-11: Front Door       Relay-3: relay 3         
Digitial In-4: Loop closed     Digitial In-12: Living room      Relay-4: relay 4         
Digitial In-5:                  	 Digitial In-13: KIT & Door       Relay-5:                 
Digitial In-6:                 	 Digitial In-14: Back DR          Relay-6: speaker 1       
Digitial In-7:                  	 Digitial In-15: Bedrooms         Relay-7: speaker 2       
Digitial In-8:                  	 Digitial In-16: Basement         Relay-8: ARM relay       
A/D-1: outtmp           Gain = 1   Offset = 0
A/D-2: outRH            Gain = 1   Offset = 0
A/D-3: outlight         Gain = 1   Offset = 0