Help required for Helper Automation for Heating

Hi,

I have set up a scheduler Helper for my heating and tried to get it to trigger in an Automation. My heating has various preset modes, including ‘comfort’ and ‘eco’. Below is the automation I have, but it doesn’t trigger on the schedule. Can anyone offer me any advise of what I have got wrong please?

alias: Heating Schedule
description: ""
triggers:
  - trigger: state
    entity_id:
      - schedule.heating
conditions: []
actions:
  - action: climate.set_preset_mode
    metadata: {}
    data:
      preset_mode: "{{ 'comfort' if trigger.to_state.state == 'on' else 'eco' }}"
mode: single

Did you try to trigger it manually and see the traces?

My silly mistake. I forgot to add the entity id. This now works:

alias: Heating Schedule
description: ""
triggers:
  - trigger: state
    entity_id:
      - schedule.heating
conditions: []
actions:
  - action: climate.set_preset_mode
    target:
      entity_id: climate.house
    metadata: {}
    data:
      preset_mode: "{{ 'comfort' if trigger.to_state.state == 'on' else 'eco' }}"
mode: single