carleeno / elevenlabs_tts

Custom TTS Integration using ElevenLabs API
Apache License 2.0
91 stars 11 forks source link

Error: Could not find voice with identifier Domi #136

Closed cmgrayb closed 1 month ago

cmgrayb commented 1 month ago

System Health details

System Information

version core-2024.7.3
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.12.4
os_name Linux
os_version 6.6.31-haos-raspi
arch aarch64
timezone America/Los_Angeles
config_dir /config
Home Assistant Community Store GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 4458 Installed Version | 1.34.0 Stage | running Available Repositories | 1393 Downloaded Repositories | 104
AccuWeather can_reach_server | ok -- | -- remaining_requests | 29
Home Assistant Cloud logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | ok
Home Assistant Supervisor host_os | Home Assistant OS 12.4 -- | -- update_channel | stable supervisor_version | supervisor-2024.06.2 agent_version | 1.6.0 docker_version | 26.1.4 disk_total | 469.4 GB disk_used | 19.0 GB healthy | true supported | true host_connectivity | true supervisor_connectivity | true ntp_synchronized | true virtualization | board | yellow supervisor_api | ok version_api | ok installed_addons | Matter Server (6.3.1), Mosquitto broker (6.4.1), Duck DNS (1.18.0), NGINX Home Assistant SSL proxy (3.9.0), Samba share (12.3.1), OneDrive Backup (2.3.1), ESPHome (2024.7.0), Govee to MQTT Bridge (2024.07.13-82ddc6e9), Dnsmasq (1.8.1), Piper (1.5.1), Whisper (2.1.2), Genie - Edge (edge-0c63b72), openWakeWord (1.10.0), Music Assistant (2.0.7), Studio Code Server (5.15.0)
Dashboards dashboards | 14 -- | -- resources | 70 views | 28 mode | storage
Recorder oldest_recorder_run | July 9, 2024 at 11:17 AM -- | -- current_recorder_run | July 19, 2024 at 6:37 PM estimated_db_size | 1587.52 MiB database_engine | sqlite database_version | 3.45.3

Checklist

Describe the issue

Starting today,

When loading the ElevenLabs TTS integration, the integration fails and leaves an error in the log as follows:

This error originated from a custom integration.

Logger: custom_components.elevenlabs_tts.elevenlabs Source: custom_components/elevenlabs_tts/elevenlabs.py:116 integration: ElevenLabs TTS (documentation, issues) First occurred: 6:37:29 PM (4 occurrences) Last logged: 6:45:54 PM

Could not find voice with identifier Domi

Domi is not selected in configuration, but Domi is listed as Domi (Legacy) on ElevenLabs.

Reproduction steps

  1. Reload existing configuration
  2. Copy API key and recreate the eleven labs configuration with a different, valid voice
  3. Reload new configuration
  4. Witness error in logs twice

Debug logs

