Incomplete template configuration

I have a repair message, that I cannot figure out

A trigger template configuration needs a trigger and at least one domain when defining an entity. This will be an configuration validation error in Home Assistant Core 2026.5.

Please remove the orphaned trigger from the configuration.

triggers:
  trigger: event
  event_type: tasker_event

Within my templates.yaml file i also have:

- sensor:
    - name: Tasker State
      state: "{{trigger.event.data.state}}"

Im not sure I understand the error, or how to future proof
Any help appreciated

LMGTFY:

TL;DR

Remove the dash before sensor. That dash is creating a new list item and divorcing the sensor from the trigger.

Thanks, I read through that, and I may be more confused.
My templates.yaml reads:

- trigger:
    trigger: event
    event_type: tasker_event
    sensor:
      - name: Tasker State
        state: "{{trigger.event.data.state}}"

But I get an error in the logs:

Invalid config for 'template' at templates.yaml, 
line 2: 'sensor' is an invalid option for 'template', check: sensor

Your line with sensor is indented too far, causing the same problem Digeridrew described. Indent it back so it aligns with trigger. But do not add a -.

2 Likes