![]() |
|
How to Flash Lights on and Off during Intruder Alarm - Printable Version +- Comfort Automation/ Security System Forums (https://www.comfortforums.com) +-- Forum: Support (https://www.comfortforums.com/forum-2.html) +--- Forum: Questions on Programming Comfort (https://www.comfortforums.com/forum-83.html) +--- Thread: How to Flash Lights on and Off during Intruder Alarm (/thread-1681.html) |
- slychiu - 11-26-2009 This example shows how to cause lights to Flash during an Intruder Alarm. When the alarm is disarmed, the Lights stop flashing and remain at the last state Response FlashLightsOn Do Output1ON Do Output2ON Do FlashLightsOff After 1 Seconds Using Timer01 Response FlashLightsOff Do Output1OFF Do Output2OFF Do FlashLightsOn After 1 Seconds Using Timer01 In the example Outputs 1 and 2 are switched on in FlashLightsOn and are switched off in FlashLightsOff Response after 1 second Outputs are used in this example but in a real situation, C-Bus, KNX or other lights can be switched on and off in this way Timer 1 is used to insert a delay between FlashLightsOn and FlashLightsOff In FlashLightsOff, Timer 1 starts a 1 second delay to FlashLightsOn, hence the flashing keeps repeating endlessly The flashing will stop when the Timer is stopped. Hence the Response StopFlashTimer Stop Timer 1 The Alarm Type Intruder Alarm Response is assigned to FlashLightsOn so it starts the flashing ofd the lights The Alarm Type System Disarmed is assigned to StopFlashTimer Hence when the system is disarmed it stops the flashing timer, hence the flashing stops with the lights in the last state You can switch off lights as well as stopping the timer but this is not recommended as the whole place will suddenly become dark especially at night. Better to switch on all lights when stopping the timer The example response is attached |