#Notify action works from developer tools, not from automation

1 messages · Page 1 of 1 (latest)

plush zenith
#

I have an automation that runs a "notify.whole_house" action. I can trigger the notify.whole_house action from the developer tools interface, but when I try to run the action in the automation nothing gets played on the homepods that are in the action and I see the following traceback in the logs:

Logger: homeassistant.core

Error executing service: <ServiceCall media_player.play_media (c:01K9ZE8PMQJ3WMR2ETHTTZR3NV): entity_id=['media_player.living_room_homepod', 'media_player.office', 'media_player.kitchen_homepod', 'media_player.craft_room_homepod', 'media_player.bedroom_homepod'], announce=True, extra=, media_type=music, media_id=media-source://media_source/local/sounds/temp/chime_tts/998b73002de75462a7ca38d43f9362e9.mp3>
<snip>
Traceback (most recent call last):
<snip>

  File "/usr/local/lib/python3.13/site-packages/pyatv/protocols/raop/audio_source.py", line 730, in open_source
    return await InternetSource.open(source, sample_rate, channels, sample_size)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/pyatv/protocols/raop/audio_source.py", line 598, in open
    stream_generator = await loop.run_in_executor(
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<9 lines>...
    )
    ^
  File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.13/site-packages/miniaudio.py", line 1270, in stream_any
    raise DecodeError("failed to init decoder", result)
miniaudio.DecodeError: ('failed to init decoder', -1)

Any suggestions on how to get this to work??

slow ledge
#

You would obviously have to provide the code if you want help fixing something.
Plus those errors are about splaying some media file

#

source://media_source/local/sounds/temp/chime_tts/998b73002de75462a7ca38d43f9362e9.mp3>
not a notify action.