Was ich meinte wäre sowas.
Den Trigger und die Aktionen habe ich mal frei gewählt.
In diesem Bsp. Trigger = Wenn jemand die Heim Zone verlässt oder betritt.
Aktion Licht Flur abschalten.
Wenn keiner Zuhause: zone.home <1
Dann Die Aktion sofort ausführen.
Wenn Jemand Zuhause: zone.home > 0 und Zeit zwischen 08:30 und 11:00
Dann Benachrichtigung an iPhone und Bestätigung der Aktion.
Code: Alles auswählen
alias: Trigger Home
description: ""
trigger:
- platform: state
entity_id:
- zone.home
condition: []
action:
- choose:
- conditions:
- condition: numeric_state
entity_id: zone.home
below: "1"
sequence:
- service: light.turn_off
data: {}
target:
entity_id: light.licht_flur
- conditions:
- condition: numeric_state
entity_id: zone.home
above: "0"
- condition: time
after: "08:30:00"
before: "11:00:00"
sequence:
- service: notify.mobile_app_iphone_xyz
data:
message: Automatisierung auslösen?
data:
actions:
- action: JA
title: JA
- action: NEIN
title: NEIN
- wait_for_trigger:
- platform: event
event_type: mobile_app_notification_action
event_data:
action: JA
timeout: "00:00:30"
continue_on_timeout: false
- service: light.turn_off
data: {}
target:
entity_id: light.licht_flur
default: []
Gruß
Osorkon