Commit 87b6715 1 parent d6a9631 commit 87b6715 Copy full SHA for 87b6715
File tree 1 file changed +5
-0
lines changed
smartapps/smartthings/hue-connect.src
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -722,6 +722,11 @@ private getBridgeIP() {
722
722
if (host == null || host == " " ) {
723
723
def serialNumber = selectedHue
724
724
def bridge = getHueBridges(). find { it?. value?. serialNumber?. equalsIgnoreCase(serialNumber) }?. value
725
+ if (! bridge) {
726
+ // failed because mac address sent from hub is wrong and doesn't match the hue's real mac address and serial number
727
+ // in this case we will look up the bridge by comparing the incorrect mac addresses
728
+ bridge = getHueBridges(). find { it?. value?. mac?. equalsIgnoreCase(serialNumber) }?. value
729
+ }
725
730
if (bridge?. ip && bridge?. port) {
726
731
if (bridge?. ip. contains(" ." ))
727
732
host = " ${ bridge?.ip} :${ bridge?.port} "
You can’t perform that action at this time.
0 commit comments