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 BLE beacon advertise mode setting #1856

Merged
merged 6 commits into from Oct 31, 2021

Conversation

amadeo-alex
Copy link
Contributor

@amadeo-alex amadeo-alex commented Oct 30, 2021

Summary

This PR adds additional setting for the BLE iBecon sensor which allows for advertise mode selection (how often the iBecon is advertised).
Before this was hardcoded to be in low power mode (1Hz), after the change it is possible to select all three modes of operation: low power, balanced or low latency (low power mode is still the default)

The three first screenshots are from the HA app showing the setting itself. The fourth screenshot is from the nRF Connect app which I used to verify the broadcasts.
Results which I've observed are as follows (broadcasting device: samsung note 8, receiving device: samsung note 10 plus):

  • lowLatency -> ~130ms between beacons
  • balanced -> ~280ms between beacons
  • lowPower -> ~1030ms between beacons

Screenshots


(if required I'll add screenshots in light mode right away)

Link to pull request in Documentation repository

Documentation: home-assistant/companion.home-assistant#603

Any other notes

amadeo-alex added a commit to amadeo-alex/companion.home-assistant that referenced this pull request Oct 30, 2021
Added information in regards to changes proposed by home-assistant/android#1856
(additional setting for advertise mode selection)
@amadeo-alex amadeo-alex marked this pull request as ready for review October 30, 2021 15:53
@amadeo-alex amadeo-alex changed the title BLE beacon advertise mode setting Add BLE beacon advertise mode setting Oct 30, 2021
Copy link
Member

@dshokouhi dshokouhi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@JBassett JBassett merged commit c6a5231 into home-assistant:master Oct 31, 2021
dshokouhi pushed a commit to home-assistant/companion.home-assistant that referenced this pull request Nov 2, 2021
#603)

* Reflected BLE iBeacon changes made by home-assistant/android/pull/1856

Added information in regards to changes proposed by home-assistant/android#1856
(additional setting for advertise mode selection)

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

Successfully merging this pull request may close these issues.

None yet

4 participants