Got a few issues when I try use TTS.
Trigger an automation which triggers TTS to use Mopidy to play the audio notification. However if I trigger another automation which triggers TTS then it stops working.
Update for media_player.mpd fails
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/homeassistant/components/media_player/mpd.py", line 130, in update
self._fetch_status()
File "/usr/lib/python3.6/site-packages/homeassistant/components/media_player/mpd.py", line 113, in _fetch_status
self._currentsong = self._client.currentsong()
File "/usr/lib/python3.6/site-packages/mpd.py", line 629, in decorator
return wrapper(self, name, args, bound_decorator(self, returnValue))
File "/usr/lib/python3.6/site-packages/mpd.py", line 252, in _execute
self._write_command(command, args)
File "/usr/lib/python3.6/site-packages/mpd.py", line 279, in _write_command
self._write_line(" ".join(parts))
File "/usr/lib/python3.6/site-packages/mpd.py", line 259, in _write_line
self._wfile.flush()
File "/usr/lib/python3.6/socket.py", line 604, in write
return self._sock.send(b)
BrokenPipeError: [Errno 32] Broken pipe
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.6/socket.py", line 604, in write
return self._sock.send(b)
BrokenPipeError: [Errno 32] Broken pipe
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 199, in async_update_ha_state
yield from self.async_device_update()
File "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 306, in async_device_update
yield from self.hass.async_add_job(self.update)
File "/usr/lib/python3.6/asyncio/futures.py", line 331, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.6/asyncio/tasks.py", line 244, in _wakeup
future.result()
File "/usr/lib/python3.6/asyncio/futures.py", line 244, in result
raise self._exception
File "/usr/lib/python3.6/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/lib/python3.6/site-packages/homeassistant/components/media_player/mpd.py", line 133, in update
self._disconnect()
File "/usr/lib/python3.6/site-packages/homeassistant/components/media_player/mpd.py", line 104, in _disconnect
self._client.disconnect()
File "/usr/lib/python3.6/site-packages/mpd.py", line 565, in disconnect
self._wfile.close()
File "/usr/lib/python3.6/socket.py", line 604, in write
return self._sock.send(b)
BrokenPipeError: [Errno 32] Broken pipe
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/lib/python3.6/asyncio/tasks.py", line 179, in _step
result = coro.send(None)
File "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 210, in async_update_ha_state
state = self.state
File "/usr/lib/python3.6/site-packages/homeassistant/components/media_player/mpd.py", line 145, in state
elif self._status['state'] == 'play':
KeyError: 'state'
Also not able to parse some of the messages even though it previously played the notification with no issues. Full log can be found here:
https://hastebin.com/jivefagiwa.sql