mirror of
https://github.com/mtan93/SmartThingsPublic.git
synced 2026-04-02 22:04:40 +01:00
CELL-139 Hue logging to detect hue pairing
This commit is contained in:
@@ -73,7 +73,7 @@ def bridgeDiscovery(params = [:]) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ssdpSubscribe()
|
ssdpSubscribe()
|
||||||
|
log.trace "bridgeRefreshCount: $bridgeRefreshCount"
|
||||||
//bridge discovery request every 15 //25 seconds
|
//bridge discovery request every 15 //25 seconds
|
||||||
if ((bridgeRefreshCount % 5) == 0) {
|
if ((bridgeRefreshCount % 5) == 0) {
|
||||||
discoverBridges()
|
discoverBridges()
|
||||||
@@ -207,6 +207,7 @@ def bulbDiscovery() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private discoverBridges() {
|
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))
|
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