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

feat: Per-device calibration #359

Merged
merged 4 commits into from
Nov 7, 2024
Merged

feat: Per-device calibration #359

merged 4 commits into from
Nov 7, 2024

Conversation

agittins
Copy link
Owner

@agittins agittins commented Nov 7, 2024

Adds a Number entity to each Bermuda device, to allow setting a custom ref_power for individual devices.

If the value is 0, the device will use the global default Ref_Power setting.

Any other value will be used as the reference power for calculating distances for that device. Note that this is not an offset, but rather should be equal to the rssi measured when the device is 1 metre from a given receiver.

How to use:

  • First perform the global and per-scanner calibration steps via CONFIGURE.
  • For any device that needs its own calibration setting, go to that device's page in Bermuda, and adjust the Calibration number entity until its distance measurement is correct.
  • To use the global calibration value, set the per-device value to 0.
  • The more "negative" the value is, the closer the measurement will become. Typical values are usually around -50 to -60, but could be very different.

- Bring up to current codebase...
- Remove button entity testing
- Switch number entity to use runtime_data
- move to proper NumberMode class
- remove call to async_config_entry_first_refresh() in number.py
- fix unit_of_measurement attribute (use native, not processed)
- Fix restoration of value if None
@agittins agittins merged commit e18727a into main Nov 7, 2024
6 checks passed
@agittins agittins deleted the agittins-dev branch November 7, 2024 02:21
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

Successfully merging this pull request may close these issues.

1 participant