Skip to content
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

Difficultly connecting a remote #4

Closed
solomongumbie opened this issue Apr 5, 2022 · 4 comments
Closed

Difficultly connecting a remote #4

solomongumbie opened this issue Apr 5, 2022 · 4 comments

Comments

@solomongumbie
Copy link

solomongumbie commented Apr 5, 2022

Hello, I suppose this issue I'm creating is more of a request for some documentation. I'm trying to connect my remote to my NodeMCU (ESP32) and I am doing something wrong. I read up on the ESPHome docs here: https://esphome.io/components/ble_client.html but still I seem to be doing something wrong.

@fsievers22
Copy link
Owner

I have recently changed from Arduino framework to esp-idf framework. Since then the BLE address is hardcoded:

static esp_bd_addr_t ble_remote_address = {0x14,0x0A,0xC5,0xD0,0xD4,0xA2};

That is not an optimal solution and I will change that, but i have not much time at the moment.
So if you want to use this component you have to change that line in ble_hid_client.cpp.
The BLE-Client component of esphome has nothing to do with this component and you don't need it in your .yaml file to use this custom component.
I hope i could help you.

@solomongumbie
Copy link
Author

That helps a lot, thank you, but I have my ble address in another format similar to 00:11:22:33:FF:EE. Is there some way I should convert that?

@fsievers22
Copy link
Owner

No you can just put it in like so:static esp_bd_addr_t ble_remote_address = {0x00,0x11,0x22,0x33,0xFF,0xEE};

@solomongumbie
Copy link
Author

Thank you so much I got it working. May I ask if you have some form of long press detection setup in your HA configs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants