Presence simulation not activated

Hello!

I have programmed an automation that triggers various actions when the last person leaves the house.

Among other things, it also integrates ‘presence simulation’.

This morning, it was not activated. All other actions were carried out.

What could be the reason for this? Is there something wrong with the code?

alias: Erika und Lukas an- oder abwesend
description: ""
triggers:
  - trigger: state
    entity_id:
      - zone.home
    to:
      - "0"
    for:
      minutes: 5
    id: Last person leaves
  - trigger: numeric_state
    entity_id:
      - zone.home
    above: 0
    id: First person arrives
    enabled: true
conditions: []
actions:
  - if:
      - condition: trigger
        id:
          - Last person leaves
    then:
      - action: light.turn_off
        metadata: {}
        data: {}
        target:
          entity_id: light.lichter_haus_schaltbar
      - device_id: 0ab67158306f037d7d58a366604aae8a
        domain: climate
        entity_id: 7eee863435f3c2c75a78cf21aa7ffed2
        type: set_hvac_mode
        hvac_mode: "off"
      - type: turn_off
        device_id: 8b5c511e9f4033d6d4d807586c2f288f
        entity_id: c70f02965490868815de7c2d47918ebb
        domain: switch
      - action: automation.trigger
        metadata: {}
        data:
          skip_condition: true
        target:
          entity_id: automation.mediaplayer_aus
      - action: switch.turn_on
        metadata: {}
        data: {}
        target:
          entity_id: switch.presence_simulation
    else:
      - action: switch.turn_off
        metadata: {}
        data: {}
        target:
          entity_id: switch.presence_simulation
      - device_id: 0ab67158306f037d7d58a366604aae8a
        domain: climate
        entity_id: 7eee863435f3c2c75a78cf21aa7ffed2
        type: set_hvac_mode
        hvac_mode: heat
mode: single

Was it triggered? If so, check the traces.
If not, what’s the value of zone.home?

Everything was triggered expect the “Presence simulation” and the grouping of the SONOS players…