Merge pull request #1905 from workingmonk/log/hue_logs

CELL-139 Hue logging to detect hue pairing
This commit is contained in:
Vinay Rao
2017-04-13 16:31:45 -07:00
committed by GitHub

View File

@@ -73,7 +73,7 @@ def bridgeDiscovery(params = [:]) {
}
ssdpSubscribe()
log.trace "bridgeRefreshCount: $bridgeRefreshCount"
//bridge discovery request every 15 //25 seconds
if ((bridgeRefreshCount % 5) == 0) {
discoverBridges()
@@ -207,6 +207,7 @@ def bulbDiscovery() {
}
private discoverBridges() {
log.trace "Sending Hue Discovery message to the hub"
sendHubCommand(new physicalgraph.device.HubAction("lan discovery urn:schemas-upnp-org:device:basic:1", physicalgraph.device.Protocol.LAN))
}