I want to cycle lights on and off while away, at night. It seems strangely complex to do. The below seems to work (there is another section which sets "Dark" between sunset and sunrise).
Posting to see if there's a better overall approach I am missing (e.g. if I want 5 or so sets of lights doing this, it is 5x this much code).
================== Cycle Bar Lights On when Armed - Away =================
Uses outputs 205 and 206
Cycle in a 10 minute on, 3 off period
WHENEVER HomeArea (Area 1) IS ARMED AWAY
THEN TURN Output 206 ON FOR 10 MINS
THEN TURN Output 205 OFF
WHENEVER Output 206 STATE IS TURNED OFF
AND HomeArea (Area 1) IS ARMED AWAY
THEN TURN Output 205 ON FOR 3 MINS
WHENEVER Output 205 STATE IS TURNED OFF
AND HomeArea (Area 1) IS ARMED AWAY
THEN TURN Output 206 ON FOR 10 MINS
WHENEVER Output 206 STATE IS TURNED ON
AND Dark (Counter 1) IS EQUAL TO 1
THEN TURN Bar Lights [1 (A1)] ON, FADE RATE = 0 FOR 10 MINS
Posting to see if there's a better overall approach I am missing (e.g. if I want 5 or so sets of lights doing this, it is 5x this much code).
================== Cycle Bar Lights On when Armed - Away =================
Uses outputs 205 and 206
Cycle in a 10 minute on, 3 off period
WHENEVER HomeArea (Area 1) IS ARMED AWAY
THEN TURN Output 206 ON FOR 10 MINS
THEN TURN Output 205 OFF
WHENEVER Output 206 STATE IS TURNED OFF
AND HomeArea (Area 1) IS ARMED AWAY
THEN TURN Output 205 ON FOR 3 MINS
WHENEVER Output 205 STATE IS TURNED OFF
AND HomeArea (Area 1) IS ARMED AWAY
THEN TURN Output 206 ON FOR 10 MINS
WHENEVER Output 206 STATE IS TURNED ON
AND Dark (Counter 1) IS EQUAL TO 1
THEN TURN Bar Lights [1 (A1)] ON, FADE RATE = 0 FOR 10 MINS