How to Discover Hub using UPnP

Does anyone know how the Hubitat app is able to discover the Hub automatically (when on the same network)? Is it using SSDP/UPNP?

I found a UPNP app and looked to see my Hub could be seen.. but, nothing.

upnp isn't turned on in HE. Your better bet is to simply use DHCP to assign a reserved IP address (recommended anyway).

Hubs will respond to ssdp...

Awesome! thanks.. I installed UPnP Browser on my phone and it found my hub right away.

The Mac UPNP app I was using must not have been looking for everything since it never found the hub.

@mike.maxwell - by any chance did something change in regards to UPnP support?

I noticed that I'm detecting the Hubitat Hub but the IP address isn't accurate.. I'm on a 192.168.0.X network.. I'm not even sure what that 169.254.10.X network is but it's definitely not the correct IP address.

 discoverHub: found: http://169.254.10.94:80/api/hubitat.xml, UPnPDevice(rawString=HTTP/1.1 200 OK  CACHE-CONTROL: max-age=1800  LOCATION: http://169.254.10.94:80/api/hubitat.xml  ST: urn:Hubitat:device:hub:1  NTS: Home  USN: uuid:e81a7f36-9fac-4716-adc5-132fc9092e8a    , url=http://169.254.10.94:80/api/hubitat.xml, server=null, mProperties=
{
    upnp_nts=Home,
    upnp_cache-control=max-age=1800,
    upnp_st=urn:Hubitat:device:hub:1,
    upnp_location=http://169.254.10.94:80/api/hubitat.xml,
    upnp_usn=uuid:e81a7f36-9fac-4716-adc5-132fc9092e8a
})

Well this might explain it.. but not sure where this IP is coming from. I access my hub using http://192.168.0.210 and it gets this via DHCP

last note -- looks like I should have searched for this issue first since it's here: Hubitat IP address getting replaced - #9 by fdelima

I thought it was a UPnP issue but really unrelated to that

169.x is a default ip when the hub (or other devices) don't get an address from DHCP... Shut down the hub, unplug it at the wall for 5 mins and power back up and see if it corrects itself.

2 Likes

Download the Hubitat app