Automation läuft nicht obwohl Traces es anzeigt

Ich weiß nicht wie ich hier weiter komme. Habe eine Bewässerungsautomation. Diese läuft im Traces komplett durch, aber sie schaltet meine Relais nicht real. Wenn ich die Automation manuell starte läuft sie ohne Probleme.

code:

id: '1777616028074'
alias: Rasenbewässerung alle 30min
description: ''
triggers:
  - trigger: time_pattern
    minutes: /30
conditions:
  - condition: and
    conditions:
      - condition: time
        after: '09:00:00'
        before: '20:00:00'
        weekday:
          - sun
          - sat
          - fri
          - thu
          - wed
          - tue
          - mon
      - condition: temperature.is_value
        target:
          entity_id: sensor.gw3000a_outdoor_temperature
        options:
          threshold:
            type: above
            value:
              active_choice: number
              number: 1
              unit_of_measurement: °C
      - condition: numeric_state
        entity_id: sensor.gw3000a_wind_speed
        below: 20
actions:
  - delay:
      hours: 0
      minutes: 0
      seconds: 3
      milliseconds: 0
  - action: switch.turn_on
    metadata: {}
    data: {}
    target:
      entity_id:
        - switch.zone1_zone4
  - delay:
      hours: 0
      minutes: 2
      seconds: 0
      milliseconds: 0
  - action: switch.turn_off
    metadata: {}
    target:
      entity_id:
        - switch.zone1_zone4
    data: {}
  - action: switch.turn_on
    metadata: {}
    data: {}
    target:
      entity_id: switch.vbox1_zone2
  - delay:
      hours: 0
      minutes: 2
      seconds: 0
      milliseconds: 0
  - action: switch.turn_off
    metadata: {}
    data: {}
    target:
      entity_id: switch.vbox1_zone2
  - action: switch.turn_on
    metadata: {}
    data: {}
    target:
      entity_id:
        - switch.zone3_zone5
  - delay:
      hours: 0
      minutes: 2
      seconds: 0
      milliseconds: 0
  - action: switch.turn_off
    metadata: {}
    data: {}
    target:
      entity_id:
        - switch.zone3_zone5
  - action: switch.turn_on
    metadata: {}
    data: {}
    target:
      entity_id: switch.vbox3_zone6
  - delay:
      hours: 0
      minutes: 3
      seconds: 0
      milliseconds: 0
  - action: switch.turn_off
    metadata: {}
    data: {}
    target:
      entity_id: switch.vbox3_zone6
  - action: switch.turn_on
    metadata: {}
    data: {}
    target:
      entity_id: switch.vbox3_zone7
  - delay:
      hours: 0
      minutes: 2
      seconds: 0
      milliseconds: 0
  - action: switch.turn_off
    metadata: {}
    data: {}
    target:
      entity_id: switch.vbox3_zone7
  - action: switch.turn_on
    metadata: {}
    data: {}
    target:
      entity_id:
        - switch.ventil_wasser_garten_links_2
  - delay:
      hours: 0
      minutes: 3
      seconds: 0
      milliseconds: 0
  - action: switch.turn_off
    metadata: {}
    data: {}
    target:
      entity_id: switch.ventil_wasser_garten_links_2
mode: single

trace:

{
  "trace": {
    "last_step": "action/17",
    "run_id": "1b57fe5fadd0256da7b9ae6213ea86c9",
    "state": "stopped",
    "script_execution": "finished",
    "timestamp": {
      "start": "2026-05-04T10:30:00.129963+00:00",
      "finish": "2026-05-04T10:44:00.160055+00:00"
    },
    "domain": "automation",
    "item_id": "1777616028074",
    "trigger": "time pattern",
    "trace": {
      "trigger/0": [
        {
          "path": "trigger/0",
          "timestamp": "2026-05-04T10:30:00.130161+00:00",
          "changed_variables": {
            "this": {
              "entity_id": "automation.rasenbewasserung_alle_30min",
              "state": "on",
              "attributes": {
                "id": "1777616028074",
                "last_triggered": "2026-05-04T10:00:00.130957+00:00",
                "mode": "single",
                "current": 0,
                "friendly_name": "Rasenbewässerung alle 30min"
              },
              "last_changed": "2026-05-04T08:49:01.393135+00:00",
              "last_reported": "2026-05-04T10:14:00.156183+00:00",
              "last_updated": "2026-05-04T10:14:00.156183+00:00",
              "context": {
                "id": "01KQS7NZPWDTAA7ZH9QSD37P66",
                "parent_id": null,
                "user_id": null
              }
            },
            "trigger": {
              "id": "0",
              "idx": "0",
              "alias": null,
              "platform": "time_pattern",
              "now": "2026-05-04T12:30:00.129750+02:00",
              "description": "time pattern"
            }
          }
        }
      ],
      "condition/0": [
        {
          "path": "condition/0",
          "timestamp": "2026-05-04T10:30:00.130201+00:00",
          "result": {
            "result": true
          }
        }
      ],
      "condition/0/conditions/0": [
        {
          "path": "condition/0/conditions/0",
          "timestamp": "2026-05-04T10:30:00.130224+00:00",
          "result": {
            "after": {
              "__type": "<class 'datetime.time'>",
              "isoformat": "09:00:00"
            },
            "now_time": {
              "__type": "<class 'datetime.time'>",
              "isoformat": "12:30:00.130248"
            },
            "before": {
              "__type": "<class 'datetime.time'>",
              "isoformat": "20:00:00"
            },
            "weekday": [
              "sun",
              "sat",
              "fri",
              "thu",
              "wed",
              "tue",
              "mon"
            ],
            "now_weekday": "mon",
            "result": true
          }
        }
      ],
      "condition/0/conditions/1": [
        {
          "path": "condition/0/conditions/1",
          "timestamp": "2026-05-04T10:30:00.130293+00:00",
          "result": {
            "result": true
          }
        }
      ],
      "condition/0/conditions/2": [
        {
          "path": "condition/0/conditions/2",
          "timestamp": "2026-05-04T10:30:00.130407+00:00",
          "result": {
            "result": true
          }
        }
      ],
      "condition/0/conditions/2/entity_id/0": [
        {
          "path": "condition/0/conditions/2/entity_id/0",
          "timestamp": "2026-05-04T10:30:00.130429+00:00",
          "result": {
            "result": true,
            "state": 3.6
          }
        }
      ],
      "action/0": [
        {
          "path": "action/0",
          "timestamp": "2026-05-04T10:30:00.130901+00:00",
          "changed_variables": {
            "context": {
              "id": "01KQS8K9616SAH51EG1X67MM7X",
              "parent_id": null,
              "user_id": null
            }
          },
          "result": {
            "params": {
              "domain": "switch",
              "service": "turn_on",
              "service_data": {},
              "target": {
                "entity_id": [
                  "switch.zone1_zone4"
                ]
              }
            },
            "running_script": false
          }
        }
      ],
      "action/1": [
        {
          "path": "action/1",
          "timestamp": "2026-05-04T10:30:00.132857+00:00",
          "result": {
            "delay": 120,
            "done": true
          }
        }
      ],
      "action/2": [
        {
          "path": "action/2",
          "timestamp": "2026-05-04T10:32:00.133820+00:00",
          "result": {
            "params": {
              "domain": "switch",
              "service": "turn_off",
              "service_data": {},
              "target": {
                "entity_id": [
                  "switch.zone1_zone4"
                ]
              }
            },
            "running_script": false
          }
        }
      ],
      "action/3": [
        {
          "path": "action/3",
          "timestamp": "2026-05-04T10:32:00.136121+00:00",
          "result": {
            "params": {
              "domain": "switch",
              "service": "turn_on",
              "service_data": {},
              "target": {
                "entity_id": [
                  "switch.vbox1_zone2"
                ]
              }
            },
            "running_script": false
          }
        }
      ],
      "action/4": [
        {
          "path": "action/4",
          "timestamp": "2026-05-04T10:32:00.136766+00:00",
          "result": {
            "delay": 120,
            "done": true
          }
        }
      ],
      "action/5": [
        {
          "path": "action/5",
          "timestamp": "2026-05-04T10:34:00.138684+00:00",
          "result": {
            "params": {
              "domain": "switch",
              "service": "turn_off",
              "service_data": {},
              "target": {
                "entity_id": [
                  "switch.vbox1_zone2"
                ]
              }
            },
            "running_script": false
          }
        }
      ],
      "action/6": [
        {
          "path": "action/6",
          "timestamp": "2026-05-04T10:34:00.139972+00:00",
          "result": {
            "params": {
              "domain": "switch",
              "service": "turn_on",
              "service_data": {},
              "target": {
                "entity_id": [
                  "switch.zone3_zone5"
                ]
              }
            },
            "running_script": false
          }
        }
      ],
      "action/7": [
        {
          "path": "action/7",
          "timestamp": "2026-05-04T10:34:00.141444+00:00",
          "result": {
            "delay": 120,
            "done": true
          }
        }
      ],
      "action/8": [
        {
          "path": "action/8",
          "timestamp": "2026-05-04T10:36:00.144214+00:00",
          "result": {
            "params": {
              "domain": "switch",
              "service": "turn_off",
              "service_data": {},
              "target": {
                "entity_id": [
                  "switch.zone3_zone5"
                ]
              }
            },
            "running_script": false
          }
        }
      ],
      "action/9": [
        {
          "path": "action/9",
          "timestamp": "2026-05-04T10:36:00.146109+00:00",
          "result": {
            "params": {
              "domain": "switch",
              "service": "turn_on",
              "service_data": {},
              "target": {
                "entity_id": [
                  "switch.vbox3_zone6"
                ]
              }
            },
            "running_script": false
          }
        }
      ],
      "action/10": [
        {
          "path": "action/10",
          "timestamp": "2026-05-04T10:36:00.146934+00:00",
          "result": {
            "delay": 180,
            "done": true
          }
        }
      ],
      "action/11": [
        {
          "path": "action/11",
          "timestamp": "2026-05-04T10:39:00.148540+00:00",
          "result": {
            "params": {
              "domain": "switch",
              "service": "turn_off",
              "service_data": {},
              "target": {
                "entity_id": [
                  "switch.vbox3_zone6"
                ]
              }
            },
            "running_script": false
          }
        }
      ],
      "action/12": [
        {
          "path": "action/12",
          "timestamp": "2026-05-04T10:39:00.149828+00:00",
          "result": {
            "params": {
              "domain": "switch",
              "service": "turn_on",
              "service_data": {},
              "target": {
                "entity_id": [
                  "switch.vbox3_zone7"
                ]
              }
            },
            "running_script": false
          }
        }
      ],
      "action/13": [
        {
          "path": "action/13",
          "timestamp": "2026-05-04T10:39:00.150647+00:00",
          "result": {
            "delay": 120,
            "done": true
          }
        }
      ],
      "action/14": [
        {
          "path": "action/14",
          "timestamp": "2026-05-04T10:41:00.151794+00:00",
          "result": {
            "params": {
              "domain": "switch",
              "service": "turn_off",
              "service_data": {},
              "target": {
                "entity_id": [
                  "switch.vbox3_zone7"
                ]
              }
            },
            "running_script": false
          }
        }
      ],
      "action/15": [
        {
          "path": "action/15",
          "timestamp": "2026-05-04T10:41:00.153196+00:00",
          "result": {
            "params": {
              "domain": "switch",
              "service": "turn_on",
              "service_data": {},
              "target": {
                "entity_id": [
                  "switch.ventil_wasser_garten_links_2"
                ]
              }
            },
            "running_script": false
          }
        }
      ],
      "action/16": [
        {
          "path": "action/16",
          "timestamp": "2026-05-04T10:41:00.154906+00:00",
          "result": {
            "delay": 180,
            "done": true
          }
        }
      ],
      "action/17": [
        {
          "path": "action/17",
          "timestamp": "2026-05-04T10:44:00.156478+00:00",
          "result": {
            "params": {
              "domain": "switch",
              "service": "turn_off",
              "service_data": {},
              "target": {
                "entity_id": [
                  "switch.ventil_wasser_garten_links_2"
                ]
              }
            },
            "running_script": false
          }
        }
      ]
    },
    "config": {
      "id": "1777616028074",
      "alias": "Rasenbewässerung alle 30min für 2min",
      "description": "",
      "triggers": [
        {
          "trigger": "time_pattern",
          "minutes": "/30"
        }
      ],
      "conditions": [
        {
          "condition": "and",
          "conditions": [
            {
              "condition": "time",
              "after": "09:00:00",
              "before": "20:00:00",
              "weekday": [
                "sun",
                "sat",
                "fri",
                "thu",
                "wed",
                "tue",
                "mon"
              ]
            },
            {
              "condition": "temperature.is_value",
              "target": {
                "entity_id": "sensor.gw3000a_outdoor_temperature"
              },
              "options": {
                "threshold": {
                  "type": "above",
                  "value": {
                    "active_choice": "number",
                    "number": 1,
                    "unit_of_measurement": "°C"
                  }
                }
              }
            },
            {
              "condition": "numeric_state",
              "entity_id": "sensor.gw3000a_wind_speed",
              "below": 20
            }
          ]
        }
      ],
      "actions": [
        {
          "action": "switch.turn_on",
          "metadata": {},
          "data": {},
          "target": {
            "entity_id": [
              "switch.zone1_zone4"
            ]
          }
        },
        {
          "delay": {
            "hours": 0,
            "minutes": 2,
            "seconds": 0,
            "milliseconds": 0
          }
        },
        {
          "action": "switch.turn_off",
          "metadata": {},
          "target": {
            "entity_id": [
              "switch.zone1_zone4"
            ]
          },
          "data": {}
        },
        {
          "action": "switch.turn_on",
          "metadata": {},
          "data": {},
          "target": {
            "entity_id": "switch.vbox1_zone2"
          }
        },
        {
          "delay": {
            "hours": 0,
            "minutes": 2,
            "seconds": 0,
            "milliseconds": 0
          }
        },
        {
          "action": "switch.turn_off",
          "metadata": {},
          "data": {},
          "target": {
            "entity_id": "switch.vbox1_zone2"
          }
        },
        {
          "action": "switch.turn_on",
          "metadata": {},
          "data": {},
          "target": {
            "entity_id": [
              "switch.zone3_zone5"
            ]
          }
        },
        {
          "delay": {
            "hours": 0,
            "minutes": 2,
            "seconds": 0,
            "milliseconds": 0
          }
        },
        {
          "action": "switch.turn_off",
          "metadata": {},
          "data": {},
          "target": {
            "entity_id": [
              "switch.zone3_zone5"
            ]
          }
        },
        {
          "action": "switch.turn_on",
          "metadata": {},
          "data": {},
          "target": {
            "entity_id": "switch.vbox3_zone6"
          }
        },
        {
          "delay": {
            "hours": 0,
            "minutes": 3,
            "seconds": 0,
            "milliseconds": 0
          }
        },
        {
          "action": "switch.turn_off",
          "metadata": {},
          "data": {},
          "target": {
            "entity_id": "switch.vbox3_zone6"
          }
        },
        {
          "action": "switch.turn_on",
          "metadata": {},
          "data": {},
          "target": {
            "entity_id": "switch.vbox3_zone7"
          }
        },
        {
          "delay": {
            "hours": 0,
            "minutes": 2,
            "seconds": 0,
            "milliseconds": 0
          }
        },
        {
          "action": "switch.turn_off",
          "metadata": {},
          "data": {},
          "target": {
            "entity_id": "switch.vbox3_zone7"
          }
        },
        {
          "action": "switch.turn_on",
          "metadata": {},
          "data": {},
          "target": {
            "entity_id": [
              "switch.ventil_wasser_garten_links_2"
            ]
          }
        },
        {
          "delay": {
            "hours": 0,
            "minutes": 3,
            "seconds": 0,
            "milliseconds": 0
          }
        },
        {
          "action": "switch.turn_off",
          "metadata": {},
          "data": {},
          "target": {
            "entity_id": "switch.ventil_wasser_garten_links_2"
          }
        }
      ],
      "mode": "single"
    },
    "blueprint_inputs": null,
    "context": {
      "id": "01KQS8K9616SAH51EG1X67MM7X",
      "parent_id": null,
      "user_id": null
    }
  },
  "logbookEntries": [
    {
      "name": "Rasenbewässerung alle 30min für 2min",
      "message": "triggered by time pattern",
      "source": "time pattern",
      "entity_id": "automation.rasenbewasserung_alle_30min",
      "context_id": "01KQS8K9616SAH51EG1X67MM7X",
      "domain": "automation",
      "when": 1777890600.130556
    },
    {
      "state": "on",
      "entity_id": "switch.ventil_wasser_garten_links_2",
      "when": 1777891260.4568782,
      "context_event_type": "automation_triggered",
      "context_domain": "automation",
      "context_name": "Rasenbewässerung alle 30min für 2min",
      "context_message": "triggered by time pattern",
      "context_source": "time pattern",
      "context_entity_id": "automation.rasenbewasserung_alle_30min"
    },
    {
      "state": "on",
      "entity_id": "switch.rasensprenger_zone1_8",
      "when": 1777891260.4573298,
      "context_event_type": "automation_triggered",
      "context_domain": "automation",
      "context_name": "Rasenbewässerung alle 30min für 2min",
      "context_message": "triggered by time pattern",
      "context_source": "time pattern",
      "context_entity_id": "automation.rasenbewasserung_alle_30min"
    },
    {
      "state": "off",
      "entity_id": "switch.ventil_wasser_garten_links_2",
      "when": 1777891440.5188503,
      "context_event_type": "automation_triggered",
      "context_domain": "automation",
      "context_name": "Rasenbewässerung alle 30min für 2min",
      "context_message": "triggered by time pattern",
      "context_source": "time pattern",
      "context_entity_id": "automation.rasenbewasserung_alle_30min"
    },
    {
      "state": "off",
      "entity_id": "switch.rasensprenger_zone1_8",
      "when": 1777891440.5192468,
      "context_event_type": "automation_triggered",
      "context_domain": "automation",
      "context_name": "Rasenbewässerung alle 30min für 2min",
      "context_message": "triggered by time pattern",
      "context_source": "time pattern",
      "context_entity_id": "automation.rasenbewasserung_alle_30min"
    }
  ]
}