2024-07-19 18:37:07.805 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration energy_meter which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-07-19 18:37:07.808 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration epson_projector_link which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-07-19 18:37:07.811 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration elevenlabs_tts which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-07-19 18:37:07.817 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration smartir which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-07-19 18:37:07.821 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration grad_vol which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-07-19 18:37:07.823 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration plant which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-07-19 18:37:07.825 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hass_agent which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-07-19 18:37:07.827 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration lennoxs30 which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-07-19 18:37:07.829 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration sun2 which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-07-19 18:37:07.831 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-07-19 18:37:07.832 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration smartthinq_sensors which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-07-19 18:37:07.834 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration bhyve which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-07-19 18:37:07.836 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration flair which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-07-19 18:37:07.837 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration scene_presets which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-07-19 18:37:07.840 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration attributes which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-07-19 18:37:07.842 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration openplantbook which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-07-19 18:37:07.844 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration huesyncbox which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-07-19 18:37:16.178 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' calls hass.http.register_static_path which is deprecated because it does blocking I/O in the event loop, instead call `await hass.http.async_register_static_paths([StaticPathConfig("/hacsfiles/themes", "/config/themes", True)])`; This function will be removed in 2025.7 at custom_components/hacs/base.py, line 1182: self.hass.http.register_static_path(f"{URL_BASE}/themes", self.hass.config.path("themes")), please create a bug report at https://github.com/hacs/integration/issues
2024-07-19 18:37:16.189 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' calls hass.http.register_static_path which is deprecated because it does blocking I/O in the event loop, instead call `await hass.http.async_register_static_paths([StaticPathConfig("/hacsfiles/frontend", "/config/custom_components/hacs/hacs_frontend", False)])`; This function will be removed in 2025.7 at custom_components/hacs/frontend.py, line 54: hass.http.register_static_path(f"{URL_BASE}/frontend", locate_dir(), cache_headers=False), please create a bug report at https://github.com/hacs/integration/issues
2024-07-19 18:37:16.197 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' calls hass.http.register_static_path which is deprecated because it does blocking I/O in the event loop, instead call `await hass.http.async_register_static_paths([StaticPathConfig("/hacsfiles/iconset.js", "/config/custom_components/hacs/iconset.js", True)])`; This function will be removed in 2025.7 at custom_components/hacs/frontend.py, line 57: hass.http.register_static_path(, please create a bug report at https://github.com/hacs/integration/issues
2024-07-19 18:37:16.206 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' accesses hass.components.frontend. This is deprecated and will stop working in Home Assistant 2024.9, it should be updated to import functions used from frontend directly at custom_components/hacs/frontend.py, line 68: hass.components.frontend.async_register_built_in_panel(, please create a bug report at https://github.com/hacs/integration/issues
2024-07-19 18:37:16.214 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' calls hass.http.register_static_path which is deprecated because it does blocking I/O in the event loop, instead call `await hass.http.async_register_static_paths([StaticPathConfig("/hacsfiles", "/config/www/community", True)])`; This function will be removed in 2025.7 at custom_components/hacs/base.py, line 1162: self.hass.http.register_static_path(, please create a bug report at https://github.com/hacs/integration/issues
2024-07-19 18:37:28.713 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to open with args ('/config/custom_components/smartir/codes/media_player/1062.json',) inside the event loop by custom integration 'smartir' at custom_components/smartir/media_player.py, line 75: with open(device_json_path) as j: (offender: /config/custom_components/smartir/media_player.py, line 75: with open(device_json_path) as j:), please report it to the author of the 'smartir' custom integration
For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#open
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/usr/src/homeassistant/homeassistant/__main__.py", line 223, in <module>
    sys.exit(main())
  File "/usr/src/homeassistant/homeassistant/__main__.py", line 209, in main
    exit_code = runner.run(runtime_conf)
  File "/usr/src/homeassistant/homeassistant/runner.py", line 190, in run
    return loop.run_until_complete(setup_and_run_hass(runtime_config))
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete
    self.run_forever()
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 641, in run_forever
    self._run_once()
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1990, in _run_once
    handle._run()
  File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 318, in async_setup_platform
    await self._platforms[key].async_setup(platform_config, discovery_info)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 301, in async_setup
    await self._async_setup_platform(async_create_setup_awaitable)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 361, in _async_setup_platform
    awaitable = create_eager_task(awaitable, loop=hass.loop)
  File "/usr/src/homeassistant/homeassistant/util/async_.py", line 37, in create_eager_task
    return Task(coro, loop=loop, name=name, eager_start=True)
  File "/config/custom_components/smartir/media_player.py", line 75, in async_setup_platform
    with open(device_json_path) as j:

