Meine Idee in die Runde
- Trigger 1: Schalter manuell von Aus → An läßt Timer1 (6 min) starten und Pumpe An
- Trigger 2: Timer1 Aktiv → Leerlauf läßt Timer2 (2 min) starten und Pumpe Aus
- Trigger 3: Timer2 Aktiv → Leerlauf: Sofern manueller Schalten = AN, startet wieder Timer1 und Pumpe An
- Trigger 4: Schalter manuell von An → Aus bricht beide Timer ab und Wenn Pumpe An Dann Pumpe aus
Hier ein Codeentwurf.
Zusammenfassung
description: ""
mode: single
triggers:
- trigger: state
entity_id:
- switch.manueller_schalter
from: "off"
to: "on"
id: SchalterAN
- trigger: state
entity_id:
- timer.6min
from: active
to: idle
id: Timer6minGehtZuEnde
- trigger: state
entity_id:
- timer.2min
from: active
to: idle
id: Timer2minGehtZuEnde
- trigger: state
entity_id:
- switch.manueller_schalter
from: "on"
to: "off"
id: SchalterAUS
conditions: []
actions:
- choose:
- conditions:
- condition: trigger
id:
- SchalterAN
sequence:
- action: timer.start
metadata: {}
data:
duration: "360"
target:
entity_id: timer.6min
- action: switch.turn_on
metadata: {}
data: {}
target:
entity_id: switch.pumpe
- conditions:
- condition: trigger
id:
- Timer6minGehtZuEnde
sequence:
- action: timer.start
metadata: {}
data:
duration: "120"
target:
entity_id: timer.2min
- action: switch.turn_off
metadata: {}
data: {}
target:
entity_id: switch.pumpe
- conditions:
- condition: trigger
id:
- Timer2minGehtZuEnde
- condition: state
state: "on"
entity_id: switch.manueller_schalter
sequence:
- action: timer.start
metadata: {}
data:
duration: "360"
target:
entity_id: timer.6min
- action: switch.turn_on
metadata: {}
data: {}
target:
entity_id: switch.pumpe
- conditions:
- condition: trigger
id:
- SchalterAUS
sequence:
- action: timer.cancel
metadata: {}
data: {}
target:
entity_id:
- timer.6min
- timer.2min
- if:
- condition: state
entity_id: switch.pumpe
state: "on"
then:
- action: switch.turn_off
metadata: {}
data: {}
target:
entity_id: switch.pumpe
EDIT: Ich hatte einfach Lust etwas Code zusammenzuklicken. Versuche ihn mal, natürlich mit Deinen Entities.