Media Player Speak Automations Stopped Working

Hello all.

I have 4-5 door opening or window opening automations that announce through my sonos speaker or one of my echo’s. Have always worked. Made no changes in the last couple of days besides updates, and suddenly none of the speaking parts of the automations are working at all. The other actions work fine though. So is there anything recently through the updates that might have screwed this up for me? Again, I made no changes to any of the automations, and none of them speak now through the google.say service.

Any one have any ideas or thoughts to help me through this?

Thanks,
Jace

Just seeing if anyone else has noticed, or may have some suggestions? Again they worked, and no changes have been made to any integrations, or automations. Only updated the versions from 2021.8.4 to 8.6.

Thanks,
Jace

Can you check by going to Developer Tools → Services → Select tts.google_say from the drop-down menu → Select the media_player target → Insert a random sentence → Call Service.

Does it speaks through your media_player?

Thank you for the reply. When I try it with an alexa device the alexa device says sorry text to speech doesnt work you have to use notify.alexa media service.

When I try with my sonos speaker nothing comes out of the speaker.

So then, I tried using the notify.alexa with a alexa device and I receive an error, Failed to call service, unknown error.

Where can I check that error, to see if there might be more info, besides unknown?

So crazy though that nothing has been changed between the automations, and scripts that were working a week ago?

Thank you much!
Jace

Hello, i do have the same issue, and once I do that, nothing happens. Not even a log. anyone know whats going on?

I am having the same issue as you… anyone found the problem?

I noticed an error but will have to login a little later and copy it for anyone that can help. I’m pretty sure it was a websocket api error with the amazon integration.

If that’s of any help please let us know.
Thanks

Im still unable to get my TTS automation and scripts working even with the last couple updates. 2 Weeks ago all was fine, and made no code changes to anything, and suddenly it stops working.

I have tried dev tools service, and call tts google, and notify alexa. The tts service call only forces my alexa to say tts is not allowed please use the alexa notify service.

So I just pressed the call services a couple times and copied these 2 errors.

Source: custom_components/alexa_media/notify.py:216
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 8:38:30 PM (3 occurrences)
Last logged: 8:38:40 PM

[2692102368] Error handling message: Unknown error
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 25, in _handle_async_response
    await func(hass, connection, msg)
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 525, in handle_execute_script
    await script_obj.async_run(msg.get("variables"), context=context)
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1219, in async_run
    await asyncio.shield(run.async_run())
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 353, in async_run
    await self._async_step(log_exceptions=False)
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 371, in _async_step
    await getattr(self, handler)()
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 571, in _async_call_service_step
    await service_task
  File "/usr/src/homeassistant/homeassistant/core.py", line 1491, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1526, in _execute_service
    await handler.job.target(service_call)
  File "/usr/src/homeassistant/homeassistant/components/notify/__init__.py", line 159, in _async_notify_message_service
    await self.async_send_message(**kwargs)
  File "/config/custom_components/alexa_media/notify.py", line 216, in async_send_message
    if data["type"] == "tts":
TypeError: 'NoneType' object is not subscriptable

And


This error originated from a custom integration.

Logger: homeassistant.helpers.script.websocket_api_script
Source: custom_components/alexa_media/notify.py:216
Integration: Alexa Media Player (documentation, issues)
First occurred: 8:38:30 PM (3 occurrences)
Last logged: 8:38:40 PM

websocket_api script: Error executing script. Unexpected error for call_service at pos 1: 'NoneType' object is not subscriptable
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 371, in _async_step
    await getattr(self, handler)()
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 571, in _async_call_service_step
    await service_task
  File "/usr/src/homeassistant/homeassistant/core.py", line 1491, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1526, in _execute_service
    await handler.job.target(service_call)
  File "/usr/src/homeassistant/homeassistant/components/notify/__init__.py", line 159, in _async_notify_message_service
    await self.async_send_message(**kwargs)
  File "/config/custom_components/alexa_media/notify.py", line 216, in async_send_message
    if data["type"] == "tts":
TypeError: 'NoneType' object is not subscriptable

Im not sure what Im looking at or what these errors mean, so please be gentle, and helpful of course if possible!

Thanks,
Jace

1 Like