nimroddolev / chime_tts

A custom Home Assistant integration to play combined audio files before and/or after text-to-speech (TTS) messages
https://nimroddolev.github.io/chime_tts/
MIT License
196 stars 14 forks source link

Plays default chime AND custom chime #143

Closed schniepp closed 5 months ago

schniepp commented 5 months ago

System Health details

System Information

version core-2024.6.1
installation_type Home Assistant Core
dev false
hassio false
docker false
user homeassistant
virtualenv true
python_version 3.12.3
os_name Linux
os_version 6.8.0-1005-raspi
arch aarch64
timezone America/New_York
config_dir /home/homeassistant/.homeassistant
Home Assistant Community Store GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 5000 Installed Version | 1.34.0 Stage | running Available Repositories | 1389 Downloaded Repositories | 99
AccuWeather can_reach_server | ok -- | -- remaining_requests | 18
Home Assistant Cloud logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | ok
Dashboards dashboards | 4 -- | -- resources | 68 views | 38 mode | storage
Recorder oldest_recorder_run | June 2, 2024 at 16:58 -- | -- current_recorder_run | June 9, 2024 at 19:23 estimated_db_size | 934.19 MiB database_engine | sqlite database_version | 3.45.1
Sonoff version | 3.7.3 (e240aaf) -- | -- cloud_online | 4 / 5 local_online | 4 / 4

Checklist

Describe the issue

My understanding is that chime_tts provides the option of having custom chimes before and after TTS, or also no chime (as opposed to the built-in, TTS service, which always plays the "default" chime in the beginning). In my case, I could never get rid of the original chime. Weirdly, it even plays when I successfully selected custom chimes. In the YAML file below, it will first play the "default" chime, then the custom chime, then comes the TTS, then the custom end chime.

description: ""
trigger: []
condition: []
action:
  - service: chime_tts.say
    data:
      tts_platform: tts.piper
      options: "voice: en_GB-alan-medium"
      final_delay: 0
      offset: 0
      volume_level: 0.3
      message: Hi
      announce: true
      cache: true
      chime_path: /home/homeassistant/.homeassistant/www/sounds/car.mp3
      end_chime_path: /home/homeassistant/.homeassistant/www/sounds/bike.mp3
    enabled: true
    target:
      entity_id: media_player.scofield
mode: single

Reproduction steps

  1. Create an automation using the YAML file shown above
  2. Make sure the audio files linked in the automation exist (or change the YAML to point to existing audio files)
  3. Run the automation
  4. Listen to hear that the "default" chime is played, following by the chime specified in the YAML, followed by the TTS, followed by the ending chime. ...

Debug logs

