Smart Home & IoT
phue
studioimaginaire/phue
Python library for Philips Hue bridges
What it is
phue is a Python library for controlling a Philips Hue bridge: lights, groups, schedules, scenes and sensors, compliant with the Hue API 1.0. It has no dependencies beyond Python itself, works with Python 2.6 and up as well as Python 3, and is a single file, phue.py, that drops straight into a project or a search path.
How it works
phue talks to the bridge over its own local HTTP API. Calling connect() once registers the library as an authorized user, which the first time means pressing the bridge's physical link button, and only needs doing once. After that, methods like get_light and set_light send requests straight to the bridge's own IP address, working with a single light by its id or name, or with a list of several at once, either calling methods directly or building Light objects to work with in a more object oriented way.
Sources
- phue README
Guide· studioimaginaire· Read on Oct 26, 2026
Checked on Oct 26, 2026
Facts
- Stars
- ★ 1.6K
- Language
- Python
- License
- NOASSERTION
- Last push
- Sep 22, 2026· Active
Who maintains it
Used for
- Script every light on your networkPhilips Hue
Nearby projects
- koreader/koreaderEbook reader app for Kindle, Kobo, PocketBook and reMarkableActive★ 30.6K
- Koenkk/zigbee2mqttZigbee to MQTT bridge, removes the need for proprietary vendor hubsActive★ 15.8K
- Hypfer/ValetudoCloud-free web UI and firmware replacement for robot vacuums (Roborock, Dreame)Active★ 9.8K
- merbanan/rtl_433Decode radio transmissions from 200+ devices on ISM bandsActive★ 7.9K
- al-one/hass-xiaomi-miotHome Assistant integration for Xiaomi MIoT devices via the miot spec protocolActive★ 6.2K
- PiotrMachowski/Xiaomi-cloud-tokens-extractorThis tool retrieves tokens for all devices connected to Xiaomi cloud and encryption keys for BLE devices.Active★ 4.9K
- rytilahti/python-miioPython library & console tool for controlling Xiaomi smart appliancesActive★ 4.3K
- 1technophile/OpenMQTTGatewayGateway firmware bridging RF, IR, BLE and LoRa devices to MQTTActive★ 4.1K