bhyve-home-assistant icon indicating copy to clipboard operation
bhyve-home-assistant copied to clipboard

Native Bluetooth

Open BlackandBlue1908 opened this issue 2 years ago • 6 comments

I May be asking for the moon here but would be awesome if this could use the new native Bluetooth integration. Could circumvent the need for the hubs altogether and give full local control.

BlackandBlue1908 avatar Aug 05 '22 12:08 BlackandBlue1908

This is not something I have plans to investigate, however I will leave the issue open; I imagine you won't be the first or last to request this 😄.

It may also be helpful as a future reference should anybody wish to collect or share any reverse engineered bluetooth dumps that could be used to implement this request in the future.

sebr avatar Aug 05 '22 12:08 sebr

I love to see this implemented. I have been having some cloud latency with this recently.

AlohaFlyer avatar Sep 12 '22 06:09 AlohaFlyer

@sebr Thank you for developing this integration. I just picked up an XD and Gen 2 hub since I knew I could get it into HA because of this.

I know this issue requesting Bluetooth was opened before most of HA's work on expanding Bluetooth support at the end of last year. Would any of that development work make it easier to add Bluetooth support for this integration?

GitHubGoody avatar Jan 07 '23 23:01 GitHubGoody

@GitHubGoody, I haven't investigated the progress of HA's native Bluetooth support. This is partially because I don't have any plans to reverse engineer B-Hyve's Bluetooth protocols or reimplement them in HA.

sebr avatar Jan 10 '23 04:01 sebr

OK. NP. I figured I'd check before opening the hub. Thanks.

GitHubGoody avatar Jan 10 '23 10:01 GitHubGoody

I took a cursory glance at it. I've recently built a HA Bluetooth integration for my fireplace utilizing ESPHome Bluetooth proxies, so my memory of the implementation procedure is still fresh. It should be possible to reverse engineer the protocol. Bluetooth communication is encrypted using AES ECB without padding (so it's pretty insecure as far as I can see). The encryption key can be seen at https://techsupport.orbitbhyve.com when viewing a device. It will show up Base64 encoded as the "Network Key" under Mesh Details. I don't have experience dealing with the Mesh bit of the BLE communication, so I haven't looked into that.

kaechele avatar Jun 05 '23 21:06 kaechele