Automation uses an unknown action

I am seeing some repairs tagged by automations:

Matrix2-Time uses an unknown action
Error ⸱ Reported by Automation
The automation “Matrix2-Time” (automation.matrix2_time) has an unknown action: rest_command.matrix2_text.

This error prevents the automation from running correctly. Maybe this action is no longer available, or perhaps a typo caused it.

To fix this error, edit the automation and remove this action.

Below is my automation and rest files. Any clues what the problem is?
Meanwhile, the rest command is working.

Automation:

alias: Matrix2-Time
description: ""
triggers:
  - minutes: /1
    trigger: time_pattern
conditions: []
actions:
  - action: rest_command.matrix2_text
    metadata: {}
    data:
      text: "{{states['sensor.time'].state}}"
mode: single

From rest.yaml:

  matrix1_text:
    url: http://matrix1.local/json/state
    method: POST
    payload: '{"seg": [{"n": "{{text}}" }]}'
  matrix2_text:
    url: http://matrix2.local/json/state
    method: POST
    payload: '{"seg": [{"n": "{{text}}" }]}'
  matrix5_text:
    url: http://matrix5.local/json/state
    method: POST
    payload: '{"seg": [{"n": "{{text}}" }]}'

try enclosing the url in quotes. other than that I don’t see anything obvious to try.

  matrix1_text:
    url: 'http://matrix1.local/json/state'
    method: POST
    payload: '{"seg": [{"n": "{{text}}" }]}'
  matrix2_text:
    url: 'http://matrix2.local/json/state'
    method: POST
    payload: '{"seg": [{"n": "{{text}}" }]}'
  matrix5_text:
    url: 'http://matrix5.local/json/state'
    method: POST
    payload: '{"seg": [{"n": "{{text}}" }]}'

Thanks.
That was a good thought since my other rest_commands do have the URL in quotes. But no difference.

MOST puzzling is that the automations are working. Matrix2 is a WLED matrix that is displaying the current time, and it gets updated by the “failing” automation once a minute.

There’s also nothing in the logs.

1 Like

I get that error a lot.
I just ignore then.

Does it happen all the time or during startup? If it’s during startup, I’ve seen this if a component hasn’t been loaded, which is possible in your case with a 1 min ingeval if startup is a little slow.

Good question. I only see it on the settings page when restarting Home Assistant to test new sensors or automations.

But, your reply got me to asking when does the automation even run? I added this to the trigger to make the automation run the actions when Home Assistant starts, then every minute after that.

      - platform: homeassistant
        event: start

We will have to watch it. I dismissed the errors and they don’t appear in the system, repairs, show ignored repairs.