New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BTLE support? #608

Closed
lukehoersten opened this Issue Sep 19, 2018 · 5 comments

Comments

Projects
None yet
2 participants
@lukehoersten

lukehoersten commented Sep 19, 2018

Is it possible to use BTLE instead of WiFi with HAP-Nodejs? Is this even something at the level of this project or at another level? I’m using a Rpi-zw.

@AMoo-Miki

This comment has been minimized.

AMoo-Miki commented Nov 1, 2018

In your code, you can make connection to your device in any way you want and that your device supports. You use HAP-NodeJS in your code to connect to Homekit.

For example, in Lock_accessory.js, lines 7 to 20 are how it communicates with the FAKE_LOCK; you change that piece to connect to your actual device using BLE.

@lukehoersten

This comment has been minimized.

lukehoersten commented Nov 1, 2018

HomeKit has its own specific use of BLE and accessing the BLE device directly would still require IP for HK integration. I don’t think the HK BTE is currently supported by this package.

@AMoo-Miki

This comment has been minimized.

AMoo-Miki commented Nov 1, 2018

@lukehoersten, if I understand you right, your assumption is that HAP needs to talk to your device via WiFi which is not true; HAP doesn't even talk to your device. Your code talks to your device and translates what it hears for HAP and vice versa; your code is the mediator.

I have a ton of BLE devices (kidding, just one) that only have the BLE interface and I use HAP to expose them to HomeKit.

@lukehoersten

This comment has been minimized.

lukehoersten commented Nov 1, 2018

@AMoo-Miki

This comment has been minimized.

AMoo-Miki commented Nov 2, 2018

Thanks for explaining. It was my fault to assume everyone wants to use HomeKit the way I do, which is access stuff while not at home. I clearly see how valuable directly interfacing BLE with HAP could be.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment