I’ve just tried TTS with Google to play on my Marantz device. The device itself is nicely supported by the denonavr component and I can turn it off and on, change volume up and down, etc with the media_player service.
However, then it comes to TTS, it fails with the following:
Aug 09 20:32:30 hassbian hass[25766]: 2017-08-09 20:32:30 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: service_call_id=1973916752-9, domain=media_player, service_data=entity_id=['media_player.marantz'], media_content_type=music, media_content_id=http://192.168.1.150:8123/api/tts_proxy/38ae88ff227bbaa4b80e23570cf3de553bb416ec_en_-_google.mp3, service=play_media>
Aug 09 20:32:30 hassbian hass[25766]: 2017-08-09 20:32:30 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Aug 09 20:32:30 hassbian hass[25766]: Traceback (most recent call last):
Aug 09 20:32:30 hassbian hass[25766]: File "/usr/lib/python3.4/asyncio/tasks.py", line 233, in _step
Aug 09 20:32:30 hassbian hass[25766]: result = coro.throw(exc)
Aug 09 20:32:30 hassbian hass[25766]: File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/core.py", line 1025, in _event_to_service_call
Aug 09 20:32:30 hassbian hass[25766]: yield from service_handler.func(service_call)
Aug 09 20:32:30 hassbian hass[25766]: File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/media_player/__init__.py", line 409, in async_service_handler
Aug 09 20:32:30 hassbian hass[25766]: yield from getattr(player, method['method'])(**params)
Aug 09 20:32:30 hassbian hass[25766]: File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
Aug 09 20:32:30 hassbian hass[25766]: yield self # This tells Task to wait for completion.
Aug 09 20:32:30 hassbian hass[25766]: File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
Aug 09 20:32:30 hassbian hass[25766]: value = future.result()
Aug 09 20:32:30 hassbian hass[25766]: File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
Aug 09 20:32:30 hassbian hass[25766]: raise self._exception
Aug 09 20:32:30 hassbian hass[25766]: File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
Aug 09 20:32:30 hassbian hass[25766]: result = self.fn(*self.args, **self.kwargs)
Aug 09 20:32:30 hassbian hass[25766]: File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/media_player/__init__.py", line 709, in play_media
Aug 09 20:32:30 hassbian hass[25766]: raise NotImplementedError()
Aug 09 20:32:30 hassbian hass[25766]: NotImplementedError
Just wondering if somebody got the same and if anybody managed to use play_media service with Danon or Marantz.