Thanks! I updated the automation and now I got following error. You have any help for me?
- alias: "con2 media_player.musikserver"
trigger:
- platform: state
to: "on"
entity_id: input_boolean.test2
action:
service: media_player.play_media
data:
entity_id: media_player.musikserver
media_content_id: http://www.soundjay.com/nature/sounds/rain-07.mp3
media_content_type: music
Log Details (ERROR)
Sat May 18 2019 21:14:46 GMT+0200 (Mitteleuropäische Sommerzeit)
Error while executing automation automation.con2_media_player_musikserver. Unknown error for call_service at pos 1:
Traceback (most recent call last):
File “/home/pi/homeassistant/lib/python3.5/site-packages/homeassistant/components/automation/init.py”, line 378, in action
await script_obj.async_run(variables, context)
File “/home/pi/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/script.py”, line 131, in async_run
await self._handle_action(action, variables, context)
File “/home/pi/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/script.py”, line 210, in _handle_action
action, variables, context)
File “/home/pi/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/script.py”, line 299, in _async_call_service
context=context
File “/home/pi/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/service.py”, line 89, in async_call_from_config
domain, service_name, service_data, blocking=blocking, context=context)
File “/home/pi/homeassistant/lib/python3.5/site-packages/homeassistant/core.py”, line 1141, in async_call
self._execute_service(handler, service_call))
File “/usr/lib/python3.5/asyncio/futures.py”, line 380, in iter
yield self # This tells Task to wait for completion.
File “/usr/lib/python3.5/asyncio/tasks.py”, line 304, in _wakeup
future.result()
File “/usr/lib/python3.5/asyncio/futures.py”, line 293, in result
raise self._exception
File “/usr/lib/python3.5/asyncio/tasks.py”, line 239, in _step
result = coro.send(None)
File “/home/pi/homeassistant/lib/python3.5/site-packages/homeassistant/core.py”, line 1163, in _execute_service
await handler.func(service_call)
File “/home/pi/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_component.py”, line 194, in handle_service
required_features
File “/home/pi/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/service.py”, line 316, in entity_service_call
future.result() # pop exception if have
File “/usr/lib/python3.5/asyncio/futures.py”, line 293, in result
raise self._exception
File “/usr/lib/python3.5/asyncio/tasks.py”, line 239, in _step
result = coro.send(None)
File “/home/pi/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/service.py”, line 339, in _handle_service_platform_call
await func(entity, data)
File “/home/pi/homeassistant/lib/python3.5/site-packages/homeassistant/components/dlna_dmr/media_player.py”, line 334, in async_play_media
media_id, title, mime_type, upnp_class)
File “/home/pi/homeassistant/lib/python3.5/site-packages/async_upnp_client/profiles/dlna.py”, line 627, in async_set_transport_uri
CurrentURIMetaData=meta_data)
File “/home/pi/homeassistant/lib/python3.5/site-packages/async_upnp_client/client.py”, line 511, in async_call
(status_code, response_body))
async_upnp_client.client.UpnpError: Error during async_call(), status: 500, body: <?xml version="1.0" encoding="utf-8"?><s:Envelope xmlns:s=“http://schemas.xmlsoap.org/soap/envelope/” s:encodingStyle=“http://schemas.xmlsoap.org/soap/encoding/”><s:Body><s:Fault>s:ClientUPnPError501Action Failed</s:Fault></s:Body></s:Envelope>