Unterschiedliche Werte in YAML und Trace?

Ich werde langsam aber sicher Wahnsinnig…irgendwie funktioniert meine Automation nicht richtig und auf der Suche nachdem fehler bin ich darauf gekommen - das im Traces andere Sachen stehen als in der yaml.

Mein Automation in der YAML:

- id: pool_steuerung_gesamt
  alias: Poolsteuerung (ein/aus je nach PV, SOC, Temperatur, Uhrzeit)
  mode: single

  trigger:
    - platform: numeric_state
      id: pv_ueberschuss
      entity_id: sensor.e3dc_grid_export_power
      above: 3000
      for: "00:05:00"

    - platform: numeric_state
      id: temp_zu_hoch
      entity_id: sensor.pool_heizung_wts01_temperature
      above: 28
      for: "00:05:00"

    - platform: numeric_state
      id: batt_entladung
      entity_id: sensor.e3dc_battery_discharge_power
      above: 1000
      for: "00:05:00"

    - platform: time
      id: abschalten_zeit
      at: "19:00:00"

  condition: []

  action:
    - choose:
        # 🟢 EIN: PV-Überschuss + SOC >90 + Temperatur <27 + vor 19:00
        - conditions:
            - condition: trigger
              id: pv_ueberschuss
            - condition: numeric_state
              entity_id: sensor.e3dc_battery_state_of_charge
              above: 90
            - condition: numeric_state
              entity_id: sensor.pool_heizung_wts01_temperature
              below: 27
            - condition: time
              before: "19:00:00"
          sequence:
            - service: switch.turn_on
              target:
                entity_id:
                  - switch.pool
                  - switch.pool_heizung

        # 🟢 Nur Pool EIN (wenn schon warm)
        - conditions:
            - condition: trigger
              id: pv_ueberschuss
            - condition: numeric_state
              entity_id: sensor.e3dc_battery_state_of_charge
              above: 90
            - condition: numeric_state
              entity_id: sensor.pool_heizung_wts01_temperature
              above: 28
            - condition: time
              before: "19:00:00"
          sequence:
            - service: switch.turn_on
              target:
                entity_id: switch.pool

        # 🔴 Heizung AUS bei Temperatur >28
        - conditions:
            - condition: trigger
              id: temp_zu_hoch
          sequence:
            - service: switch.turn_off
              target:
                entity_id: switch.pool_heizung

        # 🔴 Heizung AUS bei Batterieentladung
        - conditions:
            - condition: trigger
              id: batt_entladung
          sequence:
            - service: switch.turn_off
              target:
                entity_id: switch.pool_heizung

        # 🔁 Reaktivierung Heizung nur tagsüber, nur wenn Pool an, nur bei <27 Grad
        - conditions:
            - condition: trigger
              id: pv_ueberschuss
            - condition: numeric_state
              entity_id: sensor.e3dc_battery_state_of_charge
              above: 90
            - condition: numeric_state
              entity_id: sensor.pool_heizung_wts01_temperature
              below: 27
            - condition: time
              after: "07:00:00"
              before: "19:00:00"
            - condition: state
              entity_id: switch.pool
              state: "on"
          sequence:
            - service: switch.turn_on
              target:
                entity_id: switch.pool_heizung

        # 🔴 Alles AUS um 19:00
        - conditions:
            - condition: trigger
              id: abschalten_zeit
          sequence:
            - service: switch.turn_off
              target:
                entity_id:
                  - switch.pool
                  - switch.pool_heizung

So und in Traces bzw dort in der Automationskonfiguration steht das:

id: pool_steuerung_gesamt
alias: Poolsteuerung (ein/aus je nach PV, SOC, Temperatur, Uhrzeit)
trigger:
  - platform: numeric_state
    id: pv_ueberschuss
    entity_id: sensor.e3dc_grid_export_power
    above: 3000
    for: '00:05:00'
  - platform: numeric_state
    id: temp_zu_hoch
    entity_id: sensor.pool_temperature
    above: 28
    for: '00:05:00'
  - platform: numeric_state
    id: batt_entladung
    entity_id: sensor.e3dc_battery_discharge_power
    above: 1000
    for: '00:05:00'
  - platform: time
    id: abschalten_zeit
    at: '19:00:00'
  - platform: numeric_state
    id: temp_unter_28
    entity_id: sensor.pool_temperature
    below: 28
    for: '00:05:00'
condition: []
action:
  - choose:
      - conditions:
          - condition: trigger
            id: pv_ueberschuss
          - condition: numeric_state
            entity_id: sensor.e3dc_battery_state_of_charge
            above: 90
          - condition: numeric_state
            entity_id: sensor.pool_temperature
            below: 27
          - condition: time
            before: '19:00:00'
        sequence:
          - target:
              entity_id:
                - switch.pool
                - switch.pool_heizung
            action: switch.turn_on
      - conditions:
          - condition: trigger
            id: pv_ueberschuss
          - condition: numeric_state
            entity_id: sensor.e3dc_battery_state_of_charge
            above: 90
          - condition: numeric_state
            entity_id: sensor.pool_temperature
            above: 28
          - condition: time
            before: '19:00:00'
        sequence:
          - target:
              entity_id: switch.pool
            action: switch.turn_on
      - conditions:
          - condition: trigger
            id: temp_zu_hoch
        sequence:
          - target:
              entity_id: switch.pool_heizung
            action: switch.turn_off
      - conditions:
          - condition: trigger
            id: batt_entladung
        sequence:
          - target:
              entity_id: switch.pool_heizung
            action: switch.turn_off
      - conditions:
          - condition: trigger
            id: abschalten_zeit
        sequence:
          - target:
              entity_id:
                - switch.pool
                - switch.pool_heizung
            action: switch.turn_off
      - conditions:
          - condition: trigger
            id: temp_unter_28
          - condition: time
            before: '19:00:00'
          - condition: state
            entity_id: switch.pool
            state: 'on'
          - condition: numeric_state
            entity_id: sensor.e3dc_grid_export_power
            above: 3000
          - condition: numeric_state
            entity_id: sensor.e3dc_battery_state_of_charge
            above: 90
        sequence:
          - target:
              entity_id: switch.pool_heizung
            action: switch.turn_on
mode: single

Es geht dabei um den sensor.pool_temperatur bzw richtig wäre sensor.pool_heizung_wts01_temperature

Das ist eine alte Version meiner Automation - aber ich verstehe nicht warum die da noch drin ist und ich die in Traces nicht ändern kann.

Ich habe bereits die ganze Automation über HA gelöscht - HA Neugestartet und über Editor in der automations.yaml die Codezeilen neu eingetragen - aber aus irgendwelchen Gründen bleibt die alte im Trace stehen.

Sobald die neue Automation getriggert wurde, wird die trace aktualisiert.