Hallo, ich habe vor eine Rollade zu öffnen wenn ich nach Hause komme. Ich bekomme die Nachricht und wenn ich auf Öffnen drücke, passiert nichts. Vielleicht kann mir jemand helfen.
LG Marvin
alias: Nachricht Seitentür Rollade öffnen
description: ""
triggers:
- trigger: state
entity_id:
- sensor.home_bewegung_von_marvin_utzelmann
to: arrived
from: towards
id: Marvin zu Hause
- trigger: state
entity_id:
- sensor.home_bewegung_von_iphone_von_lea
from: towards
to: arrived
id: Lea zu Hause angekommen
conditions:
- condition: device
device_id: f0fde1ba758391a7b0fe6c2f2ca216ab
domain: cover
entity_id: 209804dbd677790776995de1f1c33513
type: is_position
below: 94
enabled: false
actions:
- variables:
action_open: "{{ 'OPEN_' ~ context.id }}"
action_no: "{{ 'NO_' ~ context.id }}"
- choose:
- conditions:
- condition: trigger
id:
- Marvin zu Hause
sequence:
- action: notify.mobile_app_iphone_von_utzel
metadata: {}
data:
message: Rollladen Seitentür öffnen?
title: Gedrückt halten!
data:
actions:
- action: "{{ action_open }}"
title: Öffnen
- action: "{{ action_no }}"
title: Nein
- conditions:
- condition: trigger
id:
- Lea zu Hause angekommen
sequence:
- action: notify.mobile_app_iphone_von_lea
metadata: {}
data:
message: Seitentür öffnen
title: Gedrückt halten!
data:
actions:
- action: "{{ action_open }}"
title: Öffnen
- action: "{{ action_no }}"
title: Nein
- wait_for_trigger:
- trigger: event
event_type: mobile_app_notification_action
event_data:
action: "{{ action_open }}"
timeout:
hours: 0
minutes: 5
seconds: 0
milliseconds: 0
continue_on_timeout: false
- device_id: f0fde1ba758391a7b0fe6c2f2ca216ab
domain: cover
entity_id: 209804dbd677790776995de1f1c33513
type: open
mode: parallel
max: 10
Fehlermeldung
Logger: homeassistant.helpers.template
Quelle: helpers/template.py:2947
Erstmals aufgetreten: 22:13:44 (30 Vorkommnisse)
Zuletzt protokolliert: 23:12:40
Template variable warning: 'action_open' is undefined when rendering '{{ action_open }}'
Template variable warning: 'action_no' is undefined when rendering '{{ action_no }}'
by tarag: Code und Log in vorformatierten Text </> formatiert