Script with Season integration stopped working

Over the last couple of months I’ve been using scripts to switch off my central heating, when the house becomes empty. It all appeared to be working fine, until it didn’t. I’ve tried to figure out why it doesn’t any more, but I’m lost a bit.

The script holds multiple actions, which all seem to be performed correctly, apart from this part:

if:
  - condition: or
    conditions:
      - condition: state
        entity_id: sensor.season
        state: spring
      - condition: state
        entity_id: sensor.season
        state: summer
      - condition: state
        entity_id: sensor.season
        state: autumn
then:
  - service: switch.turn_off
    data: {}
    target:
      entity_id: switch.attic_central_heating_switch

The state of the season entity indicates that it (indeed) is ‘autumn’:

Just as the trace of the script indicates that the switch has been switched off:

Except it hasn’t:

Manually switching in on/off, from HA, works instantly - so it’s not like the switch isn’t properly connected, or there are issues with MQTT (Zigbee Switch, intergrated with Zigbee2MQTT):

The condition(s) pass:

I’m probably missing out on something really stupid . Does anyone have a clue/hint? I’d really appreciate the help.

Am I allowed to politely give this a bump?