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

Home Assistant log: Invalid Authentication from Sonos Roam #111

Closed JCummings49 closed 7 months ago

JCummings49 commented 7 months ago

System Health details

System Information

version core-2024.4.2
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.12.2
os_name Linux
os_version 6.6.20-haos
arch aarch64
timezone America/Chicago
config_dir /config
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 | 1399 Downloaded Repositories | 20 HACS Data | ok
AccuWeather can_reach_server | ok -- | -- remaining_requests | 19
Home Assistant Cloud logged_in | true -- | -- subscription_expiration | March 5, 2025 at 6:00 PM relayer_connected | true relayer_region | us-east-1 remote_enabled | true remote_connected | true alexa_enabled | true google_enabled | false remote_server | us-east-1-8.ui.nabu.casa certificate_status | ready instance_id | aa0b917ef61c4654a670573e45e1e118 can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | ok
Home Assistant Supervisor host_os | Home Assistant OS 12.1 -- | -- update_channel | stable supervisor_version | supervisor-2024.04.0 agent_version | 1.6.0 docker_version | 24.0.7 disk_total | 234.7 GB disk_used | 9.5 GB healthy | true supported | true board | odroid-m1 supervisor_api | ok version_api | ok installed_addons | Terminal & SSH (9.10.0), File editor (5.8.0), Matter Server (5.5.1), ESPHome (2024.3.2), Studio Code Server (5.15.0), MariaDB (2.6.1), Samba share (12.3.1), Mosquitto broker (6.4.0)
Dashboards dashboards | 7 -- | -- resources | 14 views | 12 mode | storage
Recorder oldest_recorder_run | April 5, 2024 at 7:58 PM -- | -- current_recorder_run | April 9, 2024 at 7:42 PM estimated_db_size | 264.77 MiB database_engine | mysql database_version | 10.6.12

Checklist

Describe the issue

I have started getting the following log warning message. It seems to be fairly random and often. I don't have any automations using Chime TTS that coincide with these warnings. I initially thought it was a permissions problem with the indicated path in the URL, but opening up the permissions doesn't seem to resolve the warning messages,

Logger: homeassistant.components.http.ban Source: components/http/ban.py:138 integration: HTTP (documentation, issues) First occurred: 2:11:41 PM (1 occurrences) Last logged: 2:11:41 PM

Login attempt or request with invalid authentication from SonosZP.attlocal.net (192.168.1.198). Requested URL: '/media/local/sounds/temp/chime_tts/ayqpvcsz.mp3?authSig=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiIwOGUwOTlkNTAyYmI0NzYzODNmZTdlNzlhMGE3OGVhYSIsInBhdGgiOiIvbWVkaWEvbG9jYWwvc291bmRzL3RlbXAvY2hpbWVfdHRzL2F5cXB2Y3N6Lm1wMyIsInBhcmFtcyI6W10sImlhdCI6MTcxMjU5MzMxNiwiZXhwIjoxNzEyNjc5NzE2fQ.JkLxAseJdnzG6ymLRQbnWSnAlgQSvuBavHlI3LYCWXU'. (Linux UPnP/1.0 Sonos/78.1-52020 (ZPS27))

Reproduction steps

1. 2. 3. ...

Debug logs

