Skip to content

Control Philips Hue lights based on proximity of a BLE transmitter to a BT receiver.

Notifications You must be signed in to change notification settings

James-2879/HueBLE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Hue Beacon

https://github.com/James-2879/HueBLE

Overview

This code aims to control Philips Hue lights based on proximity of a BLE transmitter to a BT receiver. The idea is that the transmitter is on-person, which is accommodated for by the small form factors of BLE devices.

I am unable to provide a list of compatible devices, but they may include phones, smartwatches, smart rings... creativity is required :) !

Tested on Windows 11, partially on Ubuntu 22.04 LTS.

DISCLAIMER

This code is provided free of charge, 'as is', and with no warranty, and I accept no responsibility for adverse events derived from, or related to, the use of this code. I have tested the code to the best of my techincal knowledge, but I cannot guarantee that bugs will not exist. I also cannot anticipate issues which may arise from updates to dependencies, nor can I predict how the code may affect (or be affected by) a user's specific environment.

Feel free to fork or contribute.

Usage

  1. Install dependencies.

    pip install -r requirements.txt
    
  2. Modify the 'User Config' section of the script; for minimum operation you will need to know:

    • Bridge IP address.
    • Transmitter MAC address.
  3. Run (from terminal).

    python3 hue_beacon.py
    

In future releases, this process will likely be automated.

Future development

  • Automated discovery of bridge and BLE transmitters.
  • Websockets to add support for multiple receivers.
  • Triangulation between receivers (maybe).
  • Support for multiple transmitters and unique actions per transmitter.
  • Training option to discover best RSSI cutoff.

Releases

No releases published

Packages

No packages published

Languages