2024-07-19 18:37:28.716 WARNING (MainThread) [homeassistant.helpers.entity] Entity None (<class 'custom_components.smartir.media_player.SmartIRMediaPlayer'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <MediaPlayerEntityFeature.VOLUME_MUTE|PREVIOUS_TRACK|NEXT_TRACK|TURN_ON|TURN_OFF|PLAY_MEDIA|VOLUME_STEP|SELECT_SOURCE: 4024>, please report it to the author of the 'smartir' custom integration and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation
2024-07-19 18:37:28.728 WARNING (MainThread) [homeassistant.helpers.entity] Entity None (<class 'custom_components.smartir.media_player.SmartIRMediaPlayer'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <MediaPlayerEntityFeature.TURN_ON|TURN_OFF: 384>, please report it to the author of the 'smartir' custom integration and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation
2024-07-19 18:37:28.740 WARNING (MainThread) [homeassistant.helpers.entity] Entity None (<class 'custom_components.smartir.media_player.SmartIRMediaPlayer'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <MediaPlayerEntityFeature.TURN_ON|TURN_OFF: 384>, please report it to the author of the 'smartir' custom integration and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation
2024-07-19 18:37:28.750 WARNING (MainThread) [homeassistant.helpers.entity] Entity None (<class 'custom_components.smartir.media_player.SmartIRMediaPlayer'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <MediaPlayerEntityFeature.TURN_ON|TURN_OFF: 384>, please report it to the author of the 'smartir' custom integration and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation
2024-07-19 18:37:29.394 WARNING (MainThread) [custom_components.elevenlabs_tts.elevenlabs] Could not find voice with identifier Domi
2024-07-19 18:37:33.367 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'scene_presets' calls hass.http.register_static_path which is deprecated because it does blocking I/O in the event loop, instead call `await hass.http.async_register_static_paths([StaticPathConfig("/scene_presets_panel.js", "/config/custom_components/scene_presets/frontend/scene_presets_panel.js", True)])`; This function will be removed in 2025.7 at custom_components/scene_presets/view.py, line 26: hass.http.register_static_path(, please create a bug report at https://github.com/Hypfer/hass-scene_presets/issues
2024-07-19 18:37:33.379 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'scene_presets' calls hass.http.register_static_path which is deprecated because it does blocking I/O in the event loop, instead call `await hass.http.async_register_static_paths([StaticPathConfig("/assets/scene_presets/e03267e7-9914-4f47-97fe-63c0bd317fe7.jpeg", "/config/custom_components/scene_presets/assets/e03267e7-9914-4f47-97fe-63c0bd317fe7.jpeg", True)])`; This function will be removed in 2025.7 at custom_components/scene_presets/view.py, line 71: hass.http.register_static_path(, please create a bug report at https://github.com/Hypfer/hass-scene_presets/issues
2024-07-19 18:37:35.276 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'scene_presets' calls hass.http.register_static_path which is deprecated because it does blocking I/O in the event loop, instead call `await hass.http.async_register_static_paths([StaticPathConfig("/assets/scene_presets/iconset.js", "/config/custom_components/scene_presets/res/iconset.js", True)])`; This function will be removed in 2025.7 at custom_components/scene_presets/view.py, line 52: hass.http.register_static_path(, please create a bug report at https://github.com/Hypfer/hass-scene_presets/issues
2024-07-19 18:37:36.019 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'lennoxs30' calls async_forward_entry_setup for integration, lennoxs30 with title: 192.168.1.61 and entry_id: 2ff08e5335c764b876f51d514c69cb71, which is deprecated and will stop working in Home Assistant 2025.6, await async_forward_entry_setups instead at custom_components/lennoxs30/__init__.py, line 552: self._hass.async_create_task(, please create a bug report at https://github.com/PeteRager/lennoxs30/issues
2024-07-19 18:37:40.522 WARNING (MainThread) [homeassistant.components.vizio.media_player] Lost connection to 192.168.1.130:7345
2024-07-19 18:37:40.525 WARNING (MainThread) [homeassistant.components.vizio.media_player] Lost connection to 192.168.1.128:7345
2024-07-19 18:37:51.477 WARNING (MainThread) [homeassistant.helpers.frame] Detected code that calls async_forward_entry_setup for integration lennoxs30 with title: 192.168.1.61 and entry_id: 2ff08e5335c764b876f51d514c69cb71, during setup without awaiting async_forward_entry_setup, which can cause the setup lock to be released before the setup is done. This will stop working in Home Assistant 2025.1. Please report this issue.
Stack (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/usr/src/homeassistant/homeassistant/__main__.py", line 223, in <module>
    sys.exit(main())
  File "/usr/src/homeassistant/homeassistant/__main__.py", line 209, in main
    exit_code = runner.run(runtime_conf)
  File "/usr/src/homeassistant/homeassistant/runner.py", line 190, in run
    return loop.run_until_complete(setup_and_run_hass(runtime_config))
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete
    self.run_forever()
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 641, in run_forever
    self._run_once()
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1990, in _run_once
    handle._run()
  File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2122, in async_forward_entry_setup
    _report_non_awaited_platform_forwards(entry, "async_forward_entry_setup")
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1175, in _report_non_awaited_platform_forwards
    report(
  File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 151, in report
    _LOGGER.warning(msg, stack_info=True)
2024-07-19 18:37:51.618 WARNING (MainThread) [homeassistant.helpers.frame] Detected code that calls async_forward_entry_setup for integration lennoxs30 with title: 192.168.1.61 and entry_id: 2ff08e5335c764b876f51d514c69cb71, during setup without awaiting async_forward_entry_setup, which can cause the setup lock to be released before the setup is done. This will stop working in Home Assistant 2025.1. Please report this issue.
Stack (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/usr/src/homeassistant/homeassistant/__main__.py", line 223, in <module>
    sys.exit(main())
  File "/usr/src/homeassistant/homeassistant/__main__.py", line 209, in main
    exit_code = runner.run(runtime_conf)
  File "/usr/src/homeassistant/homeassistant/runner.py", line 190, in run
    return loop.run_until_complete(setup_and_run_hass(runtime_config))
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete
    self.run_forever()
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 641, in run_forever
    self._run_once()
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1990, in _run_once
    handle._run()
  File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2122, in async_forward_entry_setup
    _report_non_awaited_platform_forwards(entry, "async_forward_entry_setup")
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1175, in _report_non_awaited_platform_forwards
    report(
  File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 151, in report
    _LOGGER.warning(msg, stack_info=True)
2024-07-19 18:37:51.853 WARNING (MainThread) [homeassistant.helpers.frame] Detected code that calls async_forward_entry_setup for integration lennoxs30 with title: 192.168.1.61 and entry_id: 2ff08e5335c764b876f51d514c69cb71, during setup without awaiting async_forward_entry_setup, which can cause the setup lock to be released before the setup is done. This will stop working in Home Assistant 2025.1. Please report this issue.
Stack (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/usr/src/homeassistant/homeassistant/__main__.py", line 223, in <module>
    sys.exit(main())
  File "/usr/src/homeassistant/homeassistant/__main__.py", line 209, in main
    exit_code = runner.run(runtime_conf)
  File "/usr/src/homeassistant/homeassistant/runner.py", line 190, in run
    return loop.run_until_complete(setup_and_run_hass(runtime_config))
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete
    self.run_forever()
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 641, in run_forever
    self._run_once()
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1990, in _run_once
    handle._run()
  File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2122, in async_forward_entry_setup
    _report_non_awaited_platform_forwards(entry, "async_forward_entry_setup")
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1175, in _report_non_awaited_platform_forwards
    report(
  File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 151, in report
    _LOGGER.warning(msg, stack_info=True)
2024-07-19 18:37:52.013 WARNING (MainThread) [homeassistant.helpers.frame] Detected code that calls async_forward_entry_setup for integration lennoxs30 with title: 192.168.1.61 and entry_id: 2ff08e5335c764b876f51d514c69cb71, during setup without awaiting async_forward_entry_setup, which can cause the setup lock to be released before the setup is done. This will stop working in Home Assistant 2025.1. Please report this issue.
Stack (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/usr/src/homeassistant/homeassistant/__main__.py", line 223, in <module>
    sys.exit(main())
  File "/usr/src/homeassistant/homeassistant/__main__.py", line 209, in main
    exit_code = runner.run(runtime_conf)
  File "/usr/src/homeassistant/homeassistant/runner.py", line 190, in run
    return loop.run_until_complete(setup_and_run_hass(runtime_config))
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete
    self.run_forever()
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 641, in run_forever
    self._run_once()
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1990, in _run_once
    handle._run()
  File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2122, in async_forward_entry_setup
    _report_non_awaited_platform_forwards(entry, "async_forward_entry_setup")
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1175, in _report_non_awaited_platform_forwards
    report(
  File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 151, in report
    _LOGGER.warning(msg, stack_info=True)
2024-07-19 18:37:52.083 WARNING (MainThread) [homeassistant.helpers.frame] Detected code that calls async_forward_entry_setup for integration lennoxs30 with title: 192.168.1.61 and entry_id: 2ff08e5335c764b876f51d514c69cb71, during setup without awaiting async_forward_entry_setup, which can cause the setup lock to be released before the setup is done. This will stop working in Home Assistant 2025.1. Please report this issue.
Stack (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/usr/src/homeassistant/homeassistant/__main__.py", line 223, in <module>
    sys.exit(main())
  File "/usr/src/homeassistant/homeassistant/__main__.py", line 209, in main
    exit_code = runner.run(runtime_conf)
  File "/usr/src/homeassistant/homeassistant/runner.py", line 190, in run
    return loop.run_until_complete(setup_and_run_hass(runtime_config))
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete
    self.run_forever()
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 641, in run_forever
    self._run_once()
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1990, in _run_once
    handle._run()
  File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2122, in async_forward_entry_setup
    _report_non_awaited_platform_forwards(entry, "async_forward_entry_setup")
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1175, in _report_non_awaited_platform_forwards
    report(
  File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 151, in report
    _LOGGER.warning(msg, stack_info=True)
2024-07-19 18:37:52.270 WARNING (MainThread) [homeassistant.helpers.frame] Detected code that calls async_forward_entry_setup for integration lennoxs30 with title: 192.168.1.61 and entry_id: 2ff08e5335c764b876f51d514c69cb71, during setup without awaiting async_forward_entry_setup, which can cause the setup lock to be released before the setup is done. This will stop working in Home Assistant 2025.1. Please report this issue.
Stack (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/usr/src/homeassistant/homeassistant/__main__.py", line 223, in <module>
    sys.exit(main())
  File "/usr/src/homeassistant/homeassistant/__main__.py", line 209, in main
    exit_code = runner.run(runtime_conf)
  File "/usr/src/homeassistant/homeassistant/runner.py", line 190, in run
    return loop.run_until_complete(setup_and_run_hass(runtime_config))
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete
    self.run_forever()
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 641, in run_forever
    self._run_once()
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1990, in _run_once
    handle._run()
  File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2122, in async_forward_entry_setup
    _report_non_awaited_platform_forwards(entry, "async_forward_entry_setup")
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1175, in _report_non_awaited_platform_forwards
    report(
  File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 151, in report
    _LOGGER.warning(msg, stack_info=True)
2024-07-19 18:37:52.698 WARNING (MainThread) [homeassistant.helpers.frame] Detected code that calls async_forward_entry_setup for integration lennoxs30 with title: 192.168.1.61 and entry_id: 2ff08e5335c764b876f51d514c69cb71, during setup without awaiting async_forward_entry_setup, which can cause the setup lock to be released before the setup is done. This will stop working in Home Assistant 2025.1. Please report this issue.
Stack (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/usr/src/homeassistant/homeassistant/__main__.py", line 223, in <module>
    sys.exit(main())
  File "/usr/src/homeassistant/homeassistant/__main__.py", line 209, in main
    exit_code = runner.run(runtime_conf)
  File "/usr/src/homeassistant/homeassistant/runner.py", line 190, in run
    return loop.run_until_complete(setup_and_run_hass(runtime_config))
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete
    self.run_forever()
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 641, in run_forever
    self._run_once()
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1990, in _run_once
    handle._run()
  File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2122, in async_forward_entry_setup
    _report_non_awaited_platform_forwards(entry, "async_forward_entry_setup")
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1175, in _report_non_awaited_platform_forwards
    report(
  File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 151, in report
    _LOGGER.warning(msg, stack_info=True)
2024-07-19 18:38:07.144 INFO (MainThread) [homeassistant.core] Starting Home Assistant
2024-07-19 18:38:07.223 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'attributes' calls `async_track_state_change` instead of `async_track_state_change_event` which is deprecated and will be removed in Home Assistant 2025.5 at custom_components/attributes/sensor.py, line 221: async_track_state_change(, please create a bug report at https://github.com/pilotak/homeassistant-attributes/issues
2024-07-19 18:38:07.231 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'attributes' calls `async_add_job`, which is deprecated and will be removed in Home Assistant 2025.4; Please review https://developers.home-assistant.io/blog/2024/03/13/deprecate_add_run_job for replacement options at custom_components/attributes/sensor.py, line 224: self.hass.async_add_job(self.async_update_ha_state(True)), please create a bug report at https://github.com/pilotak/homeassistant-attributes/issues
2024-07-19 18:38:07.378 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template<template=({% set list = [
  states("sensor.gillian_s_air_monitor_calibrated_temperature") | float, 
  states("sensor.bob_s_air_monitor_calibrated_temperature") | float, 
  states("sensor.master_bedroom_remote_temperature") | float
  ]
%}
{{ average(list) }}) renders=2>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2258, in forgiving_float_filter
    return float(value)
           ^^^^^^^^^^^^
ValueError: could not convert string to float: 'unknown'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 604, in async_render
    render_result = _render_with_context(self.template, compiled, **kwargs)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2639, in _render_with_context
    return template.render(**kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/jinja2/environment.py", line 1304, in render
    self.environment.handle_exception()
  File "/usr/local/lib/python3.12/site-packages/jinja2/environment.py", line 939, in handle_exception
    raise rewrite_traceback_stack(source=source)
  File "<template>", line 1, in top-level template code
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2261, in forgiving_float_filter
    raise_no_default("float", value)
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1872, in raise_no_default
    raise ValueError(
ValueError: Template error: float got invalid input 'unknown' when rendering template '{% set list = [
  states("sensor.gillian_s_air_monitor_calibrated_temperature") | float, 
  states("sensor.bob_s_air_monitor_calibrated_temperature") | float, 
  states("sensor.master_bedroom_remote_temperature") | float
  ]
%}
{{ average(list) }}' but no default was specified

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 716, in async_render_to_info
    render_info._result = self.async_render(  # noqa: SLF001
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 606, in async_render
    raise TemplateError(err) from err
homeassistant.exceptions.TemplateError: ValueError: Template error: float got invalid input 'unknown' when rendering template '{% set list = [
  states("sensor.gillian_s_air_monitor_calibrated_temperature") | float, 
  states("sensor.bob_s_air_monitor_calibrated_temperature") | float, 
  states("sensor.master_bedroom_remote_temperature") | float
  ]
%}
{{ average(list) }}' but no default was specified
2024-07-19 18:38:07.387 ERROR (MainThread) [homeassistant.components.template.template_entity] TemplateError('ValueError: Template error: float got invalid input 'unknown' when rendering template '{% set list = [
  states("sensor.gillian_s_air_monitor_calibrated_temperature") | float, 
  states("sensor.bob_s_air_monitor_calibrated_temperature") | float, 
  states("sensor.master_bedroom_remote_temperature") | float
  ]
%}
{{ average(list) }}' but no default was specified') while processing template 'Template<template=({% set list = [
  states("sensor.gillian_s_air_monitor_calibrated_temperature") | float, 
  states("sensor.bob_s_air_monitor_calibrated_temperature") | float, 
  states("sensor.master_bedroom_remote_temperature") | float
  ]
%}
{{ average(list) }}) renders=4>' for attribute '_attr_native_value' in entity 'sensor.2nd_floor_average'
2024-07-19 18:38:07.515 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' accesses hass.helpers.event. This is deprecated and will stop working in Home Assistant 2024.11, it should be updated to import functions used from event directly at custom_components/hacs/base.py, line 630: self.hass.helpers.event.async_track_time_interval(, please create a bug report at https://github.com/hacs/integration/issues
2024-07-19 18:38:41.835 WARNING (MainThread) [homeassistant.components.mqtt.light.schema_json] Deprecated flag `color_mode` used in MQTT JSON light config , the `color_mode` flag is not used anymore and should be removed. Got: {'availability_topic': 'gv2mqtt/availability', 'origin': {'sw_version': '2024.07.13-82ddc6e9', 'support_url': 'https://github.com/wez/govee2mqtt', 'name': 'gv2mqtt'}, 'device': {'manufacturer': 'Govee', 'model': 'H70B1', 'suggested_area': 'Gillian’s Room', 'via_device': 'gv2mqtt', 'identifiers': ['gv2mqtt-4C8BC2E9976A8B59'], 'name': 'Gill’s Curtain Lights'}, 'unique_id': 'gv2mqtt-4C8BC2E9976A8B59', 'schema': 'json', 'command_topic': 'gv2mqtt/light/4C8BC2E9976A8B59/command', 'state_topic': 'gv2mqtt/light/4C8BC2E9976A8B59/state', 'optimistic': False, 'supported_color_modes': ['rgb', 'color_temp'], 'color_mode': True, 'brightness': True, 'brightness_scale': 100, 'icon': 'mdi:light-bulb', 'effect': True, 'effect_list': ['', 'A Fishing Cat', 'Aircraft Battle', 'Alternate', 'Artist Palette', 'Astronaut', 'Atlantis', 'ATREIDES-FREMEN', 'Autumn Leaves', 'Ballet Girl', 'Bat', 'Big Ben', 'Big Bus', 'Big Panda', 'Big Pendulum', 'Birds Flying', 'Birthday Cake', 'Bonsai', 'Bouncing Ball', 'Bubble', 'Burj Khalifa', 'Butterfly', 'Cable Car', 'Cactus', 'Camping', 'Candy Cane', 'Candy Crush', 'Cannibal Flower', 'Carousel', 'Cherry blossoms', 'Christmas Bell', 'Christmas Gift', 'Christmas Gift Box', 'Christmas Stocking', 'Christmas Tree', 'Christmas Wreath', 'Circus', 'Clown', 'Clownfish', 'Coachella Poster', 'Code', 'Countdown', 'Crab', 'Crossing', "Cupid's Arrow", 'Demon Power', 'Dinosaur', 'Dodging', 'Dot Eater', 'Dove', 'Dr. Duck', 'Drift Bottle', 'Drinks', 'Duck Bathing', 'DUNE', 'Easter Egg', 'Egyptian Fresco', 'Eiffel Tower', 'Elk', 'Falling Petals', 'Ferris Wheel', 'Finger Heart', 'Fire', 'Fireplace', 'Flamingo Couple', 'Forest', 'Forest Fireflies', 'Fox', 'Game Controller', 'GAU', 'Ghost', 'Gingerbread House', 'Gingerbread Man', 'Golden Gate Bridge', 'Good night', 'Gopher', 'Gourmet', 'Gradient Movement', 'Graffiti', 'Greedy Snake', 'Groovy', 'HARKONNEN', 'Hatch', 'Heart Scale', 'Heartbeat', 'Horse Head', 'Hot Air Balloon', 'Ice-cream Cone', 'Jellyfish', 'Jumping Chicken', 'Lighthouse', 'Little Whale', 'Lollipop', 'Lottery Machine', 'Lotus Pond', 'Love', 'Love Heart', 'Magic Hat', 'Maiden', 'Maze', 'Meteor', 'Mondrian', 'Moon', 'Moonlight', 'Mount Fuji', 'Mountain Forest', 'Mountaintop', 'Mushroom', 'Music Note', 'Music: Crossing', 'Music: DreamColor', 'Music: FallingSand', 'Music: FloatingMist', 'Music: MeteorShower', 'Music: Spectrum', 'Orbital Rail', 'Owl', 'Panda', 'Parabola', 'Peach Checkers', 'Peacock', 'Piggy Bank', 'Pineapple House', 'Pizza Monster', 'Planet', 'Poker', 'Pumpkin', 'Rabbit', 'Rabbit Running', 'Racing', 'Rainbow', 'Rainbow Swirl', 'Reverse', 'Rhomb', 'Ring Toss', 'Ripple', 'Rocket', "Saint Patrick's Day", 'Sakura', 'Santa Claus', 'Sea Horse', 'Sea Island', 'Sea Turtle', 'Seesaw', 'Shiny Rainbow', 'Shoot Hoops', 'Siren', 'Skateboard', 'Sled', 'Smudge', 'Snowman', 'Soccer', 'Soccer Juggling', 'Soothing', 'Space', 'Space Walk', 'Spider', 'Spin', 'Stack', 'Star', 'Starfish', 'Starry Night', 'Strike', 'Sunflowers', 'Sunrise', 'Sunset', 'Surfing', 'Telephone', 'The Pyramids', 'The Scream', 'The Son of Man', 'The Taj Mahal', 'Tic-Tac-Toe', 'UFO', 'Umbrella', 'Undersea King', "Valentine's Day", 'Water Drop', 'Waterfall', 'Wave', 'Weightlifting', 'Whale', 'White Swan', 'Windmill', 'Windmill Kingdom', 'wine glass', 'Yoga', 'Zombie Hand'], 'min_mireds': 111, 'max_mireds': 500, 'payload_available': 'online', 'name': None, 'platform': 'mqtt'}. This will stop working in Home Assistant Core 2025.3
(repeat the Govee2Mqtt block per light per scene making this log too long)
2024-07-19 18:38:58.023 WARNING (MainThread) [custom_components.elevenlabs_tts.elevenlabs] Could not find voice with identifier Domi
2024-07-19 18:42:32.593 WARNING (MainThread) [custom_components.elevenlabs_tts.elevenlabs] Could not find voice with identifier Domi
2024-07-19 18:45:02.460 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'attributes' calls `async_add_job`, which is deprecated and will be removed in Home Assistant 2025.4; Please review https://developers.home-assistant.io/blog/2024/03/13/deprecate_add_run_job for replacement options at custom_components/attributes/sensor.py, line 216: self.hass.async_add_job(self.async_update_ha_state(True)), please create a bug report at https://github.com/pilotak/homeassistant-attributes/issues
2024-07-19 18:45:54.529 DEBUG (MainThread) [custom_components.elevenlabs_tts.elevenlabs] Initializing ElevenLabs client
2024-07-19 18:45:54.993 DEBUG (MainThread) [custom_components.elevenlabs_tts.elevenlabs] Looking for voice with identifier Domi
2024-07-19 18:45:54.993 WARNING (MainThread) [custom_components.elevenlabs_tts.elevenlabs] Could not find voice with identifier Domi

Diagnostics dump

Not applicable/available

shizlkazizl commented 1 month ago

same issue

kevvar commented 1 month ago

Same here

patrik-malina commented 1 month ago

Same. I have jeremy voice configjred.

wilksy commented 1 month ago

Looks like they are having issues at Eleven Labs. I had the same error as above. I generated a new API key and now getting a client auth error (401 unauthorised)

kucau0901 commented 1 month ago

same issue

meharrington90 commented 1 month ago

Same here. Using custom voices.

patrik-malina commented 1 month ago

It seems they change names (Jeremy goes legacy now) image Maybe thats the problem

kucau0901 commented 1 month ago

change /homeassistant/custom_components/elevenlabs_tts/const.py

remove DEFAULT_VOICE from Domi to other available voice. restart hass. and add again

"""Consts module.""" from homeassistant.const import Platform

################################

Do not change! Will be set by release workflow

INTEGRATION_VERSION = "2.3.0" MIN_REQUIRED_HA_VERSION = "2023.8.1" ################################

PLATFORMS = [Platform.TTS]

DOMAIN = "elevenlabs_tts" VERSION = "1.0.0"

DEFAULT_VOICE = "Laura" CONF_STABILITY = "stability" DEFAULT_STABILITY = 0.75 CONF_SIMILARITY = "similarity" DEFAULT_SIMILARITY = 0.9 CONF_MODEL = "model" DEFAULT_MODEL = "eleven_multilingual_v2" CONF_OPTIMIZE_LATENCY = "optimize_streaming_latency" DEFAULT_OPTIMIZE_LATENCY = 0 CONF_STYLE = "style" DEFAULT_STYLE = 0.2 CONF_USE_SPEAKER_BOOST = "use_speaker_boost" DEFAULT_USE_SPEAKER_BOOST = True

meharrington90 commented 1 month ago

change /homeassistant/custom_components/elevenlabs_tts/const.py

remove DEFAULT_VOICE from Domi to other available voice. restart hass. and add again

"""Consts module.""" from homeassistant.const import Platform

################################

Do not change! Will be set by release workflow

INTEGRATION_VERSION = "2.3.0" MIN_REQUIRED_HA_VERSION = "2023.8.1" ################################

PLATFORMS = [Platform.TTS]

DOMAIN = "elevenlabs_tts" VERSION = "1.0.0"

DEFAULT_VOICE = "Laura" CONF_STABILITY = "stability" DEFAULT_STABILITY = 0.75 CONF_SIMILARITY = "similarity" DEFAULT_SIMILARITY = 0.9 CONF_MODEL = "model" DEFAULT_MODEL = "eleven_multilingual_v2" CONF_OPTIMIZE_LATENCY = "optimize_streaming_latency" DEFAULT_OPTIMIZE_LATENCY = 0 CONF_STYLE = "style" DEFAULT_STYLE = 0.2 CONF_USE_SPEAKER_BOOST = "use_speaker_boost" DEFAULT_USE_SPEAKER_BOOST = True

Confirmed working.

wilksy commented 1 month ago

Can you expand on this fix? Bit confused what to change and the DO NOT CHANGE bit

kucau0901 commented 1 month ago

Can you expand on this fix? Bit confused what to change and the DO NOT CHANGE bit

1) first , u need to go eleven lab integration in hass and delete your current integration entries 2) use text editor and edit /homeassistant/custom_components/elevenlabs_tts/const.py 3) change DEFAULT_VOICE = "Domi" ----> DEFAULT_VOICE = "Laura" , Save 4) restart hass ( i did but not sure it was even necessary) and readd 11th lab integration entry

wilksy commented 1 month ago

Can you expand on this fix? Bit confused what to change and the DO NOT CHANGE bit

  1. first , u need to go eleven lab integration in hass and delete your current integration entries
  2. use text editor and edit /homeassistant/custom_components/elevenlabs_tts/const.py
  3. change DEFAULT_VOICE = "Domi" ----> DEFAULT_VOICE = "Laura" , Save
  4. restart hass ( i did but not sure it was even necessary) and readd 11th lab integration entry

Fixed - Perfect - many thanks!

carleeno commented 1 month ago

2.3.1 should fix this. Thank you all for reporting and finding a fix so quickly :)

Technically-Possible commented 1 month ago

Has the way to use this changed too I cant get it to send any data or receive it I'm getting Logger: homeassistant.components.cast.media_player Source: components/cast/media_player.py:405 integration: Google Cast (documentation, issues) First occurred: 12:56:43 am (13 occurrences) Last logged: 1:05:00 am

Failed to cast media http://192.168.86.43:8123/api/tts_proxy/a0f58f7e9238b8d577822294c20673c243bd091f_en_-_tts.elevencave.mp3 from internal_url (http://192.168.86.43:8123). Please make sure the URL is: Reachable from the cast device and either a publicly resolvable hostname or an IP address Failed to cast media http://192.168.86.43:8123/api/tts_proxy/d7ebbc248898f4cc76779a5aad78a8431a25f143_en_-_tts.elevencave.mp3 from internal_url (http://192.168.86.43:8123). Please make sure the URL is: Reachable from the cast device and either a publicly resolvable hostname or an IP address Failed to cast media http://192.168.86.43:8123/api/tts_proxy/7db8219752476d725fcc1fe642dcca252f41d5f8_en_-_tts.elevenisac.mp3 from internal_url (http://192.168.86.43:8123). Please make sure the URL is: Reachable from the cast device and either a publicly resolvable hostname or an IP address Failed to cast media http://192.168.86.43:8123/api/tts_proxy/a94a8fe5ccb19ba61c4c0873d391e987982fbbd3_en_-_tts.elevencave.mp3 from internal_url (http://192.168.86.43:8123). Please make sure the URL is: Reachable from the cast device and either a publicly resolvable hostname or an IP address Failed to cast media http://192.168.86.43:8123/api/tts_proxy/a94a8fe5ccb19ba61c4c0873d391e987982fbbd3_en_-_tts.elevencort.mp3 from internal_url (http://192.168.86.43:8123). Please make sure the URL is: Reachable from the cast device and either a publicly resolvable hostname or an IP address

Any time I try send a messages to be made into audio I Checked 11labs it never makes it to it

patrik-malina commented 1 month ago

Check if you have free quota lefts?

Technically-Possible commented 1 month ago

i do a fair bit i paid for a licence

patrik-malina commented 1 month ago

Paid subscriptions also have quotas... Go to your account (bottom left) -> subscription and you can see your Character Usage...

Technically-Possible commented 1 month ago

total 100,000 Remaining 62,369 Used 38%

patrik-malina commented 1 month ago

Do you have generated text in History on 11labs?

Please open new issue.