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