Einfache Zeitschaltuhr nach Zeitplan - Automation startet nicht

Guten Morgen Volks,

ich möchte eine Steckdose (Pool Pumpe) nach einem Zeitplan steuern. Dazu habe ich einen Helfer erstellt und die Zeiten definiert.
Nun zwei Automation erstellt, für An und für Aus. Starte ich die Automation händisch, klappt es hervorragend. Automatisiert starten die Automationen jedoch nicht.
Wo mache ich einen Fehler?

alias: Pool Pumpe an
description: ""
triggers:
  - trigger: state
    entity_id:
      - schedule.pumpe_pool
    attribute: next_event
    to: an
    from: aus
conditions: []
actions:
  - type: turn_on
    device_id: b794b4106121a21716db36007de0e803
    entity_id: b0ac50bba991365f2f35db3c07f32601
    domain: switch
mode: single


Ich bezweifle, dass die states an und aus sind.
Hast du die Automation mit dem Editor erstellt?

Das Abfragen von " attribute: next_event" kann kein on oder off liefern, sondern einen Zeitpunkt. Versuch mal folgendes:

alias: Pool Pumpe an
description: ""
triggers:
  - platform: state
    entity_id: schedule.pumpe_pool
    from: "off"
    to: "on"
conditions: []
actions:
  - type: turn_on
    device_id: b794b4106121a21716db36007de0e803
    entity_id: b0ac50bba991365f2f35db3c07f32601
    domain: switch
mode: single

Danke für Eure Antworten!

Hab das nun so versucht und es klappt weiterhin nicht.
Jemand noch eine Idee?

alias: Pool Pumpe an
description: ""
triggers:
  - trigger: state
    entity_id:
      - schedule.pumpe_pool
    attribute: next_event
    to: "on"
    from: "off"
conditions: []
actions:
  - type: turn_on
    device_id: b794b4106121a21716db36007de0e803
    entity_id: b0ac50bba991365f2f35db3c07f32601
    domain: switch
mode: single

Wundert mich nicht. Lies mein vorheriges Posting noch mal ganz genau. Du fragst schon wieder " attribute: next_event" ab. Das funzt nicht.!

Und zwar, weil sich to: und from: in diesem Fall auf das Attribut beziehen. Und das ist nicht on oder off.

Genau. Das liefert einen Datum/Zeitstempel zurück.

Jetzt ist der Groschen gefallen!
Danke für den Support . ihr seid klasse!

hier die Lösung:
Pumpe an:

alias: Pool Pumpe an
description: ""
triggers:
  - trigger: state
    entity_id:
      - schedule.pumpe_pool
    attribute: next_event
conditions: []
actions:
  - type: turn_on
    device_id: b794b4106121a21716db36007de0e803
    entity_id: b0ac50bba991365f2f35db3c07f32601
    domain: switch
mode: single

Pumpe aus:

alias: Pool Pumpe aus
description: ""
triggers:
  - trigger: state
    entity_id:
      - schedule.pumpe_pool
    attribute: next_event
conditions:
  - condition: device
    type: is_on
    device_id: b794b4106121a21716db36007de0e803
    entity_id: b0ac50bba991365f2f35db3c07f32601
    domain: switch
actions:
  - type: turn_off
    device_id: b794b4106121a21716db36007de0e803
    entity_id: b0ac50bba991365f2f35db3c07f32601
    domain: switch
mode: single