openhab / openhab-addons

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

[hdpowerview] Add support for Bluetooth Low Energy #16992

Open andrewfg opened 1 week ago

andrewfg commented 1 week ago

HD Powerview Gen 3 shades can be monitored/controlled either via a Gateway (over IP) or directly via Bluetooth Low Energy (BLE). The OH HD Powerview binding currently only supports the former. This issue is a place holder for adding support for the latter.

There is already someone working on such an integration in HA https://github.com/patman15/hdpv_ble and I am in contact with him to share his efforts on HA in order to create the OH BLE integration.

andrewfg commented 1 week ago

@jlaur / @patman15 for info..

jlaur commented 1 week ago

@andrewfg 👍Probably it should be provided as a Bluetooth sub binding, i.e. bluetooth.hdpowerview.

andrewfg commented 1 week ago

Probably it should be provided as a Bluetooth sub binding, i.e. bluetooth.hdpowerview

Yes.

My hypothesis would be to combine the existing OH Bluetooth OSI layers 1-4, the HA layer 5-6, and the existing OH Gateway binding layer 7.

andrewfg commented 1 week ago

@jlaur in case you are interested, you can follow my work in my branch here. I already got it partly working; you can manually add shade things, and their position and rssi channels are dynamically updated. Missing are thing auto discovery, position commanding, battery status monitoring, and thing properties. You probably don't have any Gen 3 shades, so here is a screen video..

https://github.com/openhab/openhab-addons/assets/893994/ac9d9b57-82b0-4ffe-a312-6eb2630d1c37