Skip to content

Commit

Permalink
[ICP-5298] DTH hotfix, update mfr/model checks. (SmartThingsCommunity…
Browse files Browse the repository at this point in the history
  • Loading branch information
ALamchaS authored and greens committed Jul 18, 2018
1 parent e08c080 commit 20aad8f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions devicetypes/smartthings/zwave-siren.src/zwave-siren.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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(),
Expand All @@ -156,6 +159,7 @@ def on() {
]
}
}
}

def off() {
log.debug "sending off"
Expand Down

0 comments on commit 20aad8f

Please sign in to comment.