Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 103101

Automations with HomePod/Apple TV fail after 2022.5

$
0
0

Could this be related to the update?

Logger: homeassistant.components.script.play_critical
Source: components/apple_tv/media_player.py:297 
Integration: Skript (documentation, issues) 
First occurred: 08:10:22 (1 occurrences) 
Last logged: 08:10:22

Play Critical: Error executing script. Unexpected error for call_service at pos 2: Got status 404 with message: Not Found
Traceback (most recent call last):
  File "/Users/server/homeassistant/lib/python3.9/site-packages/pyatv/protocols/raop/audio_source.py", line 362, in open
    stream_generator = await loop.run_in_executor(
  File "/opt/homebrew/Cellar/python@3.9/3.9.12/Frameworks/Python.framework/Versions/3.9/lib/python3.9/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/Users/server/homeassistant/lib/python3.9/site-packages/miniaudio.py", line 1216, in stream_any
    raise DecodeError("failed to init decoder", result)
miniaudio.DecodeError: ('failed to init decoder', -17)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/Users/server/homeassistant/lib/python3.9/site-packages/homeassistant/helpers/script.py", line 447, in _async_step
    await getattr(self, handler)()
  File "/Users/server/homeassistant/lib/python3.9/site-packages/homeassistant/helpers/script.py", line 680, in _async_call_service_step
    await service_task
  File "/Users/server/homeassistant/lib/python3.9/site-packages/homeassistant/core.py", line 1627, in async_call
    task.result()
  File "/Users/server/homeassistant/lib/python3.9/site-packages/homeassistant/core.py", line 1664, in _execute_service
    await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
  File "/Users/server/homeassistant/lib/python3.9/site-packages/homeassistant/helpers/entity_component.py", line 204, in handle_service
    await service.entity_service_call(
  File "/Users/server/homeassistant/lib/python3.9/site-packages/homeassistant/helpers/service.py", line 677, in entity_service_call
    future.result()  # pop exception if have
  File "/Users/server/homeassistant/lib/python3.9/site-packages/homeassistant/helpers/entity.py", line 964, in async_request_call
    await coro
  File "/Users/server/homeassistant/lib/python3.9/site-packages/homeassistant/helpers/service.py", line 714, in _handle_entity_call
    await result
  File "/Users/server/homeassistant/lib/python3.9/site-packages/homeassistant/components/apple_tv/media_player.py", line 297, in async_play_media
    await self.atv.stream.stream_file(media_id)
  File "/Users/server/homeassistant/lib/python3.9/site-packages/pyatv/core/facade.py", line 382, in stream_file
    await self.relay("stream_file")(file, **kwargs)
  File "/Users/server/homeassistant/lib/python3.9/site-packages/pyatv/protocols/raop/__init__.py", line 371, in stream_file
    audio_file = await open_source(
  File "/Users/server/homeassistant/lib/python3.9/site-packages/pyatv/protocols/raop/audio_source.py", line 483, in open_source
    return await InternetSource.open(source, sample_rate, channels, sample_size)
  File "/Users/server/homeassistant/lib/python3.9/site-packages/pyatv/protocols/raop/audio_source.py", line 375, in open
    raise ProtocolError(source.error_message) from ex
pyatv.exceptions.ProtocolError: Got status 404 with message: Not Found

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 103101

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>