diff --git a/devicetypes/smartthings/zwave-siren.src/zwave-siren.groovy b/devicetypes/smartthings/zwave-siren.src/zwave-siren.groovy index f9ed139e9c8..c50305095b3 100644 --- a/devicetypes/smartthings/zwave-siren.src/zwave-siren.groovy +++ b/devicetypes/smartthings/zwave-siren.src/zwave-siren.groovy @@ -115,7 +115,7 @@ def initialize() { def configure() { log.debug "config" def cmds = [] - if (zwaveInfo.mfr == "0258" && zwaveInfo.model == "1088") { + if (zwaveInfo.mfr == "0131" && zwaveInfo.model == "1083") { // Set alarm volume to 2 (medium) cmds << zwave.configurationV1.configurationSet(parameterNumber: 1, size: 1, configurationValue: [2]).format() cmds << "delay 500" @@ -136,13 +136,16 @@ def poll() { } } +def on() { + log.debug "sending on" + def on() { log.debug "sending on" // ICP-5323: Zipato siren sometimes fails to make sound for full duration // Those alarms do not end with Siren Notification Report. // For those cases we add additional state check after alarm duration to // synchronize cloud state with actual device state. - if (zwaveInfo.mfr == "0258" && zwaveInfo.model == "1088") { + if (zwaveInfo.mfr == "0131" && zwaveInfo.model == "1083") { [ zwave.basicV1.basicSet(value: 0xFF).format(), zwave.basicV1.basicGet().format(), @@ -156,6 +159,7 @@ def on() { ] } } +} def off() { log.debug "sending off"