Automation not found error in the logs, but it exists and runs?

I have these two (contradicting) errors in my logs:-

The first says this:-

Logger: homeassistant
Source: core.py:2727
First occurred: 1 April 2025 at 13:47:27 (3 occurrences)
Last logged: 1 April 2025 at 13:47:31
Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/core.py", line 2727, in async_call
    raise ServiceNotFound(domain, service) from None
homeassistant.exceptions.ServiceNotFound: Action automation.transfer_kitchen_audio_to_multi_room_and_back not found

And the second says this:-

Logger: homeassistant.components.automation.transfer_kitchen_audio_to_multi_room_and_back
Source: helpers/script.py:2058
integration: Automation ([documentation](https://www.home-assistant.io/integrations/automation), [issues](https://github.com/home-assistant/core/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+automation%22))
First occurred: 1 April 2025 at 13:47:23 (2 occurrences)
Last logged: 1 April 2025 at 13:47:28

Transfer Kitchen Audo to Multi Room and back: Already running

The automation itself works fine. (I’m not worried about the warning, the automation can take a few seconds to run and is triggered by a button that could be pressed more quickly).

Checking the last trace it matches the warning, with a time stamp of 13:47:28, so I’m at a loss as to why the error at the top of this post is happening.

My guess is you are calling it like this somewhere:

actions:
  - action: automation.transfer_kitchen_audio_to_multi_room_and_back

That is not a valid action. Hence “action” not found. Not “automation” not found.

You need

actions:
  - action: automation.trigger
    target:
      entity_id: automation.transfer_kitchen_audio_to_multi_room_and_back
1 Like

Good spot. I’ll got hunting and see where I’ve done that.

And we have a winner in my esphome code…


        - homeassistant.service:
            service: automation.transfer_kitchen_audio_to_multi_room_and_back

Cut and paste fail.