Bitte poste den Code hier auch als Code “</>” und dann bitte zusätzlich auch die Traces.

Danke, das habe ich eigtl gesucht. Habe es im ersten Post berichtigt.

Wenn sie manuell gestartet läuft führt sie nur die Aktionen aus aber ignoriert die Trigger.

Hast du mal die einzelnen Bedingungen deaktiviert ?

Also nur den 30 Minuten Trigger aktiv lassen und die Bedingungen nacheinander dazuschalten.

Er hat jetzt wieder die Autom. zur halben Stunde ausgelöst. Trace läuft. Sprinkler nicht an. :roll_eyes:

Den letzten Step mit einem Zigbee Sonnoff Ventil löst real aus. Die anderen sind ESP32. Die funktionieren nur bei manueller Aktion.

Gibt es ein Log wo man was erkennen kann?

EDIT: Kann auch jederzeit die ESP32 gesteuerten Ventile aktivieren. Da gibt es immer kein Problem.

VM und HA Restart alles schon gemacht.

Ersetze mal

      - condition: temperature.is_value
        target:
          entity_id: sensor.gw3000a_outdoor_temperature
        options:
          threshold:
            type: above
            value:
              active_choice: number
              number: 1
              unit_of_measurement: °C

durch

      - condition: numeric_state
        entity_id: sensor.gw3000a_outdoor_temperature
        above: 1

