Just wanted you to know how I accomplished this… using your code but I did it all to 1 second intervals… with no “wait” and did it for 100 times. Basically, I took a physical device Leviton Plug that has the little button on it to turn it off and on… and when I either press that button (using it as a panic button) OR when I turn it on in my Smart Things app, the outside lights (back and front) and a few inside lights click on and off 100 times. I tried it with a virtual plug but couldn’t get it to work. I have either GE or Leviton paddle switches (not dimmer switches) , but in wall, like yours… In my 55 and over community, the security team looks for flashing lights to go assist people who need help. I will probably also use this switch as something to trigger if the house is ever burgled when in away mode (hoping to scare off the bad guys). (Initially the homes were built with a panic switch but I had to take that out when I put in my zwave switch so it’s kind of bugged me that I didn’t have a replacement for that functionality. So thank you very much for sharing your code!