Commit Graph

280 Commits (9cd48b4999deffdf143452dcbb9fa662a576c128)

Author SHA1 Message Date
J. Nick Koston 4fb6fa9cca
Bump bleak-retry-connector to 2.7.0 (#81280) 2022-10-30 19:24:32 -05:00
J. Nick Koston 1106df158d
Bump bleak-retry-connector to 2.6.0 (#81270) 2022-10-30 17:38:09 -05:00
J. Nick Koston d9d6902803
Bump dbus-fast to 1.59.1 (#81229)
* Bump dbus-fast to 1.59.1

fixes incorrect logging of an exception when it was already handled

changelog: https://github.com/Bluetooth-Devices/dbus-fast/compare/v1.59.0...v1.59.1

* empty
2022-10-30 11:32:57 +01:00
GitHub Action 1c7800c224 [ci skip] Translation update 2022-10-30 00:32:36 +00:00
J. Nick Koston 7f047cf95c
Bump dbus-fast to 1.59.0 (#81215)
* Bump dbus-fast to 1.59.0

changelog: https://github.com/Bluetooth-Devices/dbus-fast/compare/v1.58.0...v1.59.0

* empty
2022-10-29 15:06:17 -04:00
J. Nick Koston ccfa314e87
Update to bleak 0.19.1 and bleak-retry-connector 2.5.0 (#81198) 2022-10-29 14:25:35 -04:00
J. Nick Koston 91efe68cdd
Bump dbus-fast to 1.58.0 (#81195) 2022-10-29 14:22:46 -04:00
J. Nick Koston effe8d9207
Bump dbus-fast to 1.56.0 (#81177)
* Bump dbus-fast to 1.56.0

Addes optimized readers for manufacturer data
and interfaces added messages

changelog: https://github.com/Bluetooth-Devices/dbus-fast/compare/v1.55.0...v1.56.0

* empty
2022-10-29 09:40:40 +02:00
J. Nick Koston e47f06fde8
Bump dbus-fast to 1.54.0 (#81148)
* Bump dbus-fast to 1.53.0

changelog: https://github.com/Bluetooth-Devices/dbus-fast/compare/v1.51.0...v1.53.0

* 54
2022-10-28 21:01:03 -04:00
J. Nick Koston 588277623f
Bump dbus-fast to 1.51.0 (#81109) 2022-10-27 15:38:53 -04:00
J. Nick Koston 2a6f2f431d
Bump dbus-fast to 1.49.0 (#81043) 2022-10-26 14:39:27 -05:00
J. Nick Koston f61c010116
Bump bleak-retry-connector to 2.4.2 (#80908) 2022-10-24 14:27:04 -05:00
J. Nick Koston 9978296ae2
Bump bleak-retry-connector to 2.4.0 (#80887) 2022-10-24 09:28:59 -05:00
J. Nick Koston 95d6859cb7
Log bluetooth advertisement before firing bleak callbacks (#80800)
The debug log was confusing because the bleak callbacks
were firing before we were logging the advertisements
2022-10-23 11:34:03 +02:00
J. Nick Koston b952797298
Bump bleak-retry-connector to 2.3.2 (#80790) 2022-10-22 16:14:11 -05:00
J. Nick Koston 91c5aac8ba
Add homekit notifications to the list of allowed apple bluetooth start bytes (#80733) 2022-10-21 13:54:02 -05:00
GitHub Action 0199e0a756 [ci skip] Translation update 2022-10-21 00:30:37 +00:00
J. Nick Koston 03362bec1c
Defer bluetooth scanner watchdog restart if one is already in progress (#80679) 2022-10-20 13:56:20 -05:00
J. Nick Koston 5589edd814
Fix bluetooth calls from automations in esphome (#80683) 2022-10-20 14:35:38 -04:00
J. Nick Koston da14acb3b6
Speed up restart when bluetooth adapter is in a failed state (#80640) 2022-10-20 16:35:09 +02:00
J. Nick Koston 540d959dd2
Bump bluetooth-auto-recovery to 0.3.6 (#80643)
* Bump bluetooth-auto-recovery to 0.3.5

changelog: https://github.com/Bluetooth-Devices/bluetooth-auto-recovery/compare/v0.3.4...v0.3.5

* bump again for more rfkill fixes
2022-10-20 07:13:41 +02:00
J. Nick Koston 2c36ee412a
Bump dbus-fast to 1.47.0 (#80633) 2022-10-19 16:52:19 -05:00
J. Nick Koston a708fc9984
Bump bleak-retry-connector to 2.3.1 (#80549) 2022-10-18 11:48:52 -05:00
J. Nick Koston 1700da0ed3
Reduce chance of bluetooth devices going unavailable when adapter stops responding (#80545) 2022-10-18 11:23:15 -05:00
J. Nick Koston f70f972d88
Fix connectable Bluetooth devices not being seen if the nearest scanner is non-connectable (#80388)
If we saw the non-connectable scanner advertisement first we would reject
the connectable scanner advertisement because it had worse signal strength.

In this case we need to check both
2022-10-17 21:13:26 -04:00
Joakim Plate 9eb4faf037
Fire bluetooth listener for all matching devices (#80440)
* Fire listener for all matching devices

* Add test case for seen device

* Avoid looping all data if we have address match

* Initialize to empty list
2022-10-16 21:49:12 +02:00
J. Nick Koston 3b31330882
Bump bleak-retry-connector to 2.3.0 (#80397) 2022-10-15 14:08:15 -10:00
J. Nick Koston d12cbab6c4
Bump bleak to 0.19.0 (#80349) 2022-10-15 13:57:23 -04:00
J. Nick Koston 0c76e3a97e
Automatically determine the advertising interval for bluetooth devices (#79669) 2022-10-14 14:39:18 -04:00
J. Nick Koston 46c6043856
Bump dbus-fast to 1.45.0 (#80289)
significant performance improvements

https://github.com/Bluetooth-Devices/dbus-fast/compare/v1.44.0...v1.45.0
2022-10-14 00:41:06 +03:00
J. Nick Koston 237b03150e
Bump dbus-fast to 1.44.0 (#80149) 2022-10-12 11:37:26 +02:00
J. Nick Koston fe5534666d
Bump dbus-fast to 1.41.0 (#80062) 2022-10-10 18:52:44 -10:00
J. Nick Koston ef719cf7ef
Bump bluetooth-auto-recovery to 0.3.4 (#79971) 2022-10-09 17:56:11 -10:00
J. Nick Koston 7a1939c608
Bump dbus-fast to 1.38.0 (#79962) 2022-10-09 14:07:22 -10:00
J. Nick Koston 2decb85ee6
Bump dbus-fast to 1.33.0 (#79921) 2022-10-08 15:51:45 -10:00
J. Nick Koston fca8586fb6
Bump dbus-fast to 1.29.1 (#79787)
* Bump dbus-fast to 1.28.0

Performance improvements

changelog: https://github.com/Bluetooth-Devices/dbus-fast/compare/v1.26.0...v1.28.0

* bump again

* bump for cleanups
2022-10-07 23:50:50 +03:00
J. Nick Koston 9b4c7f5dc5
Bump dbus-fast to 1.26.0 (#79684) 2022-10-05 19:17:10 -10:00
J. Nick Koston c798723c27
Fix bluetooth diagnostics on macos (#79680)
* Fix bluetooth diagnostics on macos

The pyobjc objects cannot be pickled which cases dataclasses
asdict to raise an exception when trying to do the deepcopy

We now implement our own as_dict to avoid this problem

* add cover
2022-10-06 04:32:29 +02:00
J. Nick Koston 89c4bf6536
Bump dbus-fast to 1.24.0 (#79608) 2022-10-04 08:55:28 -10:00
J. Nick Koston a3989b90fe
Bump dbus-fast to 1.23.0 (#79570) 2022-10-03 16:44:54 -10:00
J. Nick Koston 2768b2445a
Remove call to deprecated bleak register_detection_callback (#79558) 2022-10-03 21:15:09 -04:00
J. Nick Koston aa3aa91358
Bump dbus-fast to 1.22.0 (#79527)
Performance improvements
https://github.com/Bluetooth-Devices/dbus-fast/compare/v1.21.17...v1.22.0
2022-10-03 15:11:51 +02:00
J. Nick Koston da960f6ed4
Bump bluetooth dependencies (#79514) 2022-10-02 21:12:14 -04:00
J. Nick Koston 653620345c
Bump dbus-fast to 1.20.0 (#79465) 2022-10-02 12:46:01 -04:00
J. Nick Koston 8a73795f50
Bump bluetooth-adapters to 0.5.3 (#79442) 2022-10-01 21:27:44 -04:00
J. Nick Koston d9191cf2f2
Bump dbus-fast to 1.18.0 (#79440)
Changelog: https://github.com/Bluetooth-Devices/dbus-fast/compare/v1.17.0...v1.18.0
2022-10-01 14:45:01 -10:00
GitHub Action bd5ec4e198 [ci skip] Translation update 2022-10-01 00:40:08 +00:00
GitHub Action 21b078eeb7 [ci skip] Translation update 2022-09-30 00:42:29 +00:00
GitHub Action 63f2c4ab98 [ci skip] Translation update 2022-09-29 00:36:54 +00:00
Marc Mueller 4a432db611
Remove type ignore from bluetooth (#79146) 2022-09-28 10:29:55 +02:00
J. Nick Koston 7b708f4b35
Fix bluetooth active update coordinator not returning on failure (#79167)
We also need to return on polling exception so we do not
try to update.

Fixes #79166
2022-09-27 22:51:46 -04:00
J. Nick Koston 8c3e0d527d
Bump dbus-fast to 0.17.0 (#79177)
Changelog: https://github.com/Bluetooth-Devices/dbus-fast/compare/v1.15.1...v1.17.0
2022-09-27 22:50:06 -04:00
J. Nick Koston 5eb50f63fd
Ensure bleak_retry_connector uses HaBleakClientWrapper (#79132) 2022-09-27 14:06:10 -04:00
J. Nick Koston 1f6d19bb99
Bump dbus-fast to 0.15.1 (#79111)
changelog: https://github.com/Bluetooth-Devices/dbus-fast/compare/v1.14.0...v1.15.1
2022-09-26 21:50:08 +02:00
J. Nick Koston c89d776d37
Bump bleak-retry-connector to 2.1.3 (#79105) 2022-09-26 08:42:56 -10:00
J. Nick Koston 75f6f9b5e2
Improve performance of Bluetooth device fallback (#79078) 2022-09-26 09:12:08 -04:00
J. Nick Koston 3ad5d799c6
Bump dbus-fast to 1.14.0 (#79063) 2022-09-25 21:02:29 -04:00
J. Nick Koston 26b8e4e0fb
Bump bluetooth dependencies (#79035)
* Bump dbus-fast to 1.10.0

changelog: https://github.com/Bluetooth-Devices/dbus-fast/compare/v1.9.0...v1.10.0

* bump again

* bump again

* to 13

* bump

* try again
2022-09-24 15:44:59 -10:00
J. Nick Koston a3cb38e114
Bump dbus-fast to 1.9.0 (#79024) 2022-09-24 05:04:52 -10:00
J. Nick Koston 1b144c0e4d
Update to bleak 0.18.0 (#79008) 2022-09-23 15:09:28 -10:00
GitHub Action 3875ce6c9e [ci skip] Translation update 2022-09-24 00:31:54 +00:00
GitHub Action bbe19e6255 [ci skip] Translation update 2022-09-23 00:32:50 +00:00
J. Nick Koston 488b04fc8b
Handle default RSSI values from bleak in bluetooth (#78908) 2022-09-21 17:03:50 -04:00
GitHub Action d7eb277bc8 [ci skip] Translation update 2022-09-21 00:32:35 +00:00
J. Nick Koston 12856dea05
Create an issue when Bluetooth is active on old HAOS (#78430)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2022-09-19 21:02:13 -04:00
J. Nick Koston a02eed9bd8
Bump dbus-fast to 1.5.1 (#78802) 2022-09-19 20:59:07 -04:00
J. Nick Koston 635c2f3738
Change bluetooth source to be the address of the adapter on Linux (#78795) 2022-09-19 20:58:18 -04:00
GitHub Action 4b2bea4972 [ci skip] Translation update 2022-09-20 00:30:13 +00:00
J. Nick Koston 9655f30146
Handle Modalias missing from the bluetooth adapter details on older BlueZ (#78715) 2022-09-18 21:09:45 -04:00
J. Nick Koston d4181aa911
Fix bluetooth callback matchers when only matching on connectable (#78687) 2022-09-18 10:22:54 -05:00
J. Nick Koston 18eef5da1f
Restore history from bluetooth stack at startup (#78612) 2022-09-17 16:58:19 -05:00
J. Nick Koston 98dd84f535
Ensure bluetooth callbacks are only fired when advertisement data changes (#78609) 2022-09-17 10:26:02 +02:00
J. Nick Koston 085abc74ee
Reduce overhead to update passive bluetooth devices (#78545) 2022-09-16 12:24:20 +02:00
GitHub Action ec258410c5 [ci skip] Translation update 2022-09-16 00:29:29 +00:00
J. Nick Koston 11789dd079
Bump bleak-retry-connector to 0.17.1 (#78474) 2022-09-15 10:40:52 +02:00
GitHub Action 23faf8024e [ci skip] Translation update 2022-09-14 00:28:24 +00:00
J. Nick Koston 392548fe6e
Bump bleak to 0.17.0 (#78333) 2022-09-13 14:31:34 +02:00
GitHub Action 955f3b7083 [ci skip] Translation update 2022-09-13 00:29:19 +00:00
J. Nick Koston 05d4ece4de
Bump bluetooth-auto-recovery to 0.3.3 (#78245)
Downgrades a few more loggers to debug since the only reason we check them is to give a better error message when the bluetooth adapter is blocked by rfkill.

https://github.com/Bluetooth-Devices/bluetooth-auto-recovery/compare/v0.3.2...v0.3.3

closes #78211
2022-09-12 20:16:46 -04:00
d-walsh 0b2c3cfb99
Fix missing dependency for dbus_next (#78235) 2022-09-12 18:03:07 -05:00
J. Nick Koston d77ca99791
Bump bluetooth-adapters to 0.4.1 (#78205)
Switches to dbus-fast which fixes a file descriptor leak
2022-09-11 10:06:13 +02:00
GitHub Action 051974304a [ci skip] Translation update 2022-09-11 00:27:01 +00:00
GitHub Action 901031eb25 [ci skip] Translation update 2022-09-10 00:29:43 +00:00
J. Nick Koston 8084d163d3
Bump bluetooth-adapters to 0.3.6 (#78138) 2022-09-09 13:56:21 -04:00
GitHub Action 718d4ac6cc [ci skip] Translation update 2022-09-09 00:28:55 +00:00
Alex Thompson 45b69618d3
Add iBeacon start byte to allowed Apple Bluetooth advertisements (#78088) 2022-09-08 18:21:58 -05:00
J. Nick Koston be064bfeef
Bump bluetooth-auto-recovery to 0.3.2 (#78063) 2022-09-08 19:15:26 +02:00
J. Nick Koston 2a23792b23
Bump bluetooth-adapters to 0.3.5 (#78052) 2022-09-08 09:58:53 -04:00
GitHub Action 4f7ad27b65 [ci skip] Translation update 2022-09-07 00:27:56 +00:00
J. Nick Koston dfef6c3d28
Small tweaks to improve performance of bluetooth matching (#77934)
* Small tweaks to improve performance of bluetooth matching

* Small tweaks to improve performance of bluetooth matching

* cleanup
2022-09-06 19:12:32 -04:00
J. Nick Koston b2f86ddf76
Bump bluetooth-auto-recovery to 0.3.1 (#77898) 2022-09-06 08:48:39 -05:00
J. Nick Koston 0e369d5b2e
Add RSSI to the bluetooth debug log (#77860) 2022-09-06 09:54:52 +02:00
Jc2k a641bbc352
Less verbose error logs for bleak connection errors in ActiveBluetoothProcessorCoordinator (#77839)
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-09-05 10:33:10 -04:00
J. Nick Koston 804e4ab989
Prefilter noisy apple devices from bluetooth (#77808) 2022-09-04 20:57:40 -04:00
GitHub Action 945299dfb6 [ci skip] Translation update 2022-09-03 00:24:50 +00:00
J. Nick Koston e4e29aa29d
Bump bluetooth-adapters to 3.3.4 (#77705) 2022-09-02 16:17:35 -04:00
J. Nick Koston e230a1f253
Bump bluetooth-adapters to 0.3.3 (#77683) 2022-09-01 21:22:12 -04:00
GitHub Action ccef03f1d4 [ci skip] Translation update 2022-09-02 00:25:46 +00:00
Jc2k 93a8aef4cc
Fix async_all_discovered_devices(False) to return connectable and unconnectable devices (#77670) 2022-09-01 12:57:49 -04:00
J. Nick Koston 34ed6d1ecb
Bump bleak to 0.16.0 (#77629)
Co-authored-by: Justin Vanderhooft <justinvdhooft@gmail.com>
2022-08-31 22:43:18 -04:00
GitHub Action 1f08635d0a [ci skip] Translation update 2022-08-31 00:31:51 +00:00
J. Nick Koston 935274c2e7
Bump bluetooth-auto-recovery to 0.3.0 (#77555) 2022-08-30 12:55:48 -05:00
GitHub Action 035cd16a95 [ci skip] Translation update 2022-08-30 00:30:17 +00:00
J. Nick Koston 40e8979951
Add bluetooth api to get the count of connectable and non-connectable scanners (#77427) 2022-08-29 10:21:30 -04:00
GitHub Action a093057420 [ci skip] Translation update 2022-08-29 00:27:51 +00:00
GitHub Action 7f1a203721 [ci skip] Translation update 2022-08-28 00:29:27 +00:00
J. Nick Koston a28aeeeca7
Hide bluetooth passive option if its not available on the host system (#77421)
* Hide bluetooth passive option if its not available

- We now have a way to determine in advance if passive
  scanning is supported by BlueZ

* drop string
2022-08-27 19:18:54 -04:00
J. Nick Koston 8e88e039f7
Add diagnostics to bluetooth (#77393) 2022-08-27 16:41:49 -05:00
J. Nick Koston a6770f8b03
Adjust bluetooth matcher comments (#77409) 2022-08-27 15:23:47 +02:00
J. Nick Koston 61d5ed1dcf
Index bluetooth matchers to resolve performance concerns with many adapters/remotes (#77372) 2022-08-26 23:07:51 -04:00
GitHub Action c916fcb2c6 [ci skip] Translation update 2022-08-27 00:24:30 +00:00
GitHub Action d7724235ff [ci skip] Translation update 2022-08-26 00:27:16 +00:00
GitHub Action 16b93d1af2 [ci skip] Translation update 2022-08-25 00:28:02 +00:00
J. Nick Koston 109d5c7084
Fix bluetooth discovery when advertisement format changes (#77286) 2022-08-24 17:36:21 -05:00
J. Nick Koston d1486d04d9
Add support for bleak passive scanning on linux (#75542) 2022-08-24 12:17:28 -05:00
GitHub Action a4dcb3a9c1 [ci skip] Translation update 2022-08-24 00:27:09 +00:00
J. Nick Koston c975146146
Reduce discovery integration matching overhead (#77194) 2022-08-23 10:35:20 -04:00
J. Nick Koston c76dec138a
Discover new bluetooth adapters when they are plugged in (#77006) 2022-08-22 15:45:08 -10:00
GitHub Action 0f0e398945 [ci skip] Translation update 2022-08-23 00:32:02 +00:00
J. Nick Koston 3938015c93
Add support for scanners that do not provide connectable devices (#77132) 2022-08-22 14:02:26 -04:00
J. Nick Koston f3e432c9c7
Reduce bluetooth logging noise when an adapter is recovered (#77109) 2022-08-21 12:03:14 -10:00
GitHub Action 296e52d918 [ci skip] Translation update 2022-08-21 00:24:25 +00:00
J. Nick Koston 2d0b11f18e
Add a new constant for multiple bluetooth watchdog failure hits (#77081) 2022-08-20 13:41:25 -10:00
J. Nick Koston 0bd4973134
Bump bluetooth-auto-recovery to 0.2.2 (#77082) 2022-08-20 13:41:09 -10:00
J. Nick Koston ced8278e32
Auto recover when the Bluetooth adapter stops responding (#77043) 2022-08-20 11:58:14 -10:00
J. Nick Koston 18246bb8c8
Improve bluetooth logging when there are multiple adapters (#77007) 2022-08-20 13:22:42 -04:00
GitHub Action 21cd2f5db7 [ci skip] Translation update 2022-08-20 00:23:43 +00:00
J. Nick Koston cd59d3ab81
Add support for multiple Bluetooth adapters (#76963) 2022-08-18 21:41:07 -04:00
J. Nick Koston 071cae2c0b
Implement auto switching when there are multiple bluetooth scanners (#76947) 2022-08-17 12:38:04 -10:00
J. Nick Koston 7bf13167d8
Prevent bluetooth scanner from being shutdown by BleakClient not using BLEDevice (#76945) 2022-08-17 11:42:12 -10:00
J. Nick Koston 3bcc274dfa
Rework bluetooth to support scans from multiple sources (#76900) 2022-08-17 10:51:56 -10:00
J. Nick Koston 6f3cdb6db1
Reorganize bluetooth integration to prepare for remote and multi-adapter support (#76883) 2022-08-16 14:52:53 -10:00
GitHub Action ff3fd4c29d [ci skip] Translation update 2022-08-16 00:30:51 +00:00
J. Nick Koston 4890785299
Fix bluetooth callback registration not surviving a reload (#76817) 2022-08-15 10:19:37 -10:00
J. Nick Koston eeb9a9f058
Make sure all discovery flows are using the helper (#76641) 2022-08-12 09:25:23 -04:00
GitHub Action 519d478d61 [ci skip] Translation update 2022-08-11 00:26:23 +00:00
Jc2k 0639681991
Add new Bluetooth coordinator helper for polling mostly passive devices (#76549) 2022-08-10 18:56:34 +01:00
Jc2k 7d427ddbd4
Allow parsing to happen in PassiveBluetoothProcessorCoordinator (#76384) 2022-08-09 06:36:39 +01:00
J. Nick Koston 1fe44d0997
Ensure bluetooth recovers if Dbus gets restarted (#76249) 2022-08-07 11:03:56 -04:00
Joakim Plate cdde4f9925
Add bluetooth API to allow rediscovery of address (#76005)
* Add API to allow rediscovery of domains

* Switch to clearing per device

* Drop unneded change
2022-08-05 14:49:34 +02:00
GitHub Action cb46441b74 [ci skip] Translation update 2022-08-05 00:28:51 +00:00
J. Nick Koston 5d7cef6416
Fix race in bluetooth async_process_advertisements (#76176) 2022-08-04 17:58:15 +02:00
J. Nick Koston 34b0e0d062
Bump bleak to 0.15.1 (#76136) 2022-08-03 07:46:54 -10:00
J. Nick Koston bf931f1225
Handle additional bluetooth start exceptions (#76096) 2022-08-02 13:46:43 -10:00
J. Nick Koston 56050e9fbe
Lower bluetooth startup timeout to 9s to avoid warning (#76050) 2022-08-02 08:46:22 +02:00
J. Nick Koston 33651d14df
Bump bluetooth-adapters to 0.1.3 (#76052) 2022-08-02 08:36:27 +02:00
GitHub Action 81e3ef03f7 [ci skip] Translation update 2022-08-02 00:27:42 +00:00
Franck Nijhof fc399f21e9
Guard imports for type hinting in Bluetooth (#75984) 2022-08-01 17:54:06 +02:00
GitHub Action 5bb5920697 [ci skip] Translation update 2022-08-01 00:28:32 +00:00
J. Nick Koston 80a9659524
Update to bleak 0.15 (#75941) 2022-07-29 17:53:33 -07:00