# Aeon siren as door chime

**URL:** <https://community.smartthings.com/t/aeon-siren-as-door-chime/25349>\
**Category:** Automation Ideas\
**Created:** [October 7, 2015, 3:41pm UTC](https://community.smartthings.com/t/aeon-siren-as-door-chime/25349 "2015-10-07T15:41:09Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Kristopher](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/kristopher/32/15578_2.png) [@Kristopher](https://community.smartthings.com/u/Kristopher)\
**Post date:** [October 7, 2015, 3:55pm UTC](https://community.smartthings.com/t/aeon-siren-as-door-chime/25349/3 "2015-10-07T15:55:35Z")

</div>

I do exactly this. I created a virtual switch called “Beep”. I then turn on “Beep” via Smart Lighting for door opens, etc.

In addition, I have a small bit of code that actually ties the virtual switch to the the siren. It’s really easy.

```
/**
 * Siren Beep
 *
 */
definition(
    name: "Siren Beep",
    namespace: "KristopherKubicki",
    author: "kristopher@acm.org",
    description: "Quickly Pulse a Siren",
    category: "My Apps",
    iconUrl: "https://s3.amazonaws.com/smartapp-icons/Developers/whole-house-fan.png",
    iconX2Url: "https://s3.amazonaws.com/smartapp-icons/Developers/whole-house-fan@2x.png")

preferences {
	section("Sirens"){
		input "sirens", "capability.alarm", title: "Which?", required: true, multiple: true
	}
	section("Virtual Switch"){
		input "dswitch", "capability.switch", title: "Which?", required: true, multiple: false
	}
}

def installed() {
   initialized()
}

def updated() {
	unsubscribe()
    initialized()
}

def initialized() {
    subscribe(dswitch, "switch.on", switchHandler)

}

def switchHandler(evt) {
    sirens?.siren()
  	dswitch.off()
    sirens?.off()

}
```

---

_[View the full topic](https://community.smartthings.com/t/aeon-siren-as-door-chime/25349)._
