Lüftung: Rollos zum Lüften hochfahren
Reagiert auf Zustandsaenderung von buro contact auf 'on'. saver.save_state, Jalousie oeffnen, Jalousie-Position setzen.
Entitäten:cover.kuchecover.buro
So funktioniert diese Automation
Schritt 1
Auslöser
- Zustandsänderung
buro contact -> on
- Zustandsänderung
om kuche contact -> on
Schritt 2
Bedingungen
Keine Bedingungen, wird immer ausgeführt
Schritt 3
Aktionen
Verzweigung
Wenn: UND-Verknüpfung
saver.save_state
Jalousie öffnen
Bereiche: buro
Aktion
Jalousie-Position setzen
buro
Wenn: UND-Verknüpfung
saver.save_state
Jalousie öffnen
Bereiche: kuche
Aktion
Jalousie-Position setzen
kuche
Lüftung: Rollos zum Lüften hochfahren
# Entity-IDs sind anonymisiert. Ersetze sie durch deine eigenen.
# Beispiel: light.dein_wohnzimmer_licht -> light.wohnzimmer_deckenlampe
alias: 'Lüftung: Rollos zum Lüften hochfahren'
mode: single
trigger:
- entity_id:
- binary_sensor.buro_contact
from: 'off'
to: 'on'
id: Bürofenster geöffnet
alias: Bürofenster geöffnet
platform: state
- entity_id:
- binary_sensor.om_kuche_contact
from: 'off'
to: 'on'
id: Küchenfenster geöffnet
alias: Küchenfenster geöffnet
platform: state
action:
- choose:
- conditions:
- condition: and
conditions:
- condition: device
device_id: DEIN_GERAET_ID
domain: cover
entity_id: DEIN_GERAET_ID
type: is_position
below: 90
- condition: trigger
id:
- Bürofenster geöffnet
sequence:
- action: saver.save_state
metadata: {}
data:
entity_id:
- cover.buro
- action: cover.open_cover
metadata: {}
data: {}
target:
area_id: buro
- wait_for_trigger:
- type: not_opened
device_id: DEIN_GERAET_ID
entity_id: DEIN_GERAET_ID
domain: binary_sensor
trigger: device
timeout:
hours: 0
minutes: 20
seconds: 0
- data:
position: '{{ saver_entity(''cover.buro'', ''current_position'') }}'
target:
entity_id: cover.buro
action: cover.set_cover_position
alias: Jalousie Büro öffnen
- conditions:
- condition: and
conditions:
- condition: device
device_id: DEIN_GERAET_ID
domain: cover
entity_id: DEIN_GERAET_ID
type: is_position
below: 90
- condition: trigger
id:
- Küchenfenster geöffnet
sequence:
- action: saver.save_state
metadata: {}
data:
entity_id:
- cover.kuche
- action: cover.open_cover
metadata: {}
data: {}
target:
area_id: kuche
- wait_for_trigger:
- type: not_opened
device_id: DEIN_GERAET_ID
entity_id: DEIN_GERAET_ID
domain: binary_sensor
trigger: device
for:
hours: 0
minutes: 0
seconds: 0
timeout:
hours: 0
minutes: 20
seconds: 0
- data:
position: '{{ saver_entity(''cover.kuche'', ''current_position'') }}'
target:
entity_id: cover.kuche
action: cover.set_cover_position
alias: Jalousie Küche öffnen
