Compare commits

..

1 Commits

Author SHA1 Message Date
Stuart
cb95adac4a MSA-925: Device Type has Buttons to test each of the 5 sounds as well as the usual capability alarm functions. The default sound for the siren can be changed via the device parameters (Defaults to the Emergency Sound)
This Siren is a re-branded Phileo PH-PSE02-EU siren. the device handler works with both devices. Phileo Support provided the correct method for sounding the different sounds.
2016-03-05 12:20:19 -06:00

View File

@@ -10,20 +10,18 @@
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License
* for the specific language governing permissions and limitations under the License.
*
* Dlink DCH-Z510
* Zipato/Phileo PH-PSE02-EU Siren
*
* Author: fuzzysb
* Date: 2015-01-05
*/
preferences {
preferences {
input "defaultSound", "enum", title: "Default Sound to use for the Siren?", options: ["Emergency","FireAlarm","Ambulance","PoliceCar","DoorChime"], required: false, defaultValue: "Emergency"
}
metadata {
definition (name: "Dlink DCH-Z510", namespace: "fuzzysb", author: "Stuart Buchanan") {
definition (name: "Zipato PH-PSE02-EU", namespace: "fuzzysb", author: "Stuart Buchanan") {
capability "Actuator"
capability "Alarm"
capability "Switch"
@@ -164,6 +162,7 @@ def both() {
on()
}
def on() {
log.debug("Sounding Siren")
switch ( settings.defaultSound ) {