mirror of
https://github.com/mtan93/SmartThingsPublic.git
synced 2026-03-18 21:03:39 +00:00
Compare commits
7 Commits
PROD_2017.
...
MSA-2138-1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8263a6bd8a | ||
|
|
215253d6d3 | ||
|
|
47eedf5770 | ||
|
|
3d0dbc57a1 | ||
|
|
f96ae94d12 | ||
|
|
de5f0683d3 | ||
|
|
5e787dd0e3 |
@@ -133,8 +133,8 @@ def updated() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
def initialize() {
|
def initialize() {
|
||||||
// Arrival sensors only goes OFFLINE when Hub is off
|
// Device only goes OFFLINE when Hub is off
|
||||||
sendEvent(name: "DeviceWatch-Enroll", value: JsonOutput.toJson([protocol: "zigbee", scheme:"untracked"]), displayed: false)
|
sendEvent(name: "DeviceWatch-Enroll", value: JsonOutput.toJson([protocol: "zwave", scheme:"untracked"]), displayed: false)
|
||||||
|
|
||||||
def zwMap = getZwaveInfo()
|
def zwMap = getZwaveInfo()
|
||||||
def buttons = 4 // Default for Key Fob
|
def buttons = 4 // Default for Key Fob
|
||||||
|
|||||||
@@ -111,7 +111,6 @@ def configure() {
|
|||||||
return cmds
|
return cmds
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
def installed() {
|
def installed() {
|
||||||
initialize()
|
initialize()
|
||||||
}
|
}
|
||||||
@@ -121,7 +120,7 @@ def updated() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
def initialize() {
|
def initialize() {
|
||||||
// Arrival sensors only goes OFFLINE when Hub is off
|
// Device only goes OFFLINE when Hub is off
|
||||||
sendEvent(name: "DeviceWatch-Enroll", value: JsonOutput.toJson([protocol: "zigbee", scheme:"untracked"]), displayed: false)
|
sendEvent(name: "DeviceWatch-Enroll", value: JsonOutput.toJson([protocol: "zwave", scheme:"untracked"]), displayed: false)
|
||||||
sendEvent(name: "numberOfButtons", value: 4)
|
sendEvent(name: "numberOfButtons", value: 4)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ def createEvents(physicalgraph.zwave.commands.batteryv1.BatteryReport cmd) {
|
|||||||
|
|
||||||
def poll() {
|
def poll() {
|
||||||
if (secondsPast(state.lastbatt, 36*60*60)) {
|
if (secondsPast(state.lastbatt, 36*60*60)) {
|
||||||
return zwave.batteryV1.batteryGet().format
|
return zwave.batteryV1.batteryGet().format()
|
||||||
} else {
|
} else {
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user