Thanks again Bouwe
For the second problem i still have it.
But iam using hassio and i cant find developer tools.
i fund this instead.
Error executing service <ServiceCall script.relaxdeck (c:bf31a8eefead4b989061afc938c920c2)>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/core.py", line 1243, in _safe_execute
await self._execute_service(handler, service_call)
File "/usr/src/homeassistant/homeassistant/core.py", line 1260, in _execute_service
await handler.func(service_call)
File "/usr/src/homeassistant/homeassistant/components/script/__init__.py", line 128, in service_handler
await script.async_turn_on(variables=service.data, context=service.context)
File "/usr/src/homeassistant/homeassistant/components/script/__init__.py", line 193, in async_turn_on
raise err
File "/usr/src/homeassistant/homeassistant/components/script/__init__.py", line 188, in async_turn_on
await self.script.async_run(kwargs.get(ATTR_VARIABLES), context)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 151, in async_run
await self._handle_action(action, variables, context)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 235, in _handle_action
await self._actions[_determine_action(action)](action, variables, context)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 318, in _async_call_service
context=context,
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 97, in async_call_from_config
domain, service_name, service_data, blocking=blocking, context=context
File "/usr/src/homeassistant/homeassistant/core.py", line 1235, in async_call
await asyncio.shield(self._execute_service(handler, service_call))
File "/usr/src/homeassistant/homeassistant/core.py", line 1260, in _execute_service
await handler.func(service_call)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 210, in handle_service
self._platforms.values(), func, call, service_name, required_features
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 334, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 358, in _handle_service_platform_call
await func(entity, data)
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/mpd/media_player.py", line 339, in play_media
self._client.add(media_id)
File "/usr/local/lib/python3.7/site-packages/mpd/base.py", line 381, in mpd_command
return wrapper(self, name, args, callback)
File "/usr/local/lib/python3.7/site-packages/mpd/base.py", line 473, in _execute
return retval()
File "/usr/local/lib/python3.7/site-packages/mpd/base.py", line 368, in command_callback
res = function(self, self._read_lines())
File "/usr/local/lib/python3.7/site-packages/mpd/base.py", line 311, in _parse_nothing
for line in lines:
File "/usr/local/lib/python3.7/site-packages/mpd/base.py", line 538, in _read_lines
line = self._read_line()
File "/usr/local/lib/python3.7/site-packages/mpd/base.py", line 527, in _read_line
raise CommandError(error)
mpd.base.CommandError: [50@0] {add} directory or file not found
maybe you can make sents of it?
the first problem i solved.
this code works fine.
- alias: HA Boot_2
trigger:
platform: homeassistant
event: start
action:
- service: media_player.play_media
data_template:
entity_id: media_player.mpd
media_content_id: local:track:playlists/boot.mp3
media_content_type: 'music'
I changes /local/mopidy/playlists/boot.mp3 this true this local:track:playlists/boot.mp3