Hue: Re-add Hue bridge if deleted

-Add Hue Bridge if missing during deviceSync
This commit is contained in:
Lars Finander
2017-03-14 19:28:15 -06:00
parent 79c254cfac
commit 74552420ba

View File

@@ -472,8 +472,6 @@ def addBridge() {
log.error "Failed to create Hue Bridge device" log.error "Failed to create Hue Bridge device"
} }
} }
} else {
log.debug "found ${d.displayName} with id $selectedHue already exists"
} }
} }
} }
@@ -715,6 +713,9 @@ def doDeviceSync(){
log.warn "state.updating failed to clear" log.warn "state.updating failed to clear"
} }
if (selectedHue) {
addBridge()
}
convertBulbListToMap() convertBulbListToMap()
poll() poll()
ssdpSubscribe() ssdpSubscribe()