Automation fails to trigger most of the time

I have a simple automation that should switch my boiler off if the door has been open for 3 mins. It fails to trigger most of the time.
Any ideas why?

alias: Conserve Energy When Back Door Open
description: Turn Boiler off when Back Door open
trigger:
  - platform: state
    entity_id:
      - binary_sensor.back_door
    to: "on"
    for:
      hours: 0
      minutes: 3
      seconds: 0
    id: Nest Switched To Off
    from: "off"
condition: []
action:
  - device_id: 6b3563d51078ac5bccd623c6beaf0984
    domain: climate
    entity_id: climate.living_room
    type: set_hvac_mode
    hvac_mode: "off"
mode: single

Can you post a history graph of the sensor and climate device.

The history for the hvac doesn’t have it’s states logged.

5 May 2023
Nest Thermostat turned off triggered by service climate.set_hvac_mode
15:40:51 - 23 minutes ago - Patrick Beard
Nest Thermostat changed to Heat
13:05:58 - 3 hours ago
Nest Thermostat turned off
12:47:54 - 3 hours ago
4 May 2023
Nest Thermostat changed to Heat
19:29:10 - 21 hours ago
Nest Thermostat turned off triggered by automation Conserve Energy When Back Door Open triggered by state of Back Door
18:52:45 - 21 hours ago
Nest Thermostat changed to Heat
11:28:41 - Yesterday
Nest Thermostat turned off triggered by automation Conserve Energy When Back Door Open triggered by state of Back Door
09:31:21 - Yesterday
Nest Thermostat changed to Heat triggered by automation Conserve Energy When Back Door Open triggered by state of Back Door
09:21:04 - Yesterday
Nest Thermostat turned off
09:17:04 - Yesterday
Nest Thermostat changed to Heat triggered by automation Conserve Energy When Back Door Open triggered by state of Back Door
06:13:17 - Yesterday
Nest Thermostat turned off triggered by automation Conserve Energy When Back Door Open triggered by state of Back Door
06:10:35 - Yesterday