Problem with automation - time delay trigger

Hi.
Would love if anyone got an idea regarding an automation that stopped working in the recent weeks - maybe due to one of the latest releases. I’m no on 2022.8.7.

I have an automation that is triggered by a zigbee button and turn on my boiler. It sets an input select to on and then there is a node red automation that keeps the boiler in a specific temperature. This works well.

alias: Boiler on for 30 minutes
description: ""
trigger:
  - platform: mqtt
    topic: zigbee2mqtt/0x00158d00023e4350
condition:
  - condition: template
    value_template: "{{ \"single\" == trigger.payload_json.click }}"
action:
  - service: input_select.select_option
    data:
      option: "On"
    target:
      entity_id: input_select.boiler_state
  - service: input_boolean.turn_on
    data: {}
    entity_id: input_boolean.boiler_manual
mode: single

I have another automation that should be triggered 30 minutes after the first one and set the boiler back to auto mode. It used to work well, but now it is not triggered.

alias: Boiler off after 30 minutes
description: ""
trigger:
  - platform: state
    entity_id:
      - input_boolean.boiler_manual
    to: "On"
    for:
      hours: 0
      minutes: 30
      seconds: 0
condition: []
action:
  - service: input_boolean.turn_off
    data: {}
    target:
      entity_id: input_boolean.boiler_manual
  - service: input_select.select_option
    data:
      option: Auto
    target:
      entity_id: input_select.boiler_state
mode: single

If I look at the logs, I can see that the first automation is triggered, but the second never triggers (I set the time to 3 minutes for testing):


Can anyone help me debug this?
Thanks,
Yaron

Booleans are not On, they are on

Well, nope. It was originally on and just tried perhaps On will work.
Just set it back to on, and it still does not work.

Post revised code.

Here it is:

alias: Boiler off after 30 minutes
description: ""
trigger:
  - platform: state
    entity_id:
      - input_boolean.boiler_manual
    for:
      hours: 0
      minutes: 3
      seconds: 0
    to: "on"
condition: []
action:
  - service: input_boolean.turn_off
    data: {}
    target:
      entity_id: input_boolean.boiler_manual
  - service: input_select.select_option
    data:
      option: Auto
    target:
      entity_id: input_select.boiler_state
mode: single

Does it trigger? Do you see a trace?

No. It does not trigger

Well, I’ve updated the way I defined the period and it now works. I don’t understand why… but it is ok now.

alias: Boiler off after 30 minutes
description: ""
trigger:
  - platform: state
    entity_id:
      - input_boolean.boiler_manual
    to: "on"
    for: "00:30:00"
condition: []
action:
  - service: input_boolean.turn_off
    data: {}
    target:
      entity_id: input_boolean.boiler_manual
  - service: input_select.select_option
    data:
      option: Auto
    target:
      entity_id: input_select.boiler_state
mode: single

Thanks