Skip to content

Instantly share code, notes, and snippets.

@luigibrancati
luigibrancati / write_ble_schedule.py
Last active May 17, 2026 13:50
Schedule management for Phillips Hue light bulb
"""Helpers for reading and writing Philips Hue BLE schedules.
This script grew out of reverse-engineering sessions against the Hue BLE
schedule characteristic. It now supports four protocol flows on the schedule
characteristic:
- create a standard wake or sleep schedule from high-level parameters
- update an existing schedule by resending the full body
- delete a schedule by id
- query and read back stored schedules