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

Add 2-way communication for acknowledgement and control? #146

Open
EternityForest opened this issue Sep 4, 2024 · 3 comments
Open

Add 2-way communication for acknowledgement and control? #146

EternityForest opened this issue Sep 4, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@EternityForest
Copy link

Is your feature request related to a problem? Please describe.

Right now it doesn't seem like there's any way to use bthome for something like a controllable relay, or for a remote control button where the user would expect reliability.

Describe the solution you'd like
A clear and concise description of what you want to happen.

A simple anycast acknowledgement scheme could be very useful, if there was a way to mark a packet as acknowledgeable, and to tell a device you've already heard it and it can be quiet now.

Perhaps the same back channel could also be used to control things like relays.

Additional context
Add any other context or screenshots about the feature request here.

@EternityForest EternityForest added the enhancement New feature or request label Sep 4, 2024
@Ernst79
Copy link
Collaborator

Ernst79 commented Sep 4, 2024

BTHome is (at this moment) a protocol that uses passive BLE messages, so only one way communication is possible right now. 2 way communication is possible with BLE, ,but that would require to set up a connection. That is a different communication technique.

My skills lack to implement this, but I think we will welcome contributions from others if they want to add this somehow. Unfortunately, I can’t help with that.

@EternityForest
Copy link
Author

EternityForest commented Sep 4, 2024 via email

@thecode
Copy link
Contributor

thecode commented Sep 4, 2024

@EternityForest I suggest you first check if ESPHome meets your requirements, it has a BLE client and support active connections to devices.

The protocol used here is based on advertising from sensors (connection-less), in BLE you can't simply send a response back to an advertising, you have to make an active connection to the device first which is a longer process and battery consuming, so the process of clicking on a button on a remote control, creating a BLE link and sending back an ACK may take too long for a decant user experience.

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

No branches or pull requests

3 participants