Commit Graph

105 Commits

Author SHA1 Message Date
J. Nick Koston
eebc7d99f2
Make entity info and state mappings constants (#523) 2023-08-15 22:19:46 -05:00
Jesse Hills
2c7b2ed1a0
Add wake word capability to voice assistant (#519) 2023-08-10 16:03:15 +12:00
J. Nick Koston
90cb44224a
Reduce memory churn by avoiding reprocessing BluetoothLERawAdvertisement (#507) 2023-07-27 08:17:40 -05:00
J. Nick Koston
3432477c20
Avoid some data Bluetooth data conversions (#501) 2023-07-21 03:33:07 -05:00
J. Nick Koston
82ab7e489d
Add messages to all task cancels (#497) 2023-07-19 15:37:59 -05:00
J. Nick Koston
d63b9bbf5d
Upgrade python code to 3.9 (#496) 2023-07-19 15:33:28 -05:00
J. Nick Koston
2d89b9e267
Cleanup bluetooth connection failure code (#495) 2023-07-19 14:25:32 -05:00
J. Nick Koston
541ce059c0
Add slots to all models when using py3.10 or later (#459) 2023-07-18 17:23:07 -05:00
J. Nick Koston
8060c3c99d
Small speed up to bluetooth message wrapper (#490) 2023-07-18 14:11:06 -05:00
J. Nick Koston
92ec96469d
Remove memoryview wrapping for cameras (#484) 2023-07-17 09:47:06 -10:00
J. Nick Koston
6aeea79884
Speed up BLE connections (#482) 2023-07-15 11:16:44 -10:00
J. Nick Koston
ed0a611994
Improve error reporting for authenticated vs non-authenticated requests (#481) 2023-07-15 10:34:46 -10:00
J. Nick Koston
9112a68bf9
Guard a few frequently called instance checks with if TYPE_CHECKING (#469) 2023-07-15 07:55:07 -10:00
J. Nick Koston
8ac62a321f
Improve performance of converting raw BLE advertisements (#462) 2023-07-09 13:06:06 -10:00
J. Nick Koston
d53ab5d5bb
Use memoryview for camera images (#456) 2023-07-03 18:26:52 -05:00
J. Nick Koston
34f6badcde
Use slots for APIConnection and APIClient (#453) 2023-07-01 16:31:58 -05:00
Graham Brown
a79da42aaf
Add support for alarm_control_panel entities (#427) 2023-06-12 10:39:49 +12:00
Jesse Hills
44f0b8027d
Add raw ble advertisements support (#439)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-06-07 00:42:57 -05:00
Jesse Hills
8340d2a6b8
Add use_vad flag to VA start request (#438) 2023-05-30 14:17:55 +12:00
Jesse Hills
b1bfabacc7
Add conversation_id to VA start request (#437) 2023-05-30 11:18:28 +12:00
J. Nick Koston
7b8ed9fd03
Fix BLE connection timing out on failure instead of raising (#429) 2023-05-07 09:05:51 -05:00
J. Nick Koston
de9b7266f1
Refactor reconnect logic to reduce complexity (#426) 2023-04-25 16:11:40 -04:00
J. Nick Koston
3f29ac92ad
Hold strong references to voice assistant tasks (#424) 2023-04-20 14:30:28 -10:00
Jesse Hills
15846c5896
Add initial voice assistant support (#412) 2023-04-11 15:57:35 +12:00
Jesse Hills
d7ae431c59
Disable pylint too-many-lines (#413) 2023-04-03 16:53:43 +12:00
J. Nick Koston
d6fd9b6cfd
Add the ability to clear the cache to the API (#410)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2023-03-27 10:47:21 +13:00
richardhopton
4bb8fbbed1
feat: Unsubscribe from BLE advertisements fully on unsub (#409) 2023-03-27 09:35:11 +13:00
Fredrik Gustafsson
2041d747cb
add pairing methods (#390) 2023-03-07 07:07:58 +13:00
J. Nick Koston
0327f75414
Adjust ping timeout to prevent premature disconnections (#395) 2023-03-05 18:56:22 -10:00
J. Nick Koston
51d581dd9c
Cooldown before reconnecting on expected disconnect (#397) 2023-03-05 18:54:54 -10:00
Fredrik Gustafsson
3e60332a71
Fix bluetooth_device_connect returning prematurely from a disconnect (#391) 2023-02-24 08:31:24 -06:00
J. Nick Koston
f99db3577c
Remove useless on_msg function in subscribe_logs (#380) 2023-02-13 11:42:14 +13:00
J. Nick Koston
284b767d8d
Refactor cleanup to be a normal function (#355) 2023-01-06 21:42:39 -05:00
J. Nick Koston
2886d361f0
Simplify connection flow with an asyncio.Protocol (#352) 2023-01-05 23:24:10 -05:00
J. Nick Koston
049dc8bb56
Speed up parsing/conversion of BluetoothLEAdvertisement (#353) 2023-01-05 21:23:40 -05:00
J. Nick Koston
b34664e44c
Fix failure to reconnect when the process task raises an exception during decoding a protobuf message (#339) 2022-12-13 10:31:12 -10:00
J. Nick Koston
577868a84c
Add method to cancel bluetooth_gatt_start_notify upon ble device disconnect (#329) 2022-12-02 09:51:03 -10:00
J. Nick Koston
de5cdfa230
Callback messages to listeners by type (#328) 2022-12-02 09:36:58 -10:00
J. Nick Koston
4f7a1faddd
Fix bluetooth write without response (#326) 2022-12-01 11:36:58 +13:00
J. Nick Koston
a937d9d85a
Add address_type to BluetoothLEAdvertisementResponse and BluetoothDeviceRequest (#320) 2022-11-29 17:00:27 +13:00
J. Nick Koston
e3094db6ad
Active BLE connection v3 (#317) 2022-11-29 15:06:13 +13:00
Jesse Hills
c3d610e45a
Increase timeout while waiting for ListEntities to be done (#318) 2022-11-28 23:07:58 +13:00
J. Nick Koston
ac303e8986
Fix connection subscription leak on cancelation (#316) 2022-11-28 23:06:06 +13:00
J. Nick Koston
14a2e30ec3
Wait for BLE disconnect when connecting timeouts (#310) 2022-11-23 07:32:04 +13:00
J. Nick Koston
dbfff4397e
Fix BLE writes timing out (#298) 2022-11-07 08:32:32 +13:00
J. Nick Koston
c6e824e778
Improve bluetooth error reporting (#297)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2022-11-01 09:32:40 +13:00
Jesse Hills
c7edc2e601
Raise GATT errors on read and write etc (#272)
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-10-31 11:38:24 +13:00
J. Nick Koston
cb6b1595b7
Fix race while disconnecting after connect timeout (#295) 2022-10-31 11:26:09 +13:00
J. Nick Koston
56cceea672
Disconnect ble device if connect attempt fails to recover slot (#293) 2022-10-31 09:09:01 +13:00
J. Nick Koston
745e0b688e
Adjust ble timeouts to be longer than bleak timeouts (#287) 2022-10-25 16:12:52 +13:00