Skip to content

Commit

Permalink
ICP-11574 Manually set smoke alarm wakeup interval to 4 hours (#44128)
Browse files Browse the repository at this point in the history
* ICP-11574 Manually set smoke alarm wakeup interval to 4 hours

* don't set wakeupinterval for first alert, since there is legacy behavior
  • Loading branch information
greens authored Sep 17, 2020
1 parent 6d33180 commit 83a00a7
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -252,5 +252,6 @@ def initialPoll() {
// check initial battery and smoke sensor state
request << zwave.batteryV1.batteryGet()
request << zwave.sensorBinaryV2.sensorBinaryGet(sensorType: zwave.sensorBinaryV2.SENSOR_TYPE_SMOKE)
if (zwaveInfo.mfr != "0138") request << zwave.wakeUpV1.wakeUpIntervalSet(seconds: 4*60*60, nodeid: zwaveHubNodeId)
commands(request, 500) + ["delay 6000", command(zwave.wakeUpV1.wakeUpNoMoreInformation())]
}

0 comments on commit 83a00a7

Please sign in to comment.