insert into macroheader values ('OUTSIDELIGHTSTAT','Outside Lights Status Update',0,0,1); insert into macrodetail values ('OUTSIDELIGHTSTAT',1,27,'',NULL,'if([LOCAL10] = 0,"DEV OFF","DEV ON")',0,''); insert into macrodetail values ('OUTSIDELIGHTSTAT',2,26,'',NULL,'DEV ON',0,''); insert into macrodetail values ('OUTSIDELIGHTSTAT',3,35,'KPD-GRGLED',17,'',0,''); insert into macrodetail values ('OUTSIDELIGHTSTAT',4,16,'',NULL,'6',0,''); insert into macrodetail values ('OUTSIDELIGHTSTAT',5,26,'',NULL,'DEV OFF',0,''); insert into macrodetail values ('OUTSIDELIGHTSTAT',6,16,'',NULL,'if(ph_getinsteonstat("GRGPOTSWITCH")=1 AND ph_getinsteonstat("FRONTDOORLIGHT")=1,1,3)',0,''); insert into macrodetail values ('OUTSIDELIGHTSTAT',7,35,'KPD-GRGLED',19,'',0,''); insert into macrodetail values ('OUTSIDELIGHTSTAT',8,16,'',NULL,'2',0,''); insert into macrodetail values ('OUTSIDELIGHTSTAT',9,35,'KPD-GRGLED',17,'',0,''); insert into macrodetail values ('OUTSIDELIGHTSTAT',10,36,'',NULL,'"OUTSIDELIGHTSTAT - DEV: " + "[LOCAL7]" + " CMD: " + if([LOCAL10] = 0,"DEV OFF","DEV ON") + "ACT: " + if(ph_getinsteonstat("GRGPOTSWITCH")=1 AND ph_getinsteonstat("FRONTDOORLIGHT")=1,"OFF","ON")',0,''); insert into macrodetail values ('OUTSIDELIGHTSTAT',11,36,'',NULL,'"[LOCAL7]" + " 8:" + "[LOCAL8]" + " 9:" + "[LOCAL9]" + " 10:" + "[LOCAL10] "',0,'');