Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Auto discovery of Hue bridges

Project description

The MIT License

Discovery of hue bridges per the Philips design guide.

Use discoverhue to find the IP addresses of all hue bridges on the LAN. If previously known bridge serial numbers are provided then the returned info will be filtered. Alternatively, serial numbers and last known IP addresses pairs may be provided. In this case, the provided addresses will be checked first and the discovery methods will only be executed if unmatched bridges remain.

Currently, discoverhue implements options one,two, and three of the Hue Bridge Discovery Guide available with registration at MeetHue.


pip install discoverhue


Execute discovery and return a dictionary of all found bridges:

import discoverhue
found = discoverhue.find_bridges()
for bridge in found:
    print('    Bridge ID {br} at {ip}'.format(br=bridge, ip=found[bridge]))

Execute discovery and return a filtered list of bridges:

# using a list, matches will be removed from search_id
search_id = ['0017884e7dad', '001788102201']
found = discoverhue.find_bridges(search_id)

# using a set, matches will be removed from search_id
search_id = {'0017884e7dad', '001788102201'}
found = discoverhue.find_bridges(search_id)

# using a tuple, immutable so matches will not be removed
search_id = ('0017884e7dad', '001788102201')
found = discoverhue.find_bridges(search_id)

Execute discovery and return single IP address as string:

>>> found = discoverhue.find_bridges('001788102201')
>>> found.lower()

Validate provided IP’s and execute discovery only if necessary:

>>> discoverhue.find_bridges({'0017884e7dad':'',
{'0017884e7dad': ''}


Welcome at



SSDP Attribution

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for discoverhue, version 1.0.2
Filename, size File type Python version Upload date Hashes
Filename, size discoverhue-1.0.2-py3-none-any.whl (10.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size discoverhue-1.0.2.tar.gz (13.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page