2024-04-10 14:40:16.481 WARNING (SyncWorker_1) [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-04-10 14:40:16.484 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration teamtracker 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-04-10 14:40:16.487 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration webrtc 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-04-10 14:40:16.489 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration tapo 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-04-10 14:40:16.492 WARNING (SyncWorker_1) [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-04-10 14:40:16.494 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration meross_cloud 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-04-10 14:40:16.497 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration scheduler 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-04-10 14:40:26.797 WARNING (MainThread) [custom_components.meross_cloud] Skip MQTT cert validation option set to: True
2024-04-10 14:40:27.140 WARNING (MainThread) [custom_components.meross_cloud] 
===============================
Meross Cloud Custom component
Developed by Alberto Geniola
Low level library version: 0.4.6.1
-------------------------------
This custom component is under development and not yet ready for production use.
In case of errors/misbehave, please report it here: 
https://github.com/albertogeniola/meross-homeassistant/issues

If you like this extension and you want to support it, please consider donating.
-------------------------------
List of devices reported by HTTP API:
- Marian Light (msl430) - OnlineStatus.ONLINE
- Smart Ambient Light (msl430) - OnlineStatus.ONLINE
===============================
2024-04-10 14:40:33.177 WARNING (MainThread) [meross_iot.manager] Found a new device Marian Light (msl430, HW 4.0.0, FW 4.2.6, class: msl430:4.0.0:4.2.6) that has become online while we were offline.
2024-04-10 14:40:33.179 WARNING (MainThread) [meross_iot.manager] Found a new device Smart Ambient Light (msl430, HW 4.0.0, FW 4.2.6, class: msl430:4.0.0:4.2.6) that has become online while we were offline.
2024-04-10 14:40:37.198 DEBUG (ImportExecutor_0) [custom_components.chime_tts.queue_manager] Queue reset
2024-04-10 14:40:37.206 DEBUG (MainThread) [custom_components.chime_tts.queue_manager] Queue reset
2024-04-10 14:40:37.208 INFO (MainThread) [custom_components.chime_tts] The Chime TTS integration is set up.
2024-04-10 14:40:37.210 WARNING (MainThread) [py.warnings] /usr/local/lib/python3.12/asyncio/base_events.py:1989: RuntimeWarning: coroutine 'ChimeTTSQueueManager.queue_processor' was never awaited
  handle = None  # Needed to break cycles when an exception occurs.

2024-04-10 14:40:37.213 DEBUG (MainThread) [custom_components.chime_tts] Chime TTS Configuration Values:
2024-04-10 14:40:37.213 DEBUG (MainThread) [custom_components.chime_tts]  - queue_timeout: 60
2024-04-10 14:40:37.213 DEBUG (MainThread) [custom_components.chime_tts]  - tts_platform_key: ''
2024-04-10 14:40:37.214 DEBUG (MainThread) [custom_components.chime_tts]  - offset: 0
2024-04-10 14:40:37.214 DEBUG (MainThread) [custom_components.chime_tts]  - temp_chimes_path: '/media/sounds/temp/chime_tts/chimes/'
2024-04-10 14:40:37.214 DEBUG (MainThread) [custom_components.chime_tts]  - temp_path: '/media/sounds/temp/chime_tts/'
2024-04-10 14:40:37.214 DEBUG (MainThread) [custom_components.chime_tts]  - www_path: '/www/chime_tts/'
2024-04-10 14:40:37.214 DEBUG (MainThread) [custom_components.chime_tts]  - media_dir: 'local'
2024-04-10 14:40:37.214 DEBUG (MainThread) [custom_components.chime_tts]  - custom_paths:
2024-04-10 14:40:37.214 DEBUG (MainThread) [custom_components.chime_tts]    - custom_chime_path_1: '/media/sounds/announcement-sound-4-21464.mp3'
2024-04-10 14:40:37.215 DEBUG (MainThread) [custom_components.chime_tts]    - custom_chime_path_2: '/media/sounds/grandfathers-clock-1-ding-dong-14356.mp3'
2024-04-10 14:40:37.215 DEBUG (MainThread) [custom_components.chime_tts]    - custom_chime_path_3: '/media/sounds/header-39344.mp3'
2024-04-10 14:40:37.215 DEBUG (MainThread) [custom_components.chime_tts]    - custom_chime_path_4: 
2024-04-10 14:40:37.215 DEBUG (MainThread) [custom_components.chime_tts]    - custom_chime_path_5: 
2024-04-10 14:40:42.613 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-04-10 14:40:44.109 WARNING (MainThread) [homeassistant.components.light] Entity None (<class 'custom_components.meross_cloud.light.LightEntityWrapper'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <LightEntityFeature: 19> and color modes, please create a bug report at https://github.com/albertogeniola/meross-homeassistant and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation
2024-04-10 14:40:44.110 WARNING (MainThread) [homeassistant.components.light] None (<class 'custom_components.meross_cloud.light.LightEntityWrapper'>) does not set supported color modes, this will stop working in Home Assistant Core 2025.3, please create a bug report at https://github.com/albertogeniola/meross-homeassistant
2024-04-10 14:40:44.116 WARNING (MainThread) [homeassistant.components.light] Entity None (<class 'custom_components.meross_cloud.light.LightEntityWrapper'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <LightEntityFeature: 19> and color modes, please create a bug report at https://github.com/albertogeniola/meross-homeassistant and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation
2024-04-10 14:40:44.116 WARNING (MainThread) [homeassistant.components.light] None (<class 'custom_components.meross_cloud.light.LightEntityWrapper'>) does not set supported color modes, this will stop working in Home Assistant Core 2025.3, please create a bug report at https://github.com/albertogeniola/meross-homeassistant
2024-04-10 14:40:49.395 ERROR (bellows.thread_0) [bellows.uart] CRC error in frame b'f5de2c83fc7e1644ecc5f67e' (b'c5f6' != b'ad45')
2024-04-10 14:40:49.663 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from SonosZP.attlocal.net (192.168.1.198). Requested URL: '/media/local/sounds/temp/chime_tts/ayqpvcsz.mp3?authSig=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiIwOGUwOTlkNTAyYmI0NzYzODNmZTdlNzlhMGE3OGVhYSIsInBhdGgiOiIvbWVkaWEvbG9jYWwvc291bmRzL3RlbXAvY2hpbWVfdHRzL2F5cXB2Y3N6Lm1wMyIsInBhcmFtcyI6W10sImlhdCI6MTcxMjU5MzMxNiwiZXhwIjoxNzEyNjc5NzE2fQ.JkLxAseJdnzG6ymLRQbnWSnAlgQSvuBavHlI3LYCWXU'. (Linux UPnP/1.0 Sonos/78.1-52020 (ZPS27))
2024-04-10 14:40:56.821 WARNING (MainThread) [zigpy.application] Zigbee channel 20 utilization is 80.38%!
2024-04-10 14:40:56.821 WARNING (MainThread) [zigpy.application] If you are having problems joining new devices, are missing sensor updates, or have issues keeping devices joined, ensure your coordinator is away from interference sources such as USB 3.0 devices, SSDs, WiFi routers, etc.
2024-04-10 14:40:58.331 WARNING (MainThread) [homeassistant.components.homekit] The bridge Home Assistant Bridge has entity camera.living_room. For best performance, and to prevent unexpected unavailability, create and pair a separate HomeKit instance in accessory mode for this entity
2024-04-10 14:40:58.431 WARNING (MainThread) [homeassistant.components.homekit] The bridge Home Assistant Bridge has entity media_player.lg_webos_tv_oled65c2pua. For best performance, and to prevent unexpected unavailability, create and pair a separate HomeKit instance in accessory mode for this entity

Diagnostics dump

NA

nimroddolev commented 7 months ago

Hi @JCummings49.

You mentioned that you receive these warnings "fairly random and often". From the debug logs you provided it looks like they occurred during startup. Do you also receive these warnings throughout the day?

You didn't mention whether you're having any issues with Chime TTS beyond receiving these warnings. Any additional information might prove useful to understanding the issue.

Regarding the 3 warnings themselves:

  1. 2024-04-10 14:40:16.481 WARNING (SyncWorker_1) [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 This warning is standard for any integration that is not part of the core HA OS, and can be ignored.

  2. 2024-04-10 14:40:37.210 WARNING (MainThread) [py.warnings] /usr/local/lib/python3.12/asyncio/base_events.py:1989: RuntimeWarning: coroutine 'ChimeTTSQueueManager.queue_processor' was never awaited handle = None # Needed to break cycles when an exception occurs. This warning is not related to Chime TTS, but perhaps the asycio python library. I haven't seen this warning during development & testing which makes it hard for me to dig deeper, and I also can't say if its widespread. Do you receive similar warnings from other integrations?

  3. 2024-04-10 14:40:49.663 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from SonosZP.attlocal.net (192.168.1.198). Requested URL: '/media/local/sounds/temp/chime_tts/ayqpvcsz.mp3?authSig=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiIwOGUwOTlkNTAyYmI0NzYzODNmZTdlNzlhMGE3OGVhYSIsInBhdGgiOiIvbWVkaWEvbG9jYWwvc291bmRzL3RlbXAvY2hpbWVfdHRzL2F5cXB2Y3N6Lm1wMyIsInBhcmFtcyI6W10sImlhdCI6MTcxMjU5MzMxNiwiZXhwIjoxNzEyNjc5NzE2fQ.JkLxAseJdnzG6ymLRQbnWSnAlgQSvuBavHlI3LYCWXU'. (Linux UPnP/1.0 Sonos/78.1-52020 (ZPS27)) This warning also doesn't seem related to Chime TTS, but perhaps to the Sonos integration or a networking or permissions issue (as you already wrote). I am afraid I don't think I can be of assistance here. My suggestion would be to test if you continue to receive the warning if you only use Chime TTS on non-Sonos media players. That would tell you whether it's a Sonos-related issue or not.

nimroddolev commented 7 months ago

Hi @JCummings49,

I just released a new beta which includes a potential fix for the RuntimeWarning: coroutine 'ChimeTTSQueueManager.queue_processor' was never awaited warning.

To install the new beta:

  1. Open the Chime TTS repository in HACS
  2. Click on the button in the top right
  3. Select the ↻ Redownload option
  4. Enable the Show beta versions option (it may take a moment to update the list)
  5. Select version v1.1.0-beta2 from the updated version drop-down list
  6. Restart Home Assistant
JCummings49 commented 7 months ago

Okay, I've installed the beta. I'll assume this change will eventually get pushed as a dot release at some point.

After the reboot, the only warning I'm seeing is as follows:

Logger: py.warnings Source: runner.py:189 First occurred: 9:27:54 AM (1 occurrences) Last logged: 9:27:54 AM

/usr/local/lib/python3.12/asyncio/base_events.py:1989: RuntimeWarning: coroutine 'ChimeTTSQueueManager.queue_processor' was never awaited handle = None # Needed to break cycles when an exception occurs.

I'll run a few cycles using the Chime TTS integration and see how it goes. I suppose we can consider this original issue closed. Thanks for your help.

nimroddolev commented 7 months ago

I am closing this issue. Please reopen it if it is still relevant.