mirror of
https://github.com/mtan93/SmartThingsPublic.git
synced 2026-03-22 13:20:53 +00:00
[CHF-374] Better healthPoll scheduling for Cree Bulb
This commit is contained in:
@@ -97,13 +97,14 @@ def refresh() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
def healthPoll() {
|
def healthPoll() {
|
||||||
|
log.debug "healthPoll()"
|
||||||
def cmds = zigbee.onOffRefresh() + zigbee.levelRefresh()
|
def cmds = zigbee.onOffRefresh() + zigbee.levelRefresh()
|
||||||
cmds.each{ sendHubCommand(new physicalgraph.device.HubAction(it))}
|
cmds.each{ sendHubCommand(new physicalgraph.device.HubAction(it))}
|
||||||
}
|
}
|
||||||
|
|
||||||
def configure() {
|
def configure() {
|
||||||
unschedule()
|
unschedule()
|
||||||
schedule("0 0/5 * * * ? *", "healthPoll")
|
runEvery5Minutes("healthPoll")
|
||||||
log.debug "Configuring Reporting and Bindings."
|
log.debug "Configuring Reporting and Bindings."
|
||||||
// Device-Watch allows 3 check-in misses from device. 300 seconds x 3 = 15min
|
// Device-Watch allows 3 check-in misses from device. 300 seconds x 3 = 15min
|
||||||
sendEvent(name: "checkInterval", value: 900, displayed: false, data: [protocol: "zigbee"])
|
sendEvent(name: "checkInterval", value: 900, displayed: false, data: [protocol: "zigbee"])
|
||||||
|
|||||||
Reference in New Issue
Block a user