Commit Graph

801 Commits (1849d68e786006d16dba35d3bddc4137b6afda18)

Author SHA1 Message Date
J. Nick Koston 3f11bb5f62
Speed up connecting to ESPHome devices (#104018) 2023-11-15 10:28:49 +01:00
J. Nick Koston 48a8ae4df5
Bump aioesphomeapi to 18.4.0 (#103817) 2023-11-11 18:27:49 -06:00
J. Nick Koston a06fabfbc6
Bump aioesphomeapi to 18.3.0 (#103730)
changelog: https://github.com/esphome/aioesphomeapi/compare/v18.2.7...v18.3.0
2023-11-10 07:30:31 +01:00
J. Nick Koston 78add0f51d
Bump aioesphomeapi to 18.2.7 (#103676) 2023-11-09 08:47:37 +01:00
J. Nick Koston 2a80164508
Bump aioesphomeapi to 18.2.4 (#103552) 2023-11-07 11:22:41 +01:00
Michael Hansen ae516ffbb5
Automatically convert TTS audio to MP3 on demand (#102814)
* Add ATTR_PREFERRED_FORMAT to TTS for auto-converting audio

* Move conversion into SpeechManager

* Handle None case for expected_extension

* Only use ATTR_AUDIO_OUTPUT

* Prefer MP3 in pipelines

* Automatically convert to mp3 on demand

* Add preferred audio format

* Break out preferred format

* Add ATTR_BLOCKING to allow async fetching

* Make a copy of supported options

* Fix MaryTTS tests

* Update ESPHome to use "wav" instead of "raw"

* Clean up tests, remove blocking

* Clean up rest of TTS tests

* Fix ESPHome tests

* More test coverage
2023-11-06 15:26:00 -05:00
J. Nick Koston 8ef3cf2e18
Bump bluetooth-data-tools to 0.14.0 (#103413)
changelog: https://github.com/Bluetooth-Devices/bluetooth-data-tools/compare/v1.13.0...v1.14.0
2023-11-05 07:07:44 -06:00
J. Nick Koston 6ea5af7575
Bump aioesphomeapi to 18.2.1 (#103156) 2023-11-01 08:56:48 +01:00
Jesse Hills 4838b2dee6
ESPHome: Add suggested_area from device info (#102834) 2023-10-26 09:19:31 +02:00
Jesse Hills ad692f3341
ESPHome Text entities (#102742) 2023-10-24 23:14:58 -05:00
J. Nick Koston 80b3fec675
Bump aioesphomeapi to 18.0.12 (#102626)
changelog: https://github.com/esphome/aioesphomeapi/compare/v18.0.11...v18.0.12
2023-10-24 08:35:59 -05:00
J. Nick Koston 4c8a919ca3
Bump aioesphomeapi to 18.0.11 (#102603) 2023-10-23 15:46:05 -05:00
J. Nick Koston 4bf0d6e536
Bump aioesphomeapi to 18.0.10 (#102545) 2023-10-22 09:20:49 -10:00
J. Nick Koston 215febc912
Bump aioesphomeapi to 18.0.9 (#102509) 2023-10-21 20:17:22 -10:00
J. Nick Koston 6f2245bba3
Bump aioesphomeapi to 18.0.8 (#102493) 2023-10-21 16:51:12 -10:00
J. Nick Koston 0bd416e53d
Bump aioesphomeapi to 18.0.7 (#102399) 2023-10-20 08:00:55 -10:00
J. Nick Koston 22de378d91
Bump bluetooth-data-tools to 1.13.0 (#102208) 2023-10-18 08:54:17 -10:00
J. Nick Koston cfb88766c7
Bump aioesphomeapi to 18.0.6 (#102195) 2023-10-17 21:31:40 -10:00
Michael Hansen 474f4329bc
Don't warn about unknown pipeline events in ESPHome (#102174)
Don't warn about unknown events (debug)
2023-10-17 11:57:08 -04:00
Jesse Hills 16c5a12c87
Send events for tts stream start/end (#102139) 2023-10-17 19:46:25 +13:00
J. Nick Koston 88296c1998
Migrate ESPHome unique ids to new format (#99451) 2023-10-15 17:05:20 -10:00
J. Nick Koston 17c9d85e0e
Bump aioesphomeapi to 18.0.3 (#102085) 2023-10-15 16:32:55 -10:00
Abílio Costa c60cc11505
Call disconnected callbacks from BT ESPHome client (#102084)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-10-15 14:00:19 -10:00
J. Nick Koston 5b8da03596
Bump aioesphomeapi to 18.0.1 (#102028)
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2023-10-14 23:42:22 -10:00
J. Nick Koston 89d86fe983
Bump aioesphomeapi to 17.2.0 (#101981)
* Bump aioesphomeapi to 17.2.0

changelog: https://github.com/esphome/aioesphomeapi/compare/v17.1.5...v17.2.0

* fix import from wrong module
2023-10-14 11:48:59 +02:00
J. Nick Koston 43753b841f
Bump aioesphomeapi to 17.1.5 (#101916) 2023-10-13 11:05:52 +02:00
J. Nick Koston dc18a7f1fb
Bump aioesphomeapi to 17.1.4 (#101897) 2023-10-12 11:48:00 -10:00
Michael Hansen f0317f0d59
Close existing UDP server for ESPHome voice assistant (#101845) 2023-10-12 07:32:00 +13:00
Jesse Hills 09ba34fb3a
Allow esphome device to disable vad on stream (#101352) 2023-10-04 13:09:12 +13:00
Jesse Hills 63946175ea
Fix manual stopping of the voice assistant pipeline (#101351) 2023-10-03 19:15:56 -04:00
Jesse Hills 6ce6952a06
ESPHome: fix voice assistant default audio settings (#101241) 2023-10-02 10:35:15 +02:00
J. Nick Koston 377f00730a
Bump aioesphomeapi to 17.0.1 (#101214) 2023-10-01 19:33:53 +01:00
Jesse Hills d41144ee88
ESPHome: dont send error when wake word is aborted (#101032)
* ESPHome dont send error when wake word is aborted

* Add test
2023-09-27 23:39:57 -04:00
Jesse Hills 4c21aa18db
Add audio_settings for pipeline from ESPHome device (#100894)
* Add audio_settings for pipeline from ESPHome device

* ruff fixes

* Bump aioesphomeapi 17.0.0

* Mypy

* Fix tests

---------

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2023-09-26 16:27:26 -05:00
J. Nick Koston 6b19602322
Bump aioesphomeapi to 16.0.6 (#100826)
changelog: https://github.com/esphome/aioesphomeapi/compare/v16.0.5...v16.0.6
2023-09-25 07:22:42 +02:00
J. Nick Koston b9e8566608
Bump bluetooth-data-tools to 0.12.0 (#100794) 2023-09-24 20:29:29 +02:00
Robert Resch e4742c04f2
Fix missspelled package names (#100670) 2023-09-21 10:57:23 +02:00
J. Nick Koston b370244ed4
Switch ESPHome Bluetooth to use loop.create_future() (#100010) 2023-09-09 17:34:31 -05:00
J. Nick Koston da45f6cbb0
Bump aioesphomeapi to 16.0.5 (#99698)
changelog: https://github.com/esphome/aioesphomeapi/compare/v16.0.4...v16.0.5

fixes `RuntimeError: set changed size during iteration`

https://github.com/esphome/aioesphomeapi/pull/538

some added debug logging which may help with https://github.com/home-assistant/core/issues/98221
2023-09-05 20:42:50 -05:00
J. Nick Koston b752419f25
Bump aioesphomeapi to 16.0.4 (#99541) 2023-09-03 09:13:34 -05:00
J. Nick Koston 00893bbf14
Bump bleak to 0.21.0 (#99520)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-09-03 08:22:03 -05:00
Jc2k e465a4f820
Update bluetooth-data-tools to 1.11.0 (#99485) 2023-09-01 17:33:19 -05:00
Keith Burzinski 5e03954e69
Add @kbx81 as esphome codeowner (#99427)
* Add @kbx81 as esphome codeowner

* Add @kbx81 as esphome codeowner, take 2
2023-08-31 23:50:25 +02:00
J. Nick Koston 5006244f4c
Bump aioesphomeapi to 16.0.3 (#99282) 2023-08-29 09:31:41 -05:00
J. Nick Koston 6cd28b64e8
Bump bluetooth-data-tools 1.9.1 (#99131) 2023-08-27 10:10:00 -05:00
Ville Skyttä e7b6037419
Remove unnnecessary pylint configs from components [e-l]* (#99004) 2023-08-25 09:46:34 +02:00
J. Nick Koston 46a0f84101
Bump bluetooth-data-tools to 1.9.0 (#98927) 2023-08-23 20:18:21 -05:00
J. Nick Koston 49d73441bf
Abort ESPHome connection when both name and mac address do not match (#98787) 2023-08-22 23:02:23 +02:00
Jesse Hills 57bc8ae68e
Set assist pipeline binary sensor to true only when stt-start is received (#98844) 2023-08-23 08:00:38 +12:00
Jesse Hills a42d975c49
ESPHome Wake Word support (#98544)
* ESPHome Wake Word support

* Remove all vad code from esphome integration

* Catch exception when no wake word provider found

* Remove import

* Remove esphome vad tests

* Add tests

* More tests
2023-08-21 12:13:02 -04:00
Ville Skyttä 3094991236
Upgrade ruff to 0.0.285 (#98647) 2023-08-19 08:17:17 -04:00
J. Nick Koston 3e14e5acba
Bump aioesphomeapi to 16.0.1 (#98536) 2023-08-17 17:46:21 +02:00
J. Nick Koston e95979e9af
Bump ESPHome recommended BLE version to 2023.8.0 (#98586) 2023-08-17 17:39:35 +02:00
Marc Mueller e2d2ec8817
Use asyncio.timeout [b-e] (#98448) 2023-08-15 08:30:20 -05:00
Erik Montnemery 8b99d4678f
Correct checks for non-finite numbers in ESPHome (#98102) 2023-08-12 08:10:25 +01:00
Erik Montnemery 045c327928
Move DeviceInfo from entity to device registry (#98149)
* Move DeviceInfo from entity to device registry

* Update integrations
2023-08-10 22:04:26 -04:00
J. Nick Koston 108bcabf75
Add missing transmit power to ESPHome Bluetooth scanners (#98175)
We did not previously have a way to get the transmit power value when using
ESPHome scanners. bluetooth-data-tools 1.8.0 includes it in the
advertisment tuple to fully align with the bleak implementation.

txpower is not yet used in the HA codebase but may be expected by
upstream libaries that calculate estimated distance
2023-08-10 21:59:37 -04:00
Franck Nijhof 868a5f377f
Ruff: isort don't split imports based on trailing comma (#98162) 2023-08-10 14:27:03 +02:00
J. Nick Koston c478a81deb
Bump bluetooth-data-tools to 1.7.0 (#97821) 2023-08-05 22:21:46 +02:00
J. Nick Koston 708b00d7ab
Use legacy rules for ESPHome entity_id construction if `friendly_name` is unset (#97578) 2023-08-01 21:08:12 +02:00
J. Nick Koston afdbbefc31
Revert using has_entity_name in ESPHome when `friendly_name` is not set (#97488) 2023-07-30 18:28:45 +02:00
J. Nick Koston 1b10c44a16
Disable always_update in esphome dashboard coordinator (#97419) 2023-07-28 12:42:04 -05:00
J. Nick Koston cbc8ebb427
Bump aioesphomeapi to 15.1.15 (#97335)
changelog: https://github.com/esphome/aioesphomeapi/compare/v15.1.14...v15.1.15
2023-07-27 09:30:31 -05:00
J. Nick Koston 593960c704
Bump bluetooth deps (#97157) 2023-07-24 19:49:24 +02:00
Marc Mueller 0cc396b863
Use EventType for state changed [a-h] (#97116) 2023-07-24 08:04:13 +02:00
J. Nick Koston 095146b163
Fix has_entity_name not always being set in ESPHome (#97055) 2023-07-23 10:45:48 +02:00
Marc Mueller 77f38e33e5
Import names from typing instead of typing_extensions [3.11] (#97065) 2023-07-22 17:03:44 -05:00
J. Nick Koston 24b9bde9e5
Fix duplicate and missing decorators in ESPHome Bluetooth client (#97027) 2023-07-22 13:10:41 +02:00
J. Nick Koston 2c4e4428e9
Decouple more of ESPHome Bluetooth support (#96502)
* Decouple more of ESPHome Bluetooth support

The goal is to be able to move more of this into an external library

* Decouple more of ESPHome Bluetooth support

The goal is to be able to move more of this into an external library

* Decouple more of ESPHome Bluetooth support

The goal is to be able to move more of this into an external library

* Decouple more of ESPHome Bluetooth support

The goal is to be able to move more of this into an external library

* Decouple more of ESPHome Bluetooth support

The goal is to be able to move more of this into an external library

* fix diag

* remove need for hass in the client

* refactor

* decouple more

* decouple more

* decouple more

* decouple more

* decouple more

* remove unreachable code

* remove unreachable code
2023-07-21 16:41:50 -04:00
J. Nick Koston 7814ce06f4
Fix ESPHome bluetooth client cancel behavior when device unexpectedly disconnects (#96918) 2023-07-21 13:44:13 -05:00
J. Nick Koston 0b0f072faf
Bump aioesphomeapi to 15.1.14 (#97019)
changelog: https://github.com/esphome/aioesphomeapi/compare/v15.1.13...v15.1.14
2023-07-21 13:05:46 -04:00
J. Nick Koston 6818cae072
Bump aioesphomeapi to 15.1.13 (#96964) 2023-07-20 16:05:17 -05:00
J. Nick Koston 955bed0128
Bump aioesphomeapi to 15.1.12 (#96924) 2023-07-19 18:39:50 -05:00
J. Nick Koston 9b839041fa
Bump aioesphomeapi to 15.1.11 (#96873) 2023-07-19 06:49:40 +02:00
J. Nick Koston 6bd4ace3c3
Fix ESPHome bluetooth client cancellation when the operation is cancelled externally (#96804) 2023-07-18 03:39:26 -10:00
J. Nick Koston eb60dc65ec
Bump aioesphomeapi to 15.1.9 (#96791) 2023-07-17 15:35:37 -10:00
mattmccormack 2f8b88e6ef
Add string "Quiet" to fan mode in climate component (#96584) 2023-07-17 09:25:01 +02:00
J. Nick Koston 30e05ab85e
Bump aioesphomeapi to 15.1.7 (#96615) 2023-07-15 12:31:35 -10:00
J. Nick Koston 9775832d53
Remove unreachable code in the ESPHome fan platform (#96458) 2023-07-14 13:37:16 -10:00
J. Nick Koston b77de2abaf
Handle empty strings for ESPHome UOMs (#96556) 2023-07-14 12:14:32 -10:00
J. Nick Koston c44c7bba84
Simplify ESPHome bluetooth disconnected during operation wrapper (#96459) 2023-07-13 16:45:45 -10:00
J. Nick Koston 09237e4eff
Remove unused code in ESPHome (#96503) 2023-07-13 13:38:15 -10:00
J. Nick Koston c86b60bdf7
Bump bluetooth-data-tools to 1.6.0 (#96461) 2023-07-13 11:42:11 -10:00
Paulus Schoutsen 7859be6481
Add deduplicate translations script (#96384)
* Add deduplicate script

* Fix forecast_solar incorrect key with space

* Fix utf-8

* Do not create references to other arbitrary other integrations

* Add commented code to only allow applying to referencing integrations

* Tweak

* Bug fix

* Add command line arg for limit reference

* never suggest to update common keys

* Output of script

* Apply suggestions from code review

Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>

---------

Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
2023-07-13 11:52:50 -04:00
J. Nick Koston ffe81a9716
Improve ESPHome update platform error reporting (#96455) 2023-07-12 16:46:29 -10:00
J. Nick Koston 7009683226
Ensure ESPHome dashboard connection recovers if its down when core starts (#96449) 2023-07-12 14:37:28 -10:00
J. Nick Koston 5d5c58338f
Fix ESPHome deep sleep devices staying unavailable after unexpected disconnect (#96353) 2023-07-11 11:12:24 -10:00
J. Nick Koston b106ca7983
Fix race fetching ESPHome dashboard when there are no devices set up (#96196)
* Fix fetching ESPHome dashboard when there are no devices setup

fixes #96194

* coverage

* fix
2023-07-11 14:11:51 -04:00
J. Nick Koston 85ed347ff3
Bump aioesphomeapi to 15.1.6 (#96297)
* Bump aioesphomeapi to 15.1.5

changelog: https://github.com/esphome/aioesphomeapi/compare/v15.1.4...v15.1.5

- reduce traffic
- improve error reporting

* 6
2023-07-11 14:08:01 -04:00
J. Nick Koston 7dc03ef301
Use the ESPHome object_id to suggest the entity id (#95852) 2023-07-10 13:02:34 +02:00
J. Nick Koston fa6d659f2b
Bump aioesphomeapi to 15.1.4 (#96227) 2023-07-10 11:11:08 +02:00
J. Nick Koston 995fb993e6
Avoid probing ESPHome devices when we do not have the encryption key (#95820) 2023-07-09 12:57:04 -10:00
J. Nick Koston e39f023e3f
Refactor ESPHome camera to avoid creating tasks (#95818) 2023-07-08 12:36:40 +02:00
J. Nick Koston e38f55fdb6
Move ESPHomeManager into its own file (#95870)
* Move ESPHomeManager into its own file

This is not a functional change. This is only a reorganization
ahead of some more test coverage being added so moving tests
around can be avoided later.

* relos

* fixes

* merge a portion of new cover since its small and allows us to remove the __init__ from .coveragerc
2023-07-08 09:19:44 +02:00
J. Nick Koston 6402e2c140
Bump aioesphomeapi to 15.1.3 (#95819) 2023-07-07 18:25:54 +02:00
J. Nick Koston 505f8fa363
Fix ESPHome camera not accepting the same exact image bytes (#95822) 2023-07-05 07:17:28 -05:00
J. Nick Koston 659281aab6
Fix ESPHome alarm_control_panel when state is missing (#95871) 2023-07-05 08:35:40 +02:00
J. Nick Koston 73f90035bb
Bump aioesphomeapi to 15.1.2 (#95792)
changelog: https://github.com/esphome/aioesphomeapi/compare/v15.1.1...v15.1.2

intentionally not tagged for beta to give it more time in dev
since we are near the end of the beta cycle
2023-07-03 14:19:41 -04:00
J. Nick Koston 7bdd64a3f7
Handle invalid utf-8 from the ESPHome dashboard (#95743)
If the yaml file has invalid utf-8, the config flow would raise an
unhandled exception. Allow the encryption key to be entered manually
in this case instead of a hard failure

fixes #92772
2023-07-02 22:47:25 -04:00
J. Nick Koston f0cb03e631
Handle missing or incorrect device name and unique id for ESPHome during manual add (#95678)
* Handle incorrect or missing device name for ESPHome noise encryption

If we did not have the device name during setup we could never
get the key from the dashboard. The device will send us
its name if we try encryption which allows us to find the
right key from the dashboard.

This should help get users unstuck when they change the key
and cannot get the device back online after deleting and
trying to set it up again manually

* bump lib to get name

* tweak

* reduce number of connections

* less connections when we know we will fail

* coverage shows it works but it does not

* add more coverage

* fix test

* bump again
2023-07-02 10:29:45 -04:00