Im ESPHome Device Builder kann man zu jedem Gerät ein Log abrufen.

Meinst du mit manueller Aktion wenn du die Automation manuell ausführst oder wenn du die einzelne Ventile direkt ohne automation ansprichst?

Den numerischen State übernehme ich.

ESPHome Logs. Jo. Da kann ich ja mal schauen ob was ankommt.

Bei der Automation manuell aktiviert oder die Entity direkt ansprechen funktioniert.

Ich schraube mir die Automation nochmal über die GUI neu zusammen. Vlt sind irgendwelche Schnipsel nicht mehr so konform.

Neu gebaut und die Befehle kommen an:

[19:02:00.369][S][switch]: 'VBox1-Zone1' >> OFF
[19:02:00.369][S][switch]: 'VBox1-Zone2' >> ON
[19:02:28.145][D][preferences:152]: Writing 2 items: 0 cached, 2 written, 0 failed
[19:04:00.372][S][switch]: 'VBox1-Zone2' >> OFF
[19:04:00.372][S][switch]: 'VBox1-Zone3' >> ON
[19:04:25.143][S][sensor]: 'Temperature esp32-4ch-relay-no1' >> 35.1 °C
[19:04:25.143][S][sensor]: 'Humidity esp32-4ch-relay-no1' >> 35 %
[19:04:28.145][D][preferences:152]: Writing 2 items: 0 cached, 2 written, 0 failed
[19:06:00.366][S][switch]: 'VBox1-Zone3' >> OFF
[19:06:28.146][D][preferences:152]: Writing 1 items: 0 cached, 1 written, 0 failed

Jetzt ärgert mich das ich das Alte gelöscht habe. Hätte gerne nochmal geschaut.

Läuft auch mit den Bedingungen. Und Karte läuft auch:

Danke für Eure Hilfe!

Kannst du doch, der Code steht doch noch hier :grinning_face:, aber gut das es jetzt geklappt hat.

Achja. :grinning_face_with_smiling_eyes: Aber ich glaube ich belasse es jetzt dabei. Habe ja mein Horizont wieder etwas erweitert fürs nächste mal. :victory_hand: