Cowboys0918 Posted April 11, 2016 Share Posted April 11, 2016 Yes, I have a request that when the Alarm tiggers "Trouble" to Flicker the outdoor lighting so everyone can see it? having some issues setting this one up. I want toto repeat until the event has been disable. Thank you in advance. Link to comment Share on other sites More sharing options...
OneEye95 Posted April 11, 2016 Share Posted April 11, 2016 Find the action "when alarm state changes" then add the loop "While alarm state is 'trouble'..." to the script. Then indented under it put Toggle Exterior Lights, and whatever you want your delay to be. Here's an example: When alarm state changes... While alarm state is "trouble"... Toggle Exterior Lights Delay 1500 milliseconds That means while your alarm is in trouble, every second and a half your lights will turn on or off. You can also do a flashing lighting scene, or a repeating timer. Link to comment Share on other sites More sharing options...
Cowboys0918 Posted April 11, 2016 Author Share Posted April 11, 2016 Thank you Link to comment Share on other sites More sharing options...
Cyknight Posted April 11, 2016 Share Posted April 11, 2016 Please avoid using WHILE statements. Use a timer instead, whatever interval you want, repeating WHEN security is in alarm -reset timer WHEN security is in alarm cleard -stop timer WHEN timer expires Toggle light (or lighting scene) If you want it in any trouble, use the above stated option, though some drivers have a direct option for trouble and trouble cleared (ie new Superbus driver) Link to comment Share on other sites More sharing options...
OneEye95 Posted April 11, 2016 Share Posted April 11, 2016 4 minutes ago, Cyknight said: Please avoid using WHILE statements. I've only beven a Control4 Programmer for about 6 months, but before that I played with it for about 18 months. Why shouldn't you use WHILE statements? Link to comment Share on other sites More sharing options...
Cyknight Posted April 11, 2016 Share Posted April 11, 2016 WHILE statements have a risk of creating infinite loops for one, but even at best they are more process intensive, cause slowdown on other parts in the system and what can happen here specifically is that the toggle will continue for some time after the trouble or alarm state has been cleared. In general WHILE statements on programming should just be avoided - a (repeating) timer will do the exact same thing with less (virtually no) risk in almost any circumstance. Add to that the fact that using a timer allows you to dynamically change the interval (ie when fire alarm goes of, set interval to 100 ms so as to have it flash much faster indicating a REAL issue vs a mere 'trouble' due to a supervisory) AND can be triggered from multiple locations (try adding a while like you had, then add the same programming to WHEN fire alarm goes off - make a backup first!) To top that off - WHILE statements aren't even available in HE. If not for a select few specific cases and legacy support, I suspect C4 would remove the option from PRO as well. Don't take this is the wrong way - heck it may not apply to you for all I know, but only a very small percentage of control4 dealer/programmers should touch WHILE statements at all - and those know better than to use it. Use the timer agent. Link to comment Share on other sites More sharing options...
OneEye95 Posted April 11, 2016 Share Posted April 11, 2016 1 hour ago, Cyknight said: Add to that the fact that using a timer allows you to dynamically change the interval (ie when fire alarm goes of, set interval to 100 ms so as to have it flash much faster indicating a REAL issue vs a mere 'trouble' due to a supervisory) AND can be triggered from multiple locations. I didn't know you could program the interval to change. I'll have to play with that. Thanks for the advice. Link to comment Share on other sites More sharing options...
control.four Posted April 11, 2016 Share Posted April 11, 2016 I don't know if there is an option for C4 lights but Lutron Ra2 allows for a security setting that allows you to flash (example outside) lights and fix to On (for example inside) lights if the alarm is triggered. Sent from my iPhone using Tapatalk Link to comment Share on other sites More sharing options...
mstafford388 Posted April 11, 2016 Share Posted April 11, 2016 You can very easily create a flashing light loop within Control4. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.