openhab / openhab-addons

Add-ons for openHAB
https://www.openhab.org/
Eclipse Public License 2.0
1.88k stars 3.59k forks source link

[bluetooth] Extend base binding and implementation stacks to support server mode functionality #17278

Open andrewfg opened 2 months ago

andrewfg commented 2 months ago

My PR #17099 is for a new binding to monitor and control Hunter Douglas Generation 3 shades via Bluetooth Low Energy. This binding has different behaviour depending on whether the shade has been integrated in the Powerview App:

Currently the only two ways to discover encryption key are to use Wireshark either a) live via an attached BLE sniffer board, or b) by uploading an HCI debug log file from an Android phone running in BLE debug mode. Neither of these methods is particularly user friendly.

In a future step I want the binding to emulate a Powerview BLE remote control so it can be added into the App and thus directly receive the encryption key from it.

The OH Bluetooth base binding and respective BlueZ and BlueGiga implementation stacks currently support Bluetooth client mode only (thus enabling them to talk to remote physical server devices). To emulate a remote control as described above it will require the base binding and the implementation stacks to be extended with additional Bluetooth server mode functionality.

Signed-off-by: AndrewFG software@whitebear.ch

openhab-bot commented 2 months ago

This issue has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/bluetooth-server-in-oh/157609/5