diff --git a/devicetypes/smartthings/cree-bulb.src/cree-bulb.groovy b/devicetypes/smartthings/cree-bulb.src/cree-bulb.groovy index 106a49c..2ea9bd4 100644 --- a/devicetypes/smartthings/cree-bulb.src/cree-bulb.groovy +++ b/devicetypes/smartthings/cree-bulb.src/cree-bulb.groovy @@ -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])