Generic thermostat and scheduler automation

Any idea what else, if anything, I need to do in order to get this to work?

alias: Heating schedule
description: Using generic thermostat and schedule
trigger:
  - platform: state
    entity_id:
      - schedule.thermostat
    to: "On"
condition: []
action:
  - action: climate.turn_on
    metadata: {}
    data: {}
    target:
      entity_id: climate.heater
  - action: climate.set_preset_mode
    metadata: {}
    data:
      preset_mode: Comfort
    target:
      entity_id: climate.heater
mode: single

This should be lowercase

    to: "on"
1 Like

I’ve already tried both lower and upper case. At the same time, it also shows “Last triggered: never” which means it doesn’t even attempt to perform any action.

Definitely should be lowercase.

What’s not working?
Is the automation triggered?

1 Like

Edited my response above. Yes, it doesn’t trigger at all.

And to confirm, the schedule.thermostat helper is on.

You realize the automation will only run when the schedule will go from “off” to “on”, right?

1 Like

Yes, I do. I’ve changed the scheduler twice to trigger a few minutes later. If there’s nothing else obviously wrong, I’ll just restart the whole thing, maybe something is stuck somewhere.

Update: it works now so probably just a glitch somewhere. Thanks!