walter5138 / hue_ble_python Goto Github PK
View Code? Open in Web Editor NEWProject controlling Philips Hue Bluetooth Color bulbs. Python version.
License: GNU General Public License v3.0
Project controlling Philips Hue Bluetooth Color bulbs. Python version.
License: GNU General Public License v3.0
It doesn't ask for an alias.
adapter1 notification started : ['./hue_props_ad1_chg_notify.py'] pid 127728
Discovery started!
Discovering : 1
********************************************************************************************************
device (object path) added : /org/bluez/hci0/dev_86_2A_FD_F9_FE_AC
with interfaces :
org.freedesktop.DBus.Introspectable
org.bluez.Device1
Address = 86:2A:FD:F9:FE:AC
AddressType = public
Name = ENVY Photo 6200 series
Alias = ENVY Photo 6200 series
Paired = 0
Trusted = 0
Blocked = 0
LegacyPairing = 0
RSSI = -77
Connected = 0
UUIDs =
0000fe78-0000-1000-8000-00805f9b34fb
Adapter = /org/bluez/hci0
ManufacturerData = 101 : [1, 201, 1]
TxPower = 6
ServicesResolved = 0
org.freedesktop.DBus.Properties
********************************************************************************************************
device (object path) added : /org/bluez/hci0/dev_70_56_81_DA_2B_00
with interfaces :
org.freedesktop.DBus.Introspectable
org.bluez.Device1
Address = 70:56:81:DA:2B:00
AddressType = public
Alias = 70-56-81-DA-2B-00
Paired = 0
Trusted = 0
Blocked = 0
LegacyPairing = 0
RSSI = -92
Connected = 0
UUIDs =
Adapter = /org/bluez/hci0
ManufacturerData = 76 : [9, 6, 2, 31, 192, 168, 0, 143]
ServicesResolved = 0
org.freedesktop.DBus.Properties
********************************************************************************************************
device (object path) added : /org/bluez/hci0/dev_F4_3A_9D_FA_FD_CA
with interfaces :
org.freedesktop.DBus.Introspectable
org.bluez.Device1
Address = F4:3A:9D:FA:FD:CA
AddressType = random
Name = Engimatica
Alias = Engimatica
Paired = 0
Trusted = 0
Blocked = 0
LegacyPairing = 0
RSSI = -44
Connected = 0
UUIDs =
0000fe0f-0000-1000-8000-00805f9b34fb
Adapter = /org/bluez/hci0
ServiceData = 0000fe0f-0000-1000-8000-00805f9b34fb : [103, 16, 255, 255, 0]
TxPower = 10
ServicesResolved = 0
org.freedesktop.DBus.Properties
Engimatica
Discovery stoped!
Discovering : 0
No new Hue Lamps found!
adapter1 notification stopped : pid 127728
The device that was just discovered is the Phillips Hue lamp.
What's wrong?
what is wrong here?
can you help?
Traceback (most recent call last):
File "hue_discover_pair_trust_alias.py", line 158, in
new_huelamp_pair_trust(new_huelamp_addresses)
File "hue_discover_pair_trust_alias.py", line 117, in new_huelamp_pair_trust
new_device_proxy.Pair()
File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 70, in call
return self._proxy_method(*args, **keywords)
File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 145, in call
**keywords)
File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.bluez.Error.AuthenticationTimeout: Authentication Timeout
As far as I can tell, the Phillips Hue Bluetooth lamp is not discoverable but instead sees a controller and prompts a pairing. It looks like this code does not account for that or is there something I'm missing?
Hi Walter,
Great code, thank you for posting this!
I'm trying to extend it so that it also works with the Hue Smart Plug.
Any tip on how you found out what service/char to write to in order to control the Hue devices?
Thank you!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.