hi all,
as the title suggests, i’m trying to create an automation to play a youtube video on my tv.
ive added
media_extractor:
to my configuration.yaml, i did look at setting it to play only the best video/audio then noticed that’s set by default.
in my automation I have
- id: '1544197797055'
alias: testing playing youtube video on lounge tv
trigger:
- at: '21:30'
platform: time
action:
- service: media_extractor.play_media
entity_id: media_player.tv
data:
media_content_id: "https://www.youtube.com/watch?v=bmGsQkLb4yg"
media_content_type: video/youtube
but nothing happens… i do get the following error
Log Details (ERROR)
Tue Jan 08 2019 20:26:53 GMT+0000 (Greenwich Mean Time)
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/automation/__init__.py", line 294, in async_trigger
await self._async_action(self.entity_id, variables, context)
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/automation/__init__.py", line 378, in action
await script_obj.async_run(variables, context)
File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/script.py", line 130, in async_run
await self._handle_action(action, variables, context)
File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/script.py", line 172, in _handle_action
action, variables, context)
File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/script.py", line 261, in _async_call_service
context=context
File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/service.py", line 81, in async_call_from_config
domain, service_name, service_data, blocking=blocking, context=context)
File "/usr/local/lib/python3.6/site-packages/homeassistant/core.py", line 1098, in async_call
raise ServiceNotFound(domain, service) from None
homeassistant.exceptions.ServiceNotFound: (ServiceNotFound(...), 'Service media_extractor.play_media not found')
any help?
EDIT:
the end aim is to have a video played on the tv when ever i ask alexa to play music.