Code: Alles auswählen
alias: Garage - Garagentor steht länger offen
description: ''
trigger:
- platform: state
entity_id: cover.garagentor
for:
hours: 0
minutes: 15
seconds: 0
id: offen
to: open
- platform: state
entity_id: cover.garagentor
to: closed
id: zu
condition: []
action:
- choose:
- conditions:
- condition: trigger
id: offen
sequence:
- repeat:
while:
- condition: state
entity_id: cover.garagentor
state: open
sequence:
- service: notify.telegram_all
data:
message: >-
Die Garage steht schon seit {{ (as_timestamp(now()) -
as_timestamp(states.cover.garagentor.last_changed)) |
timestamp_custom ('%H h und %M min',false) }} offen!
- delay:
hours: 0
minutes: 15
seconds: 0
milliseconds: 0
default: []
mode: restart
@Undertaker und das Alles ohne Timer und Variablen!
Gruß
Osorkon