mirror of
https://github.com/mtan93/SmartThingsPublic.git
synced 2026-03-08 05:31:56 +00:00
Merge pull request #1905 from workingmonk/log/hue_logs
CELL-139 Hue logging to detect hue pairing
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user