-
Notifications
You must be signed in to change notification settings - Fork 0
Philips Hue
A Bluetooth hue device can only be connected to one central. To connect a device previously connected to another central, use the Hue app to reset the device to factory setting. After factory reset, the device will get a new mac address. Then, pair the device at the central using the new mac address.
For more information, including a shell script that controls Hue devices via bluetoothctrl, see https://github.com/wintechis/blast/tree/master/docs/devices/hue/.
@@@Philips Hue BLE interface? https://www.amazon.de/-/en/gp/product/B099P3CP1K
For Philips Hue UUIDs, see https://www.bekk.christmas/post/2021/12/web-bluetooth
$ bluetoothctl
[bluetooth]# devices
...
[bluetooth]# connect F5:FF:7A:3D:AA:64
connect F5:FF:7A:3D:AA:64
Attempting to connect to F5:FF:7A:3D:AA:64
Connection successful
[Hue white lamp]# menu gatt
[Hue white lamp]# list-attributes
...
[Hue white lamp]# select-attribute 932c32bd-0002-47a2-835a-a8d455b859dd
[Hue white lamp:/service002c/char002f]# write
Missing data=xx xx ... argument
[Hue white lamp:/service002c/char002f]# write 0
Attempting to write /org/bluez/hci0/dev_F5_FF_7A_3D_AA_64/service002c/char002f
Request authorization
[agent] Accept pairing (yes/no): yes
[CHG] Device F5:FF:7A:3D:AA:64 Paired: yes
[Hue white lamp:/service002c/char002f]# write 1
Attempting to write /org/bluez/hci0/dev_F5_FF_7A_3D_AA_64/service002c/char002f
[Hue white lamp:/service002c/char002f]# write 0
Attempting to write /org/bluez/hci0/dev_F5_FF_7A_3D_AA_64/service002c/char002f
[Hue white lamp:/service002c/char002f]# write 1
Attempting to write /org/bluez/hci0/dev_F5_FF_7A_3D_AA_64/service002c/char002f
[Hue white lamp:/service002c/char002f]# write 0
[Hue white lamp:/service002c/char002f]# back
Menu main:
...
[Hue white lamp:/service002c/char002f]# disconnect
Attempting to disconnect from F5:FF:7A:3D:AA:64
[CHG] Device F5:FF:7A:3D:AA:64 ServicesResolved: no
Successful disconnected
[CHG] Device F5:FF:7A:3D:AA:64 Connected: no
[bluetooth]# exit
https://www.amazon.de/Philips-Hue-smarte-Steckdose-kompatibel/dp/B09CV7QQKB
The smart plug has the same interface for switching on and off as the bulb.
$ bluetoothctl
[bluetooth]# scan on
...
[bluetooth]# scan off
[bluetooth]# devices
...
[bluetooth]# connect C4:73:3C:9E:FE:CE
[Hue smart plug]# menu gatt
...
[Hue smart plug]# select-attribute 932c32bd-0002-47a2-835a-a8d455b859dd
[Hue smart plug:/service002c/char002f]# read
Attempting to read /org/bluez/hci0/dev_C4_73_3C_9E_FE_CE/service002c/char002f
Request authorization
[agent] Accept pairing (yes/no): yes
[CHG] Device C4:73:3C:9E:FE:CE Paired: yes
[CHG] Attribute /org/bluez/hci0/dev_C4_73_3C_9E_FE_CE/service002c/char002f Value:
01 .
01 . .
[Hue smart plug:/service002c/char002f]# write 0
Attempting to write /org/bluez/hci0/dev_C4_73_3C_9E_FE_CE/service002c/char002f
[Hue smart plug:/service002c/char002f]# read
Attempting to read /org/bluez/hci0/dev_C4_73_3C_9E_FE_CE/service002c/char002f
[CHG] Attribute /org/bluez/hci0/dev_C4_73_3C_9E_FE_CE/service002c/char002f Value:
00 .
00 .
[Hue smart plug:/service002c/char002f]# write 1
Attempting to write /org/bluez/hci0/dev_C4_73_3C_9E_FE_CE/service002c/char002f
[Hue smart plug:/service002c/char002f]# back
[Hue smart plug:/service002c/char002f]# disconnect
Attempting to disconnect from C4:73:3C:9E:FE:CE
[CHG] Device C4:73:3C:9E:FE:CE ServicesResolved: no
Successful disconnected
[CHG] Device C4:73:3C:9E:FE:CE Connected: no
[bluetooth]# exit