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
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 -.