Merge pull request #1270 from jackchi/cree-schedule-fix

[CHF-374] Better healthPoll scheduling for Cree Bulb
This commit is contained in:
Jack Chi
2016-10-04 16:13:10 -07:00
committed by GitHub

View File

@@ -97,13 +97,14 @@ def refresh() {
}
def healthPoll() {
log.debug "healthPoll()"
def cmds = zigbee.onOffRefresh() + zigbee.levelRefresh()
cmds.each{ sendHubCommand(new physicalgraph.device.HubAction(it))}
}
def configure() {
unschedule()
schedule("0 0/5 * * * ? *", "healthPoll")
runEvery5Minutes("healthPoll")
log.debug "Configuring Reporting and Bindings."
// Device-Watch allows 2 check-in misses from device
sendEvent(name: "checkInterval", value: 60 * 12, displayed: false, data: [protocol: "zigbee", hubHardwareId: device.hub.hardwareID])