2024-06-10 00:02:48.860 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration chime_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-06-10 00:02:49.572 ERROR (MainThread) [async_upnp_client.ssdp] Received error: [Errno 1] Operation not permitted, transport: <_SelectorDatagramTransport fd=18 read=polling write=<idle, bufsize=0>>, socket: <asyncio.TransportSocket fd=18, family=2, type=2, proto=0, laddr=('0.0.0.0', 54903)>
2024-06-10 00:02:50.898 DEBUG (MainThread) [custom_components.chime_tts] Chime TTS Configuration Values:
2024-06-10 00:02:50.898 DEBUG (MainThread) [custom_components.chime_tts]  - queue_timeout: 60
2024-06-10 00:02:50.898 DEBUG (MainThread) [custom_components.chime_tts]  - tts_platform: 'tts.piper'
2024-06-10 00:02:50.898 DEBUG (MainThread) [custom_components.chime_tts]  - offset: 450
2024-06-10 00:02:50.898 DEBUG (MainThread) [custom_components.chime_tts]  - fade_transition: 500
2024-06-10 00:02:50.898 DEBUG (MainThread) [custom_components.chime_tts]  - temp_chimes_path: '/home/homeassistant/.homeassistant/media/sounds/temp/chime_tts/chimes/'
2024-06-10 00:02:50.898 DEBUG (MainThread) [custom_components.chime_tts]  - temp_path: '/home/homeassistant/.homeassistant/media/sounds/temp/chime_tts/'
2024-06-10 00:02:50.898 DEBUG (MainThread) [custom_components.chime_tts]  - www_path: '/home/homeassistant/.homeassistant/config/www/chime_tts/'
2024-06-10 00:02:50.898 DEBUG (MainThread) [custom_components.chime_tts]  - media_dir: 'local'
2024-06-10 00:02:50.898 DEBUG (MainThread) [custom_components.chime_tts]  - custom_paths:
2024-06-10 00:02:50.898 DEBUG (MainThread) [custom_components.chime_tts]    - custom_chime_path_1: 
2024-06-10 00:02:50.899 DEBUG (MainThread) [custom_components.chime_tts]    - custom_chime_path_2: 
2024-06-10 00:02:50.899 DEBUG (MainThread) [custom_components.chime_tts]    - custom_chime_path_3: 
2024-06-10 00:02:50.899 DEBUG (MainThread) [custom_components.chime_tts]    - custom_chime_path_4: 
2024-06-10 00:02:50.899 DEBUG (MainThread) [custom_components.chime_tts]    - custom_chime_path_5: 
2024-06-10 00:02:53.594 WARNING (ImportExecutor_0) [homeassistant.helpers.typing] HomeAssistantType was used from webrtc, this is a deprecated alias which will be removed in HA Core 2025.5. Use homeassistant.core.HomeAssistant instead, please report it to the author of the 'webrtc' custom integration
2024-06-10 00:02:53.599 WARNING (ImportExecutor_0) [homeassistant.helpers.typing] ServiceCallType was used from webrtc, this is a deprecated alias which will be removed in HA Core 2025.5. Use homeassistant.core.ServiceCall instead, please report it to the author of the 'webrtc' custom integration
2024-06-10 00:02:54.406 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to import_module inside the event loop by integration 'nws' at homeassistant/components/nws/__init__.py, line 75: await call_with_retry( (offender: /srv/homeassistant/lib/python3.12/site-packages/tornado/__init__.py, line 66: return importlib.import_module("." + name, __name__)), please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+nws%22
Traceback (most recent call last):
  File "/srv/homeassistant/bin/hass", line 8, in <module>
    sys.exit(main())
  File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/__main__.py", line 209, in main
    exit_code = runner.run(runtime_conf)
  File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/runner.py", line 190, in run
    return loop.run_until_complete(setup_and_run_hass(runtime_config))
  File "/usr/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete
    self.run_forever()
  File "/usr/lib/python3.12/asyncio/base_events.py", line 641, in run_forever
    self._run_once()
  File "/usr/lib/python3.12/asyncio/base_events.py", line 1987, in _run_once
    handle._run()
  File "/usr/lib/python3.12/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/config_entries.py", line 742, in async_setup_locked
    await self.async_setup(hass, integration=integration)
  File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/config_entries.py", line 594, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/components/nws/__init__.py", line 140, in async_setup_entry
    await coordinator_forecast.async_refresh()
  File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/helpers/update_coordinator.py", line 288, in async_refresh
    await self._async_refresh(log_failures=True)
  File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/helpers/update_coordinator.py", line 312, in _async_refresh
    self.data = await self._async_update_data()
  File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/helpers/update_coordinator.py", line 268, in _async_update_data
    return await self.update_method()
  File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/components/nws/__init__.py", line 75, in update_forecast
    await call_with_retry(

2024-06-10 00:02:54.645 ERROR (MainThread) [homeassistant.components.solaredge] Could not retrieve details from SolarEdge API
-------------------------------------------------------------------
HACS (Home Assistant Community Store)

Version: 1.34.0
This is a custom integration
If you have any issues with this you need to open an issue here:
https://github.com/hacs/integration/issues
-------------------------------------------------------------------

2024-06-10 00:02:55.375 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
  File "/home/homeassistant/.homeassistant/custom_components/shelly/__init__.py", line 357, in start_up
    self.hass.helpers.entity_registry.async_get(self.hass)
TypeError: async_get() takes 1 positional argument but 2 were given
-------------------------------------------------------------------
Gismeteo
Version: 3.0.0
This is a custom integration!
If you have ANY issues with this you need to open an issue here:
https://github.com/Limych/ha-gismeteo/issues
-------------------------------------------------------------------

2024-06-10 00:02:57.933 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to import_module inside the event loop by integration 'gdacs' at homeassistant/components/gdacs/__init__.py, line 115: await self._feed_manager.update() (offender: /srv/homeassistant/lib/python3.12/site-packages/dateparser/languages/loader.py, line 215: import_module("dateparser.data.date_translation_data." + lang),), please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+gdacs%22
Traceback (most recent call last):
  File "/srv/homeassistant/bin/hass", line 8, in <module>
    sys.exit(main())
  File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/__main__.py", line 209, in main
    exit_code = runner.run(runtime_conf)
  File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/runner.py", line 190, in run
    return loop.run_until_complete(setup_and_run_hass(runtime_config))
  File "/usr/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete
    self.run_forever()
  File "/usr/lib/python3.12/asyncio/base_events.py", line 641, in run_forever
    self._run_once()
  File "/usr/lib/python3.12/asyncio/base_events.py", line 1987, in _run_once
    handle._run()
  File "/usr/lib/python3.12/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/components/gdacs/__init__.py", line 115, in async_update
    await self._feed_manager.update()

2024-06-10 00:02:58.699 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to open inside the event loop by custom integration 'gismeteo' at custom_components/gismeteo/cache.py, line 95: with open(file_path, "w", encoding="utf-8") as fp: (offender: /home/homeassistant/.homeassistant/custom_components/gismeteo/cache.py, line 95: with open(file_path, "w", encoding="utf-8") as fp:), please create a bug report at https://github.com/Limych/ha-gismeteo/issues
Traceback (most recent call last):
  File "/srv/homeassistant/bin/hass", line 8, in <module>
    sys.exit(main())
  File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/__main__.py", line 209, in main
    exit_code = runner.run(runtime_conf)
  File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/runner.py", line 190, in run
    return loop.run_until_complete(setup_and_run_hass(runtime_config))
  File "/usr/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete
    self.run_forever()
  File "/usr/lib/python3.12/asyncio/base_events.py", line 641, in run_forever
    self._run_once()
  File "/usr/lib/python3.12/asyncio/base_events.py", line 1987, in _run_once
    handle._run()
  File "/usr/lib/python3.12/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/config_entries.py", line 742, in async_setup_locked
    await self.async_setup(hass, integration=integration)
  File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/config_entries.py", line 594, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/home/homeassistant/.homeassistant/custom_components/gismeteo/__init__.py", line 152, in async_setup_entry
    coordinator = await _async_get_coordinator(hass, entry.entry_id, config)
  File "/home/homeassistant/.homeassistant/custom_components/gismeteo/__init__.py", line 121, in _async_get_coordinator
    await gismeteo.async_update_location()
  File "/home/homeassistant/.homeassistant/custom_components/gismeteo/api.py", line 241, in async_update_location
    response = await self._async_get_data(url, cache_fname)
  File "/home/homeassistant/.homeassistant/custom_components/gismeteo/api.py", line 223, in _async_get_data
    self._cache.save_cache(cache_fname, data)
  File "/home/homeassistant/.homeassistant/custom_components/gismeteo/cache.py", line 95, in save_cache
    with open(file_path, "w", encoding="utf-8") as fp:

2024-06-10 00:02:58.705 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to open inside the event loop by custom integration 'gismeteo' at custom_components/gismeteo/cache.py, line 83: with open(file_path, encoding="utf-8") as fp: (offender: /home/homeassistant/.homeassistant/custom_components/gismeteo/cache.py, line 83: with open(file_path, encoding="utf-8") as fp:), please create a bug report at https://github.com/Limych/ha-gismeteo/issues
Traceback (most recent call last):
  File "/srv/homeassistant/bin/hass", line 8, in <module>
    sys.exit(main())
  File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/__main__.py", line 209, in main
    exit_code = runner.run(runtime_conf)
  File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/runner.py", line 190, in run
    return loop.run_until_complete(setup_and_run_hass(runtime_config))
  File "/usr/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete
    self.run_forever()
  File "/usr/lib/python3.12/asyncio/base_events.py", line 641, in run_forever
    self._run_once()
  File "/usr/lib/python3.12/asyncio/base_events.py", line 1987, in _run_once
    handle._run()
  File "/usr/lib/python3.12/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/config_entries.py", line 742, in async_setup_locked
    await self.async_setup(hass, integration=integration)
  File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/config_entries.py", line 594, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/home/homeassistant/.homeassistant/custom_components/gismeteo/__init__.py", line 152, in async_setup_entry
    coordinator = await _async_get_coordinator(hass, entry.entry_id, config)
  File "/home/homeassistant/.homeassistant/custom_components/gismeteo/__init__.py", line 124, in _async_get_coordinator
    await coordinator.async_refresh()
  File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/helpers/update_coordinator.py", line 288, in async_refresh
    await self._async_refresh(log_failures=True)
  File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/helpers/update_coordinator.py", line 312, in _async_refresh
    self.data = await self._async_update_data()
  File "/home/homeassistant/.homeassistant/custom_components/gismeteo/__init__.py", line 202, in _async_update_data
    await self.gismeteo.async_update()
  File "/home/homeassistant/.homeassistant/custom_components/gismeteo/api.py", line 631, in async_update
    response = await self.async_get_forecast()
  File "/home/homeassistant/.homeassistant/custom_components/gismeteo/api.py", line 267, in async_get_forecast
    return await self._async_get_data(url, cache_fname)
  File "/home/homeassistant/.homeassistant/custom_components/gismeteo/api.py", line 210, in _async_get_data
    return self._cache.read_cache(cache_fname)
  File "/home/homeassistant/.homeassistant/custom_components/gismeteo/cache.py", line 83, in read_cache
    with open(file_path, encoding="utf-8") as fp:

2024-06-10 00:02:58.711 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to open inside the event loop by custom integration 'gismeteo' at custom_components/gismeteo/cache.py, line 83: with open(file_path, encoding="utf-8") as fp: (offender: /home/homeassistant/.homeassistant/custom_components/gismeteo/cache.py, line 83: with open(file_path, encoding="utf-8") as fp:), please create a bug report at https://github.com/Limych/ha-gismeteo/issues
Traceback (most recent call last):
  File "/srv/homeassistant/bin/hass", line 8, in <module>
    sys.exit(main())
  File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/__main__.py", line 209, in main
    exit_code = runner.run(runtime_conf)
  File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/runner.py", line 190, in run
    return loop.run_until_complete(setup_and_run_hass(runtime_config))
  File "/usr/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete
    self.run_forever()
  File "/usr/lib/python3.12/asyncio/base_events.py", line 641, in run_forever
    self._run_once()
  File "/usr/lib/python3.12/asyncio/base_events.py", line 1987, in _run_once
    handle._run()
  File "/usr/lib/python3.12/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/config_entries.py", line 742, in async_setup_locked
    await self.async_setup(hass, integration=integration)
  File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/config_entries.py", line 594, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/home/homeassistant/.homeassistant/custom_components/gismeteo/__init__.py", line 152, in async_setup_entry
    coordinator = await _async_get_coordinator(hass, entry.entry_id, config)
  File "/home/homeassistant/.homeassistant/custom_components/gismeteo/__init__.py", line 124, in _async_get_coordinator
    await coordinator.async_refresh()
  File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/helpers/update_coordinator.py", line 288, in async_refresh
    await self._async_refresh(log_failures=True)
  File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/helpers/update_coordinator.py", line 312, in _async_refresh
    self.data = await self._async_update_data()
  File "/home/homeassistant/.homeassistant/custom_components/gismeteo/__init__.py", line 202, in _async_update_data
    await self.gismeteo.async_update()
  File "/home/homeassistant/.homeassistant/custom_components/gismeteo/api.py", line 639, in async_update
    await self.async_update_parsed()
  File "/home/homeassistant/.homeassistant/custom_components/gismeteo/api.py", line 624, in async_update_parsed
    self._parsed = await self.async_get_parsed()
  File "/home/homeassistant/.homeassistant/custom_components/gismeteo/api.py", line 271, in async_get_parsed
    forecast = await self.async_get_forecast()
  File "/home/homeassistant/.homeassistant/custom_components/gismeteo/api.py", line 267, in async_get_forecast
    return await self._async_get_data(url, cache_fname)
  File "/home/homeassistant/.homeassistant/custom_components/gismeteo/api.py", line 210, in _async_get_data
    return self._cache.read_cache(cache_fname)
  File "/home/homeassistant/.homeassistant/custom_components/gismeteo/cache.py", line 83, in read_cache
    with open(file_path, encoding="utf-8") as fp:

2024-06-10 00:02:58.723 ERROR (MainThread) [homeassistant.components.roku.coordinator] Error fetching roku data: Invalid response from API: Error occurred while communicating with device
2024-06-10 00:02:58.813 ERROR (MainThread) [homeassistant.components.roku.coordinator] Error fetching roku data: Invalid response from API: Error occurred while communicating with device
-------------------------------------------------------------------
Frigate
Integration Version: 5.2.0
This is a custom integration!
If you have any issues with this you need to open an issue here:
https://github.com/blakeblackshear/frigate-hass-integration/issues
-------------------------------------------------------------------

2024-06-10 00:03:01.017 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to open inside the event loop by custom integration 'gismeteo' at custom_components/gismeteo/cache.py, line 95: with open(file_path, "w", encoding="utf-8") as fp: (offender: /home/homeassistant/.homeassistant/custom_components/gismeteo/cache.py, line 95: with open(file_path, "w", encoding="utf-8") as fp:), please create a bug report at https://github.com/Limych/ha-gismeteo/issues
Traceback (most recent call last):
  File "/srv/homeassistant/bin/hass", line 8, in <module>
    sys.exit(main())
  File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/__main__.py", line 209, in main
    exit_code = runner.run(runtime_conf)
  File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/runner.py", line 190, in run
    return loop.run_until_complete(setup_and_run_hass(runtime_config))
  File "/usr/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete
    self.run_forever()
  File "/usr/lib/python3.12/asyncio/base_events.py", line 641, in run_forever
    self._run_once()
  File "/usr/lib/python3.12/asyncio/base_events.py", line 1987, in _run_once
    handle._run()
  File "/usr/lib/python3.12/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/config_entries.py", line 742, in async_setup_locked
    await self.async_setup(hass, integration=integration)
  File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/config_entries.py", line 594, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/home/homeassistant/.homeassistant/custom_components/gismeteo/__init__.py", line 152, in async_setup_entry
    coordinator = await _async_get_coordinator(hass, entry.entry_id, config)
  File "/home/homeassistant/.homeassistant/custom_components/gismeteo/__init__.py", line 124, in _async_get_coordinator
    await coordinator.async_refresh()
  File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/helpers/update_coordinator.py", line 288, in async_refresh
    await self._async_refresh(log_failures=True)
  File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/helpers/update_coordinator.py", line 312, in _async_refresh
    self.data = await self._async_update_data()
  File "/home/homeassistant/.homeassistant/custom_components/gismeteo/__init__.py", line 202, in _async_update_data
    await self.gismeteo.async_update()
  File "/home/homeassistant/.homeassistant/custom_components/gismeteo/api.py", line 639, in async_update
    await self.async_update_parsed()
  File "/home/homeassistant/.homeassistant/custom_components/gismeteo/api.py", line 624, in async_update_parsed
    self._parsed = await self.async_get_parsed()
  File "/home/homeassistant/.homeassistant/custom_components/gismeteo/api.py", line 281, in async_get_parsed
    response = await self._async_get_data(url, cache_fname, as_browser=True)
  File "/home/homeassistant/.homeassistant/custom_components/gismeteo/api.py", line 223, in _async_get_data
    self._cache.save_cache(cache_fname, data)
  File "/home/homeassistant/.homeassistant/custom_components/gismeteo/cache.py", line 95, in save_cache
    with open(file_path, "w", encoding="utf-8") as fp:

2024-06-10 00:03:01.734 ERROR (MainThread) [homeassistant.components.sensor] Platform asusrouter does not generate unique IDs. ID 38:2c:4a:a3:b3:d0_wan_download already exists - ignoring sensor.asus_router_wan_download
2024-06-10 00:03:01.734 ERROR (MainThread) [homeassistant.components.sensor] Platform asusrouter does not generate unique IDs. ID 38:2c:4a:a3:b3:d0_wan_download_speed already exists - ignoring sensor.asus_router_wan_download_speed
2024-06-10 00:03:01.734 ERROR (MainThread) [homeassistant.components.sensor] Platform asusrouter does not generate unique IDs. ID 38:2c:4a:a3:b3:d0_wan_upload already exists - ignoring sensor.asus_router_wan_upload
2024-06-10 00:03:01.734 ERROR (MainThread) [homeassistant.components.sensor] Platform asusrouter does not generate unique IDs. ID 38:2c:4a:a3:b3:d0_wan_upload_speed already exists - ignoring sensor.asus_router_wan_upload_speed
2024-06-10 00:03:01.734 ERROR (MainThread) [homeassistant.components.sensor] Platform asusrouter does not generate unique IDs. ID 38:2c:4a:a3:b3:d0_wired_download already exists - ignoring sensor.asus_router_wired_download
2024-06-10 00:03:01.735 ERROR (MainThread) [homeassistant.components.sensor] Platform asusrouter does not generate unique IDs. ID 38:2c:4a:a3:b3:d0_wired_download_speed already exists - ignoring sensor.asus_router_wired_download_speed
2024-06-10 00:03:01.735 ERROR (MainThread) [homeassistant.components.sensor] Platform asusrouter does not generate unique IDs. ID 38:2c:4a:a3:b3:d0_wired_upload already exists - ignoring sensor.asus_router_wired_upload
2024-06-10 00:03:01.735 ERROR (MainThread) [homeassistant.components.sensor] Platform asusrouter does not generate unique IDs. ID 38:2c:4a:a3:b3:d0_wired_upload_speed already exists - ignoring sensor.asus_router_wired_upload_speed
2024-06-10 00:03:01.735 ERROR (MainThread) [homeassistant.components.sensor] Platform asusrouter does not generate unique IDs. ID 38:2c:4a:a3:b3:d0_bridge_download already exists - ignoring sensor.asus_router_bridge_download
2024-06-10 00:03:01.735 ERROR (MainThread) [homeassistant.components.sensor] Platform asusrouter does not generate unique IDs. ID 38:2c:4a:a3:b3:d0_bridge_download_speed already exists - ignoring sensor.asus_router_bridge_download_speed
2024-06-10 00:03:01.735 ERROR (MainThread) [homeassistant.components.sensor] Platform asusrouter does not generate unique IDs. ID 38:2c:4a:a3:b3:d0_bridge_upload already exists - ignoring sensor.asus_router_bridge_upload
2024-06-10 00:03:01.735 ERROR (MainThread) [homeassistant.components.sensor] Platform asusrouter does not generate unique IDs. ID 38:2c:4a:a3:b3:d0_bridge_upload_speed already exists - ignoring sensor.asus_router_bridge_upload_speed
2024-06-10 00:03:01.735 ERROR (MainThread) [homeassistant.components.sensor] Platform asusrouter does not generate unique IDs. ID 38:2c:4a:a3:b3:d0_2_4_ghz_download already exists - ignoring sensor.asus_router_2_4_ghz_download
2024-06-10 00:03:01.735 ERROR (MainThread) [homeassistant.components.sensor] Platform asusrouter does not generate unique IDs. ID 38:2c:4a:a3:b3:d0_2_4_ghz_download_speed already exists - ignoring sensor.asus_router_2_4_ghz_download_speed
2024-06-10 00:03:01.735 ERROR (MainThread) [homeassistant.components.sensor] Platform asusrouter does not generate unique IDs. ID 38:2c:4a:a3:b3:d0_2_4_ghz_upload already exists - ignoring sensor.asus_router_2_4_ghz_upload
2024-06-10 00:03:01.735 ERROR (MainThread) [homeassistant.components.sensor] Platform asusrouter does not generate unique IDs. ID 38:2c:4a:a3:b3:d0_2_4_ghz_upload_speed already exists - ignoring sensor.asus_router_2_4_ghz_upload_speed
2024-06-10 00:03:01.735 ERROR (MainThread) [homeassistant.components.sensor] Platform asusrouter does not generate unique IDs. ID 38:2c:4a:a3:b3:d0_5_ghz_download already exists - ignoring sensor.asus_router_5_ghz_download
2024-06-10 00:03:01.735 ERROR (MainThread) [homeassistant.components.sensor] Platform asusrouter does not generate unique IDs. ID 38:2c:4a:a3:b3:d0_5_ghz_download_speed already exists - ignoring sensor.asus_router_5_ghz_download_speed
2024-06-10 00:03:01.735 ERROR (MainThread) [homeassistant.components.sensor] Platform asusrouter does not generate unique IDs. ID 38:2c:4a:a3:b3:d0_5_ghz_upload already exists - ignoring sensor.asus_router_5_ghz_upload
2024-06-10 00:03:01.735 ERROR (MainThread) [homeassistant.components.sensor] Platform asusrouter does not generate unique IDs. ID 38:2c:4a:a3:b3:d0_5_ghz_upload_speed already exists - ignoring sensor.asus_router_5_ghz_upload_speed
2024-06-10 00:03:13.432 ERROR (MainThread) [custom_components.pyscript.file.house.control_cam] Exception in <file.house.control_cam> line 8:
            task.executor(subprocess.run,[SCRIPT_DIR + "recording-init.sh", id])
                                                                      ^
TypeError: expected str, bytes or os.PathLike object, not NoneType
2024-06-10 00:03:13.762 ERROR (MainThread) [homeassistant.components.solaredge] Could not retrieve details from SolarEdge API
2024-06-10 00:03:24.361 ERROR (MainThread) [homeassistant.components.solaredge] Could not retrieve details from SolarEdge API
2024-06-10 00:03:55.474 ERROR (MainThread) [homeassistant.components.solaredge] Could not retrieve details from SolarEdge API
2024-06-10 00:04:46.475 ERROR (MainThread) [homeassistant.components.solaredge] Could not retrieve details from SolarEdge API
2024-06-10 00:04:48.488 DEBUG (MainThread) [custom_components.chime_tts.queue_manager] Adding service call to queue
2024-06-10 00:04:48.589 DEBUG (MainThread) [custom_components.chime_tts] ----- Chime TTS Say Called. Version v1.1.0-beta13 -----
2024-06-10 00:04:48.592 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ----- General Parameters -----
2024-06-10 00:04:48.592 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * entity_ids = ['media_player.scofield']
2024-06-10 00:04:48.592 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * chime_path = /home/homeassistant/.homeassistant/www/sounds/car.mp3
2024-06-10 00:04:48.593 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * end_chime_path = /home/homeassistant/.homeassistant/www/sounds/bike.mp3
2024-06-10 00:04:48.593 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * cache = True
2024-06-10 00:04:48.593 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * offset = 0.0
2024-06-10 00:04:48.593 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * final_delay = 0.0
2024-06-10 00:04:48.593 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * message = Hi
2024-06-10 00:04:48.593 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * tts_platform = tts.piper
2024-06-10 00:04:48.593 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * tts_speed = 100.0
2024-06-10 00:04:48.593 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * tts_pitch = 0
2024-06-10 00:04:48.593 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * announce = True
2024-06-10 00:04:48.593 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * fade_audio = False
2024-06-10 00:04:48.593 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * volume_level = 0.3
2024-06-10 00:04:48.593 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * join_players = False
2024-06-10 00:04:48.593 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * unjoin_players = False
2024-06-10 00:04:48.593 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * media_players_array:
2024-06-10 00:04:48.593 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]    - 0: entity_id: media_player.scofield
2024-06-10 00:04:48.593 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      platform: mass
2024-06-10 00:04:48.593 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      initial volume: 0.3
2024-06-10 00:04:48.593 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      target volume: 0.3
2024-06-10 00:04:48.593 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      now playing: False
2024-06-10 00:04:48.593 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      join supported: True
2024-06-10 00:04:48.593 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]      announce supported: True
2024-06-10 00:04:48.594 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers] ----- TTS-Specific Params -----
2024-06-10 00:04:48.594 DEBUG (MainThread) [custom_components.chime_tts.helpers.helpers]  * voice = en_GB-alan-medium
2024-06-10 00:04:48.596 DEBUG (MainThread) [custom_components.chime_tts]  *** Checking Chime TTS audio cache ***
2024-06-10 00:04:48.599 DEBUG (MainThread) [custom_components.chime_tts]    Cached audio found:
2024-06-10 00:04:48.599 DEBUG (MainThread) [custom_components.chime_tts]      - local_path = "/home/homeassistant/.homeassistant/media/sounds/temp/chime_tts/opd89077.mp3"
2024-06-10 00:04:48.599 DEBUG (MainThread) [custom_components.chime_tts]      - audio_duration = 6.786
2024-06-10 00:04:48.599 DEBUG (MainThread) [custom_components.chime_tts]      - public_path = None
2024-06-10 00:04:48.599 DEBUG (MainThread) [custom_components.chime_tts]      - media_content_id = "media-source://media_source/local/sounds/temp/chime_tts/opd89077.mp3"
2024-06-10 00:04:48.599 DEBUG (MainThread) [custom_components.chime_tts] ****************************
2024-06-10 00:04:48.599 DEBUG (MainThread) [custom_components.chime_tts] *** Pre-Playback Actions ***
2024-06-10 00:04:48.599 DEBUG (MainThread) [custom_components.chime_tts] ****************************
2024-06-10 00:04:48.599 DEBUG (MainThread) [custom_components.chime_tts] **************************
2024-06-10 00:04:48.599 DEBUG (MainThread) [custom_components.chime_tts] *** Chime TTS playback ***
2024-06-10 00:04:48.599 DEBUG (MainThread) [custom_components.chime_tts] **************************
2024-06-10 00:04:48.602 DEBUG (MainThread) [custom_components.chime_tts]    1 Regular media player detected:
2024-06-10 00:04:48.602 DEBUG (MainThread) [custom_components.chime_tts]      - media_player.scofield
2024-06-10 00:04:48.602 DEBUG (MainThread) [custom_components.chime_tts]    Calling media_player.play_media with data:
2024-06-10 00:04:48.602 DEBUG (MainThread) [custom_components.chime_tts]      - entity_id: ['media_player.scofield']
2024-06-10 00:04:48.602 DEBUG (MainThread) [custom_components.chime_tts]      - announce: True
2024-06-10 00:04:48.602 DEBUG (MainThread) [custom_components.chime_tts]      - media_content_type: music
2024-06-10 00:04:48.602 DEBUG (MainThread) [custom_components.chime_tts]      - media_content_id: media-source://media_source/local/sounds/temp/chime_tts/opd89077.mp3
2024-06-10 00:04:48.604 DEBUG (MainThread) [custom_components.chime_tts]  - Waiting 6.786s for audio playback to complete...
2024-06-10 00:04:55.395 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player_helper]  - Waiting until 1 media_player isn't playing...
2024-06-10 00:04:59.009 DEBUG (MainThread) [custom_components.chime_tts.helpers.media_player_helper]    𝘅 media_player.scofield - Timed out. Current state: playing
2024-06-10 00:04:59.010 DEBUG (MainThread) [custom_components.chime_tts]  - Timed out waiting for playback to complete
2024-06-10 00:04:59.010 DEBUG (MainThread) [custom_components.chime_tts] ----- Chime TTS Say Completed in 10.42 s -----
2024-06-10 00:05:10.431 WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.ping_age_julia (min) cannot be converted to the unit of previously compiled statistics (None). Generation of long term statistics will be suppressed unless the unit changes back to None or a compatible unit. Go to https://my.home-assistant.io/redirect/developer_statistics to fix this
2024-06-10 00:06:06.977 ERROR (MainThread) [homeassistant.components.solaredge] Could not retrieve details from SolarEdge API

Diagnostics dump

No response

nimroddolev commented 5 months ago

Hi @schniepp. I'm sorry to hear you're having this issue.

1. Cache Issue

I can see from your attached debug log messages that you are using a previously cached file. This means I cannot see what happened when Chime TTS originally created that file. Could you please run the exact same service call but set cache to false, so that I can see the entire process?

2. "Default" Chime?

I'm confused by what you mean by the "default" chime. There is no default chime in Chime TTS. Could it be that your speaker has its own chime that plays independently of Chime TTS? To test this, I suggest you call chime_tts.say without no chime_path and end_chime_path values. If you still hear the "default" chime it must not be related to Chime TTS. You can also confirm this another way, by playing the MP3 file generated from the chime_tts.say_url service.

schniepp commented 5 months ago

@nimroddolev — thank you so much for looking into this so quickly!

Re 2. "Default Chime" — you were spot on! I feel very, very silly now that I could not figure this out by myself :( I tried TTS via the tts.speak service, and no matter what I did, I always heard a chime at the beginning — so I figured that this was a fixed feature of the built-in tts.speak service (and I read a comment somewhere in the forum that I interpreted this way, but I may not have paid enough attention. It turned out that the two mediaplayers I tested this on were both provided by music assistant, and I believe they had a chime turned on by default. I now deactivated it there, and my problem is done. Short story is: this was not a chime_tts issue, my problem is solved, and this issue can be closed. Sorry for the inconvenience! Cheers, HS

schniepp commented 5 months ago

OK, I guess I can close this — missed this feature in the bottom.