Updated heartbeat for OSRAM bulb and Smartpower Outlet

-OSRAM bulb config updated to make it check in every 5 min
-Update attribute heartbeat once after configuration is done
-Store timestamp each time data is received from device
-Removed polling from OSRAM bulb
This commit is contained in:
larsfinander
2015-08-06 12:16:30 -07:00
parent ab75af8cf2
commit b1368af37e

View File

@@ -111,7 +111,7 @@ def refresh() {
def configure() {
def configCmds = [
"zdo bind 0x${device.deviceNetworkId} 1 1 6 {${device.zigbeeId}} {}", "delay 200",
"zdo bind 0x${device.deviceNetworkId} 1 1 0xB04 {${device.zigbeeId}} {}"
"zdo bind 0x${device.deviceNetworkId} 1 1 0xB04 {${device.zigbeeId}} {}", "delay 200"
]
return configCmds + refresh() // send refresh cmds as